	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_set_top_off_threshold_current
_max77693_set_top_off_threshold_current: ## @max77693_set_top_off_threshold_current
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	-350001(%rsi), %rax
	cmpq	$-250002, %rax                  ## imm = 0xFFFC2F6E
	ja	LBB0_1
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_1:
	cmpq	$200000, %rsi                   ## imm = 0x30D40
	ja	LBB0_3
## %bb.2:
	addl	$-100000, %esi                  ## imm = 0xFFFE7960
	shrl	$3, %esi
	imulq	$351843721, %rsi, %rax          ## imm = 0x14F8B589
	shrq	$40, %rax
	jmp	LBB0_4
LBB0_3:
	shrl	$4, %esi
	imulq	$175921861, %rsi, %rax          ## imm = 0xA7C5AC5
	shrq	$39, %rax
LBB0_4:
	movq	_CHG_CNFG_03_TOITH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	(%rdi), %rcx
	movl	(%rcx), %edi
	movq	_MAX77693_CHG_REG_CHG_CNFG_03@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CHG_CNFG_03_TOITH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CHG_CNFG_03_TOITH_SHIFT,4,2    ## @CHG_CNFG_03_TOITH_SHIFT
	.comm	_MAX77693_CHG_REG_CHG_CNFG_03,4,2 ## @MAX77693_CHG_REG_CHG_CNFG_03
	.comm	_CHG_CNFG_03_TOITH_MASK,4,2     ## @CHG_CNFG_03_TOITH_MASK
	.no_dead_strip	_max77693_set_top_off_threshold_current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_set_top_off_threshold_current
_max77693_set_top_off_threshold_current: ; @max77693_set_top_off_threshold_current
	.cfi_startproc
; %bb.0:
	sub	x8, x1, #85, lsl #12            ; =348160
	sub	x8, x8, #1841
	mov	x9, #-53394
	movk	x9, #65532, lsl #16
	cmp	x8, x9
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	mov	w8, #3392
	movk	w8, #3, lsl #16
	cmp	x1, x8
	lsr	w8, w1, #4
	mov	w9, #23237
	movk	w9, #2684, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #39
	sub	w9, w1, #24, lsl #12            ; =98304
	sub	w9, w9, #1696
	lsr	w9, w9, #3
	mov	w10, #46473
	movk	w10, #5368, lsl #16
	umull	x9, w9, w10
	lsr	x9, x9, #40
	csel	w8, w8, w9, hi
Lloh3:
	adrp	x9, _CHG_CNFG_03_TOITH_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHG_CNFG_03_TOITH_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w3, w8, w9
	ldr	x8, [x0]
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _MAX77693_CHG_REG_CHG_CNFG_03@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX77693_CHG_REG_CHG_CNFG_03@GOTPAGEOFF]
Lloh8:
	adrp	x9, _CHG_CNFG_03_TOITH_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CHG_CNFG_03_TOITH_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w2, [x9]
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CHG_CNFG_03_TOITH_SHIFT,4,2    ; @CHG_CNFG_03_TOITH_SHIFT
	.comm	_MAX77693_CHG_REG_CHG_CNFG_03,4,2 ; @MAX77693_CHG_REG_CHG_CNFG_03
	.comm	_CHG_CNFG_03_TOITH_MASK,4,2     ; @CHG_CNFG_03_TOITH_MASK
	.no_dead_strip	_max77693_set_top_off_threshold_current
.subsections_via_symbols
