	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc2731_charger_get_status
_sc2731_charger_get_status:             ## @sc2731_charger_get_status
	.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	(%rdi), %edi
	movq	_SC2731_CHARGE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_SC2731_CHARGE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -4(%rbp)
	je	LBB0_3
## %bb.2:
	movq	_POWER_SUPPLY_STATUS_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC2731_CHARGE_STATUS,4,2       ## @SC2731_CHARGE_STATUS
	.comm	_SC2731_CHARGE_FULL,4,2         ## @SC2731_CHARGE_FULL
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ## @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_CHARGING
	.no_dead_strip	_sc2731_charger_get_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc2731_charger_get_status
_sc2731_charger_get_status:             ; @sc2731_charger_get_status
	.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	w0, [x0]
Lloh0:
	adrp	x8, _SC2731_CHARGE_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SC2731_CHARGE_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_regmap_read
	cbnz	w0, LBB0_5
; %bb.1:
	ldur	w8, [x29, #-4]
Lloh3:
	adrp	x9, _SC2731_CHARGE_FULL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SC2731_CHARGE_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SC2731_CHARGE_STATUS,4,2       ; @SC2731_CHARGE_STATUS
	.comm	_SC2731_CHARGE_FULL,4,2         ; @SC2731_CHARGE_FULL
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ; @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_CHARGING
	.no_dead_strip	_sc2731_charger_get_status
.subsections_via_symbols
