	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temac_dma_bd_release
_temac_dma_bd_release:                  ## @temac_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	_DMA_CONTROL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DMA_CONTROL_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	*40(%r12)
	movq	_RX_BD_NUM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	testl	%esi, %esi
	jle	LBB0_5
## %bb.1:
	movq	32(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movl	$1, %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	24(%r12), %rax
	movl	-4(%rax,%rbx,4), %esi
	movq	_XTE_MAX_JUMBO_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	callq	_dma_unmap_single
	movq	32(%r12), %rax
	movl	-4(%rax,%rbx,4), %edi
	callq	_dev_kfree_skb
	movslq	(%r15), %rsi
	cmpq	%rsi, %rbx
	jge	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%r12), %rax
	cmpl	$0, (%rax,%rbx,4)
	leaq	1(%rbx), %rbx
	jne	LBB0_4
LBB0_5:
	movq	24(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	shll	$2, %esi
	movl	16(%r12), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_free_coherent
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	_DMA_CONTROL_REG,4,2            ## @DMA_CONTROL_REG
	.comm	_DMA_CONTROL_RST,4,2            ## @DMA_CONTROL_RST
	.comm	_RX_BD_NUM,4,2                  ## @RX_BD_NUM
	.comm	_XTE_MAX_JUMBO_FRAME_SIZE,4,2   ## @XTE_MAX_JUMBO_FRAME_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_TX_BD_NUM,4,2                  ## @TX_BD_NUM
	.no_dead_strip	_temac_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 temac_dma_bd_release
_temac_dma_bd_release:                  ; @temac_dma_bd_release
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #40]
Lloh0:
	adrp	x9, _DMA_CONTROL_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_CONTROL_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _DMA_CONTROL_RST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_CONTROL_RST@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	blr	x8
Lloh6:
	adrp	x21, _RX_BD_NUM@GOTPAGE
Lloh7:
	ldr	x21, [x21, _RX_BD_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	ldr	x9, [x20, #32]
	ldr	w9, [x9]
	cbz	w9, LBB0_5
; %bb.2:
	mov	x23, #0
Lloh8:
	adrp	x22, _XTE_MAX_JUMBO_FRAME_SIZE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _XTE_MAX_JUMBO_FRAME_SIZE@GOTPAGEOFF]
Lloh10:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	x8, [x20, #24]
	lsl	x25, x23, #2
	ldr	w1, [x8, x25]
	ldr	w2, [x22]
	ldr	w3, [x24]
	bl	_dma_unmap_single
	ldr	x8, [x20, #32]
	ldr	w0, [x8, x25]
	bl	_dev_kfree_skb
	add	x9, x23, #1
	ldrsw	x8, [x21]
	cmp	x9, x8
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x20, #32]
	add	x10, x10, x23, lsl #2
	ldr	w10, [x10, #4]
	mov	x23, x9
	cbnz	w10, LBB0_3
LBB0_5:
	ldr	x2, [x20, #24]
	cbz	x2, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	lsl	w1, w8, #2
	ldr	w3, [x20, #16]
	bl	_dma_free_coherent
LBB0_7:
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_9
; %bb.8:
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _TX_BD_NUM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_BD_NUM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	w3, [x20]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dma_free_coherent
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CONTROL_REG,4,2            ; @DMA_CONTROL_REG
	.comm	_DMA_CONTROL_RST,4,2            ; @DMA_CONTROL_RST
	.comm	_RX_BD_NUM,4,2                  ; @RX_BD_NUM
	.comm	_XTE_MAX_JUMBO_FRAME_SIZE,4,2   ; @XTE_MAX_JUMBO_FRAME_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_TX_BD_NUM,4,2                  ; @TX_BD_NUM
	.no_dead_strip	_temac_dma_bd_release
.subsections_via_symbols
