	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function catc_tx_done
_catc_tx_done:                          ## @catc_tx_done
	.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, %rbx
	movq	16(%rdi), %r14
	movl	(%rdi), %edx
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	jne	LBB0_1
## %bb.6:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$0, (%rbx)
	movq	8(%r14), %rdi
	callq	_netif_trans_update
	movq	8(%r14), %rax
	incl	(%rax)
	movq	_TX_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %rsi
	callq	_clear_bit
	movq	8(%r14), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_1:
	testl	%edx, %edx
	je	LBB0_2
## %bb.7:
	movq	8(%rbx), %rdi
	movl	4(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 24(%r14)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_catc_tx_run
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_TX_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %rsi
	callq	_clear_bit
LBB0_5:
	movq	8(%r14), %rdi
	callq	_netif_wake_queue
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx Reset.\n"

	.comm	_TX_RUNNING,4,2                 ## @TX_RUNNING
L_.str.1:                               ## @.str.1
	.asciz	"tx_done, status %d, length %d\n"

	.no_dead_strip	_catc_tx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function catc_tx_done
_catc_tx_done:                          ; @catc_tx_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ECONNRESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ECONNRESET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmn	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	str	wzr, [x20]
	ldr	x0, [x19, #8]
	bl	_netif_trans_update
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh5:
	adrp	x8, _TX_RUNNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TX_RUNNING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_clear_bit
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_netif_wake_queue
LBB0_2:
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x0, [x20, #8]
	ldr	w9, [x20, #4]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_catc_tx_run
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _TX_RUNNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TX_RUNNING@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_clear_bit
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_netif_wake_queue
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx Reset.\n"

	.comm	_TX_RUNNING,4,2                 ; @TX_RUNNING
l_.str.1:                               ; @.str.1
	.asciz	"tx_done, status %d, length %d\n"

	.no_dead_strip	_catc_tx_done
.subsections_via_symbols
