	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_charger_get_current
_twl4030_charger_get_current:           ## @twl4030_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	_TWL4030_BCIICHG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_twl4030bci_read_adc_val
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_TWL4030_BCICTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-12(%rbp), %rsi
	callq	_twl4030_bci_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_TWL4030_CGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	-12(%rbp), %esi
	movl	%ebx, %edi
	callq	_regval2ua
	jmp	LBB0_4
LBB0_1:
	movl	%ebx, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL4030_BCIICHG,4,2            ## @TWL4030_BCIICHG
	.comm	_TWL4030_BCICTL1,4,2            ## @TWL4030_BCICTL1
	.comm	_TWL4030_CGAIN,4,2              ## @TWL4030_CGAIN
	.no_dead_strip	_twl4030_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 twl4030_charger_get_current
_twl4030_charger_get_current:           ; @twl4030_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
Lloh0:
	adrp	x8, _TWL4030_BCIICHG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL4030_BCIICHG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_twl4030bci_read_adc_val
	mov	x19, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _TWL4030_BCICTL1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TWL4030_BCICTL1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_twl4030_bci_read
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _TWL4030_CGAIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TWL4030_CGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	x0, x19
	bl	_regval2ua
	b	LBB0_4
LBB0_3:
	mov	x0, x19
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL4030_BCIICHG,4,2            ; @TWL4030_BCIICHG
	.comm	_TWL4030_BCICTL1,4,2            ; @TWL4030_BCICTL1
	.comm	_TWL4030_CGAIN,4,2              ; @TWL4030_CGAIN
	.no_dead_strip	_twl4030_charger_get_current
.subsections_via_symbols
