	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_dev_tx_timeout
_emac_dev_tx_timeout:                   ## @emac_dev_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netif_msg_tx_err
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_2:
	incl	(%rbx)
	movq	%rbx, %rdi
	callq	_emac_int_disable
	movq	_EMAC_DEF_TX_CH@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_emac_stop_txch
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_emac_cleanup_txch
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_emac_init_txch
	xorl	%edi, %edi
	callq	_EMAC_TXHDP
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_emac_write
	movq	_EMAC_TXINTMASKSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r15), %edi
	callq	_BIT
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_emac_write
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emac_int_enable                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DaVinci EMAC: xmit timeout, restarting TX"

	.comm	_EMAC_DEF_TX_CH,4,2             ## @EMAC_DEF_TX_CH
	.comm	_EMAC_TXINTMASKSET,4,2          ## @EMAC_TXINTMASKSET
	.no_dead_strip	_emac_dev_tx_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_dev_tx_timeout
_emac_dev_tx_timeout:                   ; @emac_dev_tx_timeout
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_netif_msg_tx_err
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_2:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_emac_int_disable
Lloh2:
	adrp	x21, _EMAC_DEF_TX_CH@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EMAC_DEF_TX_CH@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_emac_stop_txch
	ldr	w1, [x21]
	mov	x0, x19
	bl	_emac_cleanup_txch
	ldr	w1, [x21]
	mov	x0, x19
	bl	_emac_init_txch
	mov	w0, #0
	bl	_EMAC_TXHDP
	mov	w1, #0
	bl	_emac_write
Lloh4:
	adrp	x8, _EMAC_TXINTMASKSET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EMAC_TXINTMASKSET@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	ldr	w0, [x21]
	bl	_BIT
	mov	x1, x0
	mov	x0, x20
	bl	_emac_write
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_emac_int_enable
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DaVinci EMAC: xmit timeout, restarting TX"

	.comm	_EMAC_DEF_TX_CH,4,2             ; @EMAC_DEF_TX_CH
	.comm	_EMAC_TXINTMASKSET,4,2          ; @EMAC_TXINTMASKSET
	.no_dead_strip	_emac_dev_tx_timeout
.subsections_via_symbols
