	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp_to_u8
_temp_to_u8:                            ## @temp_to_u8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	jle	LBB0_4
## %bb.1:
	movl	$255, %eax
	cmpq	$254999, %rdi                   ## imm = 0x3E417
	ja	LBB0_3
## %bb.2:
	addl	$500, %edi                      ## imm = 0x1F4
	imulq	$274877907, %rdi, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_temp_to_u8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp_to_u8
_temp_to_u8:                            ; @temp_to_u8
	.cfi_startproc
; %bb.0:
	mov	w8, #255
	mov	w9, #58391
	movk	w9, #3, lsl #16
	cmp	x0, x9
	add	w9, w0, #500
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	umull	x9, w9, w10
	lsr	x9, x9, #38
	csel	w8, w8, w9, hi
	cmp	x0, #1
	csel	w0, wzr, w8, lt
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_temp_to_u8
.subsections_via_symbols
