	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bufferevent_trigger_nolock_
_bufferevent_trigger_nolock_:           ## @bufferevent_trigger_nolock_
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_EV_READ@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_BEV_TRIG_IGNORE_WATERMARKS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	24(%r14), %edi
	callq	_evbuffer_get_length
	cmpq	16(%r14), %rax
	jl	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_bufferevent_run_readcb_
LBB0_4:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_BEV_TRIG_IGNORE_WATERMARKS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_8
## %bb.6:
	movl	8(%r14), %edi
	callq	_evbuffer_get_length
	cmpq	(%r14), %rax
	jle	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufferevent_run_writecb_       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,2,1                    ## @EV_READ
	.comm	_BEV_TRIG_IGNORE_WATERMARKS,4,2 ## @BEV_TRIG_IGNORE_WATERMARKS
	.comm	_EV_WRITE,2,1                   ## @EV_WRITE
	.no_dead_strip	_bufferevent_trigger_nolock_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bufferevent_trigger_nolock_
_bufferevent_trigger_nolock_:           ; @bufferevent_trigger_nolock_
	.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	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _EV_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
	and	w22, w1, #0xffff
	ldrh	w8, [x8]
	and	w8, w8, w1
Lloh2:
	adrp	x21, _BEV_TRIG_IGNORE_WATERMARKS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BEV_TRIG_IGNORE_WATERMARKS@GOTPAGEOFF]
	tst	w8, #0xffff
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x21]
	tst	w8, w19
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20, #24]
	bl	_evbuffer_get_length
	ldr	x8, [x20, #16]
	cmp	x0, x8
	b.lt	LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_bufferevent_run_readcb_
LBB0_4:
Lloh4:
	adrp	x8, _EV_WRITE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EV_WRITE@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x21]
	tst	w8, w19
	b.ne	LBB0_8
; %bb.6:
	ldr	w0, [x20, #8]
	bl	_evbuffer_get_length
	ldr	x8, [x20]
	cmp	x0, x8
	b.le	LBB0_8
LBB0_7:
	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
	ret
LBB0_8:
	mov	x0, x20
	mov	x1, 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_run_writecb_
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,2,1                    ; @EV_READ
	.comm	_BEV_TRIG_IGNORE_WATERMARKS,4,2 ; @BEV_TRIG_IGNORE_WATERMARKS
	.comm	_EV_WRITE,2,1                   ; @EV_WRITE
	.no_dead_strip	_bufferevent_trigger_nolock_
.subsections_via_symbols
