	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reload_for_cpu
_reload_for_cpu:                        ## @reload_for_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_ucode_cpu_info@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movslq	%edi, %rbx
	movq	_microcode_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	xorl	%r14d, %r14d
	cmpq	$0, (%r12,%rbx,8)
	je	LBB0_5
## %bb.1:
	movq	_microcode_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_microcode_pdev@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	%r15d, %edi
	callq	*(%rax)
	movq	_UCODE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movl	%r15d, %edi
	callq	_apply_microcode_on_target
	jmp	LBB0_5
LBB0_3:
	movq	_UCODE_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movq	_microcode_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ucode_cpu_info,8,3             ## @ucode_cpu_info
	.comm	_microcode_mutex,4,2            ## @microcode_mutex
	.comm	_microcode_ops,8,3              ## @microcode_ops
	.comm	_microcode_pdev,8,3             ## @microcode_pdev
	.comm	_UCODE_OK,4,2                   ## @UCODE_OK
	.comm	_UCODE_ERROR,4,2                ## @UCODE_ERROR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_reload_for_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reload_for_cpu
_reload_for_cpu:                        ; @reload_for_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
Lloh0:
	adrp	x8, _ucode_cpu_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ucode_cpu_info@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x0, _microcode_mutex@GOTPAGE
Lloh4:
	ldr	x0, [x0, _microcode_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x20, w19, sxtw #3]
	cbz	x8, LBB0_5
; %bb.1:
Lloh5:
	adrp	x8, _microcode_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _microcode_ops@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _microcode_pdev@GOTPAGE
Lloh9:
	ldr	x9, [x9, _microcode_pdev@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x9]
	mov	x0, x19
	blr	x8
Lloh11:
	adrp	x8, _UCODE_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UCODE_OK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_apply_microcode_on_target
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _UCODE_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UCODE_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
Lloh20:
	adrp	x0, _microcode_mutex@GOTPAGE
Lloh21:
	ldr	x0, [x0, _microcode_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ucode_cpu_info,8,3             ; @ucode_cpu_info
	.comm	_microcode_mutex,4,2            ; @microcode_mutex
	.comm	_microcode_ops,8,3              ; @microcode_ops
	.comm	_microcode_pdev,8,3             ; @microcode_pdev
	.comm	_UCODE_OK,4,2                   ; @UCODE_OK
	.comm	_UCODE_ERROR,4,2                ; @UCODE_ERROR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_reload_for_cpu
.subsections_via_symbols
