	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_fgu_get_health
_sc27xx_fgu_get_health:                 ## @sc27xx_fgu_get_health
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-20(%rbp), %rsi
	callq	_sc27xx_fgu_get_vbat_vol
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	-20(%rbp), %ecx
	cmpl	(%rbx), %ecx
	jle	LBB0_2
## %bb.3:
	movq	_POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_POWER_SUPPLY_HEALTH_GOOD@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_HEALTH_OVERVOLTAGE,4,2 ## @POWER_SUPPLY_HEALTH_OVERVOLTAGE
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ## @POWER_SUPPLY_HEALTH_GOOD
	.no_dead_strip	_sc27xx_fgu_get_health
.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_health
_sc27xx_fgu_get_health:                 ; @sc27xx_fgu_get_health
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #12
	bl	_sc27xx_fgu_get_vbat_vol
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
Lloh0:
	adrp	x10, _POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPAGEOFF]
Lloh2:
	adrp	x11, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGE
Lloh3:
	ldr	x11, [x11, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, gt
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_HEALTH_OVERVOLTAGE,4,2 ; @POWER_SUPPLY_HEALTH_OVERVOLTAGE
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ; @POWER_SUPPLY_HEALTH_GOOD
	.no_dead_strip	_sc27xx_fgu_get_health
.subsections_via_symbols
