	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_battery_set_max_voltage
_axp20x_battery_set_max_voltage:        ## @axp20x_battery_set_max_voltage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$4100000, %esi                  ## imm = 0x3E8FA0
	je	LBB0_1
## %bb.2:
	cmpl	$4200000, %esi                  ## imm = 0x401640
	je	LBB0_6
## %bb.3:
	cmpl	$4150000, %esi                  ## imm = 0x3F52F0
	jne	LBB0_5
## %bb.4:
	movq	_AXP20X_CHRG_CTRL1_TGT_4_15V@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_AXP20X_CHRG_CTRL1_TGT_4_1V@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_AXP20X_CHRG_CTRL1_TGT_4_2V@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ecx
	movl	(%rdi), %edi
	movq	_AXP20X_CHRG_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AXP20X_CHRG_CTRL1_TGT_VOLT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXP20X_CHRG_CTRL1_TGT_4_1V,4,2 ## @AXP20X_CHRG_CTRL1_TGT_4_1V
	.comm	_AXP20X_CHRG_CTRL1_TGT_4_15V,4,2 ## @AXP20X_CHRG_CTRL1_TGT_4_15V
	.comm	_AXP20X_CHRG_CTRL1_TGT_4_2V,4,2 ## @AXP20X_CHRG_CTRL1_TGT_4_2V
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AXP20X_CHRG_CTRL1,4,2          ## @AXP20X_CHRG_CTRL1
	.comm	_AXP20X_CHRG_CTRL1_TGT_VOLT,4,2 ## @AXP20X_CHRG_CTRL1_TGT_VOLT
	.no_dead_strip	_axp20x_battery_set_max_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_battery_set_max_voltage
_axp20x_battery_set_max_voltage:        ; @axp20x_battery_set_max_voltage
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #1000, lsl #12          ; =4096000
	cmp	w8, #4000
	b.eq	LBB0_4
; %bb.1:
	mov	w8, #5696
	movk	w8, #64, lsl #16
	cmp	w1, w8
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #21232
	movk	w8, #63, lsl #16
	cmp	w1, w8
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _AXP20X_CHRG_CTRL1_TGT_4_15V@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXP20X_CHRG_CTRL1_TGT_4_15V@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _AXP20X_CHRG_CTRL1_TGT_4_1V@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AXP20X_CHRG_CTRL1_TGT_4_1V@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _AXP20X_CHRG_CTRL1_TGT_4_2V@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AXP20X_CHRG_CTRL1_TGT_4_2V@GOTPAGEOFF]
LBB0_6:
	ldr	w3, [x8]
	ldr	w0, [x0]
Lloh6:
	adrp	x8, _AXP20X_CHRG_CTRL1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AXP20X_CHRG_CTRL1@GOTPAGEOFF]
Lloh8:
	adrp	x9, _AXP20X_CHRG_CTRL1_TGT_VOLT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AXP20X_CHRG_CTRL1_TGT_VOLT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w2, [x9]
	b	_regmap_update_bits
LBB0_7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AXP20X_CHRG_CTRL1_TGT_4_1V,4,2 ; @AXP20X_CHRG_CTRL1_TGT_4_1V
	.comm	_AXP20X_CHRG_CTRL1_TGT_4_15V,4,2 ; @AXP20X_CHRG_CTRL1_TGT_4_15V
	.comm	_AXP20X_CHRG_CTRL1_TGT_4_2V,4,2 ; @AXP20X_CHRG_CTRL1_TGT_4_2V
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AXP20X_CHRG_CTRL1,4,2          ; @AXP20X_CHRG_CTRL1
	.comm	_AXP20X_CHRG_CTRL1_TGT_VOLT,4,2 ; @AXP20X_CHRG_CTRL1_TGT_VOLT
	.no_dead_strip	_axp20x_battery_set_max_voltage
.subsections_via_symbols
