	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_set_max_single_read ## -- Begin function bufferevent_set_max_single_read
	.p2align	4, 0x90
_bufferevent_set_max_single_read:       ## @bufferevent_set_max_single_read
	.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, %rbx
	movq	%rdi, %r14
	callq	_BEV_LOCK
	movq	%r14, %rdi
	callq	_BEV_UPCAST
	movq	_EV_SSIZE_MAX@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	movq	_MAX_SINGLE_READ_DEFAULT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rbx, %rdx
	cmovbq	%rcx, %rdx
	testq	%rbx, %rbx
	cmoveq	%rcx, %rdx
	movq	%rdx, (%rax)
	movq	%r14, %rdi
	callq	_BEV_UNLOCK
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_SSIZE_MAX,8,3               ## @EV_SSIZE_MAX
	.comm	_MAX_SINGLE_READ_DEFAULT,8,3    ## @MAX_SINGLE_READ_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_set_max_single_read ; -- Begin function bufferevent_set_max_single_read
	.p2align	2
_bufferevent_set_max_single_read:       ; @bufferevent_set_max_single_read
	.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
	bl	_BEV_LOCK
	mov	x0, x20
	bl	_BEV_UPCAST
Lloh0:
	adrp	x8, _EV_SSIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_SSIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	ccmp	x19, #0, #4, hs
Lloh3:
	adrp	x8, _MAX_SINGLE_READ_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SINGLE_READ_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	csel	x8, x8, x19, eq
	str	x8, [x0]
	mov	x0, x20
	bl	_BEV_UNLOCK
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_SSIZE_MAX,8,3               ; @EV_SSIZE_MAX
	.comm	_MAX_SINGLE_READ_DEFAULT,8,3    ; @MAX_SINGLE_READ_DEFAULT
.subsections_via_symbols
