	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns83820_hard_start_xmit
_ns83820_hard_start_xmit:               ## @ns83820_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	$88, %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, %r15
	movq	%rsi, %rdi
	callq	_PRIV
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_CFG_LNKSTS@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r13
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	andl	(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movl	(%r12), %edi
	andl	(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_netif_start_queue
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r14), %edi
	movl	8(%r14), %esi
	movq	_NR_TX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%esi, %eax
	subl	%edi, %eax
	addl	%ecx, %eax
	addl	$-2, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r15d
	decl	%r15d
	subl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%esi, %r15d
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	cmpl	%r15d, 8(%r14)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_netif_start_queue
	jmp	LBB0_1
LBB0_14:
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %r14
	jmp	LBB0_37
LBB0_7:
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r14), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %edi
	jne	LBB0_9
## %bb.8:
	movl	%ecx, %eax
	shrl	$2, %eax
	addl	%edi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, 12(%rax)
LBB0_9:
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movq	_MIN_TX_DESC_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r15d
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jge	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r14, %rdi
	callq	_netif_stop_queue
LBB0_11:
	movq	%r12, %rdi
	callq	_skb_shinfo
	xorl	%r13d, %r13d
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.12:
	movq	8(%rax), %rax
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.17:
	movq	_EXTSTS_IPPKT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r12, %rdi
	callq	_ip_hdr
	cmpq	(%rax), %r14
	jne	LBB0_19
## %bb.18:
	movq	_EXTSTS_TCPPKT@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_19:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r12, %rdi
	callq	_ip_hdr
	cmpq	(%rax), %r14
	jne	LBB0_22
## %bb.20:
	movq	_EXTSTS_UDPPKT@GOTPCREL(%rip), %rax
LBB0_21:
	orl	(%rax), %r13d
LBB0_22:
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movl	8(%r12), %edx
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.23:
	subl	16(%r12), %edx
LBB0_24:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	40(%rbx), %rdi
	movl	12(%r12), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, %r14d
	callq	_pci_map_single
	movl	%r14d, %r8d
	movq	%rax, %r13
	movq	48(%rbx), %rax
	movq	_DESC_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%ecx, %edx
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	imull	%esi, %edx
	movslq	%edx, %rdx
	leaq	(%rax,%rdx,4), %rdx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	%esi, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	imull	%ebx, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %r14
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	movl	%r8d, -96(%rbp)                 ## 4-byte Spill
	movl	%r8d, %edx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	leal	1(%rbx), %eax
	xorl	%edx, %edx
	movq	_NR_TX_DESC@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	movl	(%r12), %edi
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	imull	%edx, %edi
	shll	$2, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	16(%rax), %edi
	callq	_cpu_to_le32
	movq	_DESC_LINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r14,%rcx,4)
	movq	_DESC_BUFPTR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r14,%rax,4), %rdi
	movq	%r13, %rsi
	callq	_desc_addr_set
	movq	-128(%rbp), %rdi                ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le32
	movq	_DESC_EXTSTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r14,%rcx,4)
	movl	$0, %eax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	-92(%rbp), %ecx                 ## 4-byte Folded Reload
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	_CMDSTS_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$1, %ebx
	jb	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	_CMDSTS_MORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_29:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	$0, %edi
	cmpq	-112(%rbp), %r14                ## 8-byte Folded Reload
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	_CMDSTS_OWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_31:                                ##   in Loop: Header=BB0_25 Depth=1
	orl	%edx, %edi
	orl	%eax, %edi
	callq	_cpu_to_le32
	movq	_DESC_CMDSTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r14,%rcx,4)
	subl	$1, %ebx
	jb	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	40(%r12), %r14
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_skb_frag_dma_map
	movq	%rax, %r13
	movl	4(%rbx), %edi
	callq	_page_to_pfn
	movl	(%rbx), %ecx
	leaq	L_.str.5(%rip), %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	%eax, %r8d
	movq	48(%r12), %rax
	movq	_DESC_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	addq	$8, %rbx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ebx
	jmp	LBB0_25
LBB0_33:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	32(%rbx), %rax
	movl	-120(%rbp), %ecx                ## 4-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
	movq	_CMDSTS_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	_DESC_CMDSTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	orl	%eax, (%rdx,%rcx,4)
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_atomic_inc
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_kick_tx
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %r14
	cmpl	-88(%rbp), %r15d                ## 4-byte Folded Reload
	jge	LBB0_37
## %bb.34:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%rbx)
	je	LBB0_37
