	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpc_queue_xmit
_cpc_queue_xmit:                        ## @cpc_queue_xmit
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_dev_to_hdlc
	movq	(%rax), %r14
	movq	8(%r14), %r15
	movq	8(%r15), %r12
	movslq	(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %rbx
	movq	_ST3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_M_REG
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_cpc_readb
	movq	_ST3_DCD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:
	movl	4(%r13), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	incl	12(%r13)
	incl	16(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	movq	%r13, %rdi
	callq	_netif_carrier_off
	movq	%r12, %rdi
	callq	_CPC_LOCK
	movq	24(%r12), %rbx
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_M_REG
	addq	%rax, %rbx
	movq	_CMD_TX_BUF_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cpc_writeb
	movq	(%r12), %rax
	movq	_PC300_TE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rbx
	movq	8(%r12), %r14
	addq	16(%r12), %r14
	movq	%r14, %rdi
	callq	_cpc_readb
	movq	_CPLD_REG2_FALC_LED1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addl	%ebx, %ebx
	movl	%ebx, %ecx
	shll	%cl, %esi
	notl	%esi
	andl	%eax, %esi
	movq	%r14, %rdi
	callq	_cpc_writeb
LBB0_5:
	movq	%r12, %rdi
	callq	_CPC_UNLOCK
	movq	%r13, %rdi
	callq	_netif_wake_queue
	jmp	LBB0_15
LBB0_1:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
	incl	12(%r13)
	incl	16(%r13)
	jmp	LBB0_15
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_buf_write
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_netif_stop_queue
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
	incl	12(%r13)
	incl	8(%r13)
	jmp	LBB0_15
LBB0_8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$84, %edx
	callq	_cpc_trace
LBB0_10:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	%r12, %rdi
	callq	_CPC_LOCK
	movq	32(%r12), %rax
	movq	%rbx, %r14
	cmpl	$1, (%rax,%rbx,4)
	jg	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	callq	_netif_stop_queue
LBB0_12:
	movq	24(%r12), %rbx
	movq	_EDAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_DTX_REG
	addq	%rax, %rbx
	movl	4(%r15), %esi
	movl	%r14d, %edi
	callq	_TX_BD_ADDR
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cpc_writel
	movq	24(%r12), %rbx
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_M_REG
	addq	%rax, %rbx
	movq	_CMD_TX_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cpc_writeb
	movq	24(%r12), %rbx
	movl	%r14d, %edi
	callq	_DSR_TX
	addq	%rax, %rbx
	movq	_DSR_DE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rbx
	callq	_cpc_writeb
	movq	(%r12), %rax
	movq	_PC300_TE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	8(%r12), %rbx
	addq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_cpc_readb
	movq	_CPLD_REG2_FALC_LED1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addl	%r14d, %r14d
	movl	%r14d, %ecx
	shll	%cl, %esi
	orl	%eax, %esi
	movq	%rbx, %rdi
	movq	%r12, %rbx
	callq	_cpc_writeb
LBB0_14:
	movq	%rbx, %rdi
	callq	_CPC_UNLOCK
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
LBB0_15:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST3,4,2                        ## @ST3
	.comm	_ST3_DCD,4,2                    ## @ST3_DCD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: DCD is OFF. Going administrative down.\n"

	.comm	_CMD,4,2                        ## @CMD
	.comm	_CMD_TX_BUF_CLR,4,2             ## @CMD_TX_BUF_CLR
	.comm	_PC300_TE,8,3                   ## @PC300_TE
	.comm	_CPLD_REG2_FALC_LED1,4,2        ## @CPLD_REG2_FALC_LED1
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_EDAL,4,2                       ## @EDAL
	.comm	_CMD_TX_ENA,4,2                 ## @CMD_TX_ENA
	.comm	_DSR_DE,4,2                     ## @DSR_DE
	.no_dead_strip	_cpc_queue_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpc_queue_xmit
_cpc_queue_xmit:                        ; @cpc_queue_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_dev_to_hdlc
	ldr	x24, [x0]
	ldr	x23, [x24, #8]
	ldr	x19, [x23, #8]
	ldrsw	x20, [x23]
	mov	x0, x22
	bl	_netif_carrier_ok
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x25, [x19, #24]
Lloh0:
	adrp	x8, _ST3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST3@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_M_REG
	add	x0, x0, x25
	bl	_cpc_readb
Lloh3:
	adrp	x8, _ST3_DCD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST3_DCD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.2:
	ldr	w8, [x22, #4]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	ldur	d0, [x22, #12]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	stur	d0, [x22, #12]
	mov	x0, x21
	bl	_dev_kfree_skb
	mov	x0, x22
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_CPC_LOCK
	ldr	x21, [x19, #24]
Lloh8:
	adrp	x8, _CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_M_REG
	add	x0, x0, x21
Lloh11:
	adrp	x8, _CMD_TX_BUF_CLR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMD_TX_BUF_CLR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_cpc_writeb
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _PC300_TE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PC300_TE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldp	x9, x8, [x19, #8]
	add	x21, x9, x8
	mov	x0, x21
	bl	_cpc_readb
Lloh17:
	adrp	x8, _CPLD_REG2_FALC_LED1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CPLD_REG2_FALC_LED1@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	lsl	w9, w20, #1
	lsl	w8, w8, w9
	bic	w1, w0, w8
	mov	x0, x21
	bl	_cpc_writeb
LBB0_4:
	mov	x0, x19
	bl	_CPC_UNLOCK
	mov	x0, x22
	bl	_netif_wake_queue
	b	LBB0_15
LBB0_5:
	mov	x0, x21
	bl	_dev_kfree_skb
	ldur	d0, [x22, #12]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	stur	d0, [x22, #12]
	b	LBB0_15
LBB0_6:
	ldr	x2, [x21, #8]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_dma_buf_write
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_netif_stop_queue
	mov	x0, x21
	bl	_dev_kfree_skb
	ldr	d0, [x22, #8]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x22, #8]
	b	LBB0_15
LBB0_8:
	ldr	x8, [x24]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x22
	mov	x1, x21
	mov	w2, #84
	bl	_cpc_trace
LBB0_10:
Lloh20:
	adrp	x8, _jiffies@GOTPAGE
Lloh21:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x22]
	mov	x0, x19
	bl	_CPC_LOCK
	ldr	x8, [x19, #32]
	ldr	w8, [x8, x20, lsl #2]
	cmp	w8, #1
	b.gt	LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_netif_stop_queue
LBB0_12:
	ldr	x22, [x19, #24]
Lloh23:
	adrp	x8, _EDAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EDAL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_DTX_REG
	add	x22, x0, x22
	ldr	w1, [x23, #4]
	mov	x0, x20
	bl	_TX_BD_ADDR
	mov	x1, x0
	mov	x0, x22
	bl	_cpc_writel
	ldr	x22, [x19, #24]
Lloh26:
	adrp	x8, _CMD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_M_REG
	add	x0, x0, x22
Lloh29:
	adrp	x8, _CMD_TX_ENA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CMD_TX_ENA@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_cpc_writeb
	ldr	x22, [x19, #24]
	mov	x0, x20
	bl	_DSR_TX
	add	x0, x0, x22
Lloh32:
	adrp	x8, _DSR_DE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DSR_DE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_cpc_writeb
	ldr	x8, [x19]
Lloh35:
	adrp	x9, _PC300_TE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PC300_TE@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	ldp	x9, x8, [x19, #8]
	add	x22, x9, x8
	mov	x0, x22
	bl	_cpc_readb
Lloh38:
	adrp	x8, _CPLD_REG2_FALC_LED1@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CPLD_REG2_FALC_LED1@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	lsl	w9, w20, #1
	lsl	w8, w8, w9
	orr	w1, w8, w0
	mov	x0, x22
	bl	_cpc_writeb
LBB0_14:
	mov	x0, x19
	bl	_CPC_UNLOCK
	mov	x0, x21
	bl	_dev_kfree_skb
LBB0_15:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ST3,4,2                        ; @ST3
	.comm	_ST3_DCD,4,2                    ; @ST3_DCD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: DCD is OFF. Going administrative down.\n"

	.comm	_CMD,4,2                        ; @CMD
	.comm	_CMD_TX_BUF_CLR,4,2             ; @CMD_TX_BUF_CLR
	.comm	_PC300_TE,8,3                   ; @PC300_TE
	.comm	_CPLD_REG2_FALC_LED1,4,2        ; @CPLD_REG2_FALC_LED1
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_EDAL,4,2                       ; @EDAL
	.comm	_CMD_TX_ENA,4,2                 ; @CMD_TX_ENA
	.comm	_DSR_DE,4,2                     ; @DSR_DE
	.no_dead_strip	_cpc_queue_xmit
.subsections_via_symbols
