	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_init_hw               ## -- Begin function i915_gem_init_hw
	.p2align	4, 0x90
_i915_gem_init_hw:                      ## @i915_gem_init_hw
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	4(%rdi), %r15
	xorl	%edi, %edi
	cmpl	$0, (%r12)
	sete	%dil
	callq	_BUG_ON
	movq	%r15, %rdi
	callq	_intel_gt_terminally_wedged
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	leaq	12(%r12), %r14
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, 8(%r12)
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_intel_uncore_forcewake_get
	movq	%r12, %rdi
	callq	_HAS_EDRAM
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$8, %eax
	jg	LBB0_4
## %bb.3:
	movq	_HSW_IDICR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$15, %edi
	callq	_IDIHASHMSK
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_intel_uncore_rmw
LBB0_4:
	movq	%r12, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	_MI_PREDICATE_RESULT_2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_IS_HSW_GT3
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	_LOWER_SLICE_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_LOWER_SLICE_ENABLED@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_intel_uncore_write
LBB0_9:
	movq	%r15, %rdi
	callq	_intel_gt_apply_workarounds
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_intel_gt_verify_workarounds
	movq	%r15, %rdi
	callq	_intel_gt_init_swizzling
	movq	%r15, %rdi
	callq	_init_unused_rings
	movq	%r15, %rdi
	callq	_i915_ppgtt_init_hw
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_14
LBB0_11:
	movq	%r15, %rdi
	callq	_intel_uc_init_hw
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_i915_probe_error
	jmp	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	callq	_intel_mocs_init
	xorl	%ebx, %ebx
LBB0_14:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_intel_uncore_forcewake_put
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FORCEWAKE_ALL,4,2              ## @FORCEWAKE_ALL
	.comm	_HSW_IDICR,4,2                  ## @HSW_IDICR
	.comm	_MI_PREDICATE_RESULT_2,4,2      ## @MI_PREDICATE_RESULT_2
	.comm	_LOWER_SLICE_ENABLED,4,2        ## @LOWER_SLICE_ENABLED
	.comm	_LOWER_SLICE_DISABLED,4,2       ## @LOWER_SLICE_DISABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init"

L_.str.1:                               ## @.str.1
	.asciz	"Enabling PPGTT failed (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Enabling uc failed (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_init_hw               ; -- Begin function i915_gem_init_hw
	.p2align	2
_i915_gem_init_hw:                      ; @i915_gem_init_hw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	mov	x21, x0
	ldr	w8, [x21], #4
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x21
	bl	_intel_gt_terminally_wedged
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.1:
	add	x19, x20, #12
	bl	_ktime_get
	str	w0, [x20, #8]
Lloh0:
	adrp	x23, _FORCEWAKE_ALL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FORCEWAKE_ALL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_intel_uncore_forcewake_get
	mov	x0, x20
	bl	_HAS_EDRAM
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #8
	b.gt	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _HSW_IDICR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HSW_IDICR@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	w0, #15
	bl	_IDIHASHMSK
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_intel_uncore_rmw
LBB0_4:
	mov	x0, x20
	bl	_IS_HASWELL
	cbz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _MI_PREDICATE_RESULT_2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MI_PREDICATE_RESULT_2@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_IS_HSW_GT3
Lloh8:
	adrp	x8, _LOWER_SLICE_ENABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOWER_SLICE_ENABLED@GOTPAGEOFF]
Lloh10:
	adrp	x9, _LOWER_SLICE_DISABLED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LOWER_SLICE_DISABLED@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_intel_uncore_write
LBB0_6:
	mov	x0, x21
	bl	_intel_gt_apply_workarounds
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_intel_gt_verify_workarounds
	mov	x0, x21
	bl	_intel_gt_init_swizzling
	mov	x0, x21
	bl	_init_unused_rings
	mov	x0, x21
	bl	_i915_ppgtt_init_hw
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_DRM_ERROR
	b	LBB0_11
LBB0_8:
	mov	x0, x21
	bl	_intel_uc_init_hw
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.9:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_i915_probe_error
	b	LBB0_11
LBB0_10:
	mov	x0, x21
	bl	_intel_mocs_init
LBB0_11:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_intel_uncore_forcewake_put
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FORCEWAKE_ALL,4,2              ; @FORCEWAKE_ALL
	.comm	_HSW_IDICR,4,2                  ; @HSW_IDICR
	.comm	_MI_PREDICATE_RESULT_2,4,2      ; @MI_PREDICATE_RESULT_2
	.comm	_LOWER_SLICE_ENABLED,4,2        ; @LOWER_SLICE_ENABLED
	.comm	_LOWER_SLICE_DISABLED,4,2       ; @LOWER_SLICE_DISABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init"

l_.str.1:                               ; @.str.1
	.asciz	"Enabling PPGTT failed (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Enabling uc failed (%d)\n"

.subsections_via_symbols
