	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_fgu_get_vbat_vol
_sc27xx_fgu_get_vbat_vol:               ## @sc27xx_fgu_get_vbat_vol
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	movq	_SC27XX_FGU_VOLTAGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-28(%rbp), %esi
	movq	%r15, %rdi
	callq	_sc27xx_fgu_adc_to_voltage
	movl	%eax, (%r14)
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC27XX_FGU_VOLTAGE,8,3         ## @SC27XX_FGU_VOLTAGE
	.no_dead_strip	_sc27xx_fgu_get_vbat_vol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_fgu_get_vbat_vol
_sc27xx_fgu_get_vbat_vol:               ; @sc27xx_fgu_get_vbat_vol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SC27XX_FGU_VOLTAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SC27XX_FGU_VOLTAGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	add	x2, sp, #12
	bl	_regmap_read
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_sc27xx_fgu_adc_to_voltage
	str	w0, [x19]
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SC27XX_FGU_VOLTAGE,8,3         ; @SC27XX_FGU_VOLTAGE
	.no_dead_strip	_sc27xx_fgu_get_vbat_vol
.subsections_via_symbols
