	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_fgu_hw_init
_sc27xx_fgu_hw_init:                    ## @sc27xx_fgu_hw_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	48(%rdi), %edi
	leaq	-64(%rbp), %rsi
	callq	_power_supply_get_battery_info
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	28(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_26
LBB0_2:
	movslq	-64(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, (%r14)
	movslq	-60(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, 4(%r14)
	movslq	-56(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, 8(%r14)
	movl	-52(%rbp), %eax
	movl	%eax, 12(%r14)
	leaq	16(%r14), %rdx
	leaq	-64(%rbp), %rdi
	movl	$20, %esi
	callq	_power_supply_find_ocv2cap_table
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	16(%r14), %edx
	movl	28(%r14), %edi
	shll	$2, %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rsi
	callq	_devm_kmemdup
	movl	%eax, 64(%r14)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	12(%r14), %edx
	movl	16(%r14), %esi
	movl	%eax, %edi
	callq	_power_supply_ocv2cap_simple
	testq	%rax, %rax
	movl	$1, %ecx
	cmovneq	%rax, %rcx
	movq	%rcx, 56(%r14)
	movl	48(%r14), %edi
	leaq	-64(%rbp), %rsi
	callq	_power_supply_put_battery_info
	movq	%r14, %rdi
	callq	_sc27xx_fgu_calibration
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_26
## %bb.8:
	movl	24(%r14), %edi
	movq	_SC27XX_MODULE_EN0@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	_SC27XX_FGU_EN@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movl	28(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_26
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movl	48(%r14), %edi
	leaq	-64(%rbp), %rsi
	callq	_power_supply_put_battery_info
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	24(%r14), %edi
	movq	_SC27XX_CLK_EN0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_SC27XX_FGU_RTC_EN@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movl	28(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_25
LBB0_12:
	movl	24(%r14), %edi
	movq	_SC27XX_FGU_INT_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	40(%r14), %rsi
	movq	_SC27XX_FGU_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_24
LBB0_14:
	movslq	12(%r14), %rax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_sc27xx_fgu_voltage_to_adc
	movl	24(%r14), %edi
	movq	_SC27XX_FGU_LOW_OVERLOAD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	40(%r14), %rsi
	movq	_SC27XX_FGU_LOW_OVERLOAD_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_24
LBB0_16:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_sc27xx_fgu_cap_to_clbcnt
	movq	%rax, %rcx
	movl	24(%r14), %edi
	movq	_SC27XX_FGU_CLBCNT_DELTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	40(%r14), %rsi
	movq	_SC27XX_FGU_CLBCNT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_24
LBB0_18:
	movl	24(%r14), %edi
	movq	_SC27XX_FGU_CLBCNT_DELTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	40(%r14), %rsi
	movq	_SC27XX_FGU_CLBCNT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SC27XX_FGU_CLBCNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	sarl	%cl, %eax
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_24
LBB0_20:
	leaq	20(%r14), %rsi
	movq	%r14, %rdi
	callq	_sc27xx_fgu_get_boot_capacity
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_24
LBB0_22:
	movl	20(%r14), %esi
	movq	%r14, %rdi
	callq	_sc27xx_fgu_cap_to_clbcnt
	movq	%rax, 32(%r14)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sc27xx_fgu_set_clbcnt
	testl	%eax, %eax
	je	LBB0_27
## %bb.23:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
LBB0_24:
	movl	28(%r14), %edi
	callq	_dev_err
	movl	24(%r14), %edi
	movq	_SC27XX_CLK_EN0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
LBB0_25:
	movl	24(%r14), %edi
	movq	(%r12), %rsi
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	jmp	LBB0_26
LBB0_27:
	xorl	%ebx, %ebx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get battery information\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SC27XX_MODULE_EN0,8,3          ## @SC27XX_MODULE_EN0
	.comm	_SC27XX_FGU_EN,4,2              ## @SC27XX_FGU_EN
L_.str.1:                               ## @.str.1
	.asciz	"failed to enable fgu\n"

	.comm	_SC27XX_CLK_EN0,8,3             ## @SC27XX_CLK_EN0
	.comm	_SC27XX_FGU_RTC_EN,4,2          ## @SC27XX_FGU_RTC_EN
L_.str.2:                               ## @.str.2
	.asciz	"failed to enable fgu RTC clock\n"

	.comm	_SC27XX_FGU_INT_CLR,8,3         ## @SC27XX_FGU_INT_CLR
	.comm	_SC27XX_FGU_INT_MASK,4,2        ## @SC27XX_FGU_INT_MASK
L_.str.3:                               ## @.str.3
	.asciz	"failed to clear interrupt status\n"

	.comm	_SC27XX_FGU_LOW_OVERLOAD,8,3    ## @SC27XX_FGU_LOW_OVERLOAD
	.comm	_SC27XX_FGU_LOW_OVERLOAD_MASK,4,2 ## @SC27XX_FGU_LOW_OVERLOAD_MASK
L_.str.4:                               ## @.str.4
	.asciz	"failed to set fgu low overload\n"

	.comm	_SC27XX_FGU_CLBCNT_DELTL,8,3    ## @SC27XX_FGU_CLBCNT_DELTL
	.comm	_SC27XX_FGU_CLBCNT_MASK,4,2     ## @SC27XX_FGU_CLBCNT_MASK
L_.str.5:                               ## @.str.5
	.asciz	"failed to set low delta coulomb counter\n"

	.comm	_SC27XX_FGU_CLBCNT_DELTH,8,3    ## @SC27XX_FGU_CLBCNT_DELTH
	.comm	_SC27XX_FGU_CLBCNT_SHIFT,4,2    ## @SC27XX_FGU_CLBCNT_SHIFT
L_.str.6:                               ## @.str.6
	.asciz	"failed to set high delta coulomb counter\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to get boot capacity\n"

L_.str.8:                               ## @.str.8
	.asciz	"failed to initialize coulomb counter\n"

	.no_dead_strip	_sc27xx_fgu_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_fgu_hw_init
_sc27xx_fgu_hw_init:                    ; @sc27xx_fgu_hw_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	stp	xzr, xzr, [sp]
	ldr	w0, [x0, #48]
	mov	x1, sp
	bl	_power_supply_get_battery_info
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #28]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_2:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	ldpsw	x9, x10, [sp]
	mul	x9, x9, x8
	lsr	x11, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w11
	mul	x10, x10, x8
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	stp	w9, w10, [x19]
	ldp	w9, w10, [sp, #8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mul	x8, x9, x8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	stp	w8, w10, [x19, #8]
	add	x2, x19, #16
	mov	x0, sp
	mov	w1, #20
	bl	_power_supply_find_ocv2cap_table
	cbz	x0, LBB0_7
; %bb.3:
	mov	x1, x0
	ldr	w0, [x19, #28]
	ldr	w8, [x19, #16]
	lsl	w2, w8, #2
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	bl	_devm_kmemdup
	str	w0, [x19, #64]
	cbz	w0, LBB0_8
; %bb.4:
	ldp	w2, w1, [x19, #12]
	bl	_power_supply_ocv2cap_simple
	cmp	x0, #0
	csinc	x8, x0, xzr, ne
	str	x8, [x19, #56]
	ldr	w0, [x19, #48]
	mov	x1, sp
	bl	_power_supply_put_battery_info
	mov	x0, x19
	bl	_sc27xx_fgu_calibration
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	w0, [x19, #24]
Lloh5:
	adrp	x22, _SC27XX_MODULE_EN0@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SC27XX_MODULE_EN0@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh7:
	adrp	x23, _SC27XX_FGU_EN@GOTPAGE
Lloh8:
	ldr	x23, [x23, _SC27XX_FGU_EN@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x3, x2
	bl	_regmap_update_bits
	cbz	w0, LBB0_11
; %bb.6:
	mov	x20, x0
	ldr	w0, [x19, #28]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #48]
	mov	x1, sp
	bl	_power_supply_put_battery_info
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	w0, [x19, #24]
Lloh15:
	adrp	x24, _SC27XX_CLK_EN0@GOTPAGE
Lloh16:
	ldr	x24, [x24, _SC27XX_CLK_EN0@GOTPAGEOFF]
	ldr	x1, [x24]
Lloh17:
	adrp	x25, _SC27XX_FGU_RTC_EN@GOTPAGE
Lloh18:
	ldr	x25, [x25, _SC27XX_FGU_RTC_EN@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x3, x2
	bl	_regmap_update_bits
	cbz	w0, LBB0_13
; %bb.12:
	mov	x20, x0
	ldr	w0, [x19, #28]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_26
LBB0_13:
	ldr	w0, [x19, #24]
Lloh21:
	adrp	x8, _SC27XX_FGU_INT_CLR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SC27XX_FGU_INT_CLR@GOTPAGEOFF]
	ldr	x9, [x19, #40]
Lloh23:
	ldr	x8, [x8]
	add	x1, x8, x9
Lloh24:
	adrp	x8, _SC27XX_FGU_INT_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SC27XX_FGU_INT_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	cbz	w0, LBB0_15
; %bb.14:
	mov	x20, x0
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_25
LBB0_15:
	ldrsw	x8, [x19, #12]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w1, w8, w9
	mov	x0, x19
	bl	_sc27xx_fgu_voltage_to_adc
	mov	x3, x0
	ldr	w0, [x19, #24]
Lloh29:
	adrp	x8, _SC27XX_FGU_LOW_OVERLOAD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SC27XX_FGU_LOW_OVERLOAD@GOTPAGEOFF]
	ldr	x9, [x19, #40]
Lloh31:
	ldr	x8, [x8]
	add	x1, x8, x9
Lloh32:
	adrp	x8, _SC27XX_FGU_LOW_OVERLOAD_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SC27XX_FGU_LOW_OVERLOAD_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	bl	_regmap_update_bits
	cbz	w0, LBB0_17
; %bb.16:
	mov	x20, x0
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_25
LBB0_17:
	mov	x0, x19
	mov	w1, #1
	bl	_sc27xx_fgu_cap_to_clbcnt
	mov	x21, x0
	ldr	w0, [x19, #24]
Lloh37:
	adrp	x8, _SC27XX_FGU_CLBCNT_DELTL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SC27XX_FGU_CLBCNT_DELTL@GOTPAGEOFF]
	ldr	x9, [x19, #40]
Lloh39:
	ldr	x8, [x8]
	add	x1, x8, x9
Lloh40:
	adrp	x26, _SC27XX_FGU_CLBCNT_MASK@GOTPAGE
Lloh41:
	ldr	x26, [x26, _SC27XX_FGU_CLBCNT_MASK@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x3, x21
	bl	_regmap_update_bits
	cbz	w0, LBB0_19
; %bb.18:
	mov	x20, x0
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_25
LBB0_19:
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #40]
Lloh44:
	adrp	x9, _SC27XX_FGU_CLBCNT_DELTH@GOTPAGE
Lloh45:
	ldr	x9, [x9, _SC27XX_FGU_CLBCNT_DELTH@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w2, [x26]
Lloh47:
	adrp	x8, _SC27XX_FGU_CLBCNT_SHIFT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SC27XX_FGU_CLBCNT_SHIFT@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	asr	w3, w21, w8
	bl	_regmap_update_bits
	cbz	w0, LBB0_21
; %bb.20:
	mov	x20, x0
Lloh50:
	adrp	x1, l_.str.6@PAGE
Lloh51:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_25
LBB0_21:
	add	x1, x19, #20
	mov	x0, x19
	bl	_sc27xx_fgu_get_boot_capacity
	cbz	w0, LBB0_23
; %bb.22:
	mov	x20, x0
Lloh52:
	adrp	x1, l_.str.7@PAGE
Lloh53:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_25
LBB0_23:
	ldr	w1, [x19, #20]
	mov	x0, x19
	bl	_sc27xx_fgu_cap_to_clbcnt
	mov	x1, x0
	str	x0, [x19, #32]
	mov	x0, x19
	bl	_sc27xx_fgu_set_clbcnt
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.24:
Lloh54:
	adrp	x1, l_.str.8@PAGE
Lloh55:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_25:
	ldr	w0, [x19, #28]
	bl	_dev_err
	ldr	w0, [x19, #24]
	ldr	x1, [x24]
	ldr	w2, [x25]
	mov	w3, #0
	bl	_regmap_update_bits
LBB0_26:
	ldr	w0, [x19, #24]
	ldr	x1, [x22]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_regmap_update_bits
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get battery information\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SC27XX_MODULE_EN0,8,3          ; @SC27XX_MODULE_EN0
	.comm	_SC27XX_FGU_EN,4,2              ; @SC27XX_FGU_EN
l_.str.1:                               ; @.str.1
	.asciz	"failed to enable fgu\n"

	.comm	_SC27XX_CLK_EN0,8,3             ; @SC27XX_CLK_EN0
	.comm	_SC27XX_FGU_RTC_EN,4,2          ; @SC27XX_FGU_RTC_EN
l_.str.2:                               ; @.str.2
	.asciz	"failed to enable fgu RTC clock\n"

	.comm	_SC27XX_FGU_INT_CLR,8,3         ; @SC27XX_FGU_INT_CLR
	.comm	_SC27XX_FGU_INT_MASK,4,2        ; @SC27XX_FGU_INT_MASK
l_.str.3:                               ; @.str.3
	.asciz	"failed to clear interrupt status\n"

	.comm	_SC27XX_FGU_LOW_OVERLOAD,8,3    ; @SC27XX_FGU_LOW_OVERLOAD
	.comm	_SC27XX_FGU_LOW_OVERLOAD_MASK,4,2 ; @SC27XX_FGU_LOW_OVERLOAD_MASK
l_.str.4:                               ; @.str.4
	.asciz	"failed to set fgu low overload\n"

	.comm	_SC27XX_FGU_CLBCNT_DELTL,8,3    ; @SC27XX_FGU_CLBCNT_DELTL
	.comm	_SC27XX_FGU_CLBCNT_MASK,4,2     ; @SC27XX_FGU_CLBCNT_MASK
l_.str.5:                               ; @.str.5
	.asciz	"failed to set low delta coulomb counter\n"

	.comm	_SC27XX_FGU_CLBCNT_DELTH,8,3    ; @SC27XX_FGU_CLBCNT_DELTH
	.comm	_SC27XX_FGU_CLBCNT_SHIFT,4,2    ; @SC27XX_FGU_CLBCNT_SHIFT
l_.str.6:                               ; @.str.6
	.asciz	"failed to set high delta coulomb counter\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to get boot capacity\n"

l_.str.8:                               ; @.str.8
	.asciz	"failed to initialize coulomb counter\n"

	.no_dead_strip	_sc27xx_fgu_hw_init
.subsections_via_symbols
