	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_tx_err
_smc_tx_err:                            ## @smc_tx_err
	.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, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r15), %ebx
	movq	_PNR_ARR@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_inw
	movl	%eax, %r12d
	movq	_FIFO_PORTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inw
	andl	$127, %eax
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_outw
	movq	_PTR_AUTOINC@GOTPCREL(%rip), %rax
	movq	_PTR_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_POINTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outw
	movq	_DATA_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inw
	incl	16(%r15)
	movq	_TS_LOSTCAR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	incl	12(%r15)
LBB0_2:
	movq	_TS_LATCOL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	incl	8(%r15)
LBB0_4:
	movq	_TS_16COL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	incl	4(%r15)
	incl	8(%r14)
LBB0_6:
	movq	_TS_SUCCESS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_notice
LBB0_8:
	movzbl	%r12b, %r15d
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_TCR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_inw
	movq	_TCR_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r14), %eax
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_outw
	movl	$2, %edi
	callq	_SMC_SELECT_BANK
	movq	_MC_FREEPKT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MMU_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outw
	decl	4(%r14)
	addq	(%r13), %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outw                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PNR_ARR,8,3                    ## @PNR_ARR
	.comm	_FIFO_PORTS,8,3                 ## @FIFO_PORTS
	.comm	_PTR_AUTOINC,4,2                ## @PTR_AUTOINC
	.comm	_PTR_READ,4,2                   ## @PTR_READ
	.comm	_POINTER,8,3                    ## @POINTER
	.comm	_DATA_1,8,3                     ## @DATA_1
	.comm	_TS_LOSTCAR,4,2                 ## @TS_LOSTCAR
	.comm	_TS_LATCOL,4,2                  ## @TS_LATCOL
	.comm	_TS_16COL,4,2                   ## @TS_16COL
	.comm	_TS_SUCCESS,4,2                 ## @TS_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Successful packet caused error interrupt?\n"

	.comm	_TCR,8,3                        ## @TCR
	.comm	_TCR_ENABLE,4,2                 ## @TCR_ENABLE
	.comm	_MC_FREEPKT,4,2                 ## @MC_FREEPKT
	.comm	_MMU_CMD,8,3                    ## @MMU_CMD
	.no_dead_strip	_smc_tx_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_tx_err
_smc_tx_err:                            ; @smc_tx_err
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w22, [x20]
Lloh0:
	adrp	x23, _PNR_ARR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PNR_ARR@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, x22
	bl	_inw
	mov	x21, x0
Lloh2:
	adrp	x8, _FIFO_PORTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FIFO_PORTS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x0, x8, x22
	bl	_inw
	and	w0, w0, #0x7f
	ldr	x8, [x23]
	add	x1, x8, x22
	bl	_outw
Lloh5:
	adrp	x8, _PTR_AUTOINC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PTR_AUTOINC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _PTR_READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PTR_READ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh11:
	adrp	x8, _POINTER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POINTER@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outw
Lloh14:
	adrp	x8, _DATA_1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DATA_1@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x0, x8, x22
	bl	_inw
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
Lloh17:
	adrp	x8, _TS_LOSTCAR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TS_LOSTCAR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
LBB0_2:
Lloh20:
	adrp	x8, _TS_LATCOL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TS_LATCOL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_4:
Lloh23:
	adrp	x8, _TS_16COL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TS_16COL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_6:
Lloh26:
	adrp	x8, _TS_SUCCESS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TS_SUCCESS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_notice
LBB0_8:
	and	w20, w21, #0xff
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh31:
	adrp	x21, _TCR@GOTPAGE
Lloh32:
	ldr	x21, [x21, _TCR@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x22
	bl	_inw
Lloh33:
	adrp	x8, _TCR_ENABLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TCR_ENABLE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	w9, [x19]
	orr	w0, w8, w9
	ldr	x8, [x21]
	add	x1, x8, x22
	bl	_outw
	mov	w0, #2
	bl	_SMC_SELECT_BANK
Lloh36:
	adrp	x8, _MC_FREEPKT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MC_FREEPKT@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _MMU_CMD@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MMU_CMD@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outw
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	ldr	x8, [x23]
	add	x1, x8, x22
	mov	x0, x20
	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	_outw
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_PNR_ARR,8,3                    ; @PNR_ARR
	.comm	_FIFO_PORTS,8,3                 ; @FIFO_PORTS
	.comm	_PTR_AUTOINC,4,2                ; @PTR_AUTOINC
	.comm	_PTR_READ,4,2                   ; @PTR_READ
	.comm	_POINTER,8,3                    ; @POINTER
	.comm	_DATA_1,8,3                     ; @DATA_1
	.comm	_TS_LOSTCAR,4,2                 ; @TS_LOSTCAR
	.comm	_TS_LATCOL,4,2                  ; @TS_LATCOL
	.comm	_TS_16COL,4,2                   ; @TS_16COL
	.comm	_TS_SUCCESS,4,2                 ; @TS_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Successful packet caused error interrupt?\n"

	.comm	_TCR,8,3                        ; @TCR
	.comm	_TCR_ENABLE,4,2                 ; @TCR_ENABLE
	.comm	_MC_FREEPKT,4,2                 ; @MC_FREEPKT
	.comm	_MMU_CMD,8,3                    ; @MMU_CMD
	.no_dead_strip	_smc_tx_err
.subsections_via_symbols
