	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp401_temp_to_register
_tmp401_temp_to_register:               ## @tmp401_temp_to_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edx, %ebx
	movq	_TMP401_CONFIG_RANGE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$-64000, %esi                   ## imm = 0xFFFF0600
	movl	$191000, %edx                   ## imm = 0x2EA18
	callq	_clamp_val
	addq	$64000, %rax                    ## imm = 0xFA00
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	movl	$127000, %edx                   ## imm = 0x1F018
	callq	_clamp_val
LBB0_3:
	movb	$8, %cl
	subb	%bl, %cl
	movl	$1, %edx
	shll	%cl, %edx
	movslq	%edx, %rdi
	imulq	%rax, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_CLOSEST
	movl	%ebx, %ecx
	shll	%cl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TMP401_CONFIG_RANGE,4,2        ## @TMP401_CONFIG_RANGE
	.no_dead_strip	_tmp401_temp_to_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp401_temp_to_register
_tmp401_temp_to_register:               ; @tmp401_temp_to_register
	.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, x2
Lloh0:
	adrp	x8, _TMP401_CONFIG_RANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TMP401_CONFIG_RANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	w1, #-64000
	mov	w2, #59928
	movk	w2, #2, lsl #16
	bl	_clamp_val
	mov	w8, #64000
	add	x0, x0, x8
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	mov	w2, #61464
	movk	w2, #1, lsl #16
	bl	_clamp_val
LBB0_3:
	mov	w8, #8
	sub	w8, w8, w19
	mov	w9, #1
	lsl	w8, w9, w8
	sxtw	x8, w8
	mul	x0, x0, x8
	mov	w1, #1000
	bl	_DIV_ROUND_CLOSEST
	lsl	w0, w0, w19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TMP401_CONFIG_RANGE,4,2        ; @TMP401_CONFIG_RANGE
	.no_dead_strip	_tmp401_temp_to_register
.subsections_via_symbols
