	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_driver_hw_probe
_i915_driver_hw_probe:                  ## @i915_driver_hw_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, %r15
	movq	8(%rdi), %r14
	callq	_i915_inject_probe_failure
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_3:
	movq	%r15, %rdi
	callq	_intel_device_info_runtime_init
	movq	%r15, %rdi
	callq	_HAS_PPGTT
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_intel_vgpu_active
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_intel_vgpu_has_full_ppgtt
	testl	%eax, %eax
	je	LBB0_12
LBB0_6:
	movq	%r15, %rdi
	callq	_HAS_EXECLISTS
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	callq	_intel_vgpu_active
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_intel_vgpu_has_hwsp_emulation
	testl	%eax, %eax
	je	LBB0_13
LBB0_9:
	movq	%r15, %rdi
	callq	_intel_sanitize_options
	movq	%r15, %rdi
	callq	_edram_detect
	movq	%r15, %rdi
	callq	_i915_perf_init
	movq	%r15, %rdi
	callq	_i915_ggtt_probe_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.10:
	movq	%r15, %rdi
	callq	_i915_kick_out_firmware_fb
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_26
LBB0_12:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
LBB0_14:
	movq	%r15, %rdi
	callq	_i915_report_error
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	movq	%r14, %rdi
	callq	_vga_remove_vgacon
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
LBB0_26:
	callq	_DRM_ERROR
LBB0_27:
	movq	%r15, %rdi
	callq	_i915_ggtt_driver_release
LBB0_28:
	movq	%r15, %rdi
	callq	_i915_perf_fini
LBB0_29:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r15, %rdi
	callq	_i915_ggtt_init_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.18:
	movq	%r15, %rdi
	callq	_intel_gt_init_hw
	movq	%r15, %rdi
	callq	_i915_ggtt_enable_hw
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_26
LBB0_20:
	movq	%r14, %rdi
	callq	_pci_set_master
	leaq	8(%r14), %r12
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dma_set_max_seg_size
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	$30, %edi
	callq	_DMA_BIT_MASK
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_set_coherent_mask
	testl	%eax, %eax
	jne	LBB0_25
LBB0_22:
	movq	%r15, %rdi
	callq	_IS_I965G
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	_IS_I965GM
	testq	%rax, %rax
	je	LBB0_30
LBB0_24:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_set_coherent_mask
	testl	%eax, %eax
	je	LBB0_30
LBB0_25:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_26
LBB0_30:
	movq	_PM_QOS_CPU_DMA_LATENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PM_QOS_DEFAULT_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_pm_qos_add_request
	movq	%r15, %rdi
	callq	_intel_sanitize_gt_powersave
	movq	%r15, %rdi
	callq	_intel_gt_init_workarounds
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$5, %eax
	jl	LBB0_33
## %bb.31:
	movq	%r14, %rdi
	callq	_pci_enable_msi
	testq	%rax, %rax
	jns	LBB0_33
