	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_read_cb
_client_read_cb:                        ## @client_read_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_bufferevent_get_base
	movq	%rax, %r14
	leaq	-17(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_bufferevent_read
	cmpb	$65, -17(%rbp)
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_bufferevent_free
	movq	_num_requests@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	_MAX_REQUESTS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_event_base_loopbreak
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_start_client
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_puts
	movl	$2, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incorrect data received!"

	.comm	_num_requests,8,3               ## @num_requests
	.comm	_MAX_REQUESTS,8,3               ## @MAX_REQUESTS
	.no_dead_strip	_client_read_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_read_cb
_client_read_cb:                        ; @client_read_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	x20, x0
	bl	_bufferevent_get_base
	mov	x19, x0
	add	x1, sp, #15
	mov	x0, x20
	mov	w2, #1
	bl	_bufferevent_read
	ldrb	w8, [sp, #15]
	cmp	w8, #65
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_bufferevent_free
Lloh0:
	adrp	x8, _num_requests@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_requests@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
Lloh2:
	adrp	x8, _MAX_REQUESTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_REQUESTS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	mov	x0, x19
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.2:
	bl	_event_base_loopbreak
	b	LBB0_4
LBB0_3:
	bl	_start_client
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_puts
	mov	w0, #2
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incorrect data received!"

	.comm	_num_requests,8,3               ; @num_requests
	.comm	_MAX_REQUESTS,8,3               ; @MAX_REQUESTS
	.no_dead_strip	_client_read_cb
.subsections_via_symbols
