	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_fini_dma
_bcmgenet_fini_dma:                     ## @bcmgenet_fini_dma
	.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	%rdi, %r14
	callq	_bcmgenet_fini_rx_napi
	movq	%r14, %rdi
	callq	_bcmgenet_fini_tx_napi
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r14), %rdi
	movq	8(%r14), %rsi
	addq	%rbx, %rsi
	callq	_bcmgenet_free_tx_cb
	movl	%eax, %edi
	callq	_dev_kfree_skb
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	40(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r14), %edi
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_netdev_get_tx_queue
	movq	%rax, %rdi
	callq	_netdev_tx_reset_queue
	incq	%rbx
	movq	40(%r14), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movl	32(%r14), %edi
	movq	24(%r14), %rax
	movq	_DESC_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_netdev_get_tx_queue
	movq	%rax, %rdi
	callq	_netdev_tx_reset_queue
	movq	%r14, %rdi
	callq	_bcmgenet_free_rx_buffers
	movq	16(%r14), %rdi
	callq	_kfree
	movq	8(%r14), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_INDEX,8,3                 ## @DESC_INDEX
	.no_dead_strip	_bcmgenet_fini_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_fini_dma
_bcmgenet_fini_dma:                     ; @bcmgenet_fini_dma
	.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, x0
	bl	_bcmgenet_fini_rx_napi
	mov	x0, x19
	bl	_bcmgenet_fini_tx_napi
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #48]
	ldr	x8, [x19, #8]
	add	x1, x20, x8
	bl	_bcmgenet_free_tx_cb
	bl	_dev_kfree_skb
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	w1, [x8, x20, lsl #2]
	bl	_netdev_get_tx_queue
	bl	_netdev_tx_reset_queue
	add	x20, x20, #1
	ldr	x8, [x19, #40]
	ldrsw	x8, [x8]
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _DESC_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DESC_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	bl	_netdev_get_tx_queue
	bl	_netdev_tx_reset_queue
	mov	x0, x19
	bl	_bcmgenet_free_rx_buffers
	ldr	x0, [x19, #16]
	bl	_kfree
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_INDEX,8,3                 ; @DESC_INDEX
	.no_dead_strip	_bcmgenet_fini_dma
.subsections_via_symbols
