	.file	"extr_regress_ssl.c_acceptcb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"server"
	.text
	.p2align 4
	.type	acceptcb, @function
acceptcb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, r8
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	get_ssl_ctx@PLT
	mov	edi, eax
	call	SSL_new@PLT
	mov	r12, rax
	xor	eax, eax
	call	getcert@PLT
	mov	rdi, r12
	mov	esi, eax
	call	SSL_use_certificate@PLT
	xor	eax, eax
	call	getkey@PLT
	mov	rdi, r12
	mov	esi, eax
	call	SSL_use_PrivateKey@PLT
	mov	edi, DWORD PTR [rbx]
	mov	ecx, DWORD PTR BUFFEREVENT_SSL_ACCEPTING[rip]
	mov	rdx, r12
	mov	esi, r13d
	mov	r8d, DWORD PTR BEV_OPT_CLOSE_ON_FREE[rip]
	or	r8d, DWORD PTR BEV_OPT_DEFER_CALLBACKS[rip]
	call	bufferevent_openssl_socket_new@PLT
	mov	ecx, DWORD PTR eventcb[rip]
	mov	esi, DWORD PTR respond_to_number[rip]
	xor	edx, edx
	mov	r12, rax
	lea	r8, .LC0[rip]
	mov	rdi, rax
	call	bufferevent_setcb@PLT
	mov	rdi, r12
	mov	esi, DWORD PTR EV_READ[rip]
	or	esi, DWORD PTR EV_WRITE[rip]
	call	bufferevent_enable@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	evconnlistener_disable@PLT
	.cfi_endproc
.LFE0:
	.size	acceptcb, .-acceptcb
	.comm	respond_to_number,4,4
	.comm	eventcb,4,4
	.comm	EV_WRITE,4,4
	.comm	EV_READ,4,4
	.comm	BUFFEREVENT_SSL_ACCEPTING,4,4
	.comm	BEV_OPT_DEFER_CALLBACKS,4,4
	.comm	BEV_OPT_CLOSE_ON_FREE,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_regress_ssl.c_acceptcb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"server\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acceptcb, %function
acceptcb:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	mov	r6, r1
	mov	r5, r0
	ldr	r7, [sp, #32]
	bl	get_ssl_ctx
	bl	SSL_new
	mov	r4, r0
	bl	getcert
	mov	r1, r0
	mov	r0, r4
	bl	SSL_use_certificate
	bl	getkey
	mov	r1, r0
	mov	r0, r4
	bl	SSL_use_PrivateKey
	ldr	r3, .L4
	ldr	r2, .L4+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	ip, .L4+8
	orr	r3, r3, r2
	mov	r1, r6
	mov	r2, r4
	ldr	r0, [r7]
	str	r3, [sp]
	ldr	r3, [ip]
	bl	bufferevent_openssl_socket_new
	mov	r4, r0
	ldr	r2, .L4+12
	ldr	r3, .L4+16
	ldr	r1, .L4+20
	ldr	r3, [r3]
	ldr	r1, [r1]
	str	r2, [sp]
	mov	r2, #0
	bl	bufferevent_setcb
	ldr	r2, .L4+24
	ldr	r3, .L4+28
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	orr	r1, r1, r3
	bl	bufferevent_enable
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	evconnlistener_disable
.L5:
	.align	2
.L4:
	.word	BEV_OPT_CLOSE_ON_FREE
	.word	BEV_OPT_DEFER_CALLBACKS
	.word	BUFFEREVENT_SSL_ACCEPTING
	.word	.LC0
	.word	eventcb
	.word	respond_to_number
	.word	EV_READ
	.word	EV_WRITE
	.size	acceptcb, .-acceptcb
	.comm	respond_to_number,4,4
	.comm	eventcb,4,4
	.comm	EV_WRITE,4,4
	.comm	EV_READ,4,4
	.comm	BUFFEREVENT_SSL_ACCEPTING,4,4
	.comm	BEV_OPT_DEFER_CALLBACKS,4,4
	.comm	BEV_OPT_CLOSE_ON_FREE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
