	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nixge_hw_dma_bd_release
_nixge_hw_dma_bd_release:               ## @nixge_hw_dma_bd_release
	.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
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_RX_BD_NUM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	testl	%esi, %esi
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	addq	%rbx, %rdi
	movq	_phys@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	_nixge_hw_dma_bd_get_addr
	movl	(%r14), %edi
	movq	_NIXGE_MAX_JUMBO_FRAME_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rsi
	callq	_dma_unmap_single
	movq	32(%r12), %rdi
	addq	%rbx, %rdi
	movq	_sw_id_offset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nixge_hw_dma_bd_get_addr
	movq	%rax, %rdi
	callq	_dev_kfree_skb
	incq	%r13
	movslq	(%r15), %rsi
	addq	$4, %rbx
	cmpq	%rsi, %r13
	jl	LBB0_2
LBB0_3:
	movq	32(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	shll	$2, %esi
	movl	24(%r12), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_free_coherent
LBB0_5:
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	callq	_devm_kfree
LBB0_7:
	movq	8(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.9:
	movl	(%r14), %edi
	movq	_TX_BD_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movl	(%r12), %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_free_coherent              ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_BD_NUM,4,2                  ## @RX_BD_NUM
	.comm	_phys,4,2                       ## @phys
	.comm	_NIXGE_MAX_JUMBO_FRAME_SIZE,4,2 ## @NIXGE_MAX_JUMBO_FRAME_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_sw_id_offset,4,2               ## @sw_id_offset
	.comm	_TX_BD_NUM,4,2                  ## @TX_BD_NUM
	.no_dead_strip	_nixge_hw_dma_bd_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nixge_hw_dma_bd_release
_nixge_hw_dma_bd_release:               ; @nixge_hw_dma_bd_release
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x21, _RX_BD_NUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RX_BD_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
Lloh2:
	adrp	x24, _phys@GOTPAGE
Lloh3:
	ldr	x24, [x24, _phys@GOTPAGEOFF]
Lloh4:
	adrp	x25, _NIXGE_MAX_JUMBO_FRAME_SIZE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _NIXGE_MAX_JUMBO_FRAME_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x26, _DMA_FROM_DEVICE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh8:
	adrp	x27, _sw_id_offset@GOTPAGE
Lloh9:
	ldr	x27, [x27, _sw_id_offset@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	add	x0, x8, x22
	ldr	w1, [x24]
	bl	_nixge_hw_dma_bd_get_addr
	mov	x1, x0
	ldr	w0, [x19]
	ldr	w2, [x25]
	ldr	w3, [x26]
	bl	_dma_unmap_single
	ldr	x8, [x20, #32]
	add	x0, x8, x22
	ldr	w1, [x27]
	bl	_nixge_hw_dma_bd_get_addr
	bl	_dev_kfree_skb
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x2, [x20, #32]
	cbz	x2, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	lsl	w1, w8, #2
	ldr	w3, [x20, #24]
	bl	_dma_free_coherent
LBB0_5:
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	bl	_devm_kfree
LBB0_7:
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_9
; %bb.8:
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _TX_BD_NUM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TX_BD_NUM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	w3, [x20]
	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
	b	_dma_free_coherent
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_BD_NUM,4,2                  ; @RX_BD_NUM
	.comm	_phys,4,2                       ; @phys
	.comm	_NIXGE_MAX_JUMBO_FRAME_SIZE,4,2 ; @NIXGE_MAX_JUMBO_FRAME_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_sw_id_offset,4,2               ; @sw_id_offset
	.comm	_TX_BD_NUM,4,2                  ; @TX_BD_NUM
	.no_dead_strip	_nixge_hw_dma_bd_release
.subsections_via_symbols
