	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drained_writecb
_drained_writecb:                       ## @drained_writecb
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_readcb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_eventcb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_bufferevent_setcb
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_bufferevent_setwatermark
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bufferevent_enable             ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_readcb,4,2                     ## @readcb
	.comm	_eventcb,4,2                    ## @eventcb
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_EV_READ,4,2                    ## @EV_READ
	.no_dead_strip	_drained_writecb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drained_writecb
_drained_writecb:                       ; @drained_writecb
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _readcb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _readcb@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _eventcb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _eventcb@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x2, #0
	mov	x4, x19
	bl	_bufferevent_setcb
Lloh6:
	adrp	x8, _EV_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_bufferevent_setwatermark
	cbz	x19, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _EV_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bufferevent_enable
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_readcb,4,2                     ; @readcb
	.comm	_eventcb,4,2                    ; @eventcb
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_EV_READ,4,2                    ; @EV_READ
	.no_dead_strip	_drained_writecb
.subsections_via_symbols
