	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp1_to_reg
_temp1_to_reg:                          ## @temp1_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
	movslq	%esi, %rax
	cmpq	%rdi, %rax
	jge	LBB0_4
## %bb.1:
	movslq	%edx, %rax
	cmpq	%rdi, %rax
	jle	LBB0_4
## %bb.2:
	testq	%rdi, %rdi
	js	LBB0_6
## %bb.3:
	addq	$500, %rdi                      ## imm = 0x1F4
	shrq	$3, %rdi
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	movq	%rdi, %rax
	mulq	%rcx
	movq	%rdx, %rax
	shrq	$4, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	movl	$500, %eax                      ## imm = 0x1F4
	subq	%rdi, %rax
	shrq	$3, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	mulq	%rcx
	movq	%rdx, %rax
	shrq	$4, %rax
	negl	%eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_temp1_to_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp1_to_reg
_temp1_to_reg:                          ; @temp1_to_reg
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x8, w1
	cmp	x8, x0
	b.ge	LBB0_2
; %bb.1:
	sxtw	x8, w2
	add	x9, x0, #500
	lsr	x9, x9, #3
	mov	x10, #63439
	movk	x10, #58195, lsl #16
	movk	x10, #39845, lsl #32
	movk	x10, #8388, lsl #48
	umulh	x9, x9, x10
	lsr	x9, x9, #4
	mov	w11, #500
	sub	x11, x11, x0
	lsr	x11, x11, #3
	umulh	x10, x11, x10
	lsr	x10, x10, #4
	tst	x0, #0x8000000000000000
	csneg	w9, w9, w10, eq
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x10, w2, w10
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	cmp	x8, x0
	csel	w0, w9, w10, gt
	ret
LBB0_2:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w1, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_temp1_to_reg
.subsections_via_symbols
