	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irqtxerr_handler
_irqtxerr_handler:                      ## @irqtxerr_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	24(%rax), %rax
	addq	32(%rbx), %rax
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rsi
	leaq	-24(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy_fromio
	incl	16(%r14)
	movl	-24(%rbp), %eax
	movq	_TCREG_NCRS@GOTPCREL(%rip), %rcx
	movq	_TCREG_CRSL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_2
## %bb.1:
	incl	12(%r14)
LBB0_2:
	movq	_TCREG_EXC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	incl	8(%r14)
LBB0_4:
	movq	_TCREG_OWC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	incl	4(%r14)
LBB0_6:
	movq	_TCREG_FU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	incl	(%r14)
LBB0_8:
	movq	16(%rbx), %rcx
	movslq	(%rbx), %rax
	movq	$0, (%rcx,%rax,8)
	movq	8(%rbx), %rcx
	leaq	-1(%rcx), %rdx
	movq	%rdx, 8(%rbx)
	cmpq	$2, %rcx
	jl	LBB0_10
## %bb.9:
	incl	%eax
	movq	_TXBUFCNT@GOTPCREL(%rip), %rcx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%rcx)
	movq	%r14, %rdi
	movl	%edx, %esi
	callq	_StartTx
LBB0_10:
	movq	%r14, %rdi
	callq	_netif_wake_queue
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCREG_NCRS,4,2                 ## @TCREG_NCRS
	.comm	_TCREG_CRSL,4,2                 ## @TCREG_CRSL
	.comm	_TCREG_EXC,4,2                  ## @TCREG_EXC
	.comm	_TCREG_OWC,4,2                  ## @TCREG_OWC
	.comm	_TCREG_FU,4,2                   ## @TCREG_FU
	.comm	_TXBUFCNT,4,2                   ## @TXBUFCNT
	.no_dead_strip	_irqtxerr_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irqtxerr_handler
_irqtxerr_handler:                      ; @irqtxerr_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldp	x9, x8, [x0, #24]
	add	x8, x9, x8
	ldrsw	x9, [x0]
	add	x1, x8, x9, lsl #2
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy_fromio
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _TCREG_NCRS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TCREG_NCRS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _TCREG_CRSL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TCREG_CRSL@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x19, #12]
	add	w9, w9, #1
	str	w9, [x19, #12]
LBB0_2:
Lloh6:
	adrp	x9, _TCREG_EXC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TCREG_EXC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x19, #8]
	add	w9, w9, #1
	str	w9, [x19, #8]
LBB0_4:
Lloh9:
	adrp	x9, _TCREG_OWC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TCREG_OWC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w9, [x19, #4]
	add	w9, w9, #1
	str	w9, [x19, #4]
LBB0_6:
Lloh12:
	adrp	x9, _TCREG_FU@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TCREG_FU@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_8:
	ldr	x9, [x20, #16]
	ldrsw	x8, [x20]
	str	xzr, [x9, x8, lsl #3]
	ldr	x9, [x20, #8]
	sub	x10, x9, #1
	str	x10, [x20, #8]
	cmp	x9, #2
	b.lt	LBB0_10
; %bb.9:
	add	w8, w8, #1
Lloh15:
	adrp	x9, _TXBUFCNT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TXBUFCNT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w1, w10, w9, w8
	mov	x0, x19
	bl	_StartTx
LBB0_10:
	mov	x0, x19
	bl	_netif_wake_queue
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TCREG_NCRS,4,2                 ; @TCREG_NCRS
	.comm	_TCREG_CRSL,4,2                 ; @TCREG_CRSL
	.comm	_TCREG_EXC,4,2                  ; @TCREG_EXC
	.comm	_TCREG_OWC,4,2                  ; @TCREG_OWC
	.comm	_TCREG_FU,4,2                   ; @TCREG_FU
	.comm	_TXBUFCNT,4,2                   ; @TXBUFCNT
	.no_dead_strip	_irqtxerr_handler
.subsections_via_symbols
