	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jc42_temp_to_reg
_jc42_temp_to_reg:                      ## @jc42_temp_to_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_JC42_TEMP_MIN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_JC42_TEMP_MIN_EXTENDED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_JC42_TEMP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp_val
	addl	%eax, %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$35, %rax
	addl	%ecx, %eax
	andl	$8191, %eax                     ## imm = 0x1FFF
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JC42_TEMP_MIN_EXTENDED,4,2     ## @JC42_TEMP_MIN_EXTENDED
	.comm	_JC42_TEMP_MIN,4,2              ## @JC42_TEMP_MIN
	.comm	_JC42_TEMP_MAX,4,2              ## @JC42_TEMP_MAX
	.no_dead_strip	_jc42_temp_to_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jc42_temp_to_reg
_jc42_temp_to_reg:                      ; @jc42_temp_to_reg
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _JC42_TEMP_MIN_EXTENDED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JC42_TEMP_MIN_EXTENDED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _JC42_TEMP_MIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _JC42_TEMP_MIN@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _JC42_TEMP_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _JC42_TEMP_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_clamp_val
	lsl	w8, w0, #1
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #35
	add	w8, w8, w9
	and	w0, w8, #0x1fff
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_JC42_TEMP_MIN_EXTENDED,4,2     ; @JC42_TEMP_MIN_EXTENDED
	.comm	_JC42_TEMP_MIN,4,2              ; @JC42_TEMP_MIN
	.comm	_JC42_TEMP_MAX,4,2              ; @JC42_TEMP_MAX
	.no_dead_strip	_jc42_temp_to_reg
.subsections_via_symbols
