	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns83820_add_rx_skb
_ns83820_add_rx_skb:                    ## @ns83820_add_rx_skb
	.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, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %r13d
	callq	_nr_rx_empty
	xorl	%edi, %edi
	cmpl	$3, %eax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_kfree_skb
	movl	$1, %r15d
	jmp	LBB0_4
LBB0_2:
	movq	_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	imull	%r13d, %r12d
	shlq	$2, %r12
	addq	16(%rbx), %r12
	movq	24(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax,%r13,8)
	setne	%dil
	callq	_BUG_ON
	movq	24(%rbx), %rax
	movq	%r14, (%rax,%r13,8)
	leal	1(%r13), %eax
	movq	_NR_RX_DESC@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%edx, (%rbx)
	movq	_REAL_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CMDSTS_INTR@GOTPCREL(%rip), %rax
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r13d
	orl	%edx, %r13d
	movl	40(%rbx), %edi
	movl	(%r14), %esi
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movl	%r13d, %r8d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_build_rx_desc
	xorl	%edi, %edi
	cmpl	4(%rbx), %r14d
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_DESC_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	imull	%r14d, %edi
	shll	$2, %edi
	addq	8(%rbx), %rdi
	callq	_cpu_to_le32
	movl	%eax, %ecx
	movq	16(%rbx), %rsi
	movq	_NR_RX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	(%r14,%rdi), %eax
	decl	%eax
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
	imull	(%r12), %edx
	movl	%ecx, (%rsi,%rdx,4)
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_SIZE,4,2                  ## @DESC_SIZE
	.comm	_NR_RX_DESC,4,2                 ## @NR_RX_DESC
	.comm	_REAL_RX_BUF_SIZE,4,2           ## @REAL_RX_BUF_SIZE
	.comm	_CMDSTS_INTR,4,2                ## @CMDSTS_INTR
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_ns83820_add_rx_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns83820_add_rx_skb
_ns83820_add_rx_skb:                    ; @ns83820_add_rx_skb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	w23, [x0]
	bl	_nr_rx_empty
	cmp	w0, #3
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_kfree_skb
	mov	w0, #1
	b	LBB0_4
LBB0_2:
Lloh0:
	adrp	x24, _DESC_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DESC_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	mul	w8, w8, w23
	ldp	x9, x10, [x19, #16]
	add	x21, x9, w8, uxtw #2
	lsl	x22, x23, #3
	ldr	x8, [x10, x22]
	cmp	x8, #0
	cset	w0, ne
	bl	_BUG_ON
	ldr	x8, [x19, #24]
	str	x20, [x8, x22]
	add	w8, w23, #1
Lloh2:
	adrp	x25, _NR_RX_DESC@GOTPAGE
Lloh3:
	ldr	x25, [x25, _NR_RX_DESC@GOTPAGEOFF]
	ldr	w9, [x25]
	udiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19]
Lloh4:
	adrp	x8, _REAL_RX_BUF_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REAL_RX_BUF_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _CMDSTS_INTR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMDSTS_INTR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w22, w8, w2
	ldr	w0, [x19, #40]
	ldr	w1, [x20]
Lloh10:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	bl	_pci_map_single
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x4, x22
	mov	w5, #0
	bl	_build_rx_desc
	ldr	w8, [x19, #4]
	cmp	w23, w8
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w9, [x24]
	mul	w9, w23, w9
	lsl	w9, w9, #2
	add	x0, x8, x9
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #16]
	ldr	w10, [x25]
	add	w11, w23, w10
	sub	w11, w11, #1
	udiv	w12, w11, w10
	msub	w10, w12, w10, w11
	ldr	w11, [x24]
	mul	w10, w11, w10
	str	w8, [x9, w10, uxtw #2]
LBB0_4:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_SIZE,4,2                  ; @DESC_SIZE
	.comm	_NR_RX_DESC,4,2                 ; @NR_RX_DESC
	.comm	_REAL_RX_BUF_SIZE,4,2           ; @REAL_RX_BUF_SIZE
	.comm	_CMDSTS_INTR,4,2                ; @CMDSTS_INTR
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_ns83820_add_rx_skb
.subsections_via_symbols
