	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function echo_listenercb
_echo_listenercb:                       ## @echo_listenercb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	_BEV_OPT_CLOSE_ON_FREE@GOTPCREL(%rip), %rax
	movq	_BEV_OPT_THREADSAFE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r8, %rdi
	callq	_bufferevent_socket_new
	movq	%rax, %rbx
	movq	_echo_readcb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_echo_writecb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_echo_eventcb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_bufferevent_setcb
	movq	_conn_bucket_cfg@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_EV_PERSIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_check_bucket_levels_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$-1, %esi
	movq	%rbx, %r8
	callq	_event_new
	movq	%rax, %r14
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_bufferevent_set_rate_limit
	movq	%rbx, %rdi
	callq	_bufferevent_get_token_bucket_cfg
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_ms100_common@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_event_add
LBB0_2:
	movq	_ratelim_group@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_bufferevent_add_to_rate_limit_group
LBB0_4:
	movq	_n_echo_conns_open@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufferevent_enable             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ## @BEV_OPT_CLOSE_ON_FREE
	.comm	_BEV_OPT_THREADSAFE,4,2         ## @BEV_OPT_THREADSAFE
	.comm	_echo_readcb,4,2                ## @echo_readcb
	.comm	_echo_writecb,4,2               ## @echo_writecb
	.comm	_echo_eventcb,4,2               ## @echo_eventcb
	.comm	_conn_bucket_cfg,8,3            ## @conn_bucket_cfg
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_check_bucket_levels_cb,4,2     ## @check_bucket_levels_cb
	.comm	_ms100_common,4,2               ## @ms100_common
	.comm	_ratelim_group,8,3              ## @ratelim_group
	.comm	_n_echo_conns_open,4,2          ## @n_echo_conns_open
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.no_dead_strip	_echo_listenercb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function echo_listenercb
_echo_listenercb:                       ; @echo_listenercb
	.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	x20, x4
Lloh0:
	adrp	x8, _BEV_OPT_CLOSE_ON_FREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BEV_OPT_CLOSE_ON_FREE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BEV_OPT_THREADSAFE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BEV_OPT_THREADSAFE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x4
	bl	_bufferevent_socket_new
	mov	x19, x0
Lloh6:
	adrp	x8, _echo_readcb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _echo_readcb@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _echo_writecb@GOTPAGE
Lloh10:
	ldr	x8, [x8, _echo_writecb@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _echo_eventcb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _echo_eventcb@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x4, #0
	bl	_bufferevent_setcb
Lloh15:
	adrp	x21, _conn_bucket_cfg@GOTPAGE
Lloh16:
	ldr	x21, [x21, _conn_bucket_cfg@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
Lloh17:
	adrp	x8, _EV_PERSIST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EV_PERSIST@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _check_bucket_levels_cb@GOTPAGE
Lloh21:
	ldr	x8, [x8, _check_bucket_levels_cb@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #-1
	mov	x4, x19
	bl	_event_new
	mov	x20, x0
	ldr	x1, [x21]
	mov	x0, x19
	bl	_bufferevent_set_rate_limit
	mov	x0, x19
	bl	_bufferevent_get_token_bucket_cfg
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh23:
	adrp	x8, _ms100_common@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ms100_common@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_event_add
LBB0_2:
Lloh26:
	adrp	x8, _ratelim_group@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ratelim_group@GOTPAGEOFF]
Lloh28:
	ldr	x1, [x8]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_bufferevent_add_to_rate_limit_group
LBB0_4:
Lloh29:
	adrp	x8, _n_echo_conns_open@GOTPAGE
Lloh30:
	ldr	x8, [x8, _n_echo_conns_open@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh31:
	adrp	x8, _EV_READ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _EV_WRITE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _EV_WRITE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w1, w9, w8
	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
	b	_bufferevent_enable
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ; @BEV_OPT_CLOSE_ON_FREE
	.comm	_BEV_OPT_THREADSAFE,4,2         ; @BEV_OPT_THREADSAFE
	.comm	_echo_readcb,4,2                ; @echo_readcb
	.comm	_echo_writecb,4,2               ; @echo_writecb
	.comm	_echo_eventcb,4,2               ; @echo_eventcb
	.comm	_conn_bucket_cfg,8,3            ; @conn_bucket_cfg
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_check_bucket_levels_cb,4,2     ; @check_bucket_levels_cb
	.comm	_ms100_common,4,2               ; @ms100_common
	.comm	_ratelim_group,8,3              ; @ratelim_group
	.comm	_n_echo_conns_open,4,2          ; @n_echo_conns_open
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.no_dead_strip	_echo_listenercb
.subsections_via_symbols
