	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_socket_new         ## -- Begin function bufferevent_socket_new
	.p2align	4, 0x90
_bufferevent_socket_new:                ## @bufferevent_socket_new
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	$1, %edi
	movl	$20, %esi
	callq	_mm_calloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_bufferevent_ops_socket@GOTPCREL(%rip), %rdx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r15d, %ecx
	callq	_bufferevent_init_common_
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	movq	_EVBUFFER_FLAG_DRAINS_TO_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_evbuffer_set_flags
	leaq	16(%rbx), %rdi
	movl	8(%rbx), %esi
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_PERSIST@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	movq	_EV_FINALIZE@GOTPCREL(%rip), %r12
	orl	(%r12), %ecx
	movq	_bufferevent_readcb@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r14d, %edx
	movq	%rbx, %r9
	callq	_event_assign
	movq	%rbx, %rdi
	addq	$12, %rdi
	movl	8(%rbx), %esi
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	orl	(%r12), %ecx
	movq	_bufferevent_writecb@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r14d, %edx
	movq	%rbx, %r9
	callq	_event_assign
	movl	(%rbx), %edi
	movq	_bufferevent_socket_outbuf_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_evbuffer_add_cb
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_evbuffer_freeze
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_evbuffer_freeze
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_mm_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bufferevent_ops_socket,4,2     ## @bufferevent_ops_socket
	.comm	_EVBUFFER_FLAG_DRAINS_TO_FD,4,2 ## @EVBUFFER_FLAG_DRAINS_TO_FD
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_EV_FINALIZE,4,2                ## @EV_FINALIZE
	.comm	_bufferevent_readcb,4,2         ## @bufferevent_readcb
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_bufferevent_writecb,4,2        ## @bufferevent_writecb
	.comm	_bufferevent_socket_outbuf_cb,4,2 ## @bufferevent_socket_outbuf_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_socket_new         ; -- Begin function bufferevent_socket_new
	.p2align	2
_bufferevent_socket_new:                ; @bufferevent_socket_new
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	w0, #1
	mov	w1, #20
	bl	_mm_calloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x2, _bufferevent_ops_socket@GOTPAGE
Lloh1:
	ldr	x2, [x2, _bufferevent_ops_socket@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	_bufferevent_init_common_
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _EVBUFFER_FLAG_DRAINS_TO_FD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVBUFFER_FLAG_DRAINS_TO_FD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_evbuffer_set_flags
	add	x0, x19, #16
	ldr	w1, [x19, #8]
Lloh5:
	adrp	x8, _EV_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x21, _EV_PERSIST@GOTPAGE
Lloh9:
	ldr	x21, [x21, _EV_PERSIST@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh10:
	adrp	x22, _EV_FINALIZE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _EV_FINALIZE@GOTPAGEOFF]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w3, w8, w9
Lloh12:
	adrp	x8, _bufferevent_readcb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bufferevent_readcb@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x2, x20
	mov	x5, x19
	bl	_event_assign
	add	x0, x19, #12
	ldr	w1, [x19, #8]
Lloh15:
	adrp	x8, _EV_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EV_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w3, w8, w9
Lloh18:
	adrp	x8, _bufferevent_writecb@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bufferevent_writecb@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
	mov	x2, x20
	mov	x5, x19
	bl	_event_assign
	ldr	w0, [x19]
Lloh21:
	adrp	x8, _bufferevent_socket_outbuf_cb@GOTPAGE
Lloh22:
	ldr	x8, [x8, _bufferevent_socket_outbuf_cb@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_evbuffer_add_cb
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_evbuffer_freeze
	ldr	w0, [x19]
	mov	w1, #1
	bl	_evbuffer_freeze
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_mm_free
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_bufferevent_ops_socket,4,2     ; @bufferevent_ops_socket
	.comm	_EVBUFFER_FLAG_DRAINS_TO_FD,4,2 ; @EVBUFFER_FLAG_DRAINS_TO_FD
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_EV_FINALIZE,4,2                ; @EV_FINALIZE
	.comm	_bufferevent_readcb,4,2         ; @bufferevent_readcb
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_bufferevent_writecb,4,2        ; @bufferevent_writecb
	.comm	_bufferevent_socket_outbuf_cb,4,2 ; @bufferevent_socket_outbuf_cb
.subsections_via_symbols
