	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rebase_bytes_v1
_rebase_bytes_v1:                       ## @rebase_bytes_v1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	subl	%edx, %edi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%edi, %r14d
	addl	%edi, %r15d
	cmpl	%ecx, %r15d
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	subl	(%r12), %eax
	movl	4(%r12), %edi
	cltd
	idivl	%edi
                                        ## kill: def $edx killed $edx def $rdx
	leal	31(%rdx), %ebx
	testl	%edx, %edx
	cmovnsl	%edx, %ebx
	movl	%ebx, %r8d
	sarl	$5, %r8d
	movslq	8(%r12), %rsi
	cmpl	%esi, %r8d
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	12(%r12), %eax
	jge	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$-32, %ebx
	subl	%ebx, %edx
	movl	%edx, %ebx
	sarb	$7, %bl
	shrb	$6, %bl
	addb	%dl, %bl
	movq	24(%r12), %rdx
	cltq
	imulq	(%rdx,%rax,8), %rsi
	sarb	$2, %bl
	shlq	$2, %rsi
	addq	16(%r12), %rsi
	movslq	%r8d, %rax
	movl	(%rsi,%rax,4), %eax
	movzbl	%bl, %edx
	btl	%edx, %eax
	jae	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %r13
	movq	%r13, %rdi
	movl	%ecx, %ebx
	callq	_r_read_le64
	addl	32(%r12), %eax
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_r_write_le64
	movl	%ebx, %ecx
	movl	$8, %edi
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$4, %edi
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rebase_bytes_v1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rebase_bytes_v1
_rebase_bytes_v1:                       ; @rebase_bytes_v1
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w3, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w24, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w13, w11
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w8, w20
	add	w24, w8, w24
	cmp	w24, w19
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w13, [x22]
	sub	w9, w20, w8
	sdiv	w8, w9, w13
	msub	w11, w8, w13, w9
	add	w9, w11, #31
	cmp	w11, #0
	csel	w12, w9, w11, lt
	asr	w9, w12, #5
	ldrsw	x10, [x22, #8]
	cmp	w9, w10
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w13, [x22, #12]
	cmp	w8, w13
	b.ge	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w12, w12, #0xffffffe0
	sub	w11, w11, w12
	sxtb	w12, w11
	ubfx	w12, w12, #13, #2
	add	w11, w11, w12
	ldp	x12, x13, [x22, #16]
	ldr	x8, [x13, w8, sxtw #3]
	sbfx	w11, w11, #2, #6
	mul	x8, x8, x10
	add	x8, x12, x8, lsl #2
	ldr	w8, [x8, w9, sxtw #2]
	lsr	w8, w8, w11
	tbz	w8, #0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x21, w24, sxtw #2
	mov	x0, x23
	bl	_r_read_le64
	ldr	w8, [x22, #32]
	add	w1, w0, w8
	mov	x0, x23
	bl	_r_write_le64
	mov	w8, #8
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #4
	b	LBB0_3
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rebase_bytes_v1
.subsections_via_symbols
