	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_set_constant_volt
_max77693_set_constant_volt:            ## @max77693_set_constant_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	-3650000(%rdx), %eax
	cmpl	$689999, %eax                   ## imm = 0xA874F
	ja	LBB0_2
## %bb.1:
	shrl	$3, %eax
	imulq	$351843721, %rax, %rbx          ## imm = 0x14F8B589
	shrq	$40, %rbx
	jmp	LBB0_5
LBB0_2:
	leal	-4340000(%rdx), %eax
	movl	$28, %ebx
	cmpl	$10000, %eax                    ## imm = 0x2710
	jb	LBB0_5
## %bb.3:
	leal	-4350000(%rdx), %eax
	cmpl	$50000, %eax                    ## imm = 0xC350
	ja	LBB0_6
## %bb.4:
	movzwl	%ax, %eax
	imull	$21475, %eax, %ebx              ## imm = 0x53E3
	shrl	$29, %ebx
	addl	$29, %ebx
LBB0_5:
	movq	_CHG_CNFG_04_CHGCVPRM_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_CHGCVPRM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_6:
	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
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong value for charging constant voltage\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CHG_CNFG_04_CHGCVPRM_SHIFT,4,2 ## @CHG_CNFG_04_CHGCVPRM_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"Charging constant voltage: %u (0x%x)\n"

	.comm	_MAX77693_CHG_REG_CHG_CNFG_04,4,2 ## @MAX77693_CHG_REG_CHG_CNFG_04
	.comm	_CHG_CNFG_04_CHGCVPRM_MASK,4,2  ## @CHG_CNFG_04_CHGCVPRM_MASK
	.no_dead_strip	_max77693_set_constant_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_constant_volt
_max77693_set_constant_volt:            ; @max77693_set_constant_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	x2, x1
	mov	x19, x0
	sub	w8, w1, #891, lsl #12           ; =3649536
	sub	w8, w8, #464
	mov	w9, #34639
	movk	w9, #10, lsl #16
	cmp	w8, w9
	b.hi	LBB0_2
; %bb.1:
	lsr	w8, w8, #3
	mov	w9, #46473
	movk	w9, #5368, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #40
	b	LBB0_6
LBB0_2:
	sub	w8, w2, #1059, lsl #12          ; =4337664
	sub	w8, w8, #2336
	lsr	w8, w8, #4
	cmp	w8, #625
	b.hs	LBB0_4
; %bb.3:
	mov	w8, #28
	b	LBB0_6
LBB0_4:
	sub	w8, w2, #1062, lsl #12          ; =4349952
	sub	w8, w8, #48
	mov	w9, #50000
	cmp	w8, w9
	b.hi	LBB0_7
; %bb.5:
	and	w8, w8, #0xffff
	mov	w9, #21475
	mul	w8, w8, w9
	lsr	w8, w8, #29
	add	w8, w8, #29
LBB0_6:
Lloh0:
	adrp	x9, _CHG_CNFG_04_CHGCVPRM_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHG_CNFG_04_CHGCVPRM_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w20, w8, w9
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_dev_dbg
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _MAX77693_CHG_REG_CHG_CNFG_04@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX77693_CHG_REG_CHG_CNFG_04@GOTPAGEOFF]
Lloh7:
	adrp	x9, _CHG_CNFG_04_CHGCVPRM_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CHG_CNFG_04_CHGCVPRM_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	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
LBB0_7:
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong value for charging constant voltage\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CHG_CNFG_04_CHGCVPRM_SHIFT,4,2 ; @CHG_CNFG_04_CHGCVPRM_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"Charging constant voltage: %u (0x%x)\n"

	.comm	_MAX77693_CHG_REG_CHG_CNFG_04,4,2 ; @MAX77693_CHG_REG_CHG_CNFG_04
	.comm	_CHG_CNFG_04_CHGCVPRM_MASK,4,2  ; @CHG_CNFG_04_CHGCVPRM_MASK
	.no_dead_strip	_max77693_set_constant_volt
.subsections_via_symbols
