	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_fgu_is_first_poweron
_sc27xx_fgu_is_first_poweron:           ## @sc27xx_fgu_is_first_poweron
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	8(%rdi), %eax
	movq	_SC27XX_FGU_USER_AREA_STATUS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rdi), %rsi
	leaq	-4(%rbp), %rdx
	movl	%eax, %edi
	callq	_regmap_read
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.1:
	movl	-4(%rbp), %edx
	movq	_SC27XX_FGU_MODE_AREA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%edx, %esi
	movq	_SC27XX_FGU_MODE_AREA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	movq	_SC27XX_FGU_FIRST_POWERTON@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	(%rcx), %esi
	je	LBB0_3
## %bb.2:
	movq	_SC27XX_FGU_CAP_AREA_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_SC27XX_FGU_DEFAULT_CAP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %edx
	sete	%al
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC27XX_FGU_USER_AREA_STATUS,8,3 ## @SC27XX_FGU_USER_AREA_STATUS
	.comm	_SC27XX_FGU_MODE_AREA_MASK,4,2  ## @SC27XX_FGU_MODE_AREA_MASK
	.comm	_SC27XX_FGU_MODE_AREA_SHIFT,4,2 ## @SC27XX_FGU_MODE_AREA_SHIFT
	.comm	_SC27XX_FGU_CAP_AREA_MASK,4,2   ## @SC27XX_FGU_CAP_AREA_MASK
	.comm	_SC27XX_FGU_FIRST_POWERTON,4,2  ## @SC27XX_FGU_FIRST_POWERTON
	.comm	_SC27XX_FGU_DEFAULT_CAP,4,2     ## @SC27XX_FGU_DEFAULT_CAP
	.no_dead_strip	_sc27xx_fgu_is_first_poweron
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_fgu_is_first_poweron
_sc27xx_fgu_is_first_poweron:           ; @sc27xx_fgu_is_first_poweron
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	w8, [x0, #8]
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _SC27XX_FGU_USER_AREA_STATUS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SC27XX_FGU_USER_AREA_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x1, x10, x9
	sub	x2, x29, #4
	mov	x0, x8
	bl	_regmap_read
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	ldur	w8, [x29, #-4]
Lloh3:
	adrp	x9, _SC27XX_FGU_MODE_AREA_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SC27XX_FGU_MODE_AREA_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh6:
	adrp	x10, _SC27XX_FGU_MODE_AREA_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SC27XX_FGU_MODE_AREA_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh9:
	adrp	x10, _SC27XX_FGU_FIRST_POWERTON@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SC27XX_FGU_FIRST_POWERTON@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x9, _SC27XX_FGU_CAP_AREA_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SC27XX_FGU_CAP_AREA_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh15:
	adrp	x9, _SC27XX_FGU_DEFAULT_CAP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SC27XX_FGU_DEFAULT_CAP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SC27XX_FGU_USER_AREA_STATUS,8,3 ; @SC27XX_FGU_USER_AREA_STATUS
	.comm	_SC27XX_FGU_MODE_AREA_MASK,4,2  ; @SC27XX_FGU_MODE_AREA_MASK
	.comm	_SC27XX_FGU_MODE_AREA_SHIFT,4,2 ; @SC27XX_FGU_MODE_AREA_SHIFT
	.comm	_SC27XX_FGU_CAP_AREA_MASK,4,2   ; @SC27XX_FGU_CAP_AREA_MASK
	.comm	_SC27XX_FGU_FIRST_POWERTON,4,2  ; @SC27XX_FGU_FIRST_POWERTON
	.comm	_SC27XX_FGU_DEFAULT_CAP,4,2     ; @SC27XX_FGU_DEFAULT_CAP
	.no_dead_strip	_sc27xx_fgu_is_first_poweron
.subsections_via_symbols
