	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rescale
_rescale:                               ## @rescale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movl	$256, %r9d                      ## imm = 0x100
	subl	%ecx, %r9d
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movq	8(%rdi), %r8
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rdx,4), %eax
	movl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %eax
	movl	%eax, (%r8,%rdx,4)
	addl	%eax, %r9d
	incq	%rdx
	movslq	(%rdi), %rax
	cmpq	%rax, %rdx
	jl	LBB0_2
LBB0_3:
	movl	%r9d, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rescale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rescale
_rescale:                               ; @rescale
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	mov	w8, #256
	sub	w8, w8, w9
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x9, #2
	ldr	w12, [x10, x11]
	sub	w12, w12, w12, asr #1
	str	w12, [x10, x11]
	add	w8, w12, w8
	add	x9, x9, #1
	ldrsw	x11, [x0]
	cmp	x9, x11
	b.lt	LBB0_2
LBB0_3:
	str	w8, [x1]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rescale
.subsections_via_symbols
