	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function microcode_init_cpu
_microcode_init_cpu:                    ## @microcode_init_cpu
	.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
	movl	%edi, %r14d
	callq	_collect_cpu_info
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_UCODE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_system_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SYSTEM_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_microcode_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_microcode_pdev@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	%r14d, %edi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	_UCODE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_debug
	movl	%r14d, %edi
	callq	_apply_microcode_on_target
	jmp	LBB0_7
LBB0_5:
	movq	_UCODE_NFOUND@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCODE_ERROR,4,2                ## @UCODE_ERROR
	.comm	_system_state,8,3               ## @system_state
	.comm	_SYSTEM_RUNNING,8,3             ## @SYSTEM_RUNNING
	.comm	_UCODE_NFOUND,4,2               ## @UCODE_NFOUND
	.comm	_microcode_ops,8,3              ## @microcode_ops
	.comm	_microcode_pdev,8,3             ## @microcode_pdev
	.comm	_UCODE_OK,4,2                   ## @UCODE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"microcode: CPU%d updated upon init\n"

	.no_dead_strip	_microcode_init_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function microcode_init_cpu
_microcode_init_cpu:                    ; @microcode_init_cpu
	.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	_collect_cpu_info
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _UCODE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UCODE_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh2:
	adrp	x8, _system_state@GOTPAGE
Lloh3:
	ldr	x8, [x8, _system_state@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _SYSTEM_RUNNING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SYSTEM_RUNNING@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _microcode_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _microcode_ops@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _microcode_pdev@GOTPAGE
Lloh12:
	ldr	x9, [x9, _microcode_pdev@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x9]
	mov	x0, x19
	blr	x8
	mov	x20, x0
Lloh14:
	adrp	x8, _UCODE_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UCODE_OK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.4:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	mov	x0, x19
	bl	_apply_microcode_on_target
	b	LBB0_7
LBB0_5:
Lloh19:
	adrp	x8, _UCODE_NFOUND@GOTPAGE
Lloh20:
	ldr	x8, [x8, _UCODE_NFOUND@GOTPAGEOFF]
LBB0_6:
	ldr	w20, [x8]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_UCODE_ERROR,4,2                ; @UCODE_ERROR
	.comm	_system_state,8,3               ; @system_state
	.comm	_SYSTEM_RUNNING,8,3             ; @SYSTEM_RUNNING
	.comm	_UCODE_NFOUND,4,2               ; @UCODE_NFOUND
	.comm	_microcode_ops,8,3              ; @microcode_ops
	.comm	_microcode_pdev,8,3             ; @microcode_pdev
	.comm	_UCODE_OK,4,2                   ; @UCODE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"microcode: CPU%d updated upon init\n"

	.no_dead_strip	_microcode_init_cpu
.subsections_via_symbols
