	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_decrement_read_limit ## -- Begin function bufferevent_decrement_read_limit
	.p2align	4, 0x90
_bufferevent_decrement_read_limit:      ## @bufferevent_decrement_read_limit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_BEV_LOCK
	movq	%r14, %rdi
	callq	_BEV_UPCAST
	movq	%rax, %rbx
	movq	8(%rax), %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rax)
	setne	%dil
LBB0_2:
	callq	_EVUTIL_ASSERT
	movq	8(%rbx), %rdi
	movq	16(%rdi), %rcx
	movq	%rcx, %rax
	subq	%r15, %rax
	movq	%rax, 16(%rdi)
	testq	%rcx, %rcx
	jle	LBB0_5
## %bb.3:
	testq	%rax, %rax
	jg	LBB0_5
## %bb.4:
	movq	_BEV_SUSPEND_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bufferevent_suspend_read_
	movq	8(%rbx), %rdi
	movq	8(%rdi), %rsi
	callq	_event_add
	movq	%rax, %r15
	sarq	$63, %r15
	jmp	LBB0_10
LBB0_5:
	xorl	%r15d, %r15d
	testq	%rcx, %rcx
	jg	LBB0_10
## %bb.6:
	testq	%rax, %rax
	jle	LBB0_10
## %bb.7:
	movq	_BEV_SUSPEND_BW@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	testl	%esi, (%rbx)
	jne	LBB0_9
## %bb.8:
	callq	_event_del
	movl	(%r12), %esi
LBB0_9:
	movq	%r14, %rdi
	callq	_bufferevent_unsuspend_read_
LBB0_10:
	movq	%r14, %rdi
	callq	_BEV_UNLOCK
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_SUSPEND_BW,4,2             ## @BEV_SUSPEND_BW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_decrement_read_limit ; -- Begin function bufferevent_decrement_read_limit
	.p2align	2
_bufferevent_decrement_read_limit:      ; @bufferevent_decrement_read_limit
	.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	x21, x1
	mov	x19, x0
	bl	_BEV_LOCK
	mov	x0, x19
	bl	_BEV_UPCAST
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_EVUTIL_ASSERT
	ldr	x0, [x20, #8]
	ldr	x8, [x0, #16]
	sub	x9, x8, x21
	str	x9, [x0, #16]
	cmp	x8, #1
	ccmp	x9, #0, #0, ge
	b.le	LBB0_9
; %bb.4:
	cmp	x8, #0
	ccmp	x9, #1, #8, le
	b.lt	LBB0_8
; %bb.5:
	ldr	w8, [x20]
Lloh0:
	adrp	x20, _BEV_SUSPEND_BW@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BEV_SUSPEND_BW@GOTPAGEOFF]
	ldr	w1, [x20]
	tst	w1, w8
	b.ne	LBB0_7
; %bb.6:
	bl	_event_del
	ldr	w1, [x20]
LBB0_7:
	mov	x0, x19
	bl	_bufferevent_unsuspend_read_
LBB0_8:
	mov	w20, #0
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _BEV_SUSPEND_BW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BEV_SUSPEND_BW@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bufferevent_suspend_read_
	ldr	x0, [x20, #8]
	ldr	x1, [x0, #8]
	bl	_event_add
	asr	x20, x0, #63
LBB0_10:
	mov	x0, x19
	bl	_BEV_UNLOCK
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_SUSPEND_BW,4,2             ; @BEV_SUSPEND_BW
.subsections_via_symbols
