	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_free_pagepool
_xgene_enet_free_pagepool:              ## @xgene_enet_free_pagepool
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.3:
	movq	%rdi, %r12
	movq	_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%rsi), %edi
	callq	_le64_to_cpu
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_GET_VAL
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movl	24(%r12), %edi
	callq	_ndev_to_dev
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r15
	movq	8(%r12), %rbx
	movl	4(%r14), %edi
	callq	_le64_to_cpu
	movl	%eax, %edi
	callq	_xgene_enet_get_data_len
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	decq	%r15
	movq	_DATAADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	4(%r14), %edi
	callq	_le64_to_cpu
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_GET_VAL
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_dma_unmap_page
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_put_page
	movq	16(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	andq	%r15, %rbx
	movl	(%r14), %edi
	callq	_le64_to_cpu
	movl	%eax, %edi
	callq	_xgene_enet_get_data_len
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	_DATAADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r14), %edi
	callq	_le64_to_cpu
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_GET_VAL
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_dma_unmap_page
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_put_page
	movq	16(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	andq	%r15, %rbx
	movl	12(%r14), %edi
	callq	_le64_to_cpu
	movl	%eax, %edi
	callq	_xgene_enet_get_data_len
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	_DATAADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	12(%r14), %edi
	callq	_le64_to_cpu
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_GET_VAL
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_dma_unmap_page
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_put_page
	movq	16(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	andq	%r15, %rbx
	movl	8(%r14), %edi
	callq	_le64_to_cpu
	movl	%eax, %edi
	callq	_xgene_enet_get_data_len
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_DATAADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%r14), %edi
	callq	_le64_to_cpu
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_GET_VAL
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_dma_unmap_page
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_put_page
	movq	16(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	andq	%r15, %rbx
LBB0_9:
	movq	%rbx, 8(%r12)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV,4,2                         ## @NV
	.comm	_DATAADDR,4,2                   ## @DATAADDR
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_xgene_enet_free_pagepool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_free_pagepool
_xgene_enet_free_pagepool:              ; @xgene_enet_free_pagepool
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_10
; %bb.1:
	cbz	x1, LBB0_10
; %bb.2:
	mov	x20, x2
	cbz	x2, LBB0_10
; %bb.3:
	mov	x19, x0
Lloh0:
	adrp	x8, _NV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x1]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x21
	bl	_GET_VAL
	cbz	w0, LBB0_10
; %bb.4:
	ldr	w0, [x19, #24]
	bl	_ndev_to_dev
	mov	x21, x0
	ldp	x22, x23, [x19]
	ldr	w0, [x20, #4]
	bl	_le64_to_cpu
	bl	_xgene_enet_get_data_len
	cbz	w0, LBB0_9
; %bb.5:
	sub	x24, x22, #1
Lloh3:
	adrp	x25, _DATAADDR@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DATAADDR@GOTPAGEOFF]
	ldr	w22, [x25]
	ldr	w0, [x20, #4]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_GET_VAL
	mov	x1, x0
Lloh5:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x26]
Lloh7:
	adrp	x27, _DMA_FROM_DEVICE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x27]
	mov	x0, x21
	bl	_dma_unmap_page
	ldr	x8, [x19, #16]
	lsl	x22, x23, #3
	ldr	x0, [x8, x22]
	bl	_put_page
	ldr	x8, [x19, #16]
	str	xzr, [x8, x22]
	add	x8, x23, #1
	and	x23, x8, x24
	ldr	w0, [x20]
	bl	_le64_to_cpu
	bl	_xgene_enet_get_data_len
	cbz	w0, LBB0_9
; %bb.6:
	ldr	w22, [x25]
	ldr	w0, [x20]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_GET_VAL
	mov	x1, x0
	ldr	w2, [x26]
	ldr	w3, [x27]
	mov	x0, x21
	bl	_dma_unmap_page
	ldr	x8, [x19, #16]
	lsl	x22, x23, #3
	ldr	x0, [x8, x22]
	bl	_put_page
	ldr	x8, [x19, #16]
	str	xzr, [x8, x22]
	add	x8, x23, #1
	and	x23, x8, x24
	ldr	w0, [x20, #12]
	bl	_le64_to_cpu
	bl	_xgene_enet_get_data_len
	cbz	w0, LBB0_9
; %bb.7:
	ldr	w22, [x25]
	ldr	w0, [x20, #12]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_GET_VAL
	mov	x1, x0
	ldr	w2, [x26]
	ldr	w3, [x27]
	mov	x0, x21
	bl	_dma_unmap_page
	ldr	x8, [x19, #16]
	lsl	x22, x23, #3
	ldr	x0, [x8, x22]
	bl	_put_page
	ldr	x8, [x19, #16]
	str	xzr, [x8, x22]
	add	x8, x23, #1
	and	x23, x8, x24
	ldr	w0, [x20, #8]
	bl	_le64_to_cpu
	bl	_xgene_enet_get_data_len
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w22, [x25]
	ldr	w0, [x20, #8]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_GET_VAL
	mov	x1, x0
	ldr	w2, [x26]
	ldr	w3, [x27]
	mov	x0, x21
	bl	_dma_unmap_page
	ldr	x8, [x19, #16]
	lsl	x20, x23, #3
	ldr	x0, [x8, x20]
	bl	_put_page
	ldr	x8, [x19, #16]
	str	xzr, [x8, x20]
	add	x8, x23, #1
	and	x23, x8, x24
LBB0_9:
	str	x23, [x19, #8]
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NV,4,2                         ; @NV
	.comm	_DATAADDR,4,2                   ; @DATAADDR
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_xgene_enet_free_pagepool
.subsections_via_symbols
