	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function listener_cb
_listener_cb:                           ## @listener_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %r14
	movq	_BEV_OPT_CLOSE_ON_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r8, %rdi
	callq	_bufferevent_socket_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_conn_writecb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_conn_eventcb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_bufferevent_setcb
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bufferevent_enable
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bufferevent_disable
	movq	_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bufferevent_write              ## TAILCALL
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_event_base_loopbreak           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ## @BEV_OPT_CLOSE_ON_FREE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error constructing bufferevent!"

	.comm	_conn_writecb,4,2               ## @conn_writecb
	.comm	_conn_eventcb,4,2               ## @conn_eventcb
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_MESSAGE,4,2                    ## @MESSAGE
	.no_dead_strip	_listener_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function listener_cb
_listener_cb:                           ; @listener_cb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x4
Lloh0:
	adrp	x8, _BEV_OPT_CLOSE_ON_FREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BEV_OPT_CLOSE_ON_FREE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x4
	bl	_bufferevent_socket_new
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _conn_writecb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _conn_writecb@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _conn_eventcb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _conn_eventcb@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, #0
	mov	x4, #0
	bl	_bufferevent_setcb
Lloh9:
	adrp	x8, _EV_WRITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bufferevent_enable
Lloh12:
	adrp	x8, _EV_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bufferevent_disable
Lloh15:
	adrp	x8, _MESSAGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MESSAGE@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bufferevent_write
LBB0_2:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_event_base_loopbreak
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ; @BEV_OPT_CLOSE_ON_FREE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error constructing bufferevent!"

	.comm	_conn_writecb,4,2               ; @conn_writecb
	.comm	_conn_eventcb,4,2               ; @conn_eventcb
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_MESSAGE,4,2                    ; @MESSAGE
	.no_dead_strip	_listener_cb
.subsections_via_symbols