## %bb.35:
	movq	%rbx, %rdi
	callq	_start_tx_okay
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_start_queue
LBB0_37:
	movl	(%r14), %eax
	addq	$88, %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	"ns83820_hard_start_xmit\n"

	.comm	_CFG_LNKSTS,4,2                 ## @CFG_LNKSTS
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_NR_TX_DESC,4,2                 ## @NR_TX_DESC
L_.str.1:                               ## @.str.1
	.asciz	"stop_queue - not enough(%p)\n"

L_.str.2:                               ## @.str.2
	.asciz	"restart queue(%p)\n"

	.comm	_MIN_TX_DESC_FREE,4,2           ## @MIN_TX_DESC_FREE
L_.str.3:                               ## @.str.3
	.asciz	"stop_queue - last entry(%p)\n"

	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_EXTSTS_IPPKT,4,2               ## @EXTSTS_IPPKT
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_EXTSTS_TCPPKT,4,2              ## @EXTSTS_TCPPKT
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_EXTSTS_UDPPKT,4,2              ## @EXTSTS_UDPPKT
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_DESC_SIZE,4,2                  ## @DESC_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"frag[%3u]: %4u @ 0x%08Lx\n"

	.comm	_DESC_LINK,8,3                  ## @DESC_LINK
	.comm	_DESC_BUFPTR,4,2                ## @DESC_BUFPTR
	.comm	_DESC_EXTSTS,8,3                ## @DESC_EXTSTS
	.comm	_CMDSTS_MORE,4,2                ## @CMDSTS_MORE
	.comm	_CMDSTS_INTR,4,2                ## @CMDSTS_INTR
	.comm	_CMDSTS_OWN,4,2                 ## @CMDSTS_OWN
	.comm	_DESC_CMDSTS,8,3                ## @DESC_CMDSTS
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
L_.str.5:                               ## @.str.5
	.asciz	"frag: buf=%08Lx  page=%08lx offset=%08lx\n"

L_.str.6:                               ## @.str.6
	.asciz	"done pkt\n"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_EXTSTS_VPKT,4,2                ## @EXTSTS_VPKT
	.no_dead_strip	_ns83820_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 ns83820_hard_start_xmit
_ns83820_hard_start_xmit:               ; @ns83820_hard_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x27, x1
	mov	x19, x0
	mov	x0, x1
	bl	_PRIV
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w28, [x0]
Lloh2:
	adrp	x24, _CFG_LNKSTS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CFG_LNKSTS@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh6:
	adrp	x26, _NETDEV_TX_BUSY@GOTPAGE
Lloh7:
	ldr	x26, [x26, _NETDEV_TX_BUSY@GOTPAGEOFF]
Lloh8:
	adrp	x23, l_.str.2@PAGE
