	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scaleup
_scaleup:                               ## @scaleup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	xorl	%ecx, %ecx
	cmpl	$8, %edx
	jl	LBB0_3
## %bb.1:
	leal	-7(%rdx), %r8d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,2), %eax
	movl	%eax, 4(%rdi,%rcx,4)
	movl	%eax, (%rdi,%rcx,4)
	movl	4(%rsi,%rcx,2), %eax
	movl	%eax, 12(%rdi,%rcx,4)
	movl	%eax, 8(%rdi,%rcx,4)
	movl	8(%rsi,%rcx,2), %eax
	movl	%eax, 20(%rdi,%rcx,4)
	movl	%eax, 16(%rdi,%rcx,4)
	movl	12(%rsi,%rcx,2), %eax
	movl	%eax, 28(%rdi,%rcx,4)
	movl	%eax, 24(%rdi,%rcx,4)
	addq	$8, %rcx
	cmpq	%r8, %rcx
	jb	LBB0_2
LBB0_3:
	cmpl	%edx, %ecx
	jge	LBB0_9
## %bb.4:
	movl	%ecx, %r11d
	movl	%edx, %r8d
	subl	%ecx, %edx
	movq	%r11, %rcx
	notq	%rcx
	addq	%r8, %rcx
	andq	$3, %rdx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r11d, %eax
	andl	$-2, %eax
	movl	(%rsi,%rax,2), %eax
	movl	%eax, (%rdi,%r11,4)
	incq	%r11
	decq	%rdx
	jne	LBB0_5
LBB0_6:
	cmpq	$3, %rcx
	jb	LBB0_9
## %bb.7:
	leaq	3(%r11), %r9
	shrq	%r9
	leaq	2(%r11), %r10
	shrq	%r10
	movq	%r11, %rdx
	shrq	%rdx
	leaq	1(%r11), %rcx
	shrq	%rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %eax
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	(%rsi,%rax,4), %eax
	movl	%eax, (%rdi,%r11,4)
	movl	%ecx, %eax
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	(%rsi,%rax,4), %eax
	movl	%eax, 4(%rdi,%r11,4)
	movl	%r10d, %eax
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	(%rsi,%rax,4), %eax
	movl	%eax, 8(%rdi,%r11,4)
	movl	%r9d, %eax
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	(%rsi,%rax,4), %eax
	movl	%eax, 12(%rdi,%r11,4)
	addq	$4, %r11
	addq	$2, %r9
	addq	$2, %r10
	addq	$2, %rdx
	addq	$2, %rcx
	cmpq	%r11, %r8
	jne	LBB0_8
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_scaleup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scaleup
_scaleup:                               ; @scaleup
	.cfi_startproc
; %bb.0:
	cmp	w2, #8
	b.lt	LBB0_4
; %bb.1:
	mov	x8, #0
	sub	w9, w2, #7
	add	x10, x0, #16
	add	x11, x1, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x11, #-8]
	stp	w12, w12, [x10, #-16]
	ldur	w12, [x11, #-4]
	stp	w12, w12, [x10, #-8]
	ldr	w12, [x11]
	stp	w12, w12, [x10]
	ldr	w12, [x11, #4]
	stp	w12, w12, [x10, #8]
	add	x8, x8, #8
	add	x10, x10, #32
	add	x11, x11, #16
	cmp	x8, x9
	b.lo	LBB0_2
; %bb.3:
	cmp	w8, w2
	b.lt	LBB0_5
	b	LBB0_7
LBB0_4:
	mov	w8, #0
	cmp	w8, w2
	b.ge	LBB0_7
LBB0_5:
	mov	w8, w8
	mov	w9, w2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ubfx	x10, x8, #1, #31
	ldr	w10, [x1, x10, lsl #2]
	str	w10, [x0, x8, lsl #2]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_6
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_scaleup
.subsections_via_symbols
