	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phantom_probe
_phantom_probe:                         ## @phantom_probe
	.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, %r14
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	addq	$4, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_28
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_phantom_get_free
	movl	%eax, %r12d
	movq	_PHANTOM_MAX_MINORS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_4
## %bb.3:
	leaq	4(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_phantom_devices@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%r12d, %r13d
	movl	$1, (%rax,%r13,4)
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	leaq	4(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pci_iomap
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_pci_iomap
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_pci_iomap
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	leaq	36(%r15), %rdi
	callq	_mutex_init
	leaq	32(%r15), %rdi
	callq	_spin_lock_init
	leaq	28(%r15), %rdi
	callq	_init_waitqueue_head
	movq	%r15, %rdi
	addq	$24, %rdi
	movq	_phantom_file_ops@GOTPCREL(%rip), %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_cdev_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_PHN_IRQCTL@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	(%r15), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movslq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	movl	(%r14), %edi
	movq	_phantom_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_23
## %bb.17:
	movl	%eax, %ebx
	leaq	4(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_18
LBB0_9:
	leaq	4(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_22
LBB0_11:
	leaq	4(%r14), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_21
LBB0_13:
	leaq	4(%r14), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_20
LBB0_15:
	leaq	4(%r14), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_19
LBB0_23:
	movq	_phantom_major@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_MKDEV
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	$1, %edx
	callq	_cdev_add
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movl	%eax, %ebx
	leaq	4(%r14), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_dev_err
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_free_irq
LBB0_18:
	movq	16(%r15), %rsi
	movq	%r14, %rdi
	callq	_pci_iounmap
LBB0_19:
	movq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_pci_iounmap
LBB0_20:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_pci_iounmap
LBB0_21:
	movq	%r15, %rdi
	callq	_kfree
LBB0_22:
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	_phantom_devices@GOTPCREL(%rip), %r15
LBB0_6:
	movq	(%r15), %rax
	movl	$0, (%rax,%r13,4)
LBB0_7:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_phantom_class@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	4(%r14), %r13
	movq	_phantom_major@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_MKDEV
	leaq	L_.str.10(%rip), %r8
	xorl	%ebx, %ebx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movl	%r12d, %r9d
	callq	_device_create
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_27:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci_enable_device failed!\n"

	.comm	_PHANTOM_MAX_MINORS,4,2         ## @PHANTOM_MAX_MINORS
L_.str.1:                               ## @.str.1
	.asciz	"too many devices found!\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_phantom_devices,8,3            ## @phantom_devices
L_.str.2:                               ## @.str.2
	.asciz	"phantom"

L_.str.3:                               ## @.str.3
	.asciz	"pci_request_regions failed!\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.4:                               ## @.str.4
	.asciz	"unable to allocate device\n"

L_.str.5:                               ## @.str.5
	.asciz	"can't remap conf space\n"

L_.str.6:                               ## @.str.6
	.asciz	"can't remap input space\n"

L_.str.7:                               ## @.str.7
	.asciz	"can't remap output space\n"

	.comm	_phantom_file_ops,4,2           ## @phantom_file_ops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_PHN_IRQCTL,4,2                 ## @PHN_IRQCTL
	.comm	_phantom_isr,4,2                ## @phantom_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.8:                               ## @.str.8
	.asciz	"can't establish ISR\n"

	.comm	_phantom_major,4,2              ## @phantom_major
L_.str.9:                               ## @.str.9
	.asciz	"chardev registration failed\n"

	.comm	_phantom_class,4,2              ## @phantom_class
L_.str.10:                              ## @.str.10
	.asciz	"phantom%u"

L_.str.11:                              ## @.str.11
	.asciz	"can't create device\n"

	.no_dead_strip	_phantom_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phantom_probe
_phantom_probe:                         ; @phantom_probe
	.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	_pci_enable_device
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	add	x0, x19, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_25
LBB0_2:
	bl	_phantom_get_free
Lloh2:
	adrp	x8, _PHANTOM_MAX_MINORS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PHANTOM_MAX_MINORS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	add	x0, x19, #4
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_24
LBB0_4:
	mov	x20, x0
Lloh10:
	adrp	x24, _phantom_devices@GOTPAGE
Lloh11:
	ldr	x24, [x24, _phantom_devices@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w9, #1
	str	w9, [x8, w0, uxtw #2]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_pci_request_regions
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
	add	x0, x19, #4
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_23
LBB0_6:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
Lloh19:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.7:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_pci_iomap
	str	x0, [x21]
	cbz	x0, LBB0_13
; %bb.8:
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	bl	_pci_iomap
	str	x0, [x21, #8]
	cbz	x0, LBB0_14
; %bb.9:
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	bl	_pci_iomap
	str	x0, [x21, #16]
	cbz	x0, LBB0_15
; %bb.10:
	add	x0, x21, #36
	bl	_mutex_init
	add	x0, x21, #32
	bl	_spin_lock_init
	add	x0, x21, #28
	bl	_init_waitqueue_head
	add	x23, x21, #24
Lloh22:
	adrp	x1, _phantom_file_ops@GOTPAGE
Lloh23:
	ldr	x1, [x1, _phantom_file_ops@GOTPAGEOFF]
	mov	x0, x23
	bl	_cdev_init
Lloh24:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	ldr	x8, [x21]
Lloh27:
	adrp	x22, _PHN_IRQCTL@GOTPAGE
Lloh28:
	ldr	x22, [x22, _PHN_IRQCTL@GOTPAGEOFF]
	ldrsw	x9, [x22]
	add	x1, x8, x9, lsl #2
	mov	w0, #0
	bl	_iowrite32
	ldr	x8, [x21]
	ldrsw	x9, [x22]
	add	x0, x8, x9, lsl #2
	bl	_ioread32
	ldr	w0, [x19]
Lloh29:
	adrp	x8, _phantom_isr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _phantom_isr@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x3, l_.str.2@PAGE
Lloh36:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x4, x21
	bl	_request_irq
	cbz	w0, LBB0_16
; %bb.11:
	mov	x22, x0
	add	x0, x19, #4
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_err
	b	LBB0_18
LBB0_12:
	add	x0, x19, #4
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_22
LBB0_13:
	add	x0, x19, #4
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
	b	LBB0_21
LBB0_14:
	add	x0, x19, #4
Lloh43:
	adrp	x1, l_.str.6@PAGE
Lloh44:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
	b	LBB0_20
LBB0_15:
	add	x0, x19, #4
Lloh45:
	adrp	x1, l_.str.7@PAGE
Lloh46:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
	b	LBB0_19
LBB0_16:
Lloh47:
	adrp	x25, _phantom_major@GOTPAGE
Lloh48:
	ldr	x25, [x25, _phantom_major@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x20
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x23
	mov	w2, #1
	bl	_cdev_add
	cbz	w0, LBB0_26
; %bb.17:
	mov	x22, x0
	add	x0, x19, #4
Lloh49:
	adrp	x1, l_.str.9@PAGE
Lloh50:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19]
	mov	x1, x21
	bl	_free_irq
LBB0_18:
	ldr	x1, [x21, #16]
	mov	x0, x19
	bl	_pci_iounmap
LBB0_19:
	ldr	x1, [x21, #8]
	mov	x0, x19
	bl	_pci_iounmap
LBB0_20:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_pci_iounmap
LBB0_21:
	mov	x0, x21
	bl	_kfree
LBB0_22:
	mov	x0, x19
	bl	_pci_release_regions
LBB0_23:
	mov	w8, w20
	ldr	x9, [x24]
	str	wzr, [x9, x8, lsl #2]
LBB0_24:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_25:
	mov	x0, x22
	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
LBB0_26:
Lloh51:
	adrp	x8, _phantom_class@GOTPAGE
Lloh52:
	ldr	x8, [x8, _phantom_class@GOTPAGEOFF]
Lloh53:
	ldr	w23, [x8]
	add	x22, x19, #4
	ldr	w0, [x25]
	mov	x1, x20
	bl	_MKDEV
	mov	x2, x0
Lloh54:
	adrp	x4, l_.str.10@PAGE
Lloh55:
	add	x4, x4, l_.str.10@PAGEOFF
	mov	x0, x23
	mov	x1, x22
	mov	x3, #0
	mov	x5, x20
	bl	_device_create
	bl	_IS_ERR
	cbz	x0, LBB0_28
; %bb.27:
Lloh56:
	adrp	x1, l_.str.11@PAGE
Lloh57:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_28:
	mov	x0, x19
	mov	x1, x21
	bl	_pci_set_drvdata
	mov	w22, #0
	b	LBB0_25
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_enable_device failed!\n"

	.comm	_PHANTOM_MAX_MINORS,4,2         ; @PHANTOM_MAX_MINORS
l_.str.1:                               ; @.str.1
	.asciz	"too many devices found!\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_phantom_devices,8,3            ; @phantom_devices
l_.str.2:                               ; @.str.2
	.asciz	"phantom"

l_.str.3:                               ; @.str.3
	.asciz	"pci_request_regions failed!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.4:                               ; @.str.4
	.asciz	"unable to allocate device\n"

l_.str.5:                               ; @.str.5
	.asciz	"can't remap conf space\n"

l_.str.6:                               ; @.str.6
	.asciz	"can't remap input space\n"

l_.str.7:                               ; @.str.7
	.asciz	"can't remap output space\n"

	.comm	_phantom_file_ops,4,2           ; @phantom_file_ops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_PHN_IRQCTL,4,2                 ; @PHN_IRQCTL
	.comm	_phantom_isr,4,2                ; @phantom_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.8:                               ; @.str.8
	.asciz	"can't establish ISR\n"

	.comm	_phantom_major,4,2              ; @phantom_major
l_.str.9:                               ; @.str.9
	.asciz	"chardev registration failed\n"

	.comm	_phantom_class,4,2              ; @phantom_class
l_.str.10:                              ; @.str.10
	.asciz	"phantom%u"

l_.str.11:                              ; @.str.11
	.asciz	"can't create device\n"

	.no_dead_strip	_phantom_probe
.subsections_via_symbols
