	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_eth_tx_timeout
_sh_eth_tx_timeout:                     ## @sh_eth_tx_timeout
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_EESR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sh_eth_read
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movl	%eax, %r8d
	callq	_netif_err
	incl	(%r14)
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %r13
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r13,%r15)
	movl	$-1159790384, %edi              ## imm = 0xBADF00D0
	callq	_cpu_to_le32
	movq	%rax, -8(%r13,%r15)
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_dev_kfree_skb
	movq	16(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r12), %rax
	addq	$16, %r15
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	cmpl	$0, 4(%r12)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_dev_kfree_skb
	movq	8(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_sh_eth_dev_init
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_start_queue              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_timer,4,2                      ## @timer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transmit timed out, status %8.8x, resetting...\n"

	.comm	_EESR,4,2                       ## @EESR
	.no_dead_strip	_sh_eth_tx_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_eth_tx_timeout
_sh_eth_tx_timeout:                     ; @sh_eth_tx_timeout
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_netif_stop_queue
Lloh0:
	adrp	x8, _timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _timer@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _EESR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EESR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sh_eth_read
	mov	x4, x0
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_netif_err
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x20, #24]
	mov	w0, #0
	bl	_cpu_to_le32
	add	x23, x23, x21
	str	x0, [x23, #8]
	mov	w0, #208
	movk	w0, #47839, lsl #16
	bl	_cpu_to_le32
	str	x0, [x23]
	ldr	x8, [x20, #16]
	lsl	x23, x22, #3
	ldr	x0, [x8, x23]
	bl	_dev_kfree_skb
	ldr	x8, [x20, #16]
	str	xzr, [x8, x23]
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #16
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_dev_kfree_skb
	ldr	x8, [x20, #8]
	str	xzr, [x8, x22]
	add	x21, x21, #1
	ldrsw	x8, [x20, #4]
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_sh_eth_dev_init
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netif_start_queue
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_timer,4,2                      ; @timer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transmit timed out, status %8.8x, resetting...\n"

	.comm	_EESR,4,2                       ; @EESR
	.no_dead_strip	_sh_eth_tx_timeout
.subsections_via_symbols
