	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scale3x
_scale3x:                               ## @scale3x
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	16(%rbp), %r15d
	xorl	%edi, %edi
	cmpl	$2, %r15d
	setae	%dil
	callq	_assert
	xorl	%edi, %edi
	callq	_SCDST
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	callq	_SCDST
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$2, %edi
	callq	_SCDST
	movq	%rax, %r14
	xorl	%edi, %edi
	callq	_SCSRC
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_SCSRC
	movq	%rax, %r12
	movl	$1, %edi
	callq	_SCSRC
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	movq	%rax, %r9
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	pushq	%r13
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_stage_scale3x
	addq	$16, %rsp
	movl	$3, %edi
	callq	_SCDST
	addl	$-2, %r15d
	je	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_SCDST
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	callq	_SCDST
	movq	%rax, %r12
	movl	$2, %edi
	callq	_SCDST
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_SCSRC
	movq	%rax, %r14
	movl	$1, %edi
	callq	_SCSRC
	movq	%rax, %r13
	movl	$2, %edi
	callq	_SCSRC
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%rax, %r9
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_stage_scale3x
	addq	$16, %rsp
	movl	$3, %edi
	callq	_SCDST
	movl	$1, %edi
	callq	_SCSRC
	decl	%r15d
	jne	LBB0_1
LBB0_2:
	xorl	%edi, %edi
	callq	_SCDST
	movq	%rax, %r15
	movl	$1, %edi
	callq	_SCDST
	movq	%rax, %r14
	movl	$2, %edi
	callq	_SCDST
	movq	%rax, %r12
	xorl	%edi, %edi
	callq	_SCSRC
	movq	%rax, %r13
	movl	$1, %edi
	callq	_SCSRC
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_SCSRC
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%rbx, %r8
	movq	%rax, %r9
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_stage_scale3x
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_scale3x
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scale3x
_scale3x:                               ; @scale3x
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x6
	mov	x19, x5
	mov	x20, x4
	cmp	w6, #1
	cset	w0, hi
	bl	_assert
	mov	w0, #0
	bl	_SCDST
	mov	x22, x0
	mov	w0, #1
	bl	_SCDST
	mov	x23, x0
	mov	w0, #2
	bl	_SCDST
	mov	x24, x0
	mov	w0, #0
	bl	_SCSRC
	mov	x25, x0
	mov	w0, #0
	bl	_SCSRC
	mov	x26, x0
	mov	w0, #1
	bl	_SCSRC
	mov	x5, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	mov	x6, x20
	mov	x7, x19
	bl	_stage_scale3x
	mov	w0, #3
	bl	_SCDST
	subs	w26, w21, #2
	b.eq	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_SCDST
	mov	x21, x0
	mov	w0, #1
	bl	_SCDST
	mov	x22, x0
	mov	w0, #2
	bl	_SCDST
	mov	x23, x0
	mov	w0, #0
	bl	_SCSRC
	mov	x24, x0
	mov	w0, #1
	bl	_SCSRC
	mov	x25, x0
	mov	w0, #2
	bl	_SCSRC
	mov	x5, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	mov	x6, x20
	mov	x7, x19
	bl	_stage_scale3x
	mov	w0, #3
	bl	_SCDST
	mov	w0, #1
	bl	_SCSRC
	subs	w26, w26, #1
	b.ne	LBB0_1
LBB0_2:
	mov	w0, #0
	bl	_SCDST
	mov	x21, x0
	mov	w0, #1
	bl	_SCDST
	mov	x22, x0
	mov	w0, #2
	bl	_SCDST
	mov	x23, x0
	mov	w0, #0
	bl	_SCSRC
	mov	x24, x0
	mov	w0, #1
	bl	_SCSRC
	mov	x25, x0
	mov	w0, #1
	bl	_SCSRC
	mov	x5, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	mov	x6, x20
	mov	x7, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_stage_scale3x
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_scale3x
.subsections_via_symbols
