	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns83820_open
_ns83820_open:                          ## @ns83820_open
	.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	%rdi, %rbx
	callq	_PRIV
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	_PQCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_ns83820_setup_rx
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_ns83820_stop
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	40(%r12), %rdi
	movq	_NR_TX_DESC@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_DESC_SIZE@GOTPCREL(%rip), %r13
	imull	(%r13), %edx
	shll	$2, %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%r14), %ebx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	imull	(%r13), %edx
	leal	(,%rdx,4), %edi
	addq	16(%r12), %rdi
	callq	_cpu_to_le32
	imull	(%r13), %r14d
	movq	_DESC_LINK@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r14d
	movq	40(%r12), %rcx
	movl	%eax, (%rcx,%r14,4)
	movl	(%r15), %ecx
	movl	%ebx, %r14d
	cmpl	%ecx, %ebx
	jb	LBB0_2
LBB0_3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12)
	movq	16(%r12), %rbx
	movq	_TXDP_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_writel
	movq	_TXDP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movq	_ns83820_tx_watch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	addq	%rsi, %rsi
	addq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_mod_timer
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_start_queue
LBB0_5:
	movl	%r15d, %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	"ns83820_open\n"

	.comm	_PQCR,8,3                       ## @PQCR
	.comm	_NR_TX_DESC,4,2                 ## @NR_TX_DESC
	.comm	_DESC_SIZE,4,2                  ## @DESC_SIZE
	.comm	_DESC_LINK,4,2                  ## @DESC_LINK
	.comm	_TXDP_HI,8,3                    ## @TXDP_HI
	.comm	_TXDP,8,3                       ## @TXDP
	.comm	_ns83820_tx_watch,4,2           ## @ns83820_tx_watch
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_ns83820_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns83820_open
_ns83820_open:                          ; @ns83820_open
	.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	x19, x0
	bl	_PRIV
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _PQCR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PQCR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, #0
	bl	_writel
	mov	x0, x19
	bl	_ns83820_setup_rx
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_ns83820_stop
	b	LBB0_6
LBB0_2:
	ldr	x0, [x20, #40]
Lloh5:
	adrp	x21, _NR_TX_DESC@GOTPAGE
Lloh6:
	ldr	x21, [x21, _NR_TX_DESC@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh7:
	adrp	x22, _DESC_SIZE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _DESC_SIZE@GOTPAGEOFF]
	ldr	w9, [x22]
	mul	w8, w8, w9
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.3:
	mov	w24, #0
Lloh9:
	adrp	x23, _DESC_LINK@GOTPAGE
Lloh10:
	ldr	x23, [x23, _DESC_LINK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	add	w25, w24, #1
	udiv	w10, w25, w8
	msub	w8, w10, w8, w25
	ldr	w10, [x22]
	mul	w8, w8, w10
	lsl	w8, w8, #2
	add	x0, x9, x8
	bl	_cpu_to_le32
	ldr	x8, [x20, #40]
	ldr	w9, [x22]
	ldr	w10, [x23]
	madd	w9, w9, w24, w10
	str	w0, [x8, w9, uxtw #2]
	ldr	w8, [x21]
	mov	x24, x25
	cmp	w25, w8
	b.lo	LBB0_4
LBB0_5:
	stp	xzr, xzr, [x20, #24]
	ldp	x8, x21, [x20, #8]
Lloh11:
	adrp	x9, _TXDP_HI@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TXDP_HI@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, #0
	bl	_writel
	ldr	x8, [x20, #8]
Lloh14:
	adrp	x9, _TXDP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TXDP@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
Lloh17:
	adrp	x8, _ns83820_tx_watch@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ns83820_tx_watch@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_timer_setup
Lloh20:
	adrp	x8, _jiffies@GOTPAGE
Lloh21:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _HZ@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh25:
	ldrsw	x9, [x9]
	add	x1, x8, x9, lsl #1
	mov	x0, x20
	bl	_mod_timer
	mov	x0, x19
	bl	_netif_start_queue
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ns83820_open\n"

	.comm	_PQCR,8,3                       ; @PQCR
	.comm	_NR_TX_DESC,4,2                 ; @NR_TX_DESC
	.comm	_DESC_SIZE,4,2                  ; @DESC_SIZE
	.comm	_DESC_LINK,4,2                  ; @DESC_LINK
	.comm	_TXDP_HI,8,3                    ; @TXDP_HI
	.comm	_TXDP,8,3                       ; @TXDP
	.comm	_ns83820_tx_watch,4,2           ; @ns83820_tx_watch
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_ns83820_open
.subsections_via_symbols
