	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1e_clean_tx_irq
_atl1e_clean_tx_irq:                    ## @atl1e_clean_tx_irq
	.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, %r12
	addq	$8, %rdi
	movq	_REG_TPD_CONS_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AT_READ_REGW
	movq	%rax, %r14
	leaq	24(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_atomic_read
	cmpq	%r14, %rax
	jne	LBB0_1
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_atomic_set
	movl	(%r12), %edi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movl	(%r12), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	(%r12), %edi
	callq	_netif_wake_queue
LBB0_16:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, %r13
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %r15
	movq	%r13, %rbx
	shlq	$5, %rbx
	movq	16(%r15,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15,%rbx), %eax
	movq	_ATL1E_TX_PCIMAP_SINGLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %edi
	movl	24(%r15,%rbx), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATL1E_TX_PCIMAP_PAGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %edi
	movl	24(%r15,%rbx), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_page
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%rbx), %rax
	addq	$16, %rax
	movq	$0, (%rax)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r15, %rbx
	addq	$8, %rbx
	callq	_dev_consume_skb_irq
	movq	$0, (%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	16(%r12), %r13
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_TPD_CONS_IDX,4,2           ## @REG_TPD_CONS_IDX
	.comm	_ATL1E_TX_PCIMAP_SINGLE,4,2     ## @ATL1E_TX_PCIMAP_SINGLE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_ATL1E_TX_PCIMAP_PAGE,4,2       ## @ATL1E_TX_PCIMAP_PAGE
	.no_dead_strip	_atl1e_clean_tx_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1e_clean_tx_irq
_atl1e_clean_tx_irq:                    ; @atl1e_clean_tx_irq
	.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	x19, x0
	add	x0, x0, #8
Lloh0:
	adrp	x8, _REG_TPD_CONS_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_TPD_CONS_IDX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_AT_READ_REGW
	mov	x20, x0
	add	x21, x19, #24
	mov	x0, x21
	bl	_atomic_read
	cmp	x0, x20
	b.ne	LBB0_5
LBB0_1:
	mov	x0, x21
	mov	x1, x20
	bl	_atomic_set
	ldr	w0, [x19]
	bl	_netif_queue_stopped
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_netif_wake_queue
LBB0_4:
	mov	w0, #1
	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
LBB0_5:
	mov	x22, x0
Lloh3:
	adrp	x23, _ATL1E_TX_PCIMAP_SINGLE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ATL1E_TX_PCIMAP_SINGLE@GOTPAGEOFF]
Lloh5:
	adrp	x24, _ATL1E_TX_PCIMAP_PAGE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ATL1E_TX_PCIMAP_PAGE@GOTPAGEOFF]
Lloh7:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x22, #1
	ldr	x9, [x19, #16]
	cmp	x8, x9
	csinc	x22, xzr, x22, eq
	cmp	x22, x20
	b.eq	LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x26, x8, x22, lsl #5
	mov	x27, x26
	ldr	x1, [x27, #16]!
	cbz	x1, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	x9, x22, #5
	ldr	w9, [x8, x9]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #4]
	add	x8, x8, x22, lsl #5
	ldr	w2, [x8, #24]
	ldr	w3, [x25]
	bl	_pci_unmap_single
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #4]
	add	x8, x8, x22, lsl #5
	ldr	w2, [x8, #24]
	ldr	w3, [x25]
	bl	_pci_unmap_page
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x27]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x26, #8]!
	cbz	x0, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_dev_consume_skb_irq
	str	xzr, [x26]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_TPD_CONS_IDX,4,2           ; @REG_TPD_CONS_IDX
	.comm	_ATL1E_TX_PCIMAP_SINGLE,4,2     ; @ATL1E_TX_PCIMAP_SINGLE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_ATL1E_TX_PCIMAP_PAGE,4,2       ; @ATL1E_TX_PCIMAP_PAGE
	.no_dead_strip	_atl1e_clean_tx_irq
.subsections_via_symbols
