	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_set_min_system_volt
_max77693_set_min_system_volt:          ## @max77693_set_min_system_volt
	.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
	movl	%esi, %edx
	movq	%rdi, %r14
	leal	-3700001(%rdx), %eax
	cmpl	$-700002, %eax                  ## imm = 0xFFF5519E
	ja	LBB0_2
## %bb.1:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	leal	-3000000(%rdx), %eax
	shrl	$5, %eax
	imulq	$175921861, %rax, %rbx          ## imm = 0xA7C5AC5
	shrq	$39, %rbx
	movq	_CHG_CNFG_04_MINVSYS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	callq	_dev_dbg
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_MAX77693_CHG_REG_CHG_CNFG_04@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CHG_CNFG_04_MINVSYS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong value for minimum system regulation voltage\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CHG_CNFG_04_MINVSYS_SHIFT,4,2  ## @CHG_CNFG_04_MINVSYS_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"Minimum system regulation voltage: %u (0x%x)\n"

	.comm	_MAX77693_CHG_REG_CHG_CNFG_04,4,2 ## @MAX77693_CHG_REG_CHG_CNFG_04
	.comm	_CHG_CNFG_04_MINVSYS_MASK,4,2   ## @CHG_CNFG_04_MINVSYS_MASK
	.no_dead_strip	_max77693_set_min_system_volt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_set_min_system_volt
_max77693_set_min_system_volt:          ; @max77693_set_min_system_volt
	.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
	sub	w8, w1, #903, lsl #12           ; =3698688
	sub	w8, w8, #1313
	mov	w9, #20894
	movk	w9, #65525, lsl #16
	cmp	w8, w9
	b.hi	LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x2, x1
	sub	w8, w1, #732, lsl #12           ; =2998272
	sub	w8, w8, #1728
	lsr	w8, w8, #5
	mov	w9, #23237
	movk	w9, #2684, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #39
Lloh5:
	adrp	x9, _CHG_CNFG_04_MINVSYS_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CHG_CNFG_04_MINVSYS_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w20, w8, w9
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_dev_dbg
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _MAX77693_CHG_REG_CHG_CNFG_04@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX77693_CHG_REG_CHG_CNFG_04@GOTPAGEOFF]
Lloh12:
	adrp	x9, _CHG_CNFG_04_MINVSYS_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CHG_CNFG_04_MINVSYS_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	ldr	w2, [x9]
	mov	x3, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong value for minimum system regulation voltage\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CHG_CNFG_04_MINVSYS_SHIFT,4,2  ; @CHG_CNFG_04_MINVSYS_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"Minimum system regulation voltage: %u (0x%x)\n"

	.comm	_MAX77693_CHG_REG_CHG_CNFG_04,4,2 ; @MAX77693_CHG_REG_CHG_CNFG_04
	.comm	_CHG_CNFG_04_MINVSYS_MASK,4,2   ; @CHG_CNFG_04_MINVSYS_MASK
	.no_dead_strip	_max77693_set_min_system_volt
.subsections_via_symbols
