	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spider_net_remove
_spider_net_remove:                     ## @spider_net_remove
	.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	_netdev_priv
	movq	%rax, %rbx
	movl	4(%rax), %r15d
	movq	%rax, %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	movl	%r15d, %edi
	callq	_wait_event
	movq	%r14, %rdi
	callq	_unregister_netdev
	movq	_SPIDER_NET_CKRCTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_SPIDER_NET_CKRCTRL_STOP_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_spider_net_write_reg
	movl	(%r15), %esi
	movq	_SPIDER_NET_CKRCTRL_RUN_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_spider_net_write_reg
	movq	%rbx, %rdi
	callq	_spider_net_undo_pci_setup
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPIDER_NET_CKRCTRL,4,2         ## @SPIDER_NET_CKRCTRL
	.comm	_SPIDER_NET_CKRCTRL_STOP_VALUE,4,2 ## @SPIDER_NET_CKRCTRL_STOP_VALUE
	.comm	_SPIDER_NET_CKRCTRL_RUN_VALUE,4,2 ## @SPIDER_NET_CKRCTRL_RUN_VALUE
	.no_dead_strip	_spider_net_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spider_net_remove
_spider_net_remove:                     ; @spider_net_remove
	.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	_netdev_priv
	mov	x20, x0
	ldr	w21, [x0, #4]
	bl	_atomic_read
	cmp	x0, #0
	cset	w1, eq
	mov	x0, x21
	bl	_wait_event
	mov	x0, x19
	bl	_unregister_netdev
Lloh0:
	adrp	x21, _SPIDER_NET_CKRCTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SPIDER_NET_CKRCTRL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _SPIDER_NET_CKRCTRL_STOP_VALUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SPIDER_NET_CKRCTRL_STOP_VALUE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_spider_net_write_reg
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _SPIDER_NET_CKRCTRL_RUN_VALUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPIDER_NET_CKRCTRL_RUN_VALUE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_spider_net_write_reg
	mov	x0, x20
	bl	_spider_net_undo_pci_setup
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SPIDER_NET_CKRCTRL,4,2         ; @SPIDER_NET_CKRCTRL
	.comm	_SPIDER_NET_CKRCTRL_STOP_VALUE,4,2 ; @SPIDER_NET_CKRCTRL_STOP_VALUE
	.comm	_SPIDER_NET_CKRCTRL_RUN_VALUE,4,2 ; @SPIDER_NET_CKRCTRL_RUN_VALUE
	.no_dead_strip	_spider_net_remove
.subsections_via_symbols
