	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_csr_ucode_init           ## -- Begin function intel_csr_ucode_init
	.p2align	4, 0x90
_intel_csr_ucode_init:                  ## @intel_csr_ucode_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_csr_load_work_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%rbx, %rdi
	callq	_HAS_CSR
	testl	%eax, %eax
	je	LBB0_21
## %bb.1:
	movq	%rbx, %rdi
	callq	_intel_csr_runtime_pm_get
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jle	LBB0_3
## %bb.2:
	movq	_GEN12_CSR_MAX_FW_SIZE@GOTPCREL(%rip), %r14
	movq	_TGL_CSR_VERSION_REQUIRED@GOTPCREL(%rip), %r15
	movq	_TGL_CSR_PATH@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	movl	$11, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ICL_CSR_MAX_FW_SIZE@GOTPCREL(%rip), %r14
	movq	_ICL_CSR_VERSION_REQUIRED@GOTPCREL(%rip), %r15
	movq	_ICL_CSR_PATH@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_5:
	movq	%rbx, %rdi
	callq	_IS_CANNONLAKE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_CNL_CSR_MAX_FW_SIZE@GOTPCREL(%rip), %r14
	movq	_CNL_CSR_VERSION_REQUIRED@GOTPCREL(%rip), %r15
	movq	_CNL_CSR_PATH@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_7:
	movq	%rbx, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_GLK_CSR_MAX_FW_SIZE@GOTPCREL(%rip), %r14
	movq	_GLK_CSR_VERSION_REQUIRED@GOTPCREL(%rip), %r15
	movq	_GLK_CSR_PATH@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_9:
	movq	%rbx, %rdi
	callq	_IS_KABYLAKE
	movq	_KBL_CSR_MAX_FW_SIZE@GOTPCREL(%rip), %r14
	movq	_KBL_CSR_VERSION_REQUIRED@GOTPCREL(%rip), %r15
	movq	_KBL_CSR_PATH@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:
	movq	%rbx, %rdi
	callq	_IS_COFFEELAKE
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	callq	_IS_SKYLAKE
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_SKL_CSR_MAX_FW_SIZE@GOTPCREL(%rip), %r14
	movq	_SKL_CSR_VERSION_REQUIRED@GOTPCREL(%rip), %r15
	movq	_SKL_CSR_PATH@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_13:
	movq	%rbx, %rdi
	callq	_IS_BROXTON
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_BXT_CSR_MAX_FW_SIZE@GOTPCREL(%rip), %r14
	movq	_BXT_CSR_VERSION_REQUIRED@GOTPCREL(%rip), %r15
	movq	_BXT_CSR_PATH@GOTPCREL(%rip), %r12
LBB0_15:
	movq	(%r12), %rax
	movq	%rax, 8(%rbx)
	movq	(%r15), %rax
	movq	%rax, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
LBB0_16:
	movq	_i915_modparams@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.17:
	cmpb	$0, (%rsi)
	je	LBB0_22
## %bb.18:
	movq	%rsi, 8(%rbx)
	movq	$0, 16(%rbx)
	jmp	LBB0_20
LBB0_19:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_23
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
LBB0_22:
	movq	$0, 8(%rbx)
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_INFO                       ## TAILCALL
LBB0_23:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_csr_load_work_fn,4,2           ## @csr_load_work_fn
	.comm	_TGL_CSR_PATH,8,3               ## @TGL_CSR_PATH
	.comm	_TGL_CSR_VERSION_REQUIRED,8,3   ## @TGL_CSR_VERSION_REQUIRED
	.comm	_GEN12_CSR_MAX_FW_SIZE,4,2      ## @GEN12_CSR_MAX_FW_SIZE
	.comm	_ICL_CSR_PATH,8,3               ## @ICL_CSR_PATH
	.comm	_ICL_CSR_VERSION_REQUIRED,8,3   ## @ICL_CSR_VERSION_REQUIRED
	.comm	_ICL_CSR_MAX_FW_SIZE,4,2        ## @ICL_CSR_MAX_FW_SIZE
	.comm	_CNL_CSR_PATH,8,3               ## @CNL_CSR_PATH
	.comm	_CNL_CSR_VERSION_REQUIRED,8,3   ## @CNL_CSR_VERSION_REQUIRED
	.comm	_CNL_CSR_MAX_FW_SIZE,4,2        ## @CNL_CSR_MAX_FW_SIZE
	.comm	_GLK_CSR_PATH,8,3               ## @GLK_CSR_PATH
	.comm	_GLK_CSR_VERSION_REQUIRED,8,3   ## @GLK_CSR_VERSION_REQUIRED
	.comm	_GLK_CSR_MAX_FW_SIZE,4,2        ## @GLK_CSR_MAX_FW_SIZE
	.comm	_KBL_CSR_PATH,8,3               ## @KBL_CSR_PATH
	.comm	_KBL_CSR_VERSION_REQUIRED,8,3   ## @KBL_CSR_VERSION_REQUIRED
	.comm	_KBL_CSR_MAX_FW_SIZE,4,2        ## @KBL_CSR_MAX_FW_SIZE
	.comm	_SKL_CSR_PATH,8,3               ## @SKL_CSR_PATH
	.comm	_SKL_CSR_VERSION_REQUIRED,8,3   ## @SKL_CSR_VERSION_REQUIRED
	.comm	_SKL_CSR_MAX_FW_SIZE,4,2        ## @SKL_CSR_MAX_FW_SIZE
	.comm	_BXT_CSR_PATH,8,3               ## @BXT_CSR_PATH
	.comm	_BXT_CSR_VERSION_REQUIRED,8,3   ## @BXT_CSR_VERSION_REQUIRED
	.comm	_BXT_CSR_MAX_FW_SIZE,4,2        ## @BXT_CSR_MAX_FW_SIZE
	.comm	_i915_modparams,8,3             ## @i915_modparams
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling CSR firmware and runtime PM\n"

