	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function guc_ready
_guc_ready:                             ## @guc_ready
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_GUC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_intel_uncore_read
	movq	_GS_UKERNEL_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	andq	%rax, %rdx
	movq	%rax, (%rbx)
	movq	_GS_UKERNEL_READY@GOTPCREL(%rip), %rsi
	movl	$1, %ecx
	cmpq	(%rsi), %rdx
	je	LBB0_2
## %bb.1:
	movq	_GS_MIA_CORE_STATE@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	setne	%al
	movq	_GS_UKERNEL_LAPIC_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %ecx
LBB0_2:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GUC_STATUS,4,2                 ## @GUC_STATUS
	.comm	_GS_UKERNEL_MASK,8,3            ## @GS_UKERNEL_MASK
	.comm	_GS_UKERNEL_READY,8,3           ## @GS_UKERNEL_READY
	.comm	_GS_MIA_CORE_STATE,8,3          ## @GS_MIA_CORE_STATE
	.comm	_GS_UKERNEL_LAPIC_DONE,8,3      ## @GS_UKERNEL_LAPIC_DONE
	.no_dead_strip	_guc_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function guc_ready
_guc_ready:                             ; @guc_ready
	.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, x1
Lloh0:
	adrp	x8, _GUC_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GUC_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_intel_uncore_read
Lloh3:
	adrp	x8, _GS_UKERNEL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GS_UKERNEL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x8, x8, x0
	str	x0, [x19]
Lloh6:
	adrp	x9, _GS_UKERNEL_READY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GS_UKERNEL_READY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x9, _GS_MIA_CORE_STATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GS_MIA_CORE_STATE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	tst	x9, x0
Lloh12:
	adrp	x9, _GS_UKERNEL_LAPIC_DONE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GS_UKERNEL_LAPIC_DONE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, ne
	cset	w0, eq
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GUC_STATUS,4,2                 ; @GUC_STATUS
	.comm	_GS_UKERNEL_MASK,8,3            ; @GS_UKERNEL_MASK
	.comm	_GS_UKERNEL_READY,8,3           ; @GS_UKERNEL_READY
	.comm	_GS_MIA_CORE_STATE,8,3          ; @GS_MIA_CORE_STATE
	.comm	_GS_UKERNEL_LAPIC_DONE,8,3      ; @GS_UKERNEL_LAPIC_DONE
	.no_dead_strip	_guc_ready
.subsections_via_symbols
