	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_driver_modeset_probe
_i915_driver_modeset_probe:             ## @i915_driver_modeset_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, %r15
	callq	_to_i915
	movq	%rax, %r12
	movq	(%rax), %r14
	movq	%rax, %rdi
	callq	_i915_inject_probe_failure
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	callq	_HAS_DISPLAY
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_INTEL_INFO
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_drm_vblank_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
LBB0_4:
	movq	%r12, %rdi
	callq	_intel_bios_init
	movq	_i915_vga_set_decode@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_vga_client_register
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_18
LBB0_6:
	xorl	%eax, %eax
	callq	_intel_register_dsm_handler
	movq	_i915_switcheroo_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_vga_switcheroo_register_client
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	movq	%r12, %rdi
	callq	_intel_update_rawclk
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_intel_power_domains_init_hw
	movq	%r12, %rdi
	callq	_intel_csr_ucode_init
	movq	%r12, %rdi
	callq	_intel_irq_install
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movq	%r12, %rdi
	callq	_intel_gmbus_setup
	movq	%r15, %rdi
	callq	_intel_modeset_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	%r12, %rdi
	callq	_i915_gem_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_14:
	movq	%r15, %rdi
	callq	_intel_modeset_driver_remove
LBB0_15:
	movq	%r12, %rdi
	callq	_intel_irq_uninstall
	movq	%r12, %rdi
	callq	_intel_gmbus_teardown
LBB0_16:
	movq	%r12, %rdi
	callq	_intel_csr_ucode_fini
	movq	%r12, %rdi
	callq	_intel_power_domains_driver_remove
	movq	%r14, %rdi
	callq	_vga_switcheroo_unregister_client
LBB0_17:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vga_client_register
	jmp	LBB0_18
LBB0_10:
	movq	%r12, %rdi
	callq	_intel_overlay_setup
	movq	%r12, %rdi
	callq	_HAS_DISPLAY
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movq	%r15, %rdi
	callq	_intel_fbdev_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_i915_gem_suspend
	movq	%r12, %rdi
	callq	_i915_gem_driver_remove
	movq	%r12, %rdi
	callq	_i915_gem_driver_release
	movl	%r13d, %ebx
	jmp	LBB0_14
LBB0_12:
	movq	%r12, %rdi
	callq	_intel_hpd_init
	movq	%r12, %rdi
	callq	_intel_init_ipc
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_i915_vga_set_decode,8,3        ## @i915_vga_set_decode
	.comm	_i915_switcheroo_ops,4,2        ## @i915_switcheroo_ops
	.no_dead_strip	_i915_driver_modeset_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_driver_modeset_probe
_i915_driver_modeset_probe:             ; @i915_driver_modeset_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	x21, x0
	bl	_to_i915
	mov	x20, x0
	ldr	x19, [x0]
	bl	_i915_inject_probe_failure
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_2:
	mov	x0, x22
	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_3:
	mov	x0, x20
	bl	_HAS_DISPLAY
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w1, [x0]
	mov	x0, x20
	bl	_drm_vblank_init
	mov	x22, x0
	cbnz	w0, LBB0_2
LBB0_5:
	mov	x0, x20
	bl	_intel_bios_init
Lloh3:
	adrp	x8, _i915_vga_set_decode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _i915_vga_set_decode@GOTPAGEOFF]
Lloh5:
	ldr	x3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_vga_client_register
	cbz	w0, LBB0_7
; %bb.6:
	mov	x22, x0
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
LBB0_7:
	bl	_intel_register_dsm_handler
Lloh9:
	adrp	x1, _i915_switcheroo_ops@GOTPAGE
Lloh10:
	ldr	x1, [x1, _i915_switcheroo_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	bl	_vga_switcheroo_register_client
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.8:
	mov	x0, x20
	bl	_intel_update_rawclk
	mov	x0, x20
	mov	w1, #0
	bl	_intel_power_domains_init_hw
	mov	x0, x20
	bl	_intel_csr_ucode_init
	mov	x0, x20
	bl	_intel_irq_install
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.9:
	mov	x0, x20
	bl	_intel_gmbus_setup
	mov	x0, x21
	bl	_intel_modeset_init
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_i915_gem_init
	mov	x22, x0
	cbz	w0, LBB0_15
LBB0_11:
	mov	x0, x21
	bl	_intel_modeset_driver_remove
LBB0_12:
	mov	x0, x20
	bl	_intel_irq_uninstall
	mov	x0, x20
	bl	_intel_gmbus_teardown
LBB0_13:
	mov	x0, x20
	bl	_intel_csr_ucode_fini
	mov	x0, x20
	bl	_intel_power_domains_driver_remove
	mov	x0, x19
	bl	_vga_switcheroo_unregister_client
LBB0_14:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_vga_client_register
	b	LBB0_2
LBB0_15:
	mov	x0, x20
	bl	_intel_overlay_setup
	mov	x0, x20
	bl	_HAS_DISPLAY
	cbz	x0, LBB0_18
; %bb.16:
	mov	x0, x21
	bl	_intel_fbdev_init
	mov	x22, x0
	cbz	w0, LBB0_19
; %bb.17:
	mov	x0, x20
	bl	_i915_gem_suspend
	mov	x0, x20
	bl	_i915_gem_driver_remove
	mov	x0, x20
	bl	_i915_gem_driver_release
	b	LBB0_11
LBB0_18:
	mov	w22, #0
	b	LBB0_2
LBB0_19:
	mov	x0, x20
	bl	_intel_hpd_init
	mov	x0, x20
	bl	_intel_init_ipc
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_i915_vga_set_decode,8,3        ; @i915_vga_set_decode
	.comm	_i915_switcheroo_ops,4,2        ; @i915_switcheroo_ops
	.no_dead_strip	_i915_driver_modeset_probe
.subsections_via_symbols
