	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rescale64                      ## -- Begin function rescale64
	.p2align	4, 0x90
_rescale64:                             ## @rescale64
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	%esi, %edi
	jge	LBB0_1
## %bb.2:
	testl	%edi, %edi
	jle	LBB0_3
## %bb.4:
	xorl	%ecx, %ecx
	movl	$64, %r8d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	subl	%r10d, %edi
	addl	%edi, %edi
	movb	%r9b, %al
	addl	%eax, %eax
	leal	(%rax,%rcx,4), %ecx
	addl	$-2, %r8d
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	movl	$0, %r10d
	cmpl	%esi, %edi
	setge	%r9b
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, %r10d
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	subl	%r10d, %edi
	movb	%r9b, %al
	orl	%eax, %ecx
	addl	%edi, %edi
	xorl	%eax, %eax
	movl	$0, %r10d
	cmpl	%esi, %edi
	setge	%r9b
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, %r10d
	jmp	LBB0_9
LBB0_1:
	movl	%edx, %eax
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	movl	$64, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edi
	andl	$1, %edi
	negl	%edi
	andl	%edx, %edi
	addl	%eax, %edi
	sarl	%edi
	movl	%ecx, %eax
	shll	$30, %eax
	sarl	$31, %eax
	andl	%edx, %eax
	addl	%edi, %eax
	sarl	$2, %ecx
	sarl	%eax
	addl	$-2, %esi
	jne	LBB0_11
## %bb.12:
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rescale64                      ; -- Begin function rescale64
	.p2align	2
_rescale64:                             ; @rescale64
	.cfi_startproc
; %bb.0:
	cmp	w0, w1
	b.ge	LBB0_7
; %bb.1:
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.2:
	mov	w8, #0
	mov	w9, #64
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w0, w1
	csel	w10, wzr, w1, lt
	cset	w11, ge
	sub	w10, w0, w10
	orr	w8, w8, w11
	lsl	w0, w10, #1
	lsl	w8, w8, #1
	subs	w9, w9, #1
	b.ne	LBB0_3
; %bb.4:
	mov	w0, #0
	mov	w9, #64
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sbfx	w10, w8, #0, #1
	and	w10, w10, w2
	add	w10, w10, w0
	asr	w8, w8, #1
	asr	w0, w10, #1
	subs	w9, w9, #1
	b.ne	LBB0_5
; %bb.6:
	ret
LBB0_7:
	mov	x0, x2
	ret
LBB0_8:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
