	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_hard_start_xmit
_smsc9420_hard_start_xmit:              ## @smsc9420_hard_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
	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, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movslq	(%rax), %r13
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_smsc9420_complete_tx
	xorl	%eax, %eax
	callq	_rmb
	movq	8(%r12), %rax
	movq	%r13, %rbx
	shlq	$4, %rbx
	movq	_TDES0_OWN_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%rax,%rbx), %edi
	callq	_BUG_ON
	movq	24(%r12), %rax
	movl	(%rax,%r13,8), %edi
	callq	_BUG_ON
	movq	24(%r12), %rax
	movl	4(%rax,%r13,8), %edi
	callq	_BUG_ON
	movl	32(%r12), %edi
	movl	8(%r14), %esi
	movq	(%r14), %rdx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movq	%rax, %r15
	movl	32(%r12), %edi
	movq	%rax, %rsi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	callq	_netif_warn
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	leal	2(%r13), %eax
	cltd
	idivl	-52(%rbp)                       ## 4-byte Folded Reload
	xorl	%edi, %edi
	cmpl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	sete	%dil
	movq	24(%r12), %rax
	movl	%r14d, (%rax,%r13,8)
	movl	%r15d, 4(%rax,%r13,8)
	movq	_TDES1_LS_@GOTPCREL(%rip), %rax
	movq	%r14, %rcx
	movl	$2047, %r14d                    ## imm = 0x7FF
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	andl	(%rcx), %r14d
	orl	(%rax), %r14d
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_TDES1_IC_@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	16(%r12), %edi
	callq	_netif_stop_queue
LBB0_4:
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %r13d
	sete	%dil
	callq	_unlikely
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_TDES1_TER_@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_6:
	orl	%r14d, %ecx
	movq	8(%r12), %rax
	movq	%r15, 8(%rax,%rbx)
	movl	%ecx, 4(%rax,%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movl	(%r12), %eax
	incl	%eax
	cltd
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%edx, (%r12)
	movq	_TDES0_OWN_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_tx_timestamp
	movq	_TX_POLL_DEMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_smsc9420_reg_write
	movq	%r12, %rdi
	callq	_smsc9420_pci_flush_write
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_TDES0_OWN_,4,2                 ## @TDES0_OWN_
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci_map_single failed, dropping packet\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_TDES1_LS_,4,2                  ## @TDES1_LS_
	.comm	_TDES1_IC_,4,2                  ## @TDES1_IC_
	.comm	_TDES1_TER_,4,2                 ## @TDES1_TER_
	.comm	_TX_POLL_DEMAND,4,2             ## @TX_POLL_DEMAND
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_smsc9420_hard_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_hard_start_xmit
_smsc9420_hard_start_xmit:              ; @smsc9420_hard_start_xmit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x22, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w26, [x22]
	ldp	w25, w27, [x0]
                                        ; kill: def $w25 killed $w25 def $x25
	sxtw	x25, w25
	mov	x0, x21
	bl	_smsc9420_complete_tx
	bl	_rmb
	ldr	x8, [x19, #8]
	lsl	x23, x25, #4
	ldr	w8, [x8, x23]
Lloh2:
	adrp	x24, _TDES0_OWN_@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TDES0_OWN_@GOTPAGEOFF]
	ldr	w9, [x24]
	and	w0, w9, w8
	bl	_BUG_ON
	ldr	x8, [x19, #24]
	lsl	x21, x25, #3
	ldr	w0, [x8, x21]
	bl	_BUG_ON
	ldr	x8, [x19, #24]
	add	x8, x8, x21
	ldr	w0, [x8, #4]
	bl	_BUG_ON
	ldr	w0, [x19, #32]
	ldr	w1, [x20, #8]
	ldr	x2, [x20]
Lloh4:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	bl	_pci_map_single
	mov	x21, x0
	ldr	w0, [x19, #32]
	mov	x1, x21
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _tx_err@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_warn
Lloh12:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	add	w8, w25, #2
	sdiv	w9, w8, w26
	msub	w8, w9, w26, w8
	cmp	w8, w27
	cset	w0, eq
	ldr	x8, [x19, #24]
	add	x8, x8, x25, lsl #3
	stp	w20, w21, [x8]
Lloh14:
	adrp	x8, _TDES1_LS_@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TDES1_LS_@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x20]
	and	w9, w9, #0x7ff
	orr	w26, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _TDES1_IC_@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TDES1_IC_@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w26, w8, w26
	ldr	w0, [x19, #16]
	bl	_netif_stop_queue
LBB0_4:
	ldr	w8, [x22]
	sub	w8, w8, #1
	cmp	w25, w8
	cset	w0, eq
	bl	_unlikely
Lloh20:
	adrp	x8, _TDES1_TER_@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TDES1_TER_@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w26
	ldr	x9, [x19, #8]
	add	x9, x9, x23
	str	x21, [x9, #8]
	str	w8, [x9, #4]
	bl	_wmb
	ldr	w8, [x19]
	add	w8, w8, #1
	ldr	w9, [x22]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19]
	ldr	w8, [x24]
	ldr	x9, [x19, #8]
	str	w8, [x9, x23]
	bl	_wmb
	mov	x0, x20
	bl	_skb_tx_timestamp
Lloh23:
	adrp	x8, _TX_POLL_DEMAND@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TX_POLL_DEMAND@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_smsc9420_reg_write
	mov	x0, x19
	bl	_smsc9420_pci_flush_write
Lloh26:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_TDES0_OWN_,4,2                 ; @TDES0_OWN_
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_map_single failed, dropping packet\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_TDES1_LS_,4,2                  ; @TDES1_LS_
	.comm	_TDES1_IC_,4,2                  ; @TDES1_IC_
	.comm	_TDES1_TER_,4,2                 ; @TDES1_TER_
	.comm	_TX_POLL_DEMAND,4,2             ; @TX_POLL_DEMAND
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_smsc9420_hard_start_xmit
.subsections_via_symbols
