	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_setwatermark       ## -- Begin function bufferevent_setwatermark
	.p2align	4, 0x90
_bufferevent_setwatermark:              ## @bufferevent_setwatermark
	.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	%rdi, %rbx
	movq	_EV_READ@GOTPCREL(%rip), %rax
	testw	%si, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
LBB0_2:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	testw	%si, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rdx, 8(%rbx)
	movq	%rcx, 16(%rbx)
LBB0_4:
	movl	(%rbx), %r14d
	movl	%r14d, %edi
	callq	_EVBUFFER_LENGTH
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bufferevent_read_pressure_cb   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,2,1                    ## @EV_READ
	.comm	_EV_WRITE,2,1                   ## @EV_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_setwatermark       ; -- Begin function bufferevent_setwatermark
	.p2align	2
_bufferevent_setwatermark:              ; @bufferevent_setwatermark
	.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, x0
	and	w8, w1, #0xffff
Lloh0:
	adrp	x9, _EV_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EV_READ@GOTPAGEOFF]
	ldrh	w9, [x9]
	and	w9, w9, w1
	tst	w9, #0xffff
	b.eq	LBB0_2
; %bb.1:
	stp	x2, x3, [x19, #24]
LBB0_2:
Lloh2:
	adrp	x9, _EV_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EV_WRITE@GOTPAGEOFF]
	ldrh	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	stp	x2, x3, [x19, #8]
LBB0_4:
	ldr	w20, [x19]
	mov	x0, x20
	bl	_EVBUFFER_LENGTH
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	mov	x3, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bufferevent_read_pressure_cb
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,2,1                    ; @EV_READ
	.comm	_EV_WRITE,2,1                   ; @EV_WRITE
.subsections_via_symbols
