	.file	"extr_ocsp.c_do_responder.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"GET "
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Invalid request -- bad URL: %s"
	.section	.rodata.str1.1
.LC2:
	.string	" HTTP/1."
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Invalid request -- bad HTTP version: %s"
	.align 8
.LC4:
	.string	"Invalid request -- bad URL encoding: %s"
	.align 8
.LC5:
	.string	"Could not allocate base64 bio: %s"
	.section	.rodata.str1.1
.LC6:
	.string	"POST "
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Invalid request -- bad HTTP verb: %s"
	.section	.rodata.str1.1
.LC8:
	.string	"Error parsing OCSP request"
	.text
	.p2align 4
	.type	do_responder, @function
do_responder:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 4096
	.cfi_def_cfa_offset 4152
	or	QWORD PTR [rsp], 0
	sub	rsp, 24
	.cfi_def_cfa_offset 4176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 4104[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rdi], 0
	mov	r12, rdi
	mov	rdi, rdx
	mov	rbx, rsi
	mov	rbp, rdx
	call	BIO_do_accept@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jle	.L1
	mov	rdi, rbp
	lea	r14, 2048[rsp]
	call	BIO_pop@PLT
	mov	QWORD PTR [rbx], rax
	mov	rbp, rax
	mov	rdi, rax
	call	BIO_get_peer_name@PLT
	mov	edx, 2048
	mov	rsi, r14
	mov	rdi, rbp
	mov	r13, rax
	call	BIO_gets@PLT
	test	eax, eax
	jle	.L37
	mov	edx, 4
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	strncmp@PLT
	test	rax, rax
	jne	.L4
	movzx	eax, BYTE PTR 2052[rsp]
	lea	r14, 2052[rsp]
	cmp	al, 32
	je	.L6
.L5:
	cmp	al, 47
	jne	.L39
	lea	r15, 1[r14]
	mov	rbx, r15
	test	BYTE PTR 1[r14], -33
	je	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	add	rbx, 1
	test	BYTE PTR [rbx], -33
	jne	.L9
.L8:
	mov	edx, 8
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	call	strncmp@PLT
	test	rax, rax
	jne	.L40
	mov	BYTE PTR [rbx], 0
	cmp	BYTE PTR 1[r14], 0
	je	.L37
	mov	rdi, r15
	call	urldecode@PLT
	mov	esi, eax
	test	eax, eax
	jle	.L41
	mov	rdi, r15
	call	BIO_new_mem_buf@PLT
	mov	r14, rax
	test	rax, rax
	je	.L14
	xor	eax, eax
	call	BIO_f_base64@PLT
	mov	edi, eax
	call	BIO_new@PLT
	mov	r15, rax
	test	rax, rax
	je	.L14
	mov	esi, DWORD PTR BIO_FLAGS_BASE64_NO_NL[rip]
	mov	rdi, rax
	call	BIO_set_flags@PLT
	mov	rsi, r14
	mov	rdi, r15
	call	BIO_push@PLT
	mov	r14, rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L26:
	xor	esi, esi
	test	r14, r14
	je	.L18
	mov	rdi, r14
	call	d2i_OCSP_REQUEST_bio@PLT
	mov	rdi, r14
	mov	rbx, rax
	call	BIO_free_all@PLT
.L19:
	test	rbx, rbx
	je	.L42
.L20:
	mov	QWORD PTR [r12], rbx
	.p2align 4,,10
	.p2align 3