Lloh9:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	bl	_netif_stop_queue
	ldr	w8, [x20]
	ldr	w9, [x24]
	and	w0, w9, w8
	bl	_unlikely
	cbnz	x0, LBB0_27
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	bl	_netif_start_queue
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldp	w25, w21, [x20, #4]
Lloh10:
	adrp	x8, _NR_TX_DESC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NR_TX_DESC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	sub	w9, w21, w25
	add	w9, w9, w8
	sub	w9, w9, #2
	udiv	w10, w9, w8
	mul	w10, w10, w8
	mvn	w10, w10
	add	w9, w10, w9
	subs	w11, w9, w28
	b.gt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	str	x27, [sp]
	mov	x0, x22
	bl	_dprintk
	mov	x0, x27
	bl	_netif_stop_queue
	ldr	w8, [x20, #8]
	cmp	w8, w21
	b.eq	LBB0_27
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	str	x27, [sp]
	mov	x0, x23
	bl	_dprintk
	mov	x0, x27
	bl	_netif_start_queue
	b	LBB0_1
LBB0_7:
	ldr	w9, [x20, #12]
	str	w9, [sp, #48]                   ; 4-byte Folded Spill
	cmp	w25, w9
	b.ne	LBB0_9
; %bb.8:
	add	w9, w25, w8, lsr #2
	udiv	w10, w9, w8
	msub	w8, w10, w8, w9
	str	w8, [x20, #12]
LBB0_9:
Lloh13:
	adrp	x8, _MIN_TX_DESC_FREE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MIN_TX_DESC_FREE@GOTPAGEOFF]
Lloh15:
	ldr	w24, [x8]
	str	w11, [sp, #36]                  ; 4-byte Folded Spill
	cmp	w11, w24
	b.ge	LBB0_11
; %bb.10:
	str	x27, [sp]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintk
	mov	x0, x27
	bl	_netif_stop_queue
LBB0_11:
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	cmp	w28, #0
	csel	x22, xzr, x8, eq
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
Lloh21:
	adrp	x8, _EXTSTS_IPPKT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EXTSTS_IPPKT@GOTPAGEOFF]
Lloh23:
	ldr	w26, [x8]
Lloh24:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
	mov	x23, x19
Lloh26:
	ldr	x19, [x8]
	mov	x0, x23
	bl	_ip_hdr
	ldr	x8, [x0]
	cmp	x19, x8
	b.ne	LBB0_15
; %bb.13:
Lloh27:
	adrp	x8, _EXTSTS_TCPPKT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EXTSTS_TCPPKT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w26, w8, w26
	str	w26, [sp, #52]                  ; 4-byte Folded Spill
	mov	x19, x23
	b	LBB0_17
LBB0_14:
	str	wzr, [sp, #52]                  ; 4-byte Folded Spill
	b	LBB0_17
LBB0_15:
	str	w26, [sp, #52]                  ; 4-byte Folded Spill
Lloh30:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh32:
	ldr	x19, [x8]
	mov	x0, x23
	bl	_ip_hdr
	ldr	x8, [x0]
	cmp	x19, x8
	mov	x19, x23
	b.ne	LBB0_17
; %bb.16:
Lloh33:
	adrp	x8, _EXTSTS_UDPPKT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EXTSTS_UDPPKT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	orr	w9, w8, w9
	str	w9, [sp, #52]                   ; 4-byte Folded Spill
LBB0_17:
	ldr	w26, [x19, #8]
	str	x27, [sp, #24]                  ; 8-byte Folded Spill
	str	w24, [sp, #32]                  ; 4-byte Folded Spill
	cbz	w28, LBB0_19
; %bb.18:
	ldr	w8, [x19, #16]
	sub	w26, w26, w8
LBB0_19:
	ldr	x0, [x20, #40]
	str	x19, [sp, #40]                  ; 8-byte Folded Spill
	ldr	w1, [x19, #12]
Lloh36:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	mov	x2, x26
	bl	_pci_map_single
	mov	x27, x0
	ldr	x8, [x20, #48]
Lloh39:
	adrp	x9, _DESC_SIZE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _DESC_SIZE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	mul	w10, w9, w25
	add	x10, x8, w10, sxtw #2
	str	x10, [sp, #56]                  ; 8-byte Folded Spill
	mov	x24, x25
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mul	w9, w9, w24
	add	x19, x8, w9, sxtw #2
	stp	x26, x27, [sp, #8]
	str	x24, [sp]
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dprintk
	add	w8, w24, #1
Lloh44:
	adrp	x9, _NR_TX_DESC@GOTPAGE
Lloh45:
	ldr	x9, [x9, _NR_TX_DESC@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	udiv	w10, w8, w9
	msub	w23, w10, w9, w8
	ldr	w8, [x20, #16]
Lloh47:
	adrp	x9, _DESC_SIZE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _DESC_SIZE@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	mul	w9, w23, w9
	add	w0, w8, w9, lsl #2
	bl	_cpu_to_le32
Lloh50:
	adrp	x8, _DESC_LINK@GOTPAGE
Lloh51:
	ldr	x8, [x8, _DESC_LINK@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
Lloh53:
	adrp	x8, _DESC_BUFPTR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _DESC_BUFPTR@GOTPAGEOFF]
Lloh55:
	ldrsw	x8, [x8]
	add	x0, x19, x8, lsl #2
	mov	x1, x27
	bl	_desc_addr_set
	ldr	w0, [sp, #52]                   ; 4-byte Folded Reload
	bl	_cpu_to_le32
Lloh56:
	adrp	x8, _DESC_EXTSTS@GOTPAGE
Lloh57:
	ldr	x8, [x8, _DESC_EXTSTS@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
Lloh59:
	adrp	x8, _CMDSTS_MORE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _CMDSTS_MORE@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
Lloh62:
	adrp	x9, _CMDSTS_INTR@GOTPAGE
Lloh63:
	ldr	x9, [x9, _CMDSTS_INTR@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	ldr	w10, [sp, #48]                  ; 4-byte Folded Reload
	cmp	w25, w10
	csel	w9, w9, wzr, eq
	cmp	w28, #0
	csel	w8, w9, w8, eq
Lloh65:
	adrp	x9, _CMDSTS_OWN@GOTPAGE
Lloh66:
	ldr	x9, [x9, _CMDSTS_OWN@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	cmp	x19, x10
	csel	w9, wzr, w9, eq
	orr	w9, w9, w26
	orr	w0, w9, w8
	bl	_cpu_to_le32
Lloh68:
	adrp	x8, _DESC_CMDSTS@GOTPAGE
Lloh69:
	ldr	x8, [x8, _DESC_CMDSTS@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	cbz	w28, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x26, [x20, #40]
	mov	x0, x22
	bl	_skb_frag_size
	mov	x3, x0
Lloh71:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh73:
	ldr	w4, [x8]
	mov	x0, x26
	mov	x1, x22
	mov	w2, #0
	bl	_skb_frag_dma_map
	mov	x27, x0
	ldr	w0, [x22, #4]
	bl	_page_to_pfn
	ldr	w8, [x22]
	stp	x0, x8, [sp, #8]
	str	x27, [sp]
Lloh74:
	adrp	x0, l_.str.5@PAGE
Lloh75:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dprintk
	mov	x0, x22
	bl	_skb_frag_size
	mov	x26, x0
	sub	w28, w28, #1
	ldr	x8, [x20, #48]
Lloh76:
	adrp	x9, _DESC_SIZE@GOTPAGE
Lloh77:
	ldr	x9, [x9, _DESC_SIZE@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	add	x22, x22, #8
	mov	x24, x23
	b	LBB0_20
LBB0_22:
Lloh79:
	adrp	x0, l_.str.6@PAGE
Lloh80:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_dprintk
	add	x22, x20, #20
	mov	x0, x22
	bl	_spin_lock_irq
	ldr	x8, [x20, #32]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	x9, [x8, w24, uxtw #3]
Lloh81:
	adrp	x8, _CMDSTS_OWN@GOTPAGE
Lloh82:
	ldr	x8, [x8, _CMDSTS_OWN@GOTPAGEOFF]
Lloh83:
	ldr	w0, [x8]
	bl	_cpu_to_le32
Lloh84:
	adrp	x8, _DESC_CMDSTS@GOTPAGE
Lloh85:
	ldr	x8, [x8, _DESC_CMDSTS@GOTPAGEOFF]
Lloh86:
	ldr	x8, [x8]
	lsl	x8, x8, #2
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	ldr	w9, [x10, x8]
	orr	w9, w9, w0
	str	w9, [x10, x8]
	str	w23, [x20, #4]
	add	x0, x20, #24
	bl	_atomic_inc
	mov	x0, x22
	bl	_spin_unlock_irq
	mov	x0, x20
	bl	_kick_tx
	ldp	w9, w8, [sp, #32]               ; 8-byte Folded Reload
	cmp	w8, w9
	b.ge	LBB0_26
; %bb.23:
	ldr	w8, [x20, #8]
	cmp	w8, w21
	b.eq	LBB0_26
; %bb.24:
	mov	x0, x20
	bl	_start_tx_okay
	cbz	x0, LBB0_26
; %bb.25:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_netif_start_queue
LBB0_26:
Lloh87:
	adrp	x26, _NETDEV_TX_OK@GOTPAGE
Lloh88:
	ldr	x26, [x26, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_27:
	ldr	w0, [x26]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ns83820_hard_start_xmit\n"

	.comm	_CFG_LNKSTS,4,2                 ; @CFG_LNKSTS
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_NR_TX_DESC,4,2                 ; @NR_TX_DESC
l_.str.1:                               ; @.str.1
	.asciz	"stop_queue - not enough(%p)\n"

l_.str.2:                               ; @.str.2
	.asciz	"restart queue(%p)\n"

	.comm	_MIN_TX_DESC_FREE,4,2           ; @MIN_TX_DESC_FREE
l_.str.3:                               ; @.str.3
	.asciz	"stop_queue - last entry(%p)\n"

	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_EXTSTS_IPPKT,4,2               ; @EXTSTS_IPPKT
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_EXTSTS_TCPPKT,4,2              ; @EXTSTS_TCPPKT
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_EXTSTS_UDPPKT,4,2              ; @EXTSTS_UDPPKT
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_DESC_SIZE,4,2                  ; @DESC_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"frag[%3u]: %4u @ 0x%08Lx\n"

	.comm	_DESC_LINK,8,3                  ; @DESC_LINK
	.comm	_DESC_BUFPTR,4,2                ; @DESC_BUFPTR
	.comm	_DESC_EXTSTS,8,3                ; @DESC_EXTSTS
	.comm	_CMDSTS_MORE,4,2                ; @CMDSTS_MORE
	.comm	_CMDSTS_INTR,4,2                ; @CMDSTS_INTR
	.comm	_CMDSTS_OWN,4,2                 ; @CMDSTS_OWN
	.comm	_DESC_CMDSTS,8,3                ; @DESC_CMDSTS
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
l_.str.5:                               ; @.str.5
	.asciz	"frag: buf=%08Lx  page=%08lx offset=%08lx\n"

l_.str.6:                               ; @.str.6
	.asciz	"done pkt\n"

	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_EXTSTS_VPKT,4,2                ; @EXTSTS_VPKT
	.no_dead_strip	_ns83820_hard_start_xmit
.subsections_via_symbols
