	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_event_cb
_client_event_cb:                       ## @client_event_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_BEV_EVENT_CONNECTED@GOTPCREL(%rip), %rax
	testw	%si, (%rax)
	je	LBB0_2
## %bb.1:
	movb	$65, -9(%rbp)
	leaq	-9(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_bufferevent_write
	jmp	LBB0_3
LBB0_2:
	movq	_BEV_EVENT_ERROR@GOTPCREL(%rip), %rax
	testw	%si, (%rax)
	jne	LBB0_4
LBB0_3:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bufferevent_enable
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_puts
	movl	$2, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_EVENT_CONNECTED,2,1        ## @BEV_EVENT_CONNECTED
	.comm	_BEV_EVENT_ERROR,2,1            ## @BEV_EVENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Client socket got error!"

	.comm	_EV_READ,4,2                    ## @EV_READ
	.no_dead_strip	_client_event_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_event_cb
_client_event_cb:                       ; @client_event_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _BEV_EVENT_CONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BEV_EVENT_CONNECTED@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w8, w8, w1
	tst	w8, #0xffff
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #65
	strb	w8, [sp, #15]
	add	x1, sp, #15
	mov	x0, x19
	mov	w2, #1
	bl	_bufferevent_write
	b	LBB0_3
LBB0_2:
	and	w8, w1, #0xffff
Lloh2:
	adrp	x9, _BEV_EVENT_ERROR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BEV_EVENT_ERROR@GOTPAGEOFF]
	ldrh	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _EV_READ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bufferevent_enable
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_puts
	mov	w0, #2
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_EVENT_CONNECTED,2,1        ; @BEV_EVENT_CONNECTED
	.comm	_BEV_EVENT_ERROR,2,1            ; @BEV_EVENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Client socket got error!"

	.comm	_EV_READ,4,2                    ; @EV_READ
	.no_dead_strip	_client_event_cb
.subsections_via_symbols
