	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transmit_cleanup
_transmit_cleanup:                      ## @transmit_cleanup
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_spin_lock_irq
	movq	16(%r12), %rax
	cmpq	24(%r12), %rax
	jge	LBB0_10
## %bb.1:
	movl	8(%r12), %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	andl	32(%r12), %ebx
	movq	16(%r12), %rax
	incq	%rax
	movq	%rax, 16(%r12)
	cmpq	24(%r12), %rax
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rax
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,8), %r13
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %esi
	movq	%r13, %rdi
	callq	_reset_desc
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_DMA_BUFFER
	movq	%rax, %r13
	movl	4(%r12), %edi
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %r14
	callq	_dev_kfree_skb_irq
	movq	$0, (%r13)
	jmp	LBB0_7
LBB0_10:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
LBB0_8:
	movl	%ebx, 8(%r12)
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	testq	%r14, %r14
	je	LBB0_9
## %bb.11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_trans_update             ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_transmit_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function transmit_cleanup
_transmit_cleanup:                      ; @transmit_cleanup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_spin_lock_irq
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.1:
	mov	x20, #0
	ldr	w23, [x19, #8]
Lloh0:
	adrp	x24, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w23, #1
	ldr	w9, [x19, #32]
	and	w23, w9, w8
	ldp	x8, x9, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
	cmp	x8, x9
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x22, x8, w23, sxtw #3
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w21, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, w0
	mov	x0, x22
	bl	_reset_desc
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_DMA_BUFFER
	mov	x22, x0
	ldr	w0, [x19, #4]
	ldp	w2, w1, [x22, #8]
	ldr	w3, [x24]
	bl	_pci_unmap_single
	ldr	x0, [x22]
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x0]
	bl	_dev_kfree_skb_irq
	str	xzr, [x22]
	b	LBB0_2
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irq
LBB0_9:
	str	w23, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock_irq
	cbz	x20, LBB0_11
; %bb.10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netif_trans_update
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_transmit_cleanup
.subsections_via_symbols
