	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_driver_mmio_probe
_i915_driver_mmio_probe:                ## @i915_driver_mmio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_i915_inject_probe_failure
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_i915_get_bridge_dev
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_intel_uncore_init_mmio
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_intel_setup_mchbar
	movq	%r14, %rdi
	callq	_intel_device_info_init_mmio
	movq	%r15, %rdi
	callq	_intel_uncore_prune_mmio_domains
	leaq	8(%r14), %rdi
	callq	_intel_uc_init_mmio
	movq	%r14, %rdi
	callq	_intel_engines_init_mmio
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_intel_teardown_mchbar
	movq	%r15, %rdi
	callq	_intel_uncore_fini_mmio
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %ebx
LBB0_10:
	movl	(%r14), %edi
	callq	_pci_dev_put
	jmp	LBB0_11
LBB0_8:
	movq	%r14, %rdi
	callq	_i915_gem_init_mmio
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_i915_driver_mmio_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_mmio_probe
_i915_driver_mmio_probe:                ; @i915_driver_mmio_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
	bl	_i915_inject_probe_failure
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_i915_get_bridge_dev
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	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_6:
	add	x20, x19, #4
	mov	x0, x20
	bl	_intel_uncore_init_mmio
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_intel_setup_mchbar
	mov	x0, x19
	bl	_intel_device_info_init_mmio
	mov	x0, x20
	bl	_intel_uncore_prune_mmio_domains
	add	x0, x19, #8
	bl	_intel_uc_init_mmio
	mov	x0, x19
	bl	_intel_engines_init_mmio
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_intel_teardown_mchbar
	mov	x0, x20
	bl	_intel_uncore_fini_mmio
	b	LBB0_10
LBB0_9:
	mov	x21, x0
LBB0_10:
	ldr	w0, [x19]
	bl	_pci_dev_put
	b	LBB0_5
LBB0_11:
	mov	x0, x19
	bl	_i915_gem_init_mmio
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_i915_driver_mmio_probe
.subsections_via_symbols
