	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fixed_borders8
_fixed_borders8:                        ## @fixed_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, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	jle	LBB0_14
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdx
	movq	8(%rcx), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	24(%rsi), %rcx
	movq	32(%rsi), %rsi
	movl	(%rsi,%r15,4), %esi
	movslq	(%rdx,%r15,4), %rdi
	leaq	(%r15,%r15,2), %r14
	movl	(%rcx,%r14,8), %edx
	movl	(%rax,%r15,4), %ebx
	subl	4(%rcx,%r14,8), %ebx
	cmpl	%ebx, %edx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jge	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movslq	%edx, %r12
	movq	%r12, %rax
	imulq	%rdi, %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rbx
	leaq	(,%rdi,4), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	leaq	(,%r13,8), %rax
	leaq	(%rax,%rax,2), %r15
	movl	16(%rcx,%r15), %edx
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_memset
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movl	(%rax,%r13,4), %edi
	movq	8(%rcx,%r15), %rdx
	shlq	$2, %rdi
	subq	%rdx, %rdi
	addq	%rbx, %rdi
	shrq	$2, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	incq	%r12
	movq	8(%r14), %rax
	movq	24(%r14), %rcx
	movslq	(%rax,%r13,4), %rdx
	movslq	4(%rcx,%r15), %rsi
	subq	%rsi, %rdx
	addq	-104(%rbp), %rbx                ## 8-byte Folded Reload
	cmpq	%rdx, %r12
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	(%rcx,%r14,8), %edx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%edx, %edx
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %r13d
	leal	(,%rdi,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r15), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edx
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_memset
	incq	%rbx
	movq	24(%r15), %rcx
	movslq	(%rcx,%r14,8), %rax
	addl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	cmpq	%rax, %rbx
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rcx,%r14,8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax,%r15,4), %eax
	subl	%ecx, %eax
	movslq	%eax, %rbx
	shll	$2, %edi
	movl	%ebx, %eax
	imull	%edi, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	16(%r13), %rax
	movl	(%rax,%r15,4), %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edi
	movl	%esi, %r12d
	callq	_memset
	movl	%r12d, %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	incq	%rbx
	movq	8(%r13), %rax
	movslq	(%rax,%r15,4), %rcx
	addl	%edi, %r14d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rbx
	jl	LBB0_12
	jmp	LBB0_13
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fixed_borders8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fixed_borders8
_fixed_borders8:                        ; @fixed_borders8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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_14
; %bb.1:
	mov	x26, x1
	mov	x20, x0
	mov	x23, #0
	ldr	x8, [x0, #8]
	mov	w24, #24
	str	x1, [sp]                        ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x9, [x20]
	cmp	x23, x9
	b.ge	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldp	x10, x9, [x26]
	ldr	x13, [x9, x23, lsl #3]
	lsl	x25, x23, #2
	ldp	x9, x11, [x20, #24]
	ldr	w21, [x11, x25]
	ldrsw	x14, [x10, x25]
	madd	x11, x23, x24, x9
	ldr	w12, [x8, x25]
	ldp	w10, w11, [x11]
	sub	w11, w12, w11
	cmp	w10, w11
	b.ge	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x28, w10
	mul	x8, x28, x14
	str	x13, [sp, #8]                   ; 8-byte Folded Spill
	add	x22, x13, x8, lsl #2
	mov	x27, x14
	lsl	x19, x14, #2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x23, x23, lsl #1
	lsl	x26, x8, #3
	add	x8, x9, x26
	ldr	w2, [x8, #16]
	mov	x0, x22
	mov	x1, x21
	bl	_memset
	ldp	x8, x9, [x20, #16]
	ldr	w8, [x8, x25]
	add	x9, x9, x26
	ldr	x2, [x9, #8]
	lsl	x8, x8, #2
	sub	x8, x8, x2
	add	x8, x22, x8
	lsr	x0, x8, #2
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
	add	x28, x28, #1
	ldr	x8, [x20, #8]
	ldrsw	x10, [x8, x25]
	ldr	x9, [x20, #24]
	add	x11, x9, x26
	ldrsw	x11, [x11, #4]
	add	x22, x22, x19
	sub	x10, x10, x11
	cmp	x28, x10
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	x10, x23, x24
	ldr	w10, [x9, x10]
	ldp	x26, x13, [sp]                  ; 16-byte Folded Reload
	mov	x14, x27
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w10, #1
	b.lt	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x26
	mov	x19, #0
	str	x14, [sp, #8]                   ; 8-byte Folded Spill
	lsl	w28, w14, #2
	mov	x26, x13
	mov	x22, x13
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #16]
	ldr	w2, [x8, x23, lsl #2]
	mov	x0, x22
	mov	x1, x21
	bl	_memset
	add	x19, x19, #1
	ldr	x9, [x20, #24]
	mul	x8, x23, x24
	ldrsw	x8, [x9, x8]
	add	w22, w22, w28
	cmp	x19, x8
	b.lt	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	mov	x13, x26
	mov	x26, x27
	ldr	x14, [sp, #8]                   ; 8-byte Folded Reload
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x9, x23, x24, x9
	ldr	w9, [x9, #4]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8, x23, lsl #2]
	sub	w8, w8, w9
	sxtw	x19, w8
	lsl	w27, w14, #2
	madd	w22, w27, w8, w13
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #16]
	ldr	w2, [x8, x25]
	mov	x0, x22
	mov	x1, x21
	bl	_memset
	add	x19, x19, #1
	ldr	x8, [x20, #8]
	ldrsw	x9, [x8, x25]
	add	w22, w22, w27
	cmp	x19, x9
	b.lt	LBB0_13
	b	LBB0_2
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fixed_borders8
.subsections_via_symbols
