	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns83820_remove_one
_ns83820_remove_one:                    ## @ns83820_remove_one
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PRIV
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ns83820_disable_interrupts
	movq	%r14, %rdi
	callq	_unregister_netdev
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movl	24(%rbx), %edi
	callq	_iounmap
	movq	_DESC_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_NR_TX_DESC@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movq	(%rbx), %rdi
	shll	$2, %esi
	movl	20(%rbx), %edx
	movl	16(%rbx), %ecx
	callq	_pci_free_consistent
	movl	(%r15), %esi
	movq	_NR_RX_DESC@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movq	(%rbx), %rdi
	shll	$2, %esi
	movl	12(%rbx), %edx
	movl	8(%rbx), %ecx
	callq	_pci_free_consistent
	movq	(%rbx), %rdi
	callq	_pci_disable_device
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_SIZE,4,2                  ## @DESC_SIZE
	.comm	_NR_TX_DESC,4,2                 ## @NR_TX_DESC
	.comm	_NR_RX_DESC,4,2                 ## @NR_RX_DESC
	.no_dead_strip	_ns83820_remove_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns83820_remove_one
_ns83820_remove_one:                    ; @ns83820_remove_one
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_pci_get_drvdata
	mov	x19, x0
	bl	_PRIV
	cbz	x19, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_ns83820_disable_interrupts
	mov	x0, x19
	bl	_unregister_netdev
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x20, #24]
	bl	_iounmap
	ldr	x0, [x20]
Lloh0:
	adrp	x21, _DESC_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DESC_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x8, _NR_TX_DESC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NR_TX_DESC@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh4:
	ldr	w8, [x8]
	mul	w8, w9, w8
	lsl	w1, w8, #2
	ldp	w3, w2, [x20, #16]
	bl	_pci_free_consistent
	ldr	x0, [x20]
Lloh5:
	adrp	x8, _NR_RX_DESC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NR_RX_DESC@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh7:
	ldr	w8, [x8]
	mul	w8, w9, w8
	lsl	w1, w8, #2
	ldp	w3, w2, [x20, #8]
	bl	_pci_free_consistent
	ldr	x0, [x20]
	bl	_pci_disable_device
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_free_netdev
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_SIZE,4,2                  ; @DESC_SIZE
	.comm	_NR_TX_DESC,4,2                 ; @NR_TX_DESC
	.comm	_NR_RX_DESC,4,2                 ; @NR_RX_DESC
	.no_dead_strip	_ns83820_remove_one
.subsections_via_symbols
