	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_load_modeset_init
_i915_load_modeset_init:                ## @i915_load_modeset_init
	.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
	movq	16(%rdi), %r15
	callq	_intel_parse_bios
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
LBB0_2:
	movl	4(%r14), %edi
	movq	_i915_vga_set_decode@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_vga_client_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_15
LBB0_4:
	xorl	%eax, %eax
	callq	_intel_register_dsm_handler
	movl	4(%r14), %edi
	movq	_i915_switcheroo_ops@GOTPCREL(%rip), %rsi
	callq	_vga_switcheroo_register_client
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movq	%r14, %rdi
	callq	_i915_gem_init_stolen
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	%r14, %rdi
	callq	_drm_irq_install
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	%r14, %rdi
	callq	_intel_modeset_init
	movq	%r14, %rdi
	callq	_i915_gem_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	leaq	16(%r15), %rdi
	movq	_intel_console_resume@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r14, %rdi
	callq	_intel_modeset_gem_init
	movl	$1, (%r14)
	movq	%r14, %rdi
	callq	_intel_fbdev_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_i915_gem_cleanup_ringbuffer
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_i915_gem_cleanup_aliasing_ppgtt
LBB0_11:
	movq	%r14, %rdi
	callq	_drm_irq_uninstall
LBB0_12:
	movq	%r14, %rdi
	callq	_i915_gem_cleanup_stolen
LBB0_13:
	movl	4(%r14), %edi
	callq	_vga_switcheroo_unregister_client
LBB0_14:
	movl	4(%r14), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vga_client_register
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	_intel_hpd_init
	movq	%r14, %rdi
	callq	_intel_fbdev_initial_config
	movl	$1, (%r15)
	movq	%r14, %rdi
	callq	_drm_kms_helper_poll_init
	movq	$0, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find VBIOS tables\n"

	.comm	_i915_vga_set_decode,8,3        ## @i915_vga_set_decode
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_i915_switcheroo_ops,4,2        ## @i915_switcheroo_ops
	.comm	_intel_console_resume,4,2       ## @intel_console_resume
	.no_dead_strip	_i915_load_modeset_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_load_modeset_init
_i915_load_modeset_init:                ; @i915_load_modeset_init
	.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	x21, [x0, #16]
	bl	_intel_parse_bios
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
LBB0_2:
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x8, _i915_vga_set_decode@GOTPAGE
Lloh3:
	ldr	x8, [x8, _i915_vga_set_decode@GOTPAGEOFF]
Lloh4:
	ldr	x3, [x8]
	mov	x1, x19
	mov	x2, #0
	bl	_vga_client_register
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_14
LBB0_4:
	bl	_intel_register_dsm_handler
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, _i915_switcheroo_ops@GOTPAGE
Lloh9:
	ldr	x1, [x1, _i915_switcheroo_ops@GOTPAGEOFF]
	bl	_vga_switcheroo_register_client
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.5:
	mov	x0, x19
	bl	_i915_gem_init_stolen
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.6:
	mov	x0, x19
	bl	_drm_irq_install
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_intel_modeset_init
	mov	x0, x19
	bl	_i915_gem_init
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.8:
	add	x0, x21, #16
Lloh10:
	adrp	x8, _intel_console_resume@GOTPAGE
Lloh11:
	ldr	x8, [x8, _intel_console_resume@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x19
	bl	_intel_modeset_gem_init
	mov	w22, #1
	str	w22, [x19]
	mov	x0, x19
	bl	_intel_fbdev_init
	mov	x20, x0
	cbz	w0, LBB0_15
; %bb.9:
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	bl	_i915_gem_cleanup_ringbuffer
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	bl	_i915_gem_cleanup_aliasing_ppgtt
LBB0_10:
	mov	x0, x19
	bl	_drm_irq_uninstall
LBB0_11:
	mov	x0, x19
	bl	_i915_gem_cleanup_stolen
LBB0_12:
	ldr	w0, [x19, #4]
	bl	_vga_switcheroo_unregister_client
LBB0_13:
	ldr	w0, [x19, #4]
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_vga_client_register
LBB0_14:
	mov	x0, x20
	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_15:
	mov	x0, x19
	bl	_intel_hpd_init
	mov	x0, x19
	bl	_intel_fbdev_initial_config
	str	w22, [x21]
	mov	x0, x19
	bl	_drm_kms_helper_poll_init
	str	xzr, [x21, #8]
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find VBIOS tables\n"

	.comm	_i915_vga_set_decode,8,3        ; @i915_vga_set_decode
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_i915_switcheroo_ops,4,2        ; @i915_switcheroo_ops
	.comm	_intel_console_resume,4,2       ; @intel_console_resume
	.no_dead_strip	_i915_load_modeset_init
.subsections_via_symbols
