	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lut_temp_to_reg
_lut_temp_to_reg:                       ## @lut_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	subq	8(%rdi), %rsi
	cmpq	$0, (%rdi)
	movl	$127000, %eax                   ## imm = 0x1F018
	movl	$127500, %edx                   ## imm = 0x1F20C
	cmovel	%eax, %edx
	movl	$1000, %eax                     ## imm = 0x3E8
	movl	$500, %ebx                      ## imm = 0x1F4
	cmovel	%eax, %ebx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_clamp_val
	movl	%eax, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DIV_ROUND_CLOSEST              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lut_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 lut_temp_to_reg
_lut_temp_to_reg:                       ; @lut_temp_to_reg
	.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
	ldp	x9, x8, [x0]
	sub	x0, x1, x8
	mov	w8, #61464
	movk	w8, #1, lsl #16
	add	w10, w8, #500
	cmp	x9, #0
	csel	w2, w8, w10, eq
	mov	w8, #500
	mov	w9, #1000
	csel	w19, w9, w8, eq
	mov	w1, #0
	bl	_clamp_val
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DIV_ROUND_CLOSEST
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lut_temp_to_reg
.subsections_via_symbols
