	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_driver_register
_i915_driver_register:                  ## @i915_driver_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	callq	_i915_gem_driver_register
	movq	%rbx, %rdi
	callq	_i915_pmu_register
	movq	%rbx, %rdi
	callq	_intel_vgpu_active
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_display_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vgtif_reg
	movq	_VGT_DRV_DISPLAY_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_dev_register
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_i915_debugfs_register
	movq	%rbx, %rdi
	callq	_i915_setup_sysfs
	movq	%rbx, %rdi
	callq	_i915_perf_register
LBB0_5:
	movq	%rbx, %rdi
	callq	_HAS_DISPLAY
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_intel_opregion_register
	xorl	%eax, %eax
	callq	_acpi_video_register
LBB0_7:
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_intel_gpu_ips_init
LBB0_9:
	movq	%rbx, %rdi
	callq	_intel_audio_init
	movq	%r14, %rdi
	callq	_intel_fbdev_initial_config_async
	movq	%rbx, %rdi
	callq	_HAS_DISPLAY
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_drm_kms_helper_poll_init
LBB0_11:
	movq	%rbx, %rdi
	callq	_intel_power_domains_enable
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_intel_runtime_pm_enable        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_display_ready,4,2              ## @display_ready
	.comm	_VGT_DRV_DISPLAY_READY,4,2      ## @VGT_DRV_DISPLAY_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register driver for userspace access!\n"

	.no_dead_strip	_i915_driver_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_driver_register
_i915_driver_register:                  ; @i915_driver_register
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x20, x0, #4
	bl	_i915_gem_driver_register
	mov	x0, x19
	bl	_i915_pmu_register
	mov	x0, x19
	bl	_intel_vgpu_active
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _display_ready@GOTPAGE
Lloh1:
	ldr	x8, [x8, _display_ready@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_vgtif_reg
Lloh3:
	adrp	x8, _VGT_DRV_DISPLAY_READY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VGT_DRV_DISPLAY_READY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_I915_WRITE
LBB0_2:
	mov	x0, x20
	mov	w1, #0
	bl	_drm_dev_register
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_i915_debugfs_register
	mov	x0, x19
	bl	_i915_setup_sysfs
	mov	x0, x19
	bl	_i915_perf_register
LBB0_5:
	mov	x0, x19
	bl	_HAS_DISPLAY
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_intel_opregion_register
	bl	_acpi_video_register
LBB0_7:
	mov	x0, x19
	mov	w1, #5
	bl	_IS_GEN
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_intel_gpu_ips_init
LBB0_9:
	mov	x0, x19
	bl	_intel_audio_init
	mov	x0, x20
	bl	_intel_fbdev_initial_config_async
	mov	x0, x19
	bl	_HAS_DISPLAY
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_drm_kms_helper_poll_init
LBB0_11:
	mov	x0, x19
	bl	_intel_power_domains_enable
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intel_runtime_pm_enable
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_display_ready,4,2              ; @display_ready
	.comm	_VGT_DRV_DISPLAY_READY,4,2      ; @VGT_DRV_DISPLAY_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register driver for userspace access!\n"

	.no_dead_strip	_i915_driver_register
.subsections_via_symbols
