	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_start_xmit
_smc_start_xmit:                        ## @smc_start_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movl	(%r12), %r15d
	movq	%r12, %rdi
	callq	_netif_stop_queue
	movl	(%r14), %ebx
	leal	2(%r15), %edi
	callq	_inw
	movswl	%ax, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	cmpq	$0, 24(%r13)
	je	LBB0_2
## %bb.1:
	incl	8(%r12)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	movq	%r14, 24(%r13)
	movl	(%r14), %eax
	movq	%r13, %rbx
	movl	%eax, %r13d
	sarl	$8, %r13d
	cmpl	$2048, %eax                     ## imm = 0x800
	jl	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_netdev_err
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	movq	$0, 24(%rbx)
	incl	4(%r12)
	jmp	LBB0_15
LBB0_4:
	incl	16(%rbx)
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	$2, %edi
	callq	_SMC_SELECT_BANK
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_MC_RESET@GOTPCREL(%rip), %rax
	movswl	(%rax), %edi
	movq	_MMU_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r15d, %esi
	callq	_outw
	movq	$0, 8(%rbx)
LBB0_6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_MC_ALLOC@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_MMU_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r15d, %esi
	movswl	%r13w, %edi
	callq	_outw
	movq	_MEMORY_WAIT_TIME@GOTPCREL(%rip), %rax
	movzwl	(%rax), %ebx
	testw	%bx, %bx
	js	LBB0_7
## %bb.8:
	incl	%ebx
	movq	_IM_ALLOC_INT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r15d, %edi
	callq	_inw
	movl	%eax, %r13d
	movzwl	(%r14), %eax
	testw	%r13w, %ax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	decl	%ebx
	testw	%bx, %bx
	jg	LBB0_9
## %bb.12:
	andl	$65280, %r13d                   ## imm = 0xFF00
	jmp	LBB0_13
LBB0_7:
	xorl	%r13d, %r13d
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	_IM_ALLOC_INT@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	shll	$8, %eax
	orl	%eax, %r13d
	movq	_INTERRUPT@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movswl	%r13w, %edi
	movl	%r15d, %esi
	callq	_outw
	jmp	LBB0_14
LBB0_10:
	andl	$-256, %r13d
	orl	%r13d, %eax
	movq	_INTERRUPT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r15d
	movswl	%ax, %edi
	movl	%r15d, %esi
	callq	_outw
	movq	%r12, %rdi
	callq	_smc_hardware_send_packet
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_15:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smc_start_xmit(length = %d) called, status %04x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Internal error -- sent packet while busy\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
L_.str.2:                               ## @.str.2
	.asciz	"Far too big packet error: %d pages\n"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_MC_RESET,2,1                   ## @MC_RESET
	.comm	_MMU_CMD,4,2                    ## @MMU_CMD
	.comm	_MC_ALLOC,4,2                   ## @MC_ALLOC
	.comm	_MEMORY_WAIT_TIME,2,1           ## @MEMORY_WAIT_TIME
	.comm	_INTERRUPT,4,2                  ## @INTERRUPT
	.comm	_IM_ALLOC_INT,2,1               ## @IM_ALLOC_INT
L_.str.3:                               ## @.str.3
	.asciz	"memory allocation deferred.\n"

	.no_dead_strip	_smc_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_start_xmit
_smc_start_xmit:                        ; @smc_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x21, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w23, [x20]
	mov	x0, x20
	bl	_netif_stop_queue
	add	w0, w23, #2
	ldr	w22, [x21]
	bl	_inw
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	stp	x22, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
Lloh4:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_15
LBB0_2:
	str	x21, [x19, #24]
	ldr	w8, [x21]
	asr	w22, w8, #8
	cmp	w8, #2048
	b.lt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_netdev_err
	mov	x0, x21
	bl	_dev_kfree_skb
	str	xzr, [x19, #24]
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	b	LBB0_14
LBB0_4:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	w0, #2
	bl	_SMC_SELECT_BANK
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x21, _MMU_CMD@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MMU_CMD@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _MC_RESET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MC_RESET@GOTPAGEOFF]
Lloh12:
	ldrsh	w0, [x8]
	ldr	w8, [x21]
	add	w1, w8, w23
	bl	_outw
	str	xzr, [x19, #8]
LBB0_6:
Lloh13:
	adrp	x8, _MC_ALLOC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MC_ALLOC@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w8, w8, w22
	ldr	w9, [x21]
	add	w1, w9, w23
	sxth	w0, w8
	bl	_outw
Lloh16:
	adrp	x8, _MEMORY_WAIT_TIME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MEMORY_WAIT_TIME@GOTPAGEOFF]
Lloh18:
	ldrsh	w24, [x8]
Lloh19:
	adrp	x21, _INTERRUPT@GOTPAGE
Lloh20:
	ldr	x21, [x21, _INTERRUPT@GOTPAGEOFF]
Lloh21:
	adrp	x22, _IM_ALLOC_INT@GOTPAGE
Lloh22:
	ldr	x22, [x22, _IM_ALLOC_INT@GOTPAGEOFF]
	tbnz	w24, #31, LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	add	w0, w8, w23
	bl	_inw
	ldrh	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sxth	w8, w24
	sub	w24, w24, #1
	cmp	w8, #0
	b.gt	LBB0_7
; %bb.9:
	and	w24, w0, #0xffffff00
	b	LBB0_11
LBB0_10:
	mov	w24, #0
LBB0_11:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldrh	w8, [x22]
	orr	w8, w24, w8, lsl #8
	ldr	w9, [x21]
	add	w1, w9, w23
	sxth	w0, w8
	bl	_outw
	b	LBB0_13
LBB0_12:
	and	w9, w0, #0xff00
	orr	w8, w9, w8
	ldr	w9, [x21]
	add	w1, w9, w23
	sxth	w0, w8
	bl	_outw
	mov	x0, x20
	bl	_smc_hardware_send_packet
LBB0_13:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_14:
Lloh25:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smc_start_xmit(length = %d) called, status %04x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Internal error -- sent packet while busy\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
l_.str.2:                               ; @.str.2
	.asciz	"Far too big packet error: %d pages\n"

	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_MC_RESET,2,1                   ; @MC_RESET
	.comm	_MMU_CMD,4,2                    ; @MMU_CMD
	.comm	_MC_ALLOC,4,2                   ; @MC_ALLOC
	.comm	_MEMORY_WAIT_TIME,2,1           ; @MEMORY_WAIT_TIME
	.comm	_INTERRUPT,4,2                  ; @INTERRUPT
	.comm	_IM_ALLOC_INT,2,1               ; @IM_ALLOC_INT
l_.str.3:                               ; @.str.3
	.asciz	"memory allocation deferred.\n"

	.no_dead_strip	_smc_start_xmit
.subsections_via_symbols
