	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phantom_remove
_phantom_remove:                        ## @phantom_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	%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, %r15
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	leaq	24(%rax), %r12
	movl	24(%rax), %edi
	callq	_MINOR
	movl	%eax, %r14d
	movq	_phantom_class@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_phantom_major@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_MKDEV
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_device_destroy
	movq	%r12, %rdi
	callq	_cdev_del
	movq	_PHN_IRQCTL@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	(%r12), %rdi
	addq	(%rbx), %rdi
	callq	_ioread32
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	16(%rbx), %rsi
	movq	%r15, %rdi
	callq	_pci_iounmap
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_pci_iounmap
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_pci_iounmap
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_pci_release_regions
	movq	_phantom_devices@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	movq	$0, (%rax,%rcx,8)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_disable_device             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_phantom_class,4,2              ## @phantom_class
	.comm	_phantom_major,4,2              ## @phantom_major
	.comm	_PHN_IRQCTL,8,3                 ## @PHN_IRQCTL
	.comm	_phantom_devices,8,3            ## @phantom_devices
	.no_dead_strip	_phantom_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phantom_remove
_phantom_remove:                        ; @phantom_remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x21, x0
	mov	x22, x0
	ldr	w0, [x22, #24]!
	bl	_MINOR
	mov	x20, x0
Lloh0:
	adrp	x8, _phantom_class@GOTPAGE
Lloh1:
	ldr	x8, [x8, _phantom_class@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _phantom_major@GOTPAGE
Lloh4:
	ldr	x8, [x8, _phantom_major@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x23
	bl	_device_destroy
	mov	x0, x22
	bl	_cdev_del
	ldr	x8, [x21]
Lloh6:
	adrp	x22, _PHN_IRQCTL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _PHN_IRQCTL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite32
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w0, [x19]
	mov	x1, x21
	bl	_free_irq
	ldr	x1, [x21, #16]
	mov	x0, x19
	bl	_pci_iounmap
	ldr	x1, [x21, #8]
	mov	x0, x19
	bl	_pci_iounmap
	ldr	x1, [x21]
	mov	x0, x19
	bl	_pci_iounmap
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_pci_release_regions
Lloh8:
	adrp	x8, _phantom_devices@GOTPAGE
Lloh9:
	ldr	x8, [x8, _phantom_devices@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	xzr, [x8, w20, uxtw #3]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pci_disable_device
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_phantom_class,4,2              ; @phantom_class
	.comm	_phantom_major,4,2              ; @phantom_major
	.comm	_PHN_IRQCTL,8,3                 ; @PHN_IRQCTL
	.comm	_phantom_devices,8,3            ; @phantom_devices
	.no_dead_strip	_phantom_remove
.subsections_via_symbols
