	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mirror_borders8
_mirror_borders8:                       ## @mirror_borders8
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	cmpl	$0, (%rdi)
	jle	LBB0_20
## %bb.1:
	movq	%rdi, %r15
	movq	24(%rdi), %rdi
	xorl	%r12d, %r12d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##       Child Loop BB0_9 Depth 3
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movq	(%rcx,%r12,8), %r13
	movslq	(%rax,%r12,4), %rsi
	movq	%r12, %r8
	shlq	$4, %r8
	movl	(%rdi,%r8), %eax
	movl	4(%rdi,%r8), %ecx
	movq	8(%r15), %rbx
	movl	(%rbx,%r12,4), %edx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	jge	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdi,%r8), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r14
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%r8), %r10
	addq	$4, %r10
	movl	%esi, %edx
	imull	%eax, %edx
	leal	-1(%rdx), %r11d
	movq	%r14, %rax
	imulq	%rsi, %rax
	leaq	(,%rax,4), %r15
	addq	%r13, %r15
	leaq	(,%rsi,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx,%r12,4), %rax
	movslq	(%r10), %rcx
	subq	%rcx, %rax
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addl	%esi, %r11d
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	addl	%esi, %edx
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##       Child Loop BB0_9 Depth 3
	movl	4(%r10), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r11d, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%rcx,%rax,2), %eax
	cltq
	movl	(%r13,%rax,4), %eax
	movl	%eax, (%r15,%rsi,4)
	incq	%rsi
	movslq	4(%r10), %rax
	decl	%ecx
	cmpq	%rax, %rsi
	jl	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	8(%r10), %r8d
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rcx
	xorl	%esi, %esi
	movl	$-1, %eax
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rcx,%r12,4), %r9d
	subl	%r8d, %r9d
	leal	(%rdx,%rax), %ebx
	addl	%r9d, %ebx
	movslq	%ebx, %rbx
	movl	(%r13,%rbx,4), %ebx
	addl	%edx, %r9d
	addl	%esi, %r9d
	movslq	%r9d, %rdi
	movl	%ebx, (%r13,%rdi,4)
	incl	%esi
	movl	8(%r10), %r8d
	decl	%eax
	cmpl	%r8d, %esi
	jl	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jle	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%rsi,4), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$-1, %r14d
	movq	%r13, %rbx
	xorl	%r15d, %r15d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r14,%rax,2), %eax
	imull	%esi, %eax
	cltq
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	16(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	incq	%r15
	movq	24(%r12), %rdi
	movslq	(%rdi,%rcx), %rax
	decl	%r14d
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	cmpq	%rax, %r15
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rdi,%rcx), %ecx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movl	$-1, %r14d
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movq	16(%r15), %rdx
	movl	(%rax,%r12,4), %eax
	subl	%ecx, %eax
	leal	(%rbx,%rax), %ecx
	imull	%esi, %ecx
	movslq	%ecx, %rcx
	leaq	(,%rcx,4), %rdi
	addq	%r13, %rdi
	addl	%r14d, %eax
	imull	%esi, %eax
	cltq
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movl	(%rdx,%r12,4), %edx
	callq	_memcpy
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	incl	%ebx
	movq	24(%r15), %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rdi,%rax), %ecx
	decl	%r14d
	cmpl	%ecx, %ebx
	jl	LBB0_18
	jmp	LBB0_19
LBB0_20:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mirror_borders8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mirror_borders8
_mirror_borders8:                       ; @mirror_borders8
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	ldr	x8, [x0, #24]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x20]
	cmp	x22, x9
	b.ge	LBB0_20
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;       Child Loop BB0_11 Depth 3
                                        ;     Child Loop BB0_15 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	ldp	x10, x9, [x19]
	ldr	x23, [x9, x22, lsl #3]
	lsl	x24, x22, #2
	ldrsw	x25, [x10, x24]
	add	x9, x8, x22, lsl #4
	ldr	w15, [x9]
	ldr	x10, [x20, #8]
	mov	x11, x9
	ldr	w1, [x11, #4]!
	ldr	w12, [x10, x24]
	sub	w12, w12, w1
	cmp	w15, w12
	b.ge	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, x15
	sxtw	x12, w12
	add	x13, x9, #8
	add	x14, x9, #12
	mul	w15, w15, w25
	sub	w16, w15, #1
	mul	x17, x12, x25
	add	x17, x23, x17, lsl #2
	lsl	x0, x25, #2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x12, x12, #1
	ldrsw	x2, [x10, x22, lsl #2]
	ldrsw	x1, [x11]
	add	w16, w16, w25
	add	x17, x17, x0
	add	w15, w15, w25
	sub	x2, x2, x1
	cmp	x12, x2
	b.ge	LBB0_12
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;       Child Loop BB0_11 Depth 3
	ldr	w2, [x13]
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x1, #0
	mov	x3, x16
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w2, w3, w2, lsl #1
	ldr	w2, [x23, w2, sxtw #2]
	str	w2, [x17, x1, lsl #2]
	add	x1, x1, #1
	ldrsw	x2, [x13]
	sub	w3, w3, #1
	cmp	x1, x2
	b.lt	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w4, [x14]
	cmp	w4, #1
	b.lt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	w1, #0
	ldr	x2, [x20, #16]
	mov	w3, #-1
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w5, [x2, x22, lsl #2]
	sub	w4, w5, w4
	add	w5, w15, w3
	add	w5, w5, w4
	ldr	w5, [x23, w5, sxtw #2]
	add	w6, w15, w1
	add	w4, w6, w4
	str	w5, [x23, w4, sxtw #2]
	add	w1, w1, #1
	ldr	w4, [x14]
	sub	w3, w3, #1
	cmp	w1, w4
	b.lt	LBB0_11
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w15, [x9]
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w15, #1
	b.lt	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	lsl	x27, x25, #2
	mov	w28, #-1
	mov	x21, x23
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w28, w15, lsl #1
	mul	w8, w8, w25
	add	x1, x23, w8, sxtw #2
	ldr	x8, [x20, #16]
	ldr	w2, [x8, x22, lsl #2]
	mov	x0, x21
	bl	_memcpy
	add	x26, x26, #1
	ldr	x8, [x20, #24]
	lsl	x9, x22, #4
	ldrsw	x15, [x8, x9]
	sub	w28, w28, #1
	add	x21, x21, x27
	cmp	x26, x15
	b.lt	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x8, x22, lsl #4
	ldr	w1, [x9, #4]
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w1, #1
	b.lt	LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w21, #0
	mov	w26, #-1
LBB0_19:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x8, x9, [x20, #8]
	ldr	w8, [x8, x24]
	sub	w8, w8, w1
	add	w10, w21, w8
	mul	w10, w10, w25
	add	x0, x23, w10, sxtw #2
	add	w8, w26, w8
	mul	w8, w8, w25
	add	x1, x23, w8, sxtw #2
	ldr	w2, [x9, x24]
	bl	_memcpy
	add	w21, w21, #1
	ldr	x8, [x20, #24]
	add	x9, x8, x22, lsl #4
	ldr	w1, [x9, #4]
	sub	w26, w26, #1
	cmp	w21, w1
	b.lt	LBB0_19
	b	LBB0_2
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mirror_borders8
.subsections_via_symbols