L_.str.1:                               ## @.str.1
	.asciz	"No known CSR firmware for platform, disabling runtime PM\n"

L_.str.2:                               ## @.str.2
	.asciz	"Loading %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_csr_ucode_init           ; -- Begin function intel_csr_ucode_init
	.p2align	2
_intel_csr_ucode_init:                  ; @intel_csr_ucode_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _csr_load_work_fn@GOTPAGE
Lloh1:
	ldr	x8, [x8, _csr_load_work_fn@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x19
	bl	_HAS_CSR
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_intel_csr_runtime_pm_get
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #11
	b.le	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _GEN12_CSR_MAX_FW_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN12_CSR_MAX_FW_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _TGL_CSR_VERSION_REQUIRED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TGL_CSR_VERSION_REQUIRED@GOTPAGEOFF]
Lloh7:
	adrp	x10, _TGL_CSR_PATH@GOTPAGE
Lloh8:
	ldr	x10, [x10, _TGL_CSR_PATH@GOTPAGEOFF]
	b	LBB0_13
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	mov	x0, x19
	mov	w1, #11
	bl	_IS_GEN
	cbz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _ICL_CSR_MAX_FW_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICL_CSR_MAX_FW_SIZE@GOTPAGEOFF]
Lloh11:
	adrp	x9, _ICL_CSR_VERSION_REQUIRED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ICL_CSR_VERSION_REQUIRED@GOTPAGEOFF]
Lloh13:
	adrp	x10, _ICL_CSR_PATH@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ICL_CSR_PATH@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	mov	x0, x19
	bl	_IS_CANNONLAKE
	cbz	x0, LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _CNL_CSR_MAX_FW_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CNL_CSR_MAX_FW_SIZE@GOTPAGEOFF]
Lloh17:
	adrp	x9, _CNL_CSR_VERSION_REQUIRED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CNL_CSR_VERSION_REQUIRED@GOTPAGEOFF]
Lloh19:
	adrp	x10, _CNL_CSR_PATH@GOTPAGE
Lloh20:
	ldr	x10, [x10, _CNL_CSR_PATH@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	mov	x0, x19
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_10
; %bb.9:
Lloh21:
	adrp	x8, _GLK_CSR_MAX_FW_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GLK_CSR_MAX_FW_SIZE@GOTPAGEOFF]
Lloh23:
	adrp	x9, _GLK_CSR_VERSION_REQUIRED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GLK_CSR_VERSION_REQUIRED@GOTPAGEOFF]
Lloh25:
	adrp	x10, _GLK_CSR_PATH@GOTPAGE
Lloh26:
	ldr	x10, [x10, _GLK_CSR_PATH@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_IS_KABYLAKE
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_IS_COFFEELAKE
	cbz	x0, LBB0_21
LBB0_12:
Lloh27:
	adrp	x8, _KBL_CSR_MAX_FW_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _KBL_CSR_MAX_FW_SIZE@GOTPAGEOFF]
Lloh29:
	adrp	x9, _KBL_CSR_VERSION_REQUIRED@GOTPAGE
Lloh30:
	ldr	x9, [x9, _KBL_CSR_VERSION_REQUIRED@GOTPAGEOFF]
Lloh31:
	adrp	x10, _KBL_CSR_PATH@GOTPAGE
Lloh32:
	ldr	x10, [x10, _KBL_CSR_PATH@GOTPAGEOFF]
LBB0_13:
	ldr	x10, [x10]
	ldr	x9, [x9]
	stp	x10, x9, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_14:
Lloh33:
	adrp	x8, _i915_modparams@GOTPAGE
