	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_tx_timeout
_typhoon_tx_timeout:                    ## @typhoon_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	_WaitNoSleep@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_typhoon_reset
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rsi
	addq	$16, %rsi
	movq	8(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_typhoon_clean_tx
	movq	%rbx, %rdi
	callq	_typhoon_free_rx_rings
	movq	%rbx, %rdi
	callq	_typhoon_start_runtime
	testq	%rax, %rax
	js	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_4:
	movl	(%rbx), %edi
	movq	_NoWait@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_typhoon_reset
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netif_carrier_off              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WaitNoSleep,4,2                ## @WaitNoSleep
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not reset in tx timeout\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not start runtime in tx timeout\n"

	.comm	_NoWait,4,2                     ## @NoWait
	.no_dead_strip	_typhoon_tx_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typhoon_tx_timeout
_typhoon_tx_timeout:                    ; @typhoon_tx_timeout
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _WaitNoSleep@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WaitNoSleep@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_typhoon_reset
	tbnz	x0, #63, LBB0_3
; %bb.1:
	add	x1, x20, #16
	ldr	x2, [x20, #8]
	mov	x0, x20
	bl	_typhoon_clean_tx
	mov	x0, x20
	bl	_typhoon_free_rx_rings
	mov	x0, x20
	bl	_typhoon_start_runtime
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netif_wake_queue
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_5:
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _NoWait@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NoWait@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_typhoon_reset
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netif_carrier_off
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WaitNoSleep,4,2                ; @WaitNoSleep
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not reset in tx timeout\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not start runtime in tx timeout\n"

	.comm	_NoWait,4,2                     ; @NoWait
	.no_dead_strip	_typhoon_tx_timeout
.subsections_via_symbols
