	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc2731_charger_get_current
_sc2731_charger_get_current:            ## @sc2731_charger_get_current
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	8(%rdi), %eax
	movq	_SC2731_CHG_CFG1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rdi), %rsi
	leaq	-12(%rbp), %rdx
	movl	%eax, %edi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_SC2731_CUR_MASK@GOTPCREL(%rip), %rcx
	movl	-12(%rbp), %edx
	andl	(%rcx), %edx
	movq	_SC2731_CURRENT_STEP@GOTPCREL(%rip), %rcx
	imull	(%rcx), %edx
	movq	_SC2731_CURRENT_PRECHG@GOTPCREL(%rip), %rcx
	addl	(%rcx), %edx
	movl	%edx, (%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC2731_CHG_CFG1,8,3            ## @SC2731_CHG_CFG1
	.comm	_SC2731_CUR_MASK,4,2            ## @SC2731_CUR_MASK
	.comm	_SC2731_CURRENT_STEP,4,2        ## @SC2731_CURRENT_STEP
	.comm	_SC2731_CURRENT_PRECHG,4,2      ## @SC2731_CURRENT_PRECHG
	.no_dead_strip	_sc2731_charger_get_current
.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_current
_sc2731_charger_get_current:            ; @sc2731_charger_get_current
	.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
	ldr	w8, [x0, #8]
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _SC2731_CHG_CFG1@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SC2731_CHG_CFG1@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x1, x10, x9
	add	x2, sp, #12
	mov	x0, x8
	bl	_regmap_read
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SC2731_CUR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SC2731_CUR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _SC2731_CURRENT_STEP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SC2731_CURRENT_STEP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _SC2731_CURRENT_PRECHG@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SC2731_CURRENT_PRECHG@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	madd	w8, w9, w8, w10
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SC2731_CHG_CFG1,8,3            ; @SC2731_CHG_CFG1
	.comm	_SC2731_CUR_MASK,4,2            ; @SC2731_CUR_MASK
	.comm	_SC2731_CURRENT_STEP,4,2        ; @SC2731_CURRENT_STEP
	.comm	_SC2731_CURRENT_PRECHG,4,2      ; @SC2731_CURRENT_PRECHG
	.no_dead_strip	_sc2731_charger_get_current
.subsections_via_symbols
