	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_set_voltage_min_design
_axp20x_set_voltage_min_design:         ## @axp20x_set_voltage_min_design
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2500001, %esi                  ## imm = 0x2625A1
	jl	LBB0_2
## %bb.1:
	addl	$-2600000, %esi                 ## imm = 0xFFD853C0
	movslq	%esi, %rax
	imulq	$351843721, %rax, %rcx          ## imm = 0x14F8B589
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$45, %rcx
	addl	%eax, %ecx
	movq	_AXP20X_V_OFF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %ecx
	jle	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movl	(%rdi), %edi
	movq	_AXP20X_V_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AXP20X_V_OFF_MASK,4,2          ## @AXP20X_V_OFF_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AXP20X_V_OFF,4,2               ## @AXP20X_V_OFF
	.no_dead_strip	_axp20x_set_voltage_min_design
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_set_voltage_min_design
_axp20x_set_voltage_min_design:         ; @axp20x_set_voltage_min_design
	.cfi_startproc
; %bb.0:
	mov	w8, #9633
	movk	w8, #38, lsl #16
	cmp	w1, w8
	b.lt	LBB0_2
; %bb.1:
	sub	w8, w1, #634, lsl #12           ; =2596864
	sub	w8, w8, #3136
	mov	w9, #46473
	movk	w9, #5368, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #45
Lloh0:
	adrp	x10, _AXP20X_V_OFF_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AXP20X_V_OFF_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x10]
	add	w3, w8, w9
	cmp	w3, w2
	b.le	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_3:
Lloh6:
	adrp	x8, _AXP20X_V_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AXP20X_V_OFF@GOTPAGEOFF]
	ldr	w0, [x0]
Lloh8:
	ldr	w1, [x8]
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AXP20X_V_OFF_MASK,4,2          ; @AXP20X_V_OFF_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AXP20X_V_OFF,4,2               ; @AXP20X_V_OFF
	.no_dead_strip	_axp20x_set_voltage_min_design
.subsections_via_symbols
