	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq24190_charger_get_current
_bq24190_charger_get_current:           ## @bq24190_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	%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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_BQ24190_REG_CCC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_BQ24190_REG_CCC_ICHG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_BQ24190_REG_CCC_ICHG_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_bq24190_ccc_ichg_values@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	leaq	-44(%rbp), %rcx
	movq	%rcx, (%rsp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_bq24190_get_field_val
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_BQ24190_REG_CCC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BQ24190_REG_CCC_FORCE_20PCT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BQ24190_REG_CCC_FORCE_20PCT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %r8
	movq	%r15, %rdi
	callq	_bq24190_read_mask
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	cmpq	$0, -64(%rbp)
	movl	-44(%rbp), %eax
	je	LBB0_4
## %bb.3:
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
LBB0_4:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BQ24190_REG_CCC,4,2            ## @BQ24190_REG_CCC
	.comm	_BQ24190_REG_CCC_ICHG_MASK,4,2  ## @BQ24190_REG_CCC_ICHG_MASK
	.comm	_BQ24190_REG_CCC_ICHG_SHIFT,4,2 ## @BQ24190_REG_CCC_ICHG_SHIFT
	.comm	_bq24190_ccc_ichg_values,4,2    ## @bq24190_ccc_ichg_values
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_MASK,4,2 ## @BQ24190_REG_CCC_FORCE_20PCT_MASK
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_SHIFT,4,2 ## @BQ24190_REG_CCC_FORCE_20PCT_SHIFT
	.no_dead_strip	_bq24190_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 bq24190_charger_get_current
_bq24190_charger_get_current:           ; @bq24190_charger_get_current
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _BQ24190_REG_CCC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BQ24190_REG_CCC@GOTPAGEOFF]
	ldr	w21, [x25]
Lloh2:
	adrp	x8, _BQ24190_REG_CCC_ICHG_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BQ24190_REG_CCC_ICHG_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	adrp	x8, _BQ24190_REG_CCC_ICHG_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BQ24190_REG_CCC_ICHG_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
Lloh8:
	adrp	x8, _bq24190_ccc_ichg_values@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bq24190_ccc_ichg_values@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x5, x0
	add	x6, sp, #4
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	bl	_bq24190_get_field_val
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w1, [x25]
Lloh11:
	adrp	x8, _BQ24190_REG_CCC_FORCE_20PCT_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BQ24190_REG_CCC_FORCE_20PCT_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _BQ24190_REG_CCC_FORCE_20PCT_SHIFT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BQ24190_REG_CCC_FORCE_20PCT_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x20
	bl	_bq24190_read_mask
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	x8, [sp, #8]
	ldrsw	x9, [sp, #4]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x10, x9, x10
	lsr	x11, x10, #63
	asr	x10, x10, #33
	add	w10, w10, w11
	cmp	x8, #0
	csel	w8, w9, w10, eq
	str	w8, [x19]
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BQ24190_REG_CCC,4,2            ; @BQ24190_REG_CCC
	.comm	_BQ24190_REG_CCC_ICHG_MASK,4,2  ; @BQ24190_REG_CCC_ICHG_MASK
	.comm	_BQ24190_REG_CCC_ICHG_SHIFT,4,2 ; @BQ24190_REG_CCC_ICHG_SHIFT
	.comm	_bq24190_ccc_ichg_values,4,2    ; @bq24190_ccc_ichg_values
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_MASK,4,2 ; @BQ24190_REG_CCC_FORCE_20PCT_MASK
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_SHIFT,4,2 ; @BQ24190_REG_CCC_FORCE_20PCT_SHIFT
	.no_dead_strip	_bq24190_charger_get_current
.subsections_via_symbols
