	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_recycle_rx_page
_ef4_recycle_rx_page:                   ## @ef4_recycle_rx_page
	.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	8(%rsi), %r14
	callq	_ef4_channel_get_rx_queue
	movq	_EF4_RX_BUF_LAST_IN_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_5
## %bb.1:
	movl	(%rax), %ecx
	movl	4(%rax), %edi
	movl	%edi, %edx
	andl	%ecx, %edx
	movq	16(%rax), %rsi
	cmpq	$0, (%rsi,%rdx,8)
	je	LBB0_2
## %bb.6:
	movq	24(%rax), %rdi
	incl	12(%rax)
	movq	%rbx, %rsi
	callq	_ef4_unmap_rx_buffer
	movq	8(%rbx), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_put_page                       ## TAILCALL
LBB0_2:
	movl	8(%rax), %ebx
	andl	%ebx, %edi
	cmpl	%edx, %edi
	jne	LBB0_4
## %bb.3:
	incl	%ebx
	movl	%ebx, 8(%rax)
LBB0_4:
	movq	%r14, (%rsi,%rdx,8)
	incl	%ecx
	movl	%ecx, (%rax)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EF4_RX_BUF_LAST_IN_PAGE,4,2    ## @EF4_RX_BUF_LAST_IN_PAGE
	.no_dead_strip	_ef4_recycle_rx_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_recycle_rx_page
_ef4_recycle_rx_page:                   ; @ef4_recycle_rx_page
	.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
	ldr	x20, [x1, #8]
	bl	_ef4_channel_get_rx_queue
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _EF4_RX_BUF_LAST_IN_PAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EF4_RX_BUF_LAST_IN_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	ldp	w8, w11, [x0]
	and	w9, w11, w8
	ldr	x10, [x0, #16]
	ldr	x12, [x10, w9, uxtw #3]
	cbz	x12, LBB0_3
; %bb.2:
	ldr	x8, [x0, #24]
	ldr	w9, [x0, #12]
	add	w9, w9, #1
	str	w9, [x0, #12]
	mov	x0, x8
	mov	x1, x19
	bl	_ef4_unmap_rx_buffer
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_put_page
LBB0_3:
	ldr	w12, [x0, #8]
	and	w11, w12, w11
	cmp	w11, w9
	b.ne	LBB0_5
; %bb.4:
	add	w11, w12, #1
	str	w11, [x0, #8]
LBB0_5:
	str	x20, [x10, x9, lsl #3]
	add	w8, w8, #1
	str	w8, [x0]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EF4_RX_BUF_LAST_IN_PAGE,4,2    ; @EF4_RX_BUF_LAST_IN_PAGE
	.no_dead_strip	_ef4_recycle_rx_page
.subsections_via_symbols
