	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_uc_fw_init               ## -- Begin function intel_uc_fw_init
	.p2align	4, 0x90
_intel_uc_fw_init:                      ## @intel_uc_fw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_intel_uc_fw_is_loaded
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movq	%r14, %rdi
	callq	_intel_uc_fw_is_available
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	4(%r14), %edi
	callq	_i915_gem_object_pin_pages
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_intel_uc_fw_type_repr
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_DRM_DEBUG_DRIVER
	movq	_INTEL_UC_FIRMWARE_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_intel_uc_fw_change_status
	jmp	LBB0_5
LBB0_1:
	movq	_ENOEXEC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOEXEC,4,2                    ## @ENOEXEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s fw pin-pages err=%d\n"

	.comm	_INTEL_UC_FIRMWARE_FAIL,4,2     ## @INTEL_UC_FIRMWARE_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_uc_fw_init               ; -- Begin function intel_uc_fw_init
	.p2align	2
_intel_uc_fw_init:                      ; @intel_uc_fw_init
	.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
	bl	_intel_uc_fw_is_loaded
	bl	_GEM_BUG_ON
	mov	x0, x19
	bl	_intel_uc_fw_is_available
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_i915_gem_object_pin_pages
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_intel_uc_fw_type_repr
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEBUG_DRIVER
Lloh2:
	adrp	x8, _INTEL_UC_FIRMWARE_FAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTEL_UC_FIRMWARE_FAIL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_uc_fw_change_status
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENOEXEC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOEXEC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOEXEC,4,2                    ; @ENOEXEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s fw pin-pages err=%d\n"

	.comm	_INTEL_UC_FIRMWARE_FAIL,4,2     ; @INTEL_UC_FIRMWARE_FAIL
.subsections_via_symbols
