	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_enet_tx_reclaim
_bcm_enet_tx_reclaim:                   ## @bcm_enet_tx_reclaim
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	cmpq	8(%r15), %rax
	jae	LBB0_8
## %bb.1:
	movq	%r15, %r14
	addq	$24, %r14
	xorl	%ebx, %ebx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movq	(%r15), %rax
	cmpq	8(%r15), %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jae	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_spin_lock
	movq	16(%r15), %r13
	movq	48(%r15), %r12
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DMADESC_OWNER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12,%r13,8)
	jne	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_rmb
	movq	16(%r15), %rax
	movq	40(%r15), %rcx
	movq	(%rcx,%rax,8), %rbx
	movq	$0, (%rcx,%rax,8)
	movq	32(%r15), %rdi
	movl	4(%r12,%r13,8), %esi
	movl	(%rbx), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	16(%r15), %rax
	incq	%rax
	cmpq	8(%r15), %rax
	movl	$0, %ecx
	cmovneq	%rax, %rcx
	movq	%rcx, 16(%r15)
	incq	(%r15)
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_DMADESC_UNDER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12,%r13,8)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_wake_queue
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMADESC_OWNER_MASK,4,2         ## @DMADESC_OWNER_MASK
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMADESC_UNDER_MASK,4,2         ## @DMADESC_UNDER_MASK
	.no_dead_strip	_bcm_enet_tx_reclaim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_enet_tx_reclaim
_bcm_enet_tx_reclaim:                   ; @bcm_enet_tx_reclaim
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.1:
	mov	x22, x0
	mov	w20, #0
	add	x23, x0, #24
Lloh0:
	adrp	x25, _DMADESC_OWNER_MASK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMADESC_OWNER_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _DMADESC_UNDER_MASK@GOTPAGE
Lloh5:
	ldr	x27, [x27, _DMADESC_UNDER_MASK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_dev_kfree_skb
	add	w20, w20, #1
	ldp	x8, x9, [x22]
	cmp	x8, x9
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_spin_lock
	ldr	x8, [x22, #48]
	ldr	x9, [x22, #16]
	add	x28, x8, x9, lsl #3
	cbnz	w21, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_rmb
	ldr	x8, [x22, #40]
	ldr	x9, [x22, #16]
	lsl	x9, x9, #3
	ldr	x24, [x8, x9]
	str	xzr, [x8, x9]
	ldr	x0, [x22, #32]
	ldr	w1, [x28, #4]
	ldr	w2, [x24]
	ldr	w3, [x26]
	bl	_dma_unmap_single
	ldp	x10, x8, [x22, #8]
	add	x9, x8, #1
	ldr	x11, [x22]
	cmp	x9, x10
	csinc	x8, xzr, x8, eq
	str	x8, [x22, #16]
	add	x8, x11, #1
	str	x8, [x22]
	mov	x0, x23
	bl	_spin_unlock
	ldr	w8, [x28]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_2
LBB0_7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:
	mov	x0, x23
	bl	_spin_unlock
LBB0_9:
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_12
; %bb.10:
	cbz	w20, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_12:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMADESC_OWNER_MASK,4,2         ; @DMADESC_OWNER_MASK
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMADESC_UNDER_MASK,4,2         ; @DMADESC_UNDER_MASK
	.no_dead_strip	_bcm_enet_tx_reclaim
.subsections_via_symbols