## %bb.32:
	leaq	L_.str.6(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_33:
	movq	%r15, %rdi
	callq	_intel_gvt_init
	testl	%eax, %eax
	je	LBB0_37
## %bb.34:
	movl	%eax, %ebx
	cmpq	$0, (%r14)
	je	LBB0_36
## %bb.35:
	movq	%r14, %rdi
	callq	_pci_disable_msi
LBB0_36:
	movq	%r15, %rdi
	callq	_pm_qos_remove_request
	jmp	LBB0_27
LBB0_37:
	movq	%r15, %rdi
	callq	_intel_opregion_setup
	movq	%r15, %rdi
	callq	_intel_get_dram_info
	movq	%r15, %rdi
	callq	_intel_bw_init_hw
	xorl	%ebx, %ebx
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incompatible vGPU found, support for isolated ppGTT required\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"old vGPU host found, support for HWSP emulation required\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to remove conflicting framebuffer drivers\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to remove conflicting VGA console\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to enable GGTT\n"

	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
L_.str.5:                               ## @.str.5
	.asciz	"failed to set DMA mask\n"

	.comm	_PM_QOS_CPU_DMA_LATENCY,4,2     ## @PM_QOS_CPU_DMA_LATENCY
	.comm	_PM_QOS_DEFAULT_VALUE,4,2       ## @PM_QOS_DEFAULT_VALUE
L_.str.6:                               ## @.str.6
	.asciz	"can't enable MSI"

	.no_dead_strip	_i915_driver_hw_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_hw_probe
_i915_driver_hw_probe:                  ; @i915_driver_hw_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
	ldr	x20, [x0, #8]
	bl	_i915_inject_probe_failure
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_20
LBB0_3:
	mov	x0, x19
	bl	_intel_device_info_runtime_init
	mov	x0, x19
	bl	_HAS_PPGTT
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_intel_vgpu_active
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_intel_vgpu_has_full_ppgtt
	cbz	w0, LBB0_12
LBB0_6:
	mov	x0, x19
	bl	_HAS_EXECLISTS
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_intel_vgpu_active
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_intel_vgpu_has_hwsp_emulation
	cbz	w0, LBB0_13
LBB0_9:
	mov	x0, x19
	bl	_intel_sanitize_options
	mov	x0, x19
	bl	_edram_detect
	mov	x0, x19
	bl	_i915_perf_init
	mov	x0, x19
	bl	_i915_ggtt_probe_hw
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.10:
	mov	x0, x19
	bl	_i915_kick_out_firmware_fb
	cbz	w0, LBB0_15
; %bb.11:
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_12:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_i915_report_error
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
	mov	x0, x20
	bl	_vga_remove_vgacon
	cbz	w0, LBB0_21
; %bb.16:
	mov	x21, x0
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_17:
	bl	_DRM_ERROR
LBB0_18:
	mov	x0, x19
	bl	_i915_ggtt_driver_release
LBB0_19:
	mov	x0, x19
	bl	_i915_perf_fini
LBB0_20:
	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_21:
	mov	x0, x19
	bl	_i915_ggtt_init_hw
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.22:
	mov	x0, x19
	bl	_intel_gt_init_hw
	mov	x0, x19
	bl	_i915_ggtt_enable_hw
	cbz	w0, LBB0_24
; %bb.23:
	mov	x21, x0
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_24:
	mov	x0, x20
	bl	_pci_set_master
	add	x22, x20, #8
Lloh14:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_dma_set_max_seg_size
	mov	x0, x19
	mov	w1, #2
	bl	_IS_GEN
	cbz	x0, LBB0_26
; %bb.25:
	mov	w0, #30
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x22
	bl	_dma_set_coherent_mask
	cbnz	w0, LBB0_29
LBB0_26:
	mov	x0, x19
	bl	_IS_I965G
	cbnz	x0, LBB0_28
; %bb.27:
	mov	x0, x19
	bl	_IS_I965GM
	cbz	x0, LBB0_30
LBB0_28:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x22
	bl	_dma_set_coherent_mask
	cbz	w0, LBB0_30
LBB0_29:
	mov	x21, x0
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_30:
Lloh19:
	adrp	x8, _PM_QOS_CPU_DMA_LATENCY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PM_QOS_CPU_DMA_LATENCY@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _PM_QOS_DEFAULT_VALUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PM_QOS_DEFAULT_VALUE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pm_qos_add_request
	mov	x0, x19
	bl	_intel_sanitize_gt_powersave
	mov	x0, x19
	bl	_intel_gt_init_workarounds
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #5
	b.lt	LBB0_33
; %bb.31:
	mov	x0, x20
	bl	_pci_enable_msi
	tbz	x0, #63, LBB0_33
; %bb.32:
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_33:
	mov	x0, x19
	bl	_intel_gvt_init
	mov	x21, x0
	cbz	w0, LBB0_37
; %bb.34:
	ldr	x8, [x20]
	cbz	x8, LBB0_36
; %bb.35:
	mov	x0, x20
	bl	_pci_disable_msi
LBB0_36:
	mov	x0, x19
	bl	_pm_qos_remove_request
	b	LBB0_18
LBB0_37:
	mov	x0, x19
	bl	_intel_opregion_setup
	mov	x0, x19
	bl	_intel_get_dram_info
	mov	x0, x19
	bl	_intel_bw_init_hw
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incompatible vGPU found, support for isolated ppGTT required\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"old vGPU host found, support for HWSP emulation required\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to remove conflicting framebuffer drivers\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to remove conflicting VGA console\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to enable GGTT\n"

	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
l_.str.5:                               ; @.str.5
	.asciz	"failed to set DMA mask\n"

	.comm	_PM_QOS_CPU_DMA_LATENCY,4,2     ; @PM_QOS_CPU_DMA_LATENCY
	.comm	_PM_QOS_DEFAULT_VALUE,4,2       ; @PM_QOS_DEFAULT_VALUE
l_.str.6:                               ; @.str.6
	.asciz	"can't enable MSI"

	.no_dead_strip	_i915_driver_hw_probe
.subsections_via_symbols
