	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rhine_tx_err
_rhine_tx_err:                          ## @rhine_tx_err
	.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, %ebx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	_IntrTxAborted@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_netif_info
LBB0_2:
	movq	_IntrTxUnderrun@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_rhine_kick_tx_threshold
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %r8d
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_info
LBB0_4:
	movq	_IntrTxDescRace@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_6
## %bb.5:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_info
LBB0_6:
	movq	_IntrTxError@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.7:
	movl	(%r13), %eax
	movq	_IntrTxAborted@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r12), %eax
	testl	%ebx, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_rhine_kick_tx_threshold
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %r8d
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_info
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rhine_restart_tx               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IntrTxAborted,4,2              ## @IntrTxAborted
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Abort %08x, frame dropped\n"

	.comm	_IntrTxUnderrun,4,2             ## @IntrTxUnderrun
L_.str.1:                               ## @.str.1
	.asciz	"Transmitter underrun, Tx threshold now %02x\n"

	.comm	_IntrTxDescRace,4,2             ## @IntrTxDescRace
L_.str.2:                               ## @.str.2
	.asciz	"Tx descriptor write-back race\n"

	.comm	_IntrTxError,4,2                ## @IntrTxError
L_.str.3:                               ## @.str.3
	.asciz	"Unspecified error. Tx threshold now %02x\n"

	.no_dead_strip	_rhine_tx_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rhine_tx_err
_rhine_tx_err:                          ; @rhine_tx_err
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x23, _IntrTxAborted@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IntrTxAborted@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x22, _tx_err@GOTPAGE
Lloh3:
	ldr	x22, [x22, _tx_err@GOTPAGEOFF]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x22]
	str	x21, [sp]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_info
LBB0_2:
Lloh6:
	adrp	x24, _IntrTxUnderrun@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IntrTxUnderrun@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_rhine_kick_tx_threshold
	ldr	w1, [x22]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_info
LBB0_4:
Lloh10:
	adrp	x25, _IntrTxDescRace@GOTPAGE
Lloh11:
	ldr	x25, [x25, _IntrTxDescRace@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	w1, [x22]
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_info
LBB0_6:
Lloh14:
	adrp	x8, _IntrTxError@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IntrTxError@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.7:
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	tst	w8, w21
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_rhine_kick_tx_threshold
	ldr	w1, [x22]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh17:
	adrp	x3, l_.str.3@PAGE
Lloh18:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_info
LBB0_9:
	mov	x0, x19
	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
	b	_rhine_restart_tx
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IntrTxAborted,4,2              ; @IntrTxAborted
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Abort %08x, frame dropped\n"

	.comm	_IntrTxUnderrun,4,2             ; @IntrTxUnderrun
l_.str.1:                               ; @.str.1
	.asciz	"Transmitter underrun, Tx threshold now %02x\n"

	.comm	_IntrTxDescRace,4,2             ; @IntrTxDescRace
l_.str.2:                               ; @.str.2
	.asciz	"Tx descriptor write-back race\n"

	.comm	_IntrTxError,4,2                ; @IntrTxError
l_.str.3:                               ; @.str.3
	.asciz	"Unspecified error. Tx threshold now %02x\n"

	.no_dead_strip	_rhine_tx_err
.subsections_via_symbols
