	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vortex_remove_one
_vortex_remove_one:                     ## @vortex_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
	movq	%rdi, %r15
	callq	_pci_get_drvdata
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	xorl	%eax, %eax
	callq	_BUG
LBB0_2:
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	32(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_pci_iounmap
LBB0_4:
	movq	%r14, %rdi
	callq	_unregister_netdev
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_set_power_state
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_pci_restore_state
LBB0_6:
	movq	%r15, %rdi
	callq	_pci_disable_device
	movq	_TotalReset@GOTPCREL(%rip), %rax
	movq	_EEPROM_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	(%rbx), %ecx
	sete	%dil
	shll	$4, %edi
	orl	(%rax), %edi
	orl	$4, %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_iowrite16
	movq	16(%rbx), %rsi
	movq	%r15, %rdi
	callq	_pci_iounmap
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addl	(%rax), %esi
	shll	$2, %esi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	callq	_dma_free_coherent
	movq	%r15, %rdi
	callq	_pci_release_regions
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vortex_remove_one called for Compaq device!\n"

	.comm	_PCI_D0,4,2                     ## @PCI_D0
	.comm	_TotalReset,4,2                 ## @TotalReset
	.comm	_EEPROM_RESET,4,2               ## @EEPROM_RESET
	.comm	_EL3_CMD,8,3                    ## @EL3_CMD
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.no_dead_strip	_vortex_remove_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vortex_remove_one
_vortex_remove_one:                     ; @vortex_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
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	bl	_BUG
LBB0_2:
	mov	x0, x20
	bl	_netdev_priv
	mov	x21, x0
	ldr	x1, [x0, #32]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_pci_iounmap
LBB0_4:
	mov	x0, x20
	bl	_unregister_netdev
Lloh2:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_set_power_state
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_pci_restore_state
LBB0_6:
	mov	x0, x19
	bl	_pci_disable_device
Lloh5:
	adrp	x8, _TotalReset@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TotalReset@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _EEPROM_RESET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EEPROM_RESET@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w10
	mov	w9, #4
	mov	w10, #20
	csel	w9, w10, w9, eq
	orr	w0, w9, w8
	ldr	x8, [x21, #16]
Lloh11:
	adrp	x9, _EL3_CMD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EL3_CMD@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite16
	ldr	x1, [x21, #16]
	mov	x0, x19
	bl	_pci_iounmap
Lloh14:
	adrp	x8, _RX_RING_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RX_RING_SIZE@GOTPAGEOFF]
Lloh16:
	adrp	x9, _TX_RING_SIZE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TX_RING_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	add	w8, w9, w8
	lsl	w1, w8, #2
	ldp	w3, w2, [x21, #4]
	mov	x0, x19
	bl	_dma_free_coherent
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vortex_remove_one called for Compaq device!\n"

	.comm	_PCI_D0,4,2                     ; @PCI_D0
	.comm	_TotalReset,4,2                 ; @TotalReset
	.comm	_EEPROM_RESET,4,2               ; @EEPROM_RESET
	.comm	_EL3_CMD,8,3                    ; @EL3_CMD
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.no_dead_strip	_vortex_remove_one
.subsections_via_symbols
