	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_fgu_save_boot_mode
_sc27xx_fgu_save_boot_mode:             ## @sc27xx_fgu_save_boot_mode
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_SC27XX_FGU_USER_AREA_CLEAR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	movq	_SC27XX_FGU_MODE_AREA_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	$200, %edi
	callq	_udelay
	movl	8(%rbx), %edi
	movq	_SC27XX_FGU_USER_AREA_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	(%r12), %edx
	movq	_SC27XX_FGU_MODE_AREA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movl	%r14d, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$200, %edi
	callq	_udelay
	movl	8(%rbx), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SC27XX_FGU_USER_AREA_CLEAR,8,3 ## @SC27XX_FGU_USER_AREA_CLEAR
	.comm	_SC27XX_FGU_MODE_AREA_MASK,4,2  ## @SC27XX_FGU_MODE_AREA_MASK
	.comm	_SC27XX_FGU_USER_AREA_SET,8,3   ## @SC27XX_FGU_USER_AREA_SET
	.comm	_SC27XX_FGU_MODE_AREA_SHIFT,4,2 ## @SC27XX_FGU_MODE_AREA_SHIFT
	.no_dead_strip	_sc27xx_fgu_save_boot_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_fgu_save_boot_mode
_sc27xx_fgu_save_boot_mode:             ; @sc27xx_fgu_save_boot_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x21, _SC27XX_FGU_USER_AREA_CLEAR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SC27XX_FGU_USER_AREA_CLEAR@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
Lloh2:
	adrp	x22, _SC27XX_FGU_MODE_AREA_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SC27XX_FGU_MODE_AREA_MASK@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x3, x2
	bl	_regmap_update_bits
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w0, #200
	bl	_udelay
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _SC27XX_FGU_USER_AREA_SET@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SC27XX_FGU_USER_AREA_SET@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w2, [x22]
Lloh7:
	adrp	x8, _SC27XX_FGU_MODE_AREA_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SC27XX_FGU_MODE_AREA_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w3, w20, w8
	bl	_regmap_update_bits
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w0, #200
	bl	_udelay
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	ldr	w2, [x22]
	mov	w3, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SC27XX_FGU_USER_AREA_CLEAR,8,3 ; @SC27XX_FGU_USER_AREA_CLEAR
	.comm	_SC27XX_FGU_MODE_AREA_MASK,4,2  ; @SC27XX_FGU_MODE_AREA_MASK
	.comm	_SC27XX_FGU_USER_AREA_SET,8,3   ; @SC27XX_FGU_USER_AREA_SET
	.comm	_SC27XX_FGU_MODE_AREA_SHIFT,4,2 ; @SC27XX_FGU_MODE_AREA_SHIFT
	.no_dead_strip	_sc27xx_fgu_save_boot_mode
.subsections_via_symbols
