	.file	"extr_bufferevent_sock.c_bufferevent_socket_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bufferevent_socket_new
	.type	bufferevent_socket_new, @function
bufferevent_socket_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	mov	esi, 20
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	edi, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mm_calloc@PLT
	test	rax, rax
	je	.L4
	mov	ecx, r14d
	lea	rdx, bufferevent_ops_socket[rip]
	mov	rsi, rbp
	mov	rdi, rax
	mov	r12, rax
	call	bufferevent_init_common_@PLT
	test	rax, rax
	js	.L7
	mov	edi, DWORD PTR [r12]
	mov	esi, DWORD PTR EVBUFFER_FLAG_DRAINS_TO_FD[rip]
	call	evbuffer_set_flags@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	r9, r12
	mov	edx, r13d
	mov	r8d, DWORD PTR bufferevent_readcb[rip]
	lea	rdi, 16[r12]
	mov	ecx, DWORD PTR EV_READ[rip]
	or	ecx, DWORD PTR EV_PERSIST[rip]
	or	ecx, DWORD PTR EV_FINALIZE[rip]
	call	event_assign@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	r9, r12
	mov	edx, r13d
	mov	r8d, DWORD PTR bufferevent_writecb[rip]
	lea	rdi, 12[r12]
	mov	ecx, DWORD PTR EV_WRITE[rip]
	or	ecx, DWORD PTR EV_PERSIST[rip]
	or	ecx, DWORD PTR EV_FINALIZE[rip]
	call	event_assign@PLT
	mov	edi, DWORD PTR [r12]
	mov	esi, DWORD PTR bufferevent_socket_outbuf_cb[rip]
	mov	rdx, r12
	call	evbuffer_add_cb@PLT
	mov	edi, DWORD PTR 4[r12]
	xor	esi, esi
	call	evbuffer_freeze@PLT
	mov	edi, DWORD PTR [r12]
	mov	esi, 1
	call	evbuffer_freeze@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r12
	xor	r12d, r12d
	call	mm_free@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bufferevent_socket_new, .-bufferevent_socket_new
	.comm	bufferevent_writecb,4,4
	.comm	bufferevent_socket_outbuf_cb,4,4
	.comm	bufferevent_readcb,4,4
	.comm	bufferevent_ops_socket,4,4
	.comm	EV_WRITE,4,4
	.comm	EV_READ,4,4
	.comm	EV_PERSIST,4,4
	.comm	EV_FINALIZE,4,4
	.comm	EVBUFFER_FLAG_DRAINS_TO_FD,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_bufferevent_sock.c_bufferevent_socket_new.c"
	.text
	.align	2
	.global	bufferevent_socket_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	bufferevent_socket_new, %function
bufferevent_socket_new:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r0
	mov	r5, r1
	mov	r0, #1
	mov	r1, #20
	sub	sp, sp, #12
	mov	r7, r2
	bl	mm_calloc
	subs	r4, r0, #0
	beq	.L1
	mov	r3, r7
	mov	r1, r6
	ldr	r2, .L8
	bl	bufferevent_init_common_
	cmp	r0, #0
	blt	.L7
	ldr	r3, .L8+4
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	evbuffer_set_flags
	ldr	r7, .L8+8
	ldr	r3, .L8+12
	ldr	r6, .L8+16
	ldr	r1, .L8+20
	ldr	r2, [r3]
	ldr	r3, [r7]
	ldr	ip, [r6]
	ldr	r0, [r1]
	orr	r3, r2, r3
	ldr	r1, [r4, #8]
	orr	r3, r3, ip
	mov	r2, r5
	stm	sp, {r0, r4}
	add	r0, r4, #16
	bl	event_assign
	ldr	r2, .L8+24
	ldr	r0, .L8+28
	ldr	r2, [r2]
	ldr	r3, [r7]
	ldr	ip, [r6]
	ldr	r0, [r0]
	orr	r3, r2, r3
	orr	r3, r3, ip
	ldr	r1, [r4, #8]
	mov	r2, r5
	stm	sp, {r0, r4}
	add	r0, r4, #12
	bl	event_assign
	ldr	r3, .L8+32
	mov	r2, r4
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	evbuffer_add_cb
	mov	r1, #0
	ldr	r0, [r4, #4]
	bl	evbuffer_freeze
	mov	r1, #1
	ldr	r0, [r4]
	bl	evbuffer_freeze
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	mov	r0, r4
	mov	r4, #0
	bl	mm_free
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	.align	2
.L8:
	.word	bufferevent_ops_socket
	.word	EVBUFFER_FLAG_DRAINS_TO_FD
	.word	EV_PERSIST
	.word	EV_READ
	.word	EV_FINALIZE
	.word	bufferevent_readcb
	.word	EV_WRITE
	.word	bufferevent_writecb
	.word	bufferevent_socket_outbuf_cb
	.size	bufferevent_socket_new, .-bufferevent_socket_new
	.comm	bufferevent_writecb,4,4
	.comm	bufferevent_socket_outbuf_cb,4,4
	.comm	bufferevent_readcb,4,4
	.comm	bufferevent_ops_socket,4,4
	.comm	EV_WRITE,4,4
	.comm	EV_READ,4,4
	.comm	EV_PERSIST,4,4
	.comm	EV_FINALIZE,4,4
	.comm	EVBUFFER_FLAG_DRAINS_TO_FD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
