	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_set_thermal_regulation_temp
_max77693_set_thermal_regulation_temp:  ## @max77693_set_thermal_regulation_temp
	.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	-70(%rdx), %eax
	cmpl	$45, %eax
	ja	LBB0_2
## %bb.1:
	movabsq	$35185445863425, %rcx           ## imm = 0x200040008001
	btq	%rax, %rcx
	jae	LBB0_2
## %bb.3:
	leal	-70(%rdx), %eax
	movzbl	%al, %eax
	imull	$137, %eax, %ebx
	shrl	$11, %ebx
	movq	_CHG_CNFG_07_REGTEMP_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_07@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CHG_CNFG_07_REGTEMP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_2:
	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 thermal regulation loop temperature\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CHG_CNFG_07_REGTEMP_SHIFT,4,2  ## @CHG_CNFG_07_REGTEMP_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"Thermal regulation loop temperature: %u (0x%x)\n"

	.comm	_MAX77693_CHG_REG_CHG_CNFG_07,4,2 ## @MAX77693_CHG_REG_CHG_CNFG_07
	.comm	_CHG_CNFG_07_REGTEMP_MASK,4,2   ## @CHG_CNFG_07_REGTEMP_MASK
	.no_dead_strip	_max77693_set_thermal_regulation_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_set_thermal_regulation_temp
_max77693_set_thermal_regulation_temp:  ; @max77693_set_thermal_regulation_temp
	.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, #70
	cmp	w8, #45
	b.hi	LBB0_3
; %bb.1:
	mov	w9, #1
	lsl	x9, x9, x8
	mov	x10, #32769
	movk	x10, #16384, lsl #16
	movk	x10, #8192, lsl #32
	tst	x9, x10
	b.eq	LBB0_3
; %bb.2:
	mov	x2, x1
	and	w8, w8, #0xff
	mov	w9, #137
	mul	w8, w8, w9
	lsr	w8, w8, #11
Lloh0:
	adrp	x9, _CHG_CNFG_07_REGTEMP_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHG_CNFG_07_REGTEMP_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_07@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX77693_CHG_REG_CHG_CNFG_07@GOTPAGEOFF]
Lloh7:
	adrp	x9, _CHG_CNFG_07_REGTEMP_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CHG_CNFG_07_REGTEMP_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_3:
	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 thermal regulation loop temperature\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CHG_CNFG_07_REGTEMP_SHIFT,4,2  ; @CHG_CNFG_07_REGTEMP_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"Thermal regulation loop temperature: %u (0x%x)\n"

	.comm	_MAX77693_CHG_REG_CHG_CNFG_07,4,2 ; @MAX77693_CHG_REG_CHG_CNFG_07
	.comm	_CHG_CNFG_07_REGTEMP_MASK,4,2   ; @CHG_CNFG_07_REGTEMP_MASK
	.no_dead_strip	_max77693_set_thermal_regulation_temp
.subsections_via_symbols
