	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vbox_pci_probe
_vbox_pci_probe:                        ## @vbox_pci_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_VBE_DISPI_ID_HGSMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vbox_check_supported
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_driver@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_drm_dev_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_21
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, 8(%r15)
	movq	%r15, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	leaq	24(%r15), %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.8:
	movq	%r15, %rdi
	callq	_vbox_hw_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.9:
	movq	%r15, %rdi
	callq	_vbox_mm_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:
	movq	%r15, %rdi
	callq	_vbox_mode_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movq	%r15, %rdi
	callq	_vbox_irq_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movq	%r15, %rsi
	addq	$20, %rsi
	movl	16(%r15), %r8d
	movq	_vbox_fb_helper_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movl	$32, %ecx
	callq	_drm_fb_helper_fbdev_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_drm_dev_register
	testl	%eax, %eax
	je	LBB0_21
## %bb.14:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_vbox_fbdev_fini
	movl	%r12d, %ebx
LBB0_15:
	movq	%r15, %rdi
	callq	_vbox_irq_fini
LBB0_16:
	movq	%r15, %rdi
	callq	_vbox_mode_fini
LBB0_17:
	movq	%r15, %rdi
	callq	_vbox_mm_fini
LBB0_18:
	movq	%r15, %rdi
	callq	_vbox_hw_fini
LBB0_19:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_20:
	movq	%r15, %rdi
	callq	_drm_dev_put
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_VBE_DISPI_ID_HGSMI,4,2         ## @VBE_DISPI_ID_HGSMI
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_driver,4,2                     ## @driver
	.comm	_vbox_fb_helper_funcs,4,2       ## @vbox_fb_helper_funcs
	.no_dead_strip	_vbox_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vbox_pci_probe
_vbox_pci_probe:                        ; @vbox_pci_probe
	.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
Lloh0:
	adrp	x8, _VBE_DISPI_ID_HGSMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VBE_DISPI_ID_HGSMI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_vbox_check_supported
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x1, _driver@GOTPAGE
Lloh7:
	ldr	x1, [x1, _driver@GOTPAGEOFF]
	mov	x2, x19
	bl	_drm_dev_init
	cbz	w0, LBB0_8
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_kfree
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	stp	x20, x19, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	add	x0, x20, #24
	bl	_mutex_init
	mov	x0, x19
	bl	_pci_enable_device
	mov	x21, x0
	cbnz	w0, LBB0_21
; %bb.9:
	mov	x0, x20
	bl	_vbox_hw_init
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.10:
	mov	x0, x20
	bl	_vbox_mm_init
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.11:
	mov	x0, x20
	bl	_vbox_mode_init
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.12:
	mov	x0, x20
	bl	_vbox_irq_init
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.13:
	add	x1, x20, #20
	ldr	w4, [x20, #16]
Lloh12:
	adrp	x2, _vbox_fb_helper_funcs@GOTPAGE
Lloh13:
	ldr	x2, [x2, _vbox_fb_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #32
	bl	_drm_fb_helper_fbdev_setup
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.14:
	mov	x0, x20
	mov	w1, #0
	bl	_drm_dev_register
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.15:
	mov	x0, x20
	bl	_vbox_fbdev_fini
LBB0_16:
	mov	x0, x20
	bl	_vbox_irq_fini
LBB0_17:
	mov	x0, x20
	bl	_vbox_mode_fini
LBB0_18:
	mov	x0, x20
	bl	_vbox_mm_fini
LBB0_19:
	mov	x0, x20
	bl	_vbox_hw_fini
LBB0_20:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_21:
	mov	x0, x20
	bl	_drm_dev_put
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VBE_DISPI_ID_HGSMI,4,2         ; @VBE_DISPI_ID_HGSMI
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_driver,4,2                     ; @driver
	.comm	_vbox_fb_helper_funcs,4,2       ; @vbox_fb_helper_funcs
	.no_dead_strip	_vbox_pci_probe
.subsections_via_symbols
