	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sonic_tx_timeout
_sonic_tx_timeout:                      ## @sonic_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	_SONIC_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_SONIC_WRITE
	movq	_SONIC_ISR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$32767, %esi                    ## imm = 0x7FFF
	callq	_SONIC_WRITE
	movq	_SONIC_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SONIC_CR_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SONIC_WRITE
	movq	_SONIC_NUM_TDS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r12), %edi
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movl	(%r13), %ecx
	callq	_dma_unmap_single
	movq	16(%r12), %rax
	movq	$0, (%rax,%rbx,8)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_dev_kfree_skb
	movq	8(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_sonic_init
	incl	(%r12)
	movq	%r14, %rdi
	callq	_netif_trans_update
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SONIC_IMR,4,2                  ## @SONIC_IMR
	.comm	_SONIC_ISR,4,2                  ## @SONIC_ISR
	.comm	_SONIC_CMD,4,2                  ## @SONIC_CMD
	.comm	_SONIC_CR_RST,4,2               ## @SONIC_CR_RST
	.comm	_SONIC_NUM_TDS,4,2              ## @SONIC_NUM_TDS
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_sonic_tx_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sonic_tx_timeout
_sonic_tx_timeout:                      ; @sonic_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
Lloh0:
	adrp	x8, _SONIC_IMR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SONIC_IMR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_SONIC_WRITE
Lloh3:
	adrp	x8, _SONIC_ISR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SONIC_ISR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #32767
	bl	_SONIC_WRITE
Lloh6:
	adrp	x8, _SONIC_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SONIC_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SONIC_CR_RST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SONIC_CR_RST@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_SONIC_WRITE
Lloh12:
	adrp	x21, _SONIC_NUM_TDS@GOTPAGE
Lloh13:
	ldr	x21, [x21, _SONIC_NUM_TDS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
Lloh14:
	adrp	x23, _DMA_TO_DEVICE@GOTPAGE
Lloh15:
	ldr	x23, [x23, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x1, [x8, x22, lsl #3]
	cbz	x1, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #32]
	ldr	x8, [x20, #24]
	ldr	w2, [x8, x22, lsl #2]
	ldr	w3, [x23]
	bl	_dma_unmap_single
	ldr	x8, [x20, #16]
	str	xzr, [x8, x22, lsl #3]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22, lsl #3]
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_dev_kfree_skb
	ldr	x8, [x20, #8]
	str	xzr, [x8, x22, lsl #3]
	b	LBB0_2
LBB0_7:
	mov	x0, x19
	bl	_sonic_init
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x19
	bl	_netif_trans_update
	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_wake_queue
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SONIC_IMR,4,2                  ; @SONIC_IMR
	.comm	_SONIC_ISR,4,2                  ; @SONIC_ISR
	.comm	_SONIC_CMD,4,2                  ; @SONIC_CMD
	.comm	_SONIC_CR_RST,4,2               ; @SONIC_CR_RST
	.comm	_SONIC_NUM_TDS,4,2              ; @SONIC_NUM_TDS
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_sonic_tx_timeout
.subsections_via_symbols
