	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_set_charge_input_threshold_volt
_max77693_set_charge_input_threshold_volt: ## @max77693_set_charge_input_threshold_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
	cmpl	$4799999, %esi                  ## imm = 0x493DFF
	jg	LBB0_3
## %bb.1:
	cmpl	$4300000, %edx                  ## imm = 0x419CE0
	je	LBB0_2
## %bb.7:
	cmpl	$4700000, %edx                  ## imm = 0x47B760
	je	LBB0_5
	jmp	LBB0_8
LBB0_3:
	cmpl	$4900000, %edx                  ## imm = 0x4AC4A0
	je	LBB0_5
## %bb.4:
	cmpl	$4800000, %edx                  ## imm = 0x493E00
	jne	LBB0_8
LBB0_5:
	leal	-4700000(%rdx), %eax
	shrl	$5, %eax
	imulq	$175921861, %rax, %rbx          ## imm = 0xA7C5AC5
	shrq	$39, %rbx
	jmp	LBB0_6
LBB0_8:
	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:
	xorl	%ebx, %ebx
LBB0_6:
	movq	_CHG_CNFG_12_VCHGINREG_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_12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CHG_CNFG_12_VCHGINREG_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 charge input voltage regulation threshold\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CHG_CNFG_12_VCHGINREG_SHIFT,4,2 ## @CHG_CNFG_12_VCHGINREG_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"Charge input voltage regulation threshold: %u (0x%x)\n"

	.comm	_MAX77693_CHG_REG_CHG_CNFG_12,4,2 ## @MAX77693_CHG_REG_CHG_CNFG_12
	.comm	_CHG_CNFG_12_VCHGINREG_MASK,4,2 ## @CHG_CNFG_12_VCHGINREG_MASK
	.no_dead_strip	_max77693_set_charge_input_threshold_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_charge_input_threshold_volt
_max77693_set_charge_input_threshold_volt: ; @max77693_set_charge_input_threshold_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
	mov	w8, #15871
	movk	w8, #73, lsl #16
	cmp	w1, w8
	b.gt	LBB0_3
; %bb.1:
	mov	w8, #40160
	movk	w8, #65, lsl #16
	cmp	w2, w8
	b.eq	LBB0_7
; %bb.2:
	mov	w8, #46944
	movk	w8, #71, lsl #16
	cmp	w2, w8
	b.eq	LBB0_5
	b	LBB0_6
LBB0_3:
	mov	w8, #50336
	movk	w8, #74, lsl #16
	cmp	w2, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #15872
	movk	w8, #73, lsl #16
	cmp	w2, w8
	b.ne	LBB0_6
LBB0_5:
	sub	w8, w2, #1147, lsl #12          ; =4698112
	sub	w8, w8, #1888
	lsr	w8, w8, #5
	mov	w9, #23237
	movk	w9, #2684, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #39
	b	LBB0_8
LBB0_6:
	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_7:
	mov	w8, #0
LBB0_8:
Lloh5:
	adrp	x9, _CHG_CNFG_12_VCHGINREG_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CHG_CNFG_12_VCHGINREG_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_12@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX77693_CHG_REG_CHG_CNFG_12@GOTPAGEOFF]
Lloh12:
	adrp	x9, _CHG_CNFG_12_VCHGINREG_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CHG_CNFG_12_VCHGINREG_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 charge input voltage regulation threshold\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CHG_CNFG_12_VCHGINREG_SHIFT,4,2 ; @CHG_CNFG_12_VCHGINREG_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"Charge input voltage regulation threshold: %u (0x%x)\n"

	.comm	_MAX77693_CHG_REG_CHG_CNFG_12,4,2 ; @MAX77693_CHG_REG_CHG_CNFG_12
	.comm	_CHG_CNFG_12_VCHGINREG_MASK,4,2 ; @CHG_CNFG_12_VCHGINREG_MASK
	.no_dead_strip	_max77693_set_charge_input_threshold_volt
.subsections_via_symbols
