	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scale3x_16_def_center
_scale3x_16_def_center:                 ## @scale3x_16_def_center
	.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
	movl	%r8d, %ebx
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%edi, %edi
	cmpl	$2, %r8d
	setae	%dil
	callq	_assert
	movq	(%r12), %rdx
	movq	%rdx, (%r13)
	movq	%rdx, 8(%r13)
	movq	(%r15), %r9
	movq	(%r14), %r8
	movq	%rdx, %rax
	cmpq	%r8, %r9
	je	LBB0_6
## %bb.1:
	movq	8(%r12), %rcx
	cmpq	%r9, %rcx
	jne	LBB0_3
## %bb.2:
	movq	%r9, %rax
	cmpq	8(%r14), %rdx
	jne	LBB0_6
LBB0_3:
	cmpq	%r8, %rcx
	jne	LBB0_5
## %bb.4:
	movq	%r8, %rax
	cmpq	8(%r15), %rdx
	jne	LBB0_6
LBB0_5:
	movq	%rdx, %rax
LBB0_6:
	movq	%rax, 16(%r13)
	leaq	24(%r13), %rcx
	addl	$-2, %ebx
	je	LBB0_7
## %bb.8:
	xorl	%edi, %edi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r12,%rdi), %rax
	movq	%rax, (%rcx)
	movq	%rax, 8(%rcx)
	movq	%rax, %rdx
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, 16(%rcx)
	addq	$24, %rcx
	addq	$8, %rdi
	decl	%ebx
	je	LBB0_25
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15,%rdi), %r9
	movq	8(%r14,%rdi), %r8
	cmpq	%r8, %r9
	je	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r12,%rdi), %rax
	cmpq	%rax, %rdx
	je	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r9, %rdx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r12,%rdi), %rsi
	cmpq	(%r14,%rdi), %rsi
	jne	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r12,%rdi), %rsi
	cmpq	%r8, %rdx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	(%r15,%rdi), %rsi
	jne	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rsi, %rdx
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rdx, (%rcx)
	movq	%rsi, 8(%rcx)
	cmpq	%r9, %rax
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	16(%r14,%rdi), %rsi
	jne	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r8, %rax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	16(%r15,%rdi), %rsi
	jne	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rsi, %rax
	movq	%rsi, %rdx
	jmp	LBB0_24
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r9, %rax
	movq	%rsi, %rdx
	jmp	LBB0_24
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r8, %rax
	movq	%rsi, %rdx
	jmp	LBB0_24
LBB0_25:
	leaq	-24(%rcx), %r13
	addq	%rdi, %r15
	addq	$8, %r15
	leaq	(%r12,%rdi), %rbx
	addq	$8, %rbx
	addq	%rdi, %r12
	addq	%rdi, %r14
	addq	$8, %r14
	jmp	LBB0_26
LBB0_7:
	addq	$8, %r14
	leaq	8(%r12), %rbx
	addq	$8, %r15
LBB0_26:
	movq	(%r15), %rdi
	movq	(%r14), %rax
	movq	%rbx, %rsi
	cmpq	%rax, %rdi
	je	LBB0_33
## %bb.27:
	cmpq	%rdi, %rdx
	jne	LBB0_30
## %bb.28:
	cmpq	%r8, (%rbx)
	jne	LBB0_29
LBB0_30:
	cmpq	%rax, %rdx
	jne	LBB0_32
## %bb.31:
	movq	%r12, %rsi
	cmpq	%r9, (%rbx)
	jne	LBB0_33
LBB0_32:
	movq	%rbx, %rsi
	jmp	LBB0_33
LBB0_29:
	movq	%r12, %rsi
LBB0_33:
	movq	(%rsi), %rax
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movq	%rax, 32(%r13)
	movq	%rax, 40(%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_scale3x_16_def_center
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scale3x_16_def_center
_scale3x_16_def_center:                 ; @scale3x_16_def_center
	.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
	mov	x23, x4
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	cmp	w4, #1
	cset	w0, hi
	bl	_assert
	ldr	x9, [x19]
	stp	x9, x9, [x22]
	ldr	x10, [x21]
	ldr	x8, [x20]
	mov	x12, x9
	cmp	x10, x8
	b.eq	LBB0_6
; %bb.1:
	ldr	x11, [x19, #8]
	cmp	x11, x10
	b.ne	LBB0_3
; %bb.2:
	ldr	x13, [x20, #8]
	mov	x12, x10
	cmp	x9, x13
	b.ne	LBB0_6
LBB0_3:
	cmp	x11, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	x10, [x21, #8]
	mov	x12, x8
	cmp	x9, x10
	b.ne	LBB0_6
LBB0_5:
	mov	x12, x9
LBB0_6:
	str	x12, [x22, #16]
	add	x10, x21, #8
	add	x8, x22, #24
	subs	w14, w23, #2
	b.eq	LBB0_24
; %bb.7:
	mov	x12, #0
	sub	w13, w23, #3
	add	x15, x13, #2
	add	x11, x20, x15, lsl #3
	add	x16, x13, #1
	add	x13, x21, x16, lsl #3
	add	x17, x20, #16
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x5, #8]
	stp	x0, x0, [x8]
	mov	x9, x0
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	x0, [x8, #16]
	add	x8, x8, #24
	add	x12, x12, #8
	subs	w14, w14, #1
	b.eq	LBB0_23
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x6, x17, x12
	add	x5, x19, x12
	add	x4, x10, x12
	ldr	x0, [x4]
	ldur	x1, [x6, #-8]
	cmp	x0, x1
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x3, [x5, #16]
	cmp	x9, x3
	b.eq	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x9, x0
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x2, [x5, #8]
	ldur	x6, [x6, #-16]
	cmp	x2, x6
	b.ne	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x2, [x5, #8]
	cmp	x9, x1
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldur	x4, [x4, #-8]
	cmp	x2, x4
	b.ne	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x9, x2
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	stp	x9, x2, [x8]
	cmp	x3, x0
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x17, x12]
	cmp	x2, x9
	b.ne	LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	x3, x1
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x10, x12
	ldr	x9, [x9, #8]
	cmp	x2, x9
	csel	x0, x1, x2, ne
	mov	x9, x2
	b	LBB0_9
LBB0_21:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x2
LBB0_22:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x9, x2
	b	LBB0_9
LBB0_23:
	add	x10, x21, x15, lsl #3
	add	x20, x20, x16, lsl #3
	sub	x22, x8, #24
	add	x19, x19, x12
	add	x12, x19, #8
	mov	x21, x13
	b	LBB0_25
LBB0_24:
	add	x11, x20, #8
	add	x12, x19, #8
LBB0_25:
	ldr	x13, [x10]
	ldr	x10, [x11]
	mov	x11, x12
	cmp	x13, x10
	b.eq	LBB0_32
; %bb.26:
	cmp	x9, x13
	b.ne	LBB0_28
; %bb.27:
	ldr	x11, [x12]
	ldr	x13, [x20]
	cmp	x11, x13
	b.ne	LBB0_31
LBB0_28:
	cmp	x9, x10
	b.ne	LBB0_30
; %bb.29:
	ldr	x9, [x12]
	ldr	x10, [x21]
	mov	x11, x19
	cmp	x9, x10
	b.ne	LBB0_32
LBB0_30:
	mov	x11, x12
	b	LBB0_32
LBB0_31:
	mov	x11, x19
LBB0_32:
	ldr	x9, [x11]
	str	x9, [x8]
	ldr	x8, [x12]
	stp	x8, x8, [x22, #32]
	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	_scale3x_16_def_center
.subsections_via_symbols
