	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_reuse_page
_efx_reuse_page:                        ## @efx_reuse_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	andl	%eax, %ecx
	movq	24(%rdi), %rdx
	movq	(%rdx,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	32(%rdi), %r15
	movq	$0, (%rdx,%rcx,8)
	cmpl	8(%rdi), %eax
	je	LBB0_3
## %bb.2:
	incl	%eax
	movl	%eax, (%rbx)
LBB0_3:
	movq	%r14, %rdi
	callq	_page_count
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	incl	16(%rbx)
	jmp	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	callq	_page_address
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movb	(%r15), %cl
	shll	%cl, %edx
	movq	8(%r15), %rdi
	movl	(%rax), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_page
	movq	%r14, %rdi
	callq	_put_page
	incl	12(%rbx)
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_efx_reuse_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_reuse_page
_efx_reuse_page:                        ; @efx_reuse_page
	.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
	ldp	w8, w9, [x0]
	and	w9, w9, w8
	ldr	x10, [x0, #24]
	ldr	x19, [x10, w9, uxtw #3]
	cbz	x19, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0, #32]
	str	xzr, [x10, x9, lsl #3]
	ldr	w9, [x0, #8]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.2:
	add	w8, w8, #1
	str	w8, [x20]
LBB0_3:
	mov	x0, x19
	bl	_page_count
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_page_address
	ldr	x8, [x21, #8]
	ldr	w1, [x0]
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x21]
	lsl	w2, w9, w10
Lloh3:
	adrp	x9, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x9]
	mov	x0, x8
	bl	_dma_unmap_page
	mov	x0, x19
	bl	_put_page
	mov	x19, #0
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
LBB0_6:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_efx_reuse_page
.subsections_via_symbols
