	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq24190_charger_set_current
_bq24190_charger_set_current:           ## @bq24190_charger_set_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rsi), %ebx
	movq	_BQ24190_REG_CCC@GOTPCREL(%rip), %r15
	movl	(%r15), %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	-56(%rbp), %r8
	callq	_bq24190_read_mask
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	cmpq	$0, -56(%rbp)
	leal	(%rbx,%rbx,4), %r14d
	cmovel	%ebx, %r14d
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_BQ24190_REG_CCC_ICHG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_BQ24190_REG_CCC_ICHG_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_bq24190_ccc_ichg_values@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%r14d, (%rsp)
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_bq24190_set_field_val
LBB0_2:
	addq	$24, %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_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
	.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
	.no_dead_strip	_bq24190_charger_set_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_set_current
_bq24190_charger_set_current:           ; @bq24190_charger_set_current
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w20, [x1]
Lloh0:
	adrp	x21, _BQ24190_REG_CCC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BQ24190_REG_CCC@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _BQ24190_REG_CCC_FORCE_20PCT_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BQ24190_REG_CCC_FORCE_20PCT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _BQ24190_REG_CCC_FORCE_20PCT_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BQ24190_REG_CCC_FORCE_20PCT_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x4, sp, #8
	bl	_bq24190_read_mask
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	add	w9, w20, w20, lsl #2
	cmp	x8, #0
	csel	w20, w20, w9, eq
	ldr	w21, [x21]
Lloh8:
	adrp	x8, _BQ24190_REG_CCC_ICHG_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BQ24190_REG_CCC_ICHG_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _BQ24190_REG_CCC_ICHG_SHIFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BQ24190_REG_CCC_ICHG_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
Lloh14:
	adrp	x8, _bq24190_ccc_ichg_values@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bq24190_ccc_ichg_values@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x5, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x6, x20
	bl	_bq24190_set_field_val
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BQ24190_REG_CCC,4,2            ; @BQ24190_REG_CCC
	.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
	.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
	.no_dead_strip	_bq24190_charger_set_current
.subsections_via_symbols
