	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp_to_s16
_temp_to_s16:                           ## @temp_to_s16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$32768, %eax                    ## imm = 0x8000
	cmpq	$-127999, %rdi                  ## imm = 0xFFFE0C01
	jl	LBB0_4
## %bb.1:
	movl	$32736, %eax                    ## imm = 0x7FE0
	cmpq	$127874, %rdi                   ## imm = 0x1F382
	jg	LBB0_4
## %bb.2:
	testq	%rdi, %rdi
	js	LBB0_5
## %bb.3:
	addl	$62, %edi
	imulq	$274877907, %rdi, %rax          ## imm = 0x10624DD3
	shrq	$32, %rax
	shll	$2, %eax
	andl	$-32, %eax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_5:
	movl	$62, %eax
	subl	%edi, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$32, %rax
	shll	$2, %eax
	andl	$-32, %eax
	negl	%eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_temp_to_s16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp_to_s16
_temp_to_s16:                           ; @temp_to_s16
	.cfi_startproc
; %bb.0:
	mov	x8, #-62463
	movk	x8, #65534, lsl #16
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #32768
	ret
LBB0_2:
	mov	w8, #62338
	movk	w8, #1, lsl #16
	cmp	x0, x8
	b.le	LBB0_4
; %bb.3:
	mov	w0, #32736
	ret
LBB0_4:
	tbnz	x0, #63, LBB0_6
; %bb.5:
	add	w8, w0, #62
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #32
	lsl	w8, w8, #2
	and	w0, w8, #0x7fffffe0
	ret
LBB0_6:
	mov	w8, #62
	sub	w8, w8, w0
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #32
	lsl	w8, w8, #2
	and	w8, w8, #0x7fffffe0
	neg	w0, w8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_temp_to_s16
.subsections_via_symbols
