	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function errorcb
_errorcb:                               ## @errorcb
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	_BEV_EVENT_EOF@GOTPCREL(%rip), %rax
	testw	%si, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_total_n_handled@GOTPCREL(%rip), %r13
	incl	(%r13)
	movl	8(%r15), %eax
	movq	_total_n_bytes@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_evutil_gettimeofday
	leaq	-48(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_evutil_timersub
	movq	_total_time@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%rdx, %rsi
	callq	_evutil_timeradd
	movslq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	imulq	$274877907, %rsi, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%esi, %ecx
	subl	%eax, %ecx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_printf
LBB0_4:
	movq	_total_n_launched@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_N_REQUESTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.5:
	xorl	%eax, %eax
	callq	_launch_request
	testq	%rax, %rax
	js	LBB0_6
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_bufferevent_setcb
	movq	%r15, %rdi
	callq	_free
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bufferevent_disable
	movq	%r14, %rdi
	callq	_bufferevent_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	_errorcb.cold.1
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function errorcb.cold.1
_errorcb.cold.1:                        ## @errorcb.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_total_n_errors@GOTPCREL(%rip), %rax
	incl	(%rax)
	leaq	L_.str.2(%rip), %rdi
	popq	%rbp
	jmp	_perror                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_EVENT_EOF,2,1              ## @BEV_EVENT_EOF
	.comm	_total_n_handled,4,2            ## @total_n_handled
	.comm	_total_n_bytes,4,2              ## @total_n_bytes
	.comm	_total_time,4,2                 ## @total_time
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d requests done\n"

	.comm	_total_n_launched,8,3           ## @total_n_launched
	.comm	_N_REQUESTS,8,3                 ## @N_REQUESTS
L_.str.1:                               ## @.str.1
	.asciz	"Can't launch"

	.comm	_total_n_errors,4,2             ## @total_n_errors
L_.str.2:                               ## @.str.2
	.asciz	"Unexpected error"

	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.no_dead_strip	_errorcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function errorcb
_errorcb:                               ; @errorcb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _BEV_EVENT_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BEV_EVENT_EOF@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w1, w8
	b.eq	LBB0_6
; %bb.1:
Lloh2:
	adrp	x21, _total_n_handled@GOTPAGE
Lloh3:
	ldr	x21, [x21, _total_n_handled@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w8, [x20, #8]
Lloh4:
	adrp	x9, _total_n_bytes@GOTPAGE
Lloh5:
	ldr	x9, [x9, _total_n_bytes@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	add	x0, sp, #8
	mov	x1, #0
	bl	_evutil_gettimeofday
	add	x0, sp, #8
	mov	x2, sp
	mov	x1, x20
	bl	_evutil_timersub
Lloh6:
	adrp	x1, _total_time@GOTPAGE
Lloh7:
	ldr	x1, [x1, _total_time@GOTPAGEOFF]
	mov	x0, sp
	mov	x2, x1
	bl	_evutil_timeradd
	ldrsw	x1, [x21]
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	mul	x8, x1, x8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	mov	w9, #1000
	msub	w8, w8, w9, w1
	cmp	w1, #0
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_printf
LBB0_3:
Lloh10:
	adrp	x8, _total_n_launched@GOTPAGE
Lloh11:
	ldr	x8, [x8, _total_n_launched@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _N_REQUESTS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _N_REQUESTS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
	bl	_launch_request
	tbnz	x0, #63, LBB0_7
LBB0_5:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_bufferevent_setcb
	mov	x0, x20
	bl	_free
Lloh16:
	adrp	x8, _EV_READ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _EV_WRITE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EV_WRITE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_bufferevent_disable
	mov	x0, x19
	bl	_bufferevent_free
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	_errorcb.cold.1
	b	LBB0_5
LBB0_7:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function errorcb.cold.1
_errorcb.cold.1:                        ; @errorcb.cold.1
	.cfi_startproc
; %bb.0:
Lloh24:
	adrp	x8, _total_n_errors@GOTPAGE
Lloh25:
	ldr	x8, [x8, _total_n_errors@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	b	_perror
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_EVENT_EOF,2,1              ; @BEV_EVENT_EOF
	.comm	_total_n_handled,4,2            ; @total_n_handled
	.comm	_total_n_bytes,4,2              ; @total_n_bytes
	.comm	_total_time,4,2                 ; @total_time
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d requests done\n"

	.comm	_total_n_launched,8,3           ; @total_n_launched
	.comm	_N_REQUESTS,8,3                 ; @N_REQUESTS
l_.str.1:                               ; @.str.1
	.asciz	"Can't launch"

	.comm	_total_n_errors,4,2             ; @total_n_errors
l_.str.2:                               ; @.str.2
	.asciz	"Unexpected error"

	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.no_dead_strip	_errorcb
.subsections_via_symbols