Lloh34:
	ldr	x8, [x8, _i915_modparams@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.15:
	ldrb	w9, [x8]
	cbz	w9, LBB0_19
; %bb.16:
	stp	x8, xzr, [x19, #8]
	b	LBB0_18
LBB0_17:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
LBB0_18:
	str	x8, [sp]
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_schedule_work
LBB0_19:
	str	xzr, [x19, #8]
Lloh38:
	adrp	x0, l_.str@PAGE
Lloh39:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_DRM_INFO
LBB0_20:
Lloh40:
	adrp	x0, l_.str.1@PAGE
Lloh41:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_DRM_DEBUG_KMS
LBB0_21:
	mov	x0, x19
	bl	_IS_SKYLAKE
	cbz	x0, LBB0_23
; %bb.22:
Lloh42:
	adrp	x8, _SKL_CSR_MAX_FW_SIZE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SKL_CSR_MAX_FW_SIZE@GOTPAGEOFF]
Lloh44:
	adrp	x9, _SKL_CSR_VERSION_REQUIRED@GOTPAGE
Lloh45:
	ldr	x9, [x9, _SKL_CSR_VERSION_REQUIRED@GOTPAGEOFF]
Lloh46:
	adrp	x10, _SKL_CSR_PATH@GOTPAGE
Lloh47:
	ldr	x10, [x10, _SKL_CSR_PATH@GOTPAGEOFF]
	b	LBB0_13
LBB0_23:
	mov	x0, x19
	bl	_IS_BROXTON
	cbz	x0, LBB0_14
; %bb.24:
Lloh48:
	adrp	x8, _BXT_CSR_MAX_FW_SIZE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BXT_CSR_MAX_FW_SIZE@GOTPAGEOFF]
Lloh50:
	adrp	x9, _BXT_CSR_VERSION_REQUIRED@GOTPAGE
Lloh51:
	ldr	x9, [x9, _BXT_CSR_VERSION_REQUIRED@GOTPAGEOFF]
Lloh52:
	adrp	x10, _BXT_CSR_PATH@GOTPAGE
Lloh53:
	ldr	x10, [x10, _BXT_CSR_PATH@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_csr_load_work_fn,4,2           ; @csr_load_work_fn
	.comm	_TGL_CSR_PATH,8,3               ; @TGL_CSR_PATH
	.comm	_TGL_CSR_VERSION_REQUIRED,8,3   ; @TGL_CSR_VERSION_REQUIRED
	.comm	_GEN12_CSR_MAX_FW_SIZE,4,2      ; @GEN12_CSR_MAX_FW_SIZE
	.comm	_ICL_CSR_PATH,8,3               ; @ICL_CSR_PATH
	.comm	_ICL_CSR_VERSION_REQUIRED,8,3   ; @ICL_CSR_VERSION_REQUIRED
	.comm	_ICL_CSR_MAX_FW_SIZE,4,2        ; @ICL_CSR_MAX_FW_SIZE
	.comm	_CNL_CSR_PATH,8,3               ; @CNL_CSR_PATH
	.comm	_CNL_CSR_VERSION_REQUIRED,8,3   ; @CNL_CSR_VERSION_REQUIRED
	.comm	_CNL_CSR_MAX_FW_SIZE,4,2        ; @CNL_CSR_MAX_FW_SIZE
	.comm	_GLK_CSR_PATH,8,3               ; @GLK_CSR_PATH
	.comm	_GLK_CSR_VERSION_REQUIRED,8,3   ; @GLK_CSR_VERSION_REQUIRED
	.comm	_GLK_CSR_MAX_FW_SIZE,4,2        ; @GLK_CSR_MAX_FW_SIZE
	.comm	_KBL_CSR_PATH,8,3               ; @KBL_CSR_PATH
	.comm	_KBL_CSR_VERSION_REQUIRED,8,3   ; @KBL_CSR_VERSION_REQUIRED
	.comm	_KBL_CSR_MAX_FW_SIZE,4,2        ; @KBL_CSR_MAX_FW_SIZE
	.comm	_SKL_CSR_PATH,8,3               ; @SKL_CSR_PATH
	.comm	_SKL_CSR_VERSION_REQUIRED,8,3   ; @SKL_CSR_VERSION_REQUIRED
	.comm	_SKL_CSR_MAX_FW_SIZE,4,2        ; @SKL_CSR_MAX_FW_SIZE
	.comm	_BXT_CSR_PATH,8,3               ; @BXT_CSR_PATH
	.comm	_BXT_CSR_VERSION_REQUIRED,8,3   ; @BXT_CSR_VERSION_REQUIRED
	.comm	_BXT_CSR_MAX_FW_SIZE,4,2        ; @BXT_CSR_MAX_FW_SIZE
	.comm	_i915_modparams,8,3             ; @i915_modparams
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling CSR firmware and runtime PM\n"

l_.str.1:                               ; @.str.1
	.asciz	"No known CSR firmware for platform, disabling runtime PM\n"

l_.str.2:                               ; @.str.2
	.asciz	"Loading %s\n"

.subsections_via_symbols
