	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scale3x_8_def_border
_scale3x_8_def_border:                  ## @scale3x_8_def_border
	.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), %r8
	movq	%r8, (%r13)
	movq	%r8, 8(%r13)
	movq	8(%r12), %rax
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.1:
	cmpq	%rax, (%r14)
	jne	LBB0_3
LBB0_2:
	movq	%r8, %rax
LBB0_3:
	addq	$8, %r12
	movq	%rax, 16(%r13)
	addq	$8, %r14
	leaq	24(%r13), %rax
	addl	$-2, %ebx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12,%rdx), %rsi
	movq	%rsi, (%rax)
	movq	%rsi, 8(%rax)
	movq	%rsi, %r8
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, 16(%rax)
	addq	$24, %rax
	addq	$8, %rdx
	decl	%ebx
	je	LBB0_18
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15,%rdx), %rsi
	cmpq	(%r14,%rdx), %rsi
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12,%rdx), %rdi
	cmpq	%rdi, %r8
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rsi, %r8
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r8, (%rax)
	movq	(%r12,%rdx), %rcx
	cmpq	16(%r15,%rdx), %rcx
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rsi, %rdi
	je	LBB0_12
	jmp	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12,%rdx), %rcx
	movq	%rcx, (%rax)
	cmpq	%rsi, %rdi
	jne	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	(%r15,%rdx), %rcx
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rcx, %r8
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, %r8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r8, 8(%rax)
	cmpq	%rsi, %rdi
	cmovneq	%rcx, %rsi
	movq	%rcx, %r8
	jmp	LBB0_17
LBB0_18:
	leaq	-24(%rax), %r13
	addq	%rdx, %r15
	addq	$8, %r15
	addq	%rdx, %r12
	addq	%rdx, %r14
	cmpq	(%r15), %r8
	je	LBB0_20
	jmp	LBB0_22
LBB0_4:
	addq	$8, %r15
	cmpq	(%r15), %r8
	jne	LBB0_22
LBB0_20:
	cmpq	%r8, (%r14)
	jne	LBB0_21
LBB0_22:
	movq	(%r12), %rcx
	movq	%rcx, %r8
	jmp	LBB0_23
LBB0_21:
	movq	(%r12), %rcx
LBB0_23:
	movq	%r8, (%rax)
	movq	%rcx, 32(%r13)
	movq	%rcx, 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_8_def_border
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scale3x_8_def_border
_scale3x_8_def_border:                  ; @scale3x_8_def_border
	.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	x22, x4
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	cmp	w4, #1
	cset	w0, hi
	bl	_assert
	ldr	x9, [x19]
	stp	x9, x9, [x21]
	mov	x14, x19
	ldr	x8, [x14, #8]!
	ldr	x10, [x23]
	cmp	x8, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x20]
	cmp	x10, x8
	b.ne	LBB0_3
LBB0_2:
	mov	x8, x9
LBB0_3:
	str	x8, [x21, #16]
	add	x10, x20, #8
	add	x11, x23, #8
	add	x8, x21, #24
	subs	w13, w22, #2
	b.eq	LBB0_18
; %bb.4:
	mov	x12, #0
	sub	w14, w22, #3
	add	x14, x14, #2
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x15, [x0, #8]
	stp	x15, x15, [x8]
	mov	x9, x15
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x15, [x8, #16]
	add	x8, x8, #24
	add	x12, x12, #8
	subs	w13, w13, #1
	b.eq	LBB0_17
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, x12
	add	x17, x11, x12
	ldr	x15, [x17]
	ldr	x16, [x10, x12]
	cmp	x15, x16
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x16, [x0, #16]
	cmp	x9, x16
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x9, x15
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x9, [x8]
	ldr	x0, [x0, #8]
	add	x1, x11, x12
	ldr	x1, [x1, #8]
	cmp	x0, x1
	b.ne	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x16, x15
	b.eq	LBB0_13
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x0, #8]
	str	x0, [x8]
	cmp	x16, x15
	b.ne	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x9, [x17, #-8]
	cmp	x0, x9
	b.ne	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x9, x0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x9, x15
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x9, [x8, #8]
	cmp	x16, x15
	csel	x15, x15, x0, eq
	mov	x9, x0
	b	LBB0_6
LBB0_17:
	add	x10, x20, x14, lsl #3
	sub	x21, x8, #24
	add	x13, x19, x12
	add	x14, x13, #8
	add	x11, x11, x12
LBB0_18:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_20
; %bb.19:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_21
LBB0_20:
	ldr	x10, [x14]
	mov	x9, x10
	b	LBB0_22
LBB0_21:
	ldr	x10, [x14]
LBB0_22:
	str	x9, [x8]
	stp	x10, x10, [x21, #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_8_def_border
.subsections_via_symbols
