	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_clean_tx
_typhoon_clean_tx:                      ## @typhoon_clean_tx
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rbx
	movq	%rbx, -48(%rbp)
	movl	(%rdx), %edi
	callq	_le32_to_cpu
	cmpq	%rax, %rbx
	jne	LBB0_1
LBB0_6:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r13,%rbx), %rdi
	callq	_dev_kfree_skb_irq
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, (%r13,%rbx)
	leaq	-48(%rbp), %rdi
	movl	$1, %esi
	callq	_typhoon_inc_tx_index
	movq	-48(%rbp), %r15
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movq	-48(%rbp), %rbx
	cmpq	%rax, %r15
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r13
	movq	_TYPHOON_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx,%r13), %eax
	movq	_TYPHOON_TX_DESC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_TYPHOON_FRAG_DESC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%r13,%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, %r15
	movl	16(%r13,%rbx), %edi
	callq	_le16_to_cpu
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_pci_unmap_single
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPHOON_TYPE_MASK,4,2          ## @TYPHOON_TYPE_MASK
	.comm	_TYPHOON_TX_DESC,4,2            ## @TYPHOON_TX_DESC
	.comm	_TYPHOON_FRAG_DESC,4,2          ## @TYPHOON_FRAG_DESC
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_typhoon_clean_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typhoon_clean_tx
_typhoon_clean_tx:                      ; @typhoon_clean_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x1]
	str	x22, [sp, #8]
	ldr	w0, [x2]
	bl	_le32_to_cpu
	cmp	x22, x0
	b.ne	LBB0_2
LBB0_1:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh0:
	adrp	x23, _TYPHOON_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TYPHOON_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x24, _TYPHOON_TX_DESC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TYPHOON_TX_DESC@GOTPAGEOFF]
Lloh4:
	adrp	x25, _TYPHOON_FRAG_DESC@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TYPHOON_FRAG_DESC@GOTPAGEOFF]
Lloh6:
	adrp	x26, _PCI_DMA_TODEVICE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x27, #8]
	bl	_dev_kfree_skb_irq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x27]
	add	x0, sp, #8
	mov	w1, #1
	bl	_typhoon_inc_tx_index
	ldr	x27, [sp, #8]
	ldr	w0, [x19]
	bl	_le32_to_cpu
	ldr	x22, [sp, #8]
	cmp	x27, x0
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x27, x22, x8
	ldr	w8, [x27]
	ldr	w9, [x23]
	and	w8, w9, w8
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27, #20]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x27, #16]
	bl	_le16_to_cpu
	mov	x2, x0
	ldr	w0, [x21]
	ldr	w3, [x26]
	mov	x1, x22
	bl	_pci_unmap_single
	b	LBB0_4
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPHOON_TYPE_MASK,4,2          ; @TYPHOON_TYPE_MASK
	.comm	_TYPHOON_TX_DESC,4,2            ; @TYPHOON_TX_DESC
	.comm	_TYPHOON_FRAG_DESC,4,2          ; @TYPHOON_FRAG_DESC
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_typhoon_clean_tx
.subsections_via_symbols
