	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TEMP_HYST_TO_REG
_TEMP_HYST_TO_REG:                      ## @TEMP_HYST_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rax
	movl	%edi, %ebx
	leal	-15000(%rbx), %esi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_clamp_val
	subl	%eax, %ebx
	movl	%ebx, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_CLOSEST
	cmpl	$1, %r14d
	jne	LBB0_2
## %bb.1:
	andl	$240, %r15d
	jmp	LBB0_3
LBB0_2:
	andl	$15, %r15d
	shlq	$4, %rax
LBB0_3:
	orq	%r15, %rax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_TEMP_HYST_TO_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TEMP_HYST_TO_REG
_TEMP_HYST_TO_REG:                      ; @TEMP_HYST_TO_REG
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x8, x1
	mov	x21, x0
	mov	w9, #-15000
	add	w1, w0, w9
	mov	x0, x8
	mov	x2, x21
	bl	_clamp_val
	sub	w0, w21, w0
	mov	w1, #1000
	bl	_DIV_ROUND_CLOSEST
	cmp	w20, #1
	and	w8, w19, #0xf
	bfi	x8, x0, #4, #60
	and	w9, w19, #0xf0
	orr	x9, x0, x9
	csel	x0, x8, x9, ne
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_TEMP_HYST_TO_REG
.subsections_via_symbols
