	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp_to_s8
_temp_to_s8:                            ## @temp_to_s8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-128, %eax
	cmpq	$-127999, %rdi                  ## imm = 0xFFFE0C01
	jl	LBB0_4
## %bb.1:
	movl	$127, %eax
	cmpq	$126999, %rdi                   ## imm = 0x1F017
	jg	LBB0_4
## %bb.2:
	testq	%rdi, %rdi
	js	LBB0_5
## %bb.3:
	addl	$500, %edi                      ## imm = 0x1F4
	imulq	$274877907, %rdi, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_5:
	movl	$500, %eax                      ## imm = 0x1F4
	subl	%edi, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	negl	%eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_temp_to_s8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp_to_s8
_temp_to_s8:                            ; @temp_to_s8
	.cfi_startproc
; %bb.0:
	mov	x8, #-62463
	movk	x8, #65534, lsl #16
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #-128
	ret
LBB0_2:
	mov	w8, #127
	mov	w9, #61463
	movk	w9, #1, lsl #16
	add	w10, w0, #500
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	umull	x10, w10, w11
	lsr	x10, x10, #38
	mov	w12, #500
	sub	w12, w12, w0
	umull	x11, w12, w11
	lsr	x11, x11, #38
	tst	x0, #0x8000000000000000
	csneg	w10, w10, w11, eq
	cmp	x0, x9
	csel	w0, w8, w10, gt
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_temp_to_s8
.subsections_via_symbols
