	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1c_clean_tx_irq
_atl1c_clean_tx_irq:                    ## @atl1c_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rcx
	movl	%esi, %eax
	leaq	(%rax,%rax,2), %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r15,8), %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_atomic_read
	movq	%rax, %rbx
	movq	_atl1c_trans_high@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_REG_TPD_PRI1_CIDX@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_REG_TPD_PRI0_CIDX@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rsi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %rdi
	leaq	-48(%rbp), %rdx
	callq	_AT_READ_REGW
	xorl	%r13d, %r13d
	movl	$0, %r14d
	cmpq	-48(%rbp), %rbx
	jne	LBB0_4
LBB0_8:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_netdev_completed_queue
	movl	(%rbx), %edi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	(%rbx), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%rbx), %edi
	callq	_netif_wake_queue
LBB0_11:
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,8), %r15
	addq	$16, %r15
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rax,%rbx,8), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_atl1c_clean_buffer
	incq	%rbx
	cmpq	-16(%r15), %rbx
	movl	$0, %eax
	cmoveq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_atomic_set
	cmpq	-48(%rbp), %rbx
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	(%rcx), %r13d
	incl	%r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_atl1c_trans_high,4,2           ## @atl1c_trans_high
	.comm	_REG_TPD_PRI1_CIDX,8,3          ## @REG_TPD_PRI1_CIDX
	.comm	_REG_TPD_PRI0_CIDX,8,3          ## @REG_TPD_PRI0_CIDX
	.no_dead_strip	_atl1c_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 atl1c_clean_tx_irq
_atl1c_clean_tx_irq:                    ; @atl1c_clean_tx_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x25, x1
	mov	x19, x0
	ldp	x20, x26, [x0, #8]
	mov	w8, #24
	umaddl	x8, w1, w8, x26
	add	x21, x8, #8
	mov	x0, x21
	bl	_atomic_read
	mov	x22, x0
Lloh0:
	adrp	x8, _atl1c_trans_high@GOTPAGE
Lloh1:
	ldr	x8, [x8, _atl1c_trans_high@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _REG_TPD_PRI1_CIDX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REG_TPD_PRI1_CIDX@GOTPAGEOFF]
Lloh5:
	adrp	x10, _REG_TPD_PRI0_CIDX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _REG_TPD_PRI0_CIDX@GOTPAGEOFF]
	cmp	w8, w25
	csel	x8, x9, x10, eq
	ldr	x1, [x8]
	add	x0, x19, #4
	add	x2, sp, #8
	bl	_AT_READ_REGW
	ldr	x8, [sp, #8]
	cmp	x22, x8
	b.ne	LBB0_6
; %bb.1:
	mov	w23, #0
	mov	w24, #0
LBB0_2:
	ldr	w0, [x19]
	mov	x1, x24
	mov	x2, x23
	bl	_netdev_completed_queue
	ldr	w0, [x19]
	bl	_netif_queue_stopped
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x19]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	bl	_netif_wake_queue
LBB0_5:
	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
	add	sp, sp, #96
	ret
LBB0_6:
	mov	w24, #0
	mov	w23, #0
	mov	w8, w25
	mov	w9, #24
	madd	x25, x8, x9, x26
	add	x26, x25, #16
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_atl1c_clean_buffer
	add	x8, x22, #1
	ldr	x9, [x25]
	cmp	x8, x9
	csinc	x22, xzr, x22, eq
	mov	x0, x21
	mov	x1, x22
	bl	_atomic_set
	ldr	x8, [sp, #8]
	cmp	x22, x8
	b.eq	LBB0_2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x1, x8, x22, lsl #3
	ldr	x8, [x1]
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x8]
	add	w23, w23, w8
	add	w24, w24, #1
	b	LBB0_7
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_atl1c_trans_high,4,2           ; @atl1c_trans_high
	.comm	_REG_TPD_PRI1_CIDX,8,3          ; @REG_TPD_PRI1_CIDX
	.comm	_REG_TPD_PRI0_CIDX,8,3          ; @REG_TPD_PRI0_CIDX
	.no_dead_strip	_atl1c_clean_tx_irq
.subsections_via_symbols
