	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp288_charger_set_cv
_axp288_charger_set_cv:                 ## @axp288_charger_set_cv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_CV_4100MV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%esi, %ebx
	jge	LBB0_1
## %bb.2:
	movq	_CV_4150MV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%esi, %ebx
	jge	LBB0_3
## %bb.4:
	movq	_CV_4200MV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%esi, %ebx
	jge	LBB0_5
## %bb.6:
	movq	_CV_4350MV@GOTPCREL(%rip), %rcx
	movq	_CHRG_CCCV_CV_4350MV@GOTPCREL(%rip), %rax
	movl	(%rcx), %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_CHRG_CCCV_CV_4100MV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_CHRG_CCCV_CV_4150MV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_CHRG_CCCV_CV_4200MV@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	_CHRG_CCCV_CV_BIT_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	4(%r14), %edi
	movq	_AXP20X_CHRG_CTRL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CHRG_CCCV_CV_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movl	%ebx, (%r14)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CV_4100MV,4,2                  ## @CV_4100MV
	.comm	_CHRG_CCCV_CV_4100MV,4,2        ## @CHRG_CCCV_CV_4100MV
	.comm	_CV_4150MV,4,2                  ## @CV_4150MV
	.comm	_CHRG_CCCV_CV_4150MV,4,2        ## @CHRG_CCCV_CV_4150MV
	.comm	_CV_4200MV,4,2                  ## @CV_4200MV
	.comm	_CHRG_CCCV_CV_4200MV,4,2        ## @CHRG_CCCV_CV_4200MV
	.comm	_CHRG_CCCV_CV_4350MV,4,2        ## @CHRG_CCCV_CV_4350MV
	.comm	_CV_4350MV,4,2                  ## @CV_4350MV
	.comm	_CHRG_CCCV_CV_BIT_POS,4,2       ## @CHRG_CCCV_CV_BIT_POS
	.comm	_AXP20X_CHRG_CTRL1,4,2          ## @AXP20X_CHRG_CTRL1
	.comm	_CHRG_CCCV_CV_MASK,4,2          ## @CHRG_CCCV_CV_MASK
	.no_dead_strip	_axp288_charger_set_cv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp288_charger_set_cv
_axp288_charger_set_cv:                 ; @axp288_charger_set_cv
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _CV_4100MV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CV_4100MV@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cmp	w20, w1
	b.ge	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _CV_4150MV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CV_4150MV@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	cmp	w20, w1
	b.ge	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _CV_4200MV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CV_4200MV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _CV_4350MV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CV_4350MV@GOTPAGEOFF]
Lloh11:
	adrp	x10, _CHRG_CCCV_CV_4200MV@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CHRG_CCCV_CV_4200MV@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x11, _CHRG_CCCV_CV_4350MV@GOTPAGE
Lloh15:
	ldr	x11, [x11, _CHRG_CCCV_CV_4350MV@GOTPAGEOFF]
	cmp	w8, w1
	csel	w20, w9, w8, lt
	csel	x8, x11, x10, lt
	b	LBB0_5
LBB0_3:
Lloh16:
	adrp	x8, _CHRG_CCCV_CV_4100MV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CHRG_CCCV_CV_4100MV@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _CHRG_CCCV_CV_4150MV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CHRG_CCCV_CV_4150MV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _CHRG_CCCV_CV_BIT_POS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CHRG_CCCV_CV_BIT_POS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	lsl	w3, w8, w9
	ldr	w0, [x19, #4]
Lloh23:
	adrp	x8, _AXP20X_CHRG_CTRL1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AXP20X_CHRG_CTRL1@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _CHRG_CCCV_CV_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CHRG_CCCV_CV_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_7
; %bb.6:
	str	w20, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CV_4100MV,4,2                  ; @CV_4100MV
	.comm	_CHRG_CCCV_CV_4100MV,4,2        ; @CHRG_CCCV_CV_4100MV
	.comm	_CV_4150MV,4,2                  ; @CV_4150MV
	.comm	_CHRG_CCCV_CV_4150MV,4,2        ; @CHRG_CCCV_CV_4150MV
	.comm	_CV_4200MV,4,2                  ; @CV_4200MV
	.comm	_CHRG_CCCV_CV_4200MV,4,2        ; @CHRG_CCCV_CV_4200MV
	.comm	_CHRG_CCCV_CV_4350MV,4,2        ; @CHRG_CCCV_CV_4350MV
	.comm	_CV_4350MV,4,2                  ; @CV_4350MV
	.comm	_CHRG_CCCV_CV_BIT_POS,4,2       ; @CHRG_CCCV_CV_BIT_POS
	.comm	_AXP20X_CHRG_CTRL1,4,2          ; @AXP20X_CHRG_CTRL1
	.comm	_CHRG_CCCV_CV_MASK,4,2          ; @CHRG_CCCV_CV_MASK
	.no_dead_strip	_axp288_charger_set_cv
.subsections_via_symbols
