	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_driver_probe              ## -- Begin function i915_driver_probe
	.p2align	4, 0x90
_i915_driver_probe:                     ## @i915_driver_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	(%rsi), %rbx
	callq	_i915_driver_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.19:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_i915_modparams@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	cmpl	$4, (%rbx)
	jg	LBB0_4
## %bb.3:
	movq	_DRIVER_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r12)
LBB0_4:
	movq	%r14, %rdi
	callq	_pci_enable_device
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.5:
	movq	%r12, %rdi
	callq	_i915_driver_early_probe
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	callq	_disable_rpm_wakeref_asserts
	movq	%r12, %rdi
	callq	_i915_detect_vgpu
	movq	%r12, %rdi
	callq	_i915_driver_mmio_probe
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%r12, %rdi
	callq	_i915_driver_hw_probe
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_i915_driver_modeset_probe
	testl	%eax, %eax
	js	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_i915_driver_register
	movq	%r12, %rdi
	callq	_enable_rpm_wakeref_asserts
	movq	%r12, %rdi
	callq	_i915_welcome_messages
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_6:
	movl	%eax, %r15d
	jmp	LBB0_16
LBB0_8:
	movl	%eax, %r15d
	jmp	LBB0_15
LBB0_10:
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_13:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_i915_driver_hw_remove
	movq	%r12, %rdi
	callq	_i915_ggtt_driver_release
	movq	%r12, %rdi
	callq	_intel_sanitize_gt_powersave
LBB0_14:
	movq	%r12, %rdi
	callq	_i915_driver_mmio_release
LBB0_15:
	movq	%r12, %rdi
	callq	_enable_rpm_wakeref_asserts
	movq	%r12, %rdi
	callq	_i915_driver_late_release
LBB0_16:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_17:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_i915_probe_error
	movq	%r12, %rdi
	callq	_i915_driver_destroy
LBB0_18:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_modparams,4,2             ## @i915_modparams
	.comm	_DRIVER_ATOMIC,4,2              ## @DRIVER_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device initialization failed (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_driver_probe              ; -- Begin function i915_driver_probe
	.p2align	2
_i915_driver_probe:                     ; @i915_driver_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	x20, x0
	ldr	x21, [x1]
	bl	_i915_driver_create
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	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
	b	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x8, _i915_modparams@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i915_modparams@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, #4
	b.gt	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _DRIVER_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRIVER_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_5:
	mov	x0, x20
	bl	_pci_enable_device
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.6:
	mov	x0, x19
	bl	_i915_driver_early_probe
	tbnz	w0, #31, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_disable_rpm_wakeref_asserts
	mov	x0, x19
	bl	_i915_detect_vgpu
	mov	x0, x19
	bl	_i915_driver_mmio_probe
	tbnz	w0, #31, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_i915_driver_hw_probe
	tbnz	w0, #31, LBB0_13
; %bb.9:
	add	x0, x19, #4
	bl	_i915_driver_modeset_probe
	tbnz	w0, #31, LBB0_14
; %bb.10:
	mov	x0, x19
	bl	_i915_driver_register
	mov	x0, x19
	bl	_enable_rpm_wakeref_asserts
	mov	x0, x19
	bl	_i915_welcome_messages
	mov	w21, #0
	b	LBB0_19
LBB0_11:
	mov	x21, x0
	b	LBB0_17
LBB0_12:
	mov	x21, x0
	b	LBB0_16
LBB0_13:
	mov	x21, x0
	b	LBB0_15
LBB0_14:
	mov	x21, x0
	mov	x0, x19
	bl	_i915_driver_hw_remove
	mov	x0, x19
	bl	_i915_ggtt_driver_release
	mov	x0, x19
	bl	_intel_sanitize_gt_powersave
LBB0_15:
	mov	x0, x19
	bl	_i915_driver_mmio_release
LBB0_16:
	mov	x0, x19
	bl	_enable_rpm_wakeref_asserts
	mov	x0, x19
	bl	_i915_driver_late_release
LBB0_17:
	mov	x0, x20
	bl	_pci_disable_device
LBB0_18:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_i915_probe_error
	mov	x0, x19
	bl	_i915_driver_destroy
LBB0_19:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_modparams,4,2             ; @i915_modparams
	.comm	_DRIVER_ATOMIC,4,2              ; @DRIVER_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device initialization failed (%d)\n"

.subsections_via_symbols
