	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp22x_battery_set_max_voltage
_axp22x_battery_set_max_voltage:        ## @axp22x_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
	jne	LBB0_5
## %bb.3:
	movq	_AXP20X_CHRG_CTRL1_TGT_4_2V@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_AXP20X_CHRG_CTRL1_TGT_4_1V@GOTPCREL(%rip), %rax
LBB0_4:
	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_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	_axp22x_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 axp22x_battery_set_max_voltage
_axp22x_battery_set_max_voltage:        ; @axp22x_battery_set_max_voltage
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #1000, lsl #12          ; =4096000
	cmp	w8, #4000
	b.eq	LBB0_3
; %bb.1:
	mov	w8, #5696
	movk	w8, #64, lsl #16
	cmp	w1, w8
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _AXP20X_CHRG_CTRL1_TGT_4_2V@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXP20X_CHRG_CTRL1_TGT_4_2V@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _AXP20X_CHRG_CTRL1_TGT_4_1V@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AXP20X_CHRG_CTRL1_TGT_4_1V@GOTPAGEOFF]
LBB0_4:
	ldr	w3, [x8]
	ldr	w0, [x0]
Lloh4:
	adrp	x8, _AXP20X_CHRG_CTRL1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AXP20X_CHRG_CTRL1@GOTPAGEOFF]
Lloh6:
	adrp	x9, _AXP20X_CHRG_CTRL1_TGT_VOLT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AXP20X_CHRG_CTRL1_TGT_VOLT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	ldr	w2, [x9]
	b	_regmap_update_bits
LBB0_5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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_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	_axp22x_battery_set_max_voltage
.subsections_via_symbols
