	.file	"extr_test.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CGI_get_cookie"
.LC1:
	.string	"CGI_get_query"
.LC2:
	.string	"CGI_decode_query"
.LC3:
	.string	"CGI_get_post"
.LC4:
	.string	"upload"
.LC5:
	.string	"./cgi-upload-XXXXXX"
.LC6:
	.string	"CGI_add_var"
.LC7:
	.string	"CGI_encode_varlist"
.LC8:
	.string	".-_"
.LC9:
	.string	"CGI_encode_url"
.LC10:
	.string	"CGI_encode_query"
.LC11:
	.string	"CGI_encode_base64"
.LC12:
	.string	"CGI_encode_hex"
.LC13:
	.string	"CGI_encode_entity"
.LC14:
	.string	"CGI_encrypt"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC15:
	.string	"This is my C CGI test password"
	.section	.rodata.str1.1
.LC16:
	.string	"enc len = %d\n"
.LC17:
	.string	"dec len = %d %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR 8[rsi]
	lea	rsi, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	strcmp@PLT
	test	rax, rax
	je	.L25
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC1[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L26
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC2[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L27
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC3[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L28
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC4[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L29
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC6[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L8
	mov	DWORD PTR 20[rsp], 2
	xor	edi, edi
	jmp	.L9
.L10:
	add	rdx, 1
	mov	r8, QWORD PTR [rbx+rdx*8]
	mov	rsi, QWORD PTR -8[rbx+rdx*8]
	mov	rdx, r8
	call	CGI_add_var@PLT
	add	DWORD PTR 20[rsp], 2
	mov	rdi, rax
.L9:
	movsx	rdx, DWORD PTR 20[rsp]
	lea	eax, 1[rdx]
	cmp	eax, ebp
	jl	.L10
.L21:
	call	dumplist@PLT
	jmp	.L3
.L26:
	xor	edi, edi
	call	CGI_get_query@PLT
	mov	rdi, rax
	call	dumplist@PLT
.L3:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	xor	edi, edi
	call	CGI_get_cookie@PLT
	mov	rdi, rax
	call	dumplist@PLT
	jmp	.L3
.L28:
	xor	edi, edi
	xor	esi, esi
	call	CGI_get_post@PLT
	mov	rdi, rax
	call	dumplist@PLT
	jmp	.L3
.L27:
	mov	rsi, QWORD PTR 16[rbx]
	xor	edi, edi
	call	CGI_decode_query@PLT
	mov	rdi, rax
	call	dumplist@PLT
	jmp	.L3
.L29:
	xor	edi, edi
	lea	rsi, .LC5[rip]
	call	CGI_get_post@PLT
	lea	rsi, .LC4[rip]
	mov	rbp, rax
	mov	rdi, rax
	call	CGI_lookup_all@PLT
	mov	rdi, rbp
	call	dumplist@PLT
	jmp	.L3
.L8:
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC7[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L11
	mov	DWORD PTR 20[rsp], 2
	xor	edi, edi
	jmp	.L12
.L13:
	add	rax, 1
	mov	rdx, QWORD PTR [rbx+rax*8]
	mov	rsi, QWORD PTR -8[rbx+rax*8]
	call	CGI_add_var@PLT
	add	DWORD PTR 20[rsp], 2
	mov	rdi, rax
.L12:
	movsx	rax, DWORD PTR 20[rsp]
	lea	edx, 1[rax]
	cmp	edx, ebp
	jl	.L13
	mov	QWORD PTR 8[rsp], rdi
	call	dumplist@PLT
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC8[rip]
	call	CGI_encode_varlist@PLT
.L22:
	mov	esi, DWORD PTR stdout[rip]
	mov	rdi, rax
	call	fputs@PLT
	mov	esi, DWORD PTR stdout[rip]
	mov	edi, 10
	call	fputc@PLT
	jmp	.L3
.L11:
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC9[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L31
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC10[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L32
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC11[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L33
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC12[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L34
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC13[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L35
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC14[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L3
	mov	rbp, QWORD PTR 16[rbx]
	mov	rdi, rbp
	call	strlen@PLT
	lea	rdx, .LC15[rip]
	mov	rdi, rbp
	mov	esi, eax
	call	CGI_encrypt@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	strlen@PLT
	lea	rdi, .LC16[rip]
	mov	esi, eax
	xor	eax, eax
	call	printf@PLT
	lea	rsi, 20[rsp]
	mov	rdi, rbp
	lea	rdx, .LC15[rip]
	call	CGI_decrypt@PLT
	mov	esi, DWORD PTR 20[rsp]
	lea	rdi, .LC17[rip]
	mov	rdx, rax
	xor	eax, eax
	call	printf@PLT
	jmp	.L3
.L31:
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC8[rip]
	call	CGI_encode_url@PLT
	mov	esi, DWORD PTR stdout[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	fputs@PLT
	mov	esi, DWORD PTR stdout[rip]
	mov	edi, 10
	call	fputc@PLT
	mov	rdi, rbp
	call	CGI_decode_url@PLT
	jmp	.L22
.L32:
	push	0
	.cfi_def_cfa_offset 72
	mov	rcx, QWORD PTR 32[rbx]
	lea	rdi, .LC8[rip]
	mov	rdx, QWORD PTR 24[rbx]
	mov	rsi, QWORD PTR 16[rbx]
	push	QWORD PTR 168[rbx]
	.cfi_def_cfa_offset 80
	push	QWORD PTR 160[rbx]
	.cfi_def_cfa_offset 88
	push	QWORD PTR 152[rbx]
	.cfi_def_cfa_offset 96
	push	QWORD PTR 144[rbx]
	.cfi_def_cfa_offset 104
	push	QWORD PTR 136[rbx]
	.cfi_def_cfa_offset 112
	push	QWORD PTR 128[rbx]
	.cfi_def_cfa_offset 120
	push	QWORD PTR 120[rbx]
	.cfi_def_cfa_offset 128
	push	QWORD PTR 112[rbx]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 104[rbx]
	.cfi_def_cfa_offset 144
	push	QWORD PTR 96[rbx]
	.cfi_def_cfa_offset 152
	push	QWORD PTR 88[rbx]
	.cfi_def_cfa_offset 160
	push	QWORD PTR 80[rbx]
	.cfi_def_cfa_offset 168
	push	QWORD PTR 72[rbx]
	.cfi_def_cfa_offset 176
	push	QWORD PTR 64[rbx]
	.cfi_def_cfa_offset 184
	push	QWORD PTR 56[rbx]
	.cfi_def_cfa_offset 192
	mov	r9, QWORD PTR 48[rbx]
	mov	r8, QWORD PTR 40[rbx]
	call	CGI_encode_query@PLT
	mov	esi, DWORD PTR stdout[rip]
	sub	rsp, -128
	.cfi_def_cfa_offset 64
	mov	rdi, rax
	mov	rbp, rax
	call	fputs@PLT
	mov	esi, DWORD PTR stdout[rip]
	mov	edi, 10
	call	fputc@PLT
	xor	edi, edi
	mov	rsi, rbp
	call	CGI_decode_query@PLT
	mov	rdi, rax
	jmp	.L21
.L33:
	mov	rbp, QWORD PTR 16[rbx]
	mov	rdi, rbp
	call	strlen@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	CGI_encode_base64@PLT
	mov	esi, DWORD PTR stdout[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	fputs@PLT
	mov	esi, DWORD PTR stdout[rip]
	mov	edi, 10
	call	fputc@PLT
	lea	rsi, 20[rsp]
	mov	rdi, rbp
	call	CGI_decode_base64@PLT
.L23:
	mov	esi, DWORD PTR 20[rsp]
	mov	ecx, DWORD PTR stdout[rip]
	mov	rdi, rax
	mov	edx, 1
	call	fwrite@PLT
	mov	esi, DWORD PTR stdout[rip]
	mov	edi, 10
	call	fputc@PLT
	jmp	.L3
.L34:
	mov	rbp, QWORD PTR 16[rbx]
	mov	rdi, rbp
	call	strlen@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	CGI_encode_hex@PLT
	mov	esi, DWORD PTR stdout[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	fputs@PLT
	mov	esi, DWORD PTR stdout[rip]
	mov	edi, 10
	call	fputc@PLT
	lea	rsi, 20[rsp]
	mov	rdi, rbp
	call	CGI_decode_hex@PLT
	jmp	.L23
.L35:
	mov	rdi, QWORD PTR 16[rbx]
	call	CGI_encode_entity@PLT
	jmp	.L22
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stdout,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_test.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CGI_get_cookie\000"
	.align	2
.LC1:
	.ascii	"CGI_get_query\000"
	.align	2
.LC2:
	.ascii	"CGI_decode_query\000"
	.align	2
.LC3:
	.ascii	"CGI_get_post\000"
	.align	2
.LC4:
	.ascii	"upload\000"
	.align	2
.LC5:
	.ascii	"./cgi-upload-XXXXXX\000"
	.align	2
.LC6:
	.ascii	"CGI_add_var\000"
	.align	2
.LC7:
	.ascii	"CGI_encode_varlist\000"
	.align	2
.LC8:
	.ascii	".-_\000"
	.align	2
.LC9:
	.ascii	"CGI_encode_url\000"
	.align	2
.LC10:
	.ascii	"CGI_encode_query\000"
	.align	2
.LC11:
	.ascii	"CGI_encode_base64\000"
	.align	2
.LC12:
	.ascii	"CGI_encode_hex\000"
	.align	2
.LC13:
	.ascii	"CGI_encode_entity\000"
	.align	2
.LC14:
	.ascii	"CGI_encrypt\000"
	.align	2
.LC15:
	.ascii	"This is my C CGI test password\000"
	.align	2
.LC16:
	.ascii	"enc len = %d\012\000"
	.align	2
.LC17:
	.ascii	"dec len = %d %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC18:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r1, #4]
	ldr	r3, .L39
	sub	sp, sp, #80
	mov	r4, r1
	mov	r6, r0
	ldr	r1, .L39+4
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #76]
	mov	r3,#0
	bl	strcmp
	cmp	r0, #0
	beq	.L27
	mov	r0, r5
	ldr	r1, .L39+8
	bl	strcmp
	cmp	r0, #0
	beq	.L28
	mov	r0, r5
	ldr	r1, .L39+12
	bl	strcmp
	cmp	r0, #0
	beq	.L29
	ldr	r1, .L39+16
	mov	r0, r5
	bl	strcmp
	subs	r1, r0, #0
	beq	.L30
	mov	r0, r5
	ldr	r1, .L39+20
	bl	strcmp
	cmp	r0, #0
	beq	.L31
	mov	r0, r5
	ldr	r1, .L39+24
	bl	strcmp
	cmp	r0, #0
	beq	.L32
	mov	r0, r5
	ldr	r1, .L39+28
	bl	strcmp
	cmp	r0, #0
	moveq	r3, #2
	moveq	r5, r0
	streq	r3, [sp, #72]
	beq	.L12
	mov	r0, r5
	ldr	r1, .L39+32
	bl	strcmp
	cmp	r0, #0
	beq	.L33
	mov	r0, r5
	ldr	r1, .L39+36
	bl	strcmp
	subs	r6, r0, #0
	beq	.L34
	mov	r0, r5
	ldr	r1, .L39+40
	bl	strcmp
	cmp	r0, #0
	beq	.L35
	mov	r0, r5
	ldr	r1, .L39+44
	bl	strcmp
	cmp	r0, #0
	beq	.L36
	mov	r0, r5
	ldr	r1, .L39+48
	bl	strcmp
	cmp	r0, #0
	beq	.L37
	mov	r0, r5
	ldr	r1, .L39+52
	bl	strcmp
	cmp	r0, #0
	bne	.L3
	ldr	r4, [r4, #8]
	mov	r0, r4
	bl	strlen
	ldr	r2, .L39+56
	mov	r1, r0
	mov	r0, r4
	bl	CGI_encrypt
	mov	r4, r0
	bl	strlen
	mov	r1, r0
	ldr	r0, .L39+60
	bl	printf
	add	r1, sp, #72
	mov	r0, r4
	ldr	r2, .L39+56
	bl	CGI_decrypt
	ldr	r1, [sp, #72]
	mov	r2, r0
	ldr	r0, .L39+64
	bl	printf
	b	.L3
.L13:
	add	r2, r4, r3, lsl #2
	mov	r0, r5
	ldr	r1, [r4, r3, lsl #2]
	ldr	r2, [r2, #4]
	bl	CGI_add_var
	mov	r5, r0
	ldr	r3, [sp, #72]
	add	r3, r3, #2
	str	r3, [sp, #72]
.L12:
	add	r2, r3, #1
	cmp	r2, r6
	blt	.L13
	mov	r0, r5
	bl	dumplist
	mov	r0, r5
	ldr	r1, .L39+68
	ldr	r4, .L39+72
	bl	CGI_encode_varlist
.L24:
	ldr	r1, [r4]
	bl	fputs
	ldr	r1, [r4]
	mov	r0, #10
	bl	fputc
	b	.L3
.L27:
	bl	CGI_get_cookie
	bl	dumplist
.L3:
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L38
	mov	r0, #0
	add	sp, sp, #80
	@ sp needed
	pop	{r4, r5, r6, pc}
.L30:
	bl	CGI_get_post
	bl	dumplist
	b	.L3
.L28:
	bl	CGI_get_query
	bl	dumplist
	b	.L3
.L29:
	ldr	r1, [r4, #8]
	bl	CGI_decode_query
	bl	dumplist
	b	.L3
.L32:
	mov	r3, #2
	cmp	r6, #3
	str	r3, [sp, #72]
	ble	.L23
.L10:
	add	r2, r4, r3, lsl #2
	ldr	r2, [r2, #4]
	ldr	r1, [r4, r3, lsl #2]
	bl	CGI_add_var
	ldr	r3, [sp, #72]
	add	r2, r3, #3
	cmp	r2, r6
	add	r3, r3, #2
	str	r3, [sp, #72]
	blt	.L10
.L23:
	bl	dumplist
	b	.L3
.L31:
	ldr	r1, .L39+76
	bl	CGI_get_post
	mov	r4, r0
	ldr	r1, .L39+20
	bl	CGI_lookup_all
	mov	r0, r4
	bl	dumplist
	b	.L3
.L37:
	ldr	r5, .L39+72
	ldr	r0, [r4, #8]
	bl	CGI_encode_entity
	ldr	r1, [r5]
	bl	fputs
	ldr	r1, [r5]
	mov	r0, #10
	bl	fputc
	b	.L3
.L33:
	ldr	r0, [r4, #8]
	ldr	r1, .L39+68
	bl	CGI_encode_url
	mov	r5, r0
	ldr	r4, .L39+72
	ldr	r1, [r4]
	bl	fputs
	ldr	r1, [r4]
	mov	r0, #10
	bl	fputc
	mov	r0, r5
	bl	CGI_decode_url
	b	.L24
.L34:
	ldr	r0, [r4, #84]
	ldr	r1, [r4, #80]
	ldr	r2, [r4, #76]
	ldr	r3, [r4, #72]
	str	r6, [sp, #68]
	str	r0, [sp, #64]
	ldr	r0, [r4, #68]
	str	r1, [sp, #60]
	ldr	r1, [r4, #64]
	str	r2, [sp, #56]
	ldr	r2, [r4, #60]
	str	r3, [sp, #52]
	ldr	r3, [r4, #56]
	str	r0, [sp, #48]
	ldr	r0, [r4, #52]
	str	r1, [sp, #44]
	ldr	r1, [r4, #48]
	str	r2, [sp, #40]
	ldr	r2, [r4, #44]
	str	r3, [sp, #36]
	ldr	r3, [r4, #40]
	str	r0, [sp, #32]
	ldr	r0, [r4, #36]
	str	r1, [sp, #28]
	ldr	r1, [r4, #32]
	str	r2, [sp, #24]
	ldr	r2, [r4, #28]
	str	r3, [sp, #20]
	ldr	r3, [r4, #24]
	str	r0, [sp, #16]
	str	r1, [sp, #12]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #16]
	str	r2, [sp]
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #8]
	ldr	r0, .L39+68
	bl	CGI_encode_query
	mov	r4, r0
	ldr	r5, .L39+72
	ldr	r1, [r5]
	bl	fputs
	ldr	r1, [r5]
	mov	r0, #10
	bl	fputc
	mov	r1, r4
	mov	r0, r6
	bl	CGI_decode_query
	b	.L23
.L35:
	ldr	r5, [r4, #8]
	ldr	r4, .L39+72
	mov	r0, r5
	bl	strlen
	mov	r1, r0
	mov	r0, r5
	bl	CGI_encode_base64
	mov	r5, r0
	ldr	r1, [r4]
	bl	fputs
	ldr	r1, [r4]
	mov	r0, #10
	bl	fputc
	mov	r0, r5
	add	r1, sp, #72
	bl	CGI_decode_base64
.L25:
	ldr	r1, [sp, #72]
	mov	r2, #1
	ldr	r3, [r4]
	bl	fwrite
	ldr	r1, [r4]
	mov	r0, #10
	bl	fputc
	b	.L3
.L36:
	ldr	r5, [r4, #8]
	ldr	r4, .L39+72
	mov	r0, r5
	bl	strlen
	mov	r1, r0
	mov	r0, r5
	bl	CGI_encode_hex
	mov	r5, r0
	ldr	r1, [r4]
	bl	fputs
	ldr	r1, [r4]
	mov	r0, #10
	bl	fputc
	mov	r0, r5
	add	r1, sp, #72
	bl	CGI_decode_hex
	b	.L25
.L38:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	.LC18
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC6
	.word	.LC7
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC8
	.word	stdout
	.word	.LC5
	.size	main, .-main
	.comm	stdout,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