.L37:
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 4104[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L43
	add	rsp, 4120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	mov	edi, DWORD PTR LOG_INFO[rip]
	mov	rdx, r13
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	log_message@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	movzx	eax, BYTE PTR 1[r14]
	add	r14, 1
	cmp	al, 32
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r14
	mov	edx, 5
	lea	rsi, .LC6[rip]
	xor	r14d, r14d
	call	strncmp@PLT
	test	rax, rax
	jne	.L44
.L15:
	mov	rbx, rsp
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L45:
	movzx	eax, BYTE PTR [rsp]
	cmp	al, 13
	je	.L26
	cmp	al, 10
	je	.L26
.L16:
	mov	edx, 2048
	mov	rsi, rbx
	mov	rdi, rbp
	call	BIO_gets@PLT
	test	eax, eax
	jg	.L45
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	d2i_OCSP_REQUEST_bio@PLT
	mov	rbx, rax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L41:
	mov	edi, DWORD PTR LOG_INFO[rip]
	mov	rdx, r13
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	log_message@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	mov	edi, DWORD PTR LOG_INFO[rip]
	mov	rdx, r13
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	log_message@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L44:
	mov	edi, DWORD PTR LOG_INFO[rip]
	mov	rdx, r13
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	log_message@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR LOG_ERR[rip]
	mov	rdx, r13
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	log_message@PLT
	mov	eax, 1
	jmp	.L1
.L42:
	mov	edi, DWORD PTR LOG_ERR[rip]
	lea	rsi, .LC8[rip]
	xor	eax, eax
	call	log_message@PLT
	jmp	.L20
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	do_responder, .-do_responder
	.comm	acfd,4,4
	.comm	LOG_INFO,4,4
	.comm	LOG_ERR,4,4
	.comm	INVALID_SOCKET,8,8
	.comm	BIO_FLAGS_BASE64_NO_NL,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_ocsp.c_do_responder.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GET \000"
	.align	2
.LC1:
	.ascii	"Invalid request -- bad URL: %s\000"
	.align	2
.LC2:
	.ascii	" HTTP/1.\000"
	.align	2
.LC3:
	.ascii	"Invalid request -- bad HTTP version: %s\000"
	.align	2
.LC4:
	.ascii	"Invalid request -- bad URL encoding: %s\000"
	.align	2
.LC5:
	.ascii	"Could not allocate base64 bio: %s\000"
	.align	2
.LC6:
	.ascii	"POST \000"
	.align	2
.LC7:
	.ascii	"Invalid request -- bad HTTP verb: %s\000"
	.align	2
.LC8:
	.ascii	"Error parsing OCSP request\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_responder, %function
do_responder:
	@ args = 0, pretend = 0, frame = 4104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, #0
	mov	r6, r0
	mov	r4, r2
	sub	sp, sp, #4096
	sub	sp, sp, #12
	ldr	r2, .L46
	add	r3, sp, #4096
	ldr	r2, [r2]
	str	r2, [r3, #4]
	mov	r2,#0
	mov	r0, r4
	str	r5, [r6]
	add	r3, r3, #4
	mov	r7, r1
	bl	BIO_do_accept
	cmp	r0, r5
	movle	r0, r5
	ble	.L1
	mov	r0, r4
	bl	BIO_pop
	str	r0, [r7]
	mov	r4, r0
	bl	BIO_get_peer_name
	add	r1, sp, #2048
	mov	r8, r0
	mov	r2, #2048
	mov	r0, r4
	add	r1, r1, #4
	bl	BIO_gets
	cmp	r0, r5
	ble	.L37
	add	r0, sp, #2048
	mov	r2, #4
	ldr	r1, .L46+4
	add	r0, r0, #4
	bl	strncmp
	cmp	r0, #0
	bne	.L4
	ldrb	r3, [sp, #2056]	@ zero_extendqisi2
	add	r7, sp, #2048
	cmp	r3, #32
	add	r7, r7, #8
	beq	.L6
.L5:
	cmp	r3, #47
	bne	.L39
	ldrb	r3, [r7, #1]	@ zero_extendqisi2
	add	r9, r7, #1
	tst	r3, #223
	mov	r5, r9
	beq	.L8
.L9:
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	tst	r3, #223
	bne	.L9
.L8:
	mov	r2, #8
	mov	r0, r5
	ldr	r1, .L46+8
	bl	strncmp
	cmp	r0, #0
	bne	.L40
	strb	r0, [r5]
	ldrb	r3, [r7, #1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L37
	mov	r0, r9
	bl	urldecode
	subs	r1, r0, #0
	ble	.L41
	mov	r0, r9
	bl	BIO_new_mem_buf
	subs	r5, r0, #0
	beq	.L14
	bl	BIO_f_base64
	bl	BIO_new
	subs	r7, r0, #0
	beq	.L14
	ldr	r3, .L46+12
	ldr	r1, [r3]
	bl	BIO_set_flags
	mov	r1, r5
	mov	r0, r7
	bl	BIO_push
	mov	r5, r0
	b	.L16
.L44:
	cmp	r5, #0
	beq	.L17
	mov	r1, #0
	mov	r0, r5
	bl	d2i_OCSP_REQUEST_bio
	mov	r4, r0
	mov	r0, r5
	bl	BIO_free_all
.L18:
	cmp	r4, #0
	beq	.L42
.L19:
	mov	r0, #1
	str	r4, [r6]
.L1:
	add	r3, sp, #4096
	ldr	r2, .L46
	add	r3, r3, #4
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L43
	add	sp, sp, #4096
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L4:
	add	r0, sp, #2048
	mov	r2, #5
	ldr	r1, .L46+16
	add	r0, r0, #4
	bl	strncmp
	subs	r5, r0, #0
	beq	.L16
	ldr	r3, .L46+20
	mov	r2, r8
	ldr	r0, [r3]
	ldr	r1, .L46+24
	bl	log_message
.L37:
	mov	r0, #1
	b	.L1
.L45:
	ldrb	r3, [sp, #4]	@ zero_extendqisi2
	cmp	r3, #10
	cmpne	r3, #13
	beq	.L44
.L16:
	mov	r2, #2048
	mov	r0, r4
	add	r1, sp, #4
	bl	BIO_gets
	cmp	r0, #0
	bgt	.L45
	b	.L37
.L39:
	ldr	r3, .L46+20
	mov	r2, r8
	ldr	r0, [r3]
	ldr	r1, .L46+28
	bl	log_message
	mov	r0, #1
	b	.L1
.L6:
	ldrb	r3, [r7, #1]!	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L5
	b	.L6
.L41:
	ldr	r3, .L46+20
	mov	r2, r8
	ldr	r0, [r3]
	ldr	r1, .L46+32
	bl	log_message
	mov	r0, #1
	b	.L1
.L40:
	ldr	r3, .L46+20
	mov	r2, r8
	ldr	r0, [r3]
	ldr	r1, .L46+36
	bl	log_message
	mov	r0, #1
	b	.L1
.L17:
	mov	r0, r4
	mov	r1, r5
	bl	d2i_OCSP_REQUEST_bio
	mov	r4, r0
	b	.L18
.L14:
	ldr	r3, .L46+40
	mov	r2, r8
	ldr	r0, [r3]
	ldr	r1, .L46+44
	bl	log_message
	mov	r0, #1
	b	.L1
.L42:
	ldr	r3, .L46+40
	ldr	r1, .L46+48
	ldr	r0, [r3]
	bl	log_message
	b	.L19
.L43:
	bl	__stack_chk_fail
.L47:
	.align	2
.L46:
	.word	.LC9
	.word	.LC0
	.word	.LC2
	.word	BIO_FLAGS_BASE64_NO_NL
	.word	.LC6
	.word	LOG_INFO
	.word	.LC7
	.word	.LC1
	.word	.LC4
	.word	.LC3
	.word	LOG_ERR
	.word	.LC5
	.word	.LC8
	.size	do_responder, .-do_responder
	.comm	acfd,4,4
	.comm	LOG_INFO,4,4
	.comm	LOG_ERR,4,4
	.comm	INVALID_SOCKET,4,4
	.comm	BIO_FLAGS_BASE64_NO_NL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
