	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fixed_borders16
_fixed_borders16:                       ## @fixed_borders16
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_21
## %bb.1:
	movq	(%rsi), %r12
	movq	8(%rsi), %r13
	movq	8(%rdi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	40(%rdi), %rsi
	xorl	%r10d, %r10d
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r10
	movslq	(%rdi), %rax
	cmpq	%rax, %r10
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	jge	LBB0_21
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
                                        ##       Child Loop BB0_25 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_17 Depth 3
	movq	(%r13,%r10,8), %r15
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r10,4), %edx
	movb	16(%rdi), %cl
	addb	$-8, %cl
	shll	%cl, %edx
	movl	(%r12,%r10,4), %eax
	movl	%eax, %r11d
	shrl	$31, %r11d
	addl	%eax, %r11d
	sarl	%r11d
	movq	%r10, %rcx
	shlq	$4, %rcx
	leaq	(%rsi,%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi,%rcx), %r14d
	movl	4(%rsi,%rcx), %ebx
	leaq	4(%rsi,%rcx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r10,4), %eax
	subl	%ebx, %eax
	movslq	%r11d, %rdi
	cmpl	%eax, %r14d
	jge	LBB0_3
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %r13
	leaq	(%rsi,%rcx), %r8
	addq	$8, %r8
	movq	%r13, %rcx
	imulq	%rdi, %rcx
	leaq	(%r15,%rcx,4), %r9
	leaq	(,%rdi,4), %rsi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	imull	%r14d, %r12d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_23 Depth=2
	incq	%r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax,%r10,4), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rbx
	subq	%rbx, %rax
	addq	%rsi, %r9
	addl	%r11d, %r12d
	cmpq	%rax, %r13
	jge	LBB0_4
LBB0_23:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_25 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
	cmpl	$0, (%r8)
	jle	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_23 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%edx, (%r9,%rcx,4)
	incq	%rcx
	movslq	(%r8), %rdi
	cmpq	%rdi, %rcx
	jl	LBB0_25
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=2
	movl	4(%r8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	32(%r14), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_23 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rdi,%r10,4), %eax
	subl	%ecx, %eax
	addl	%r12d, %eax
	addl	%ebx, %eax
	cltq
	movl	%edx, (%r15,%rax,4)
	incl	%ebx
	movl	4(%r8), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_28
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %r11
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testl	%r14d, %r14d
	jg	LBB0_6
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %r14d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-96(%rbp), %r11                 ## 8-byte Reload
	testl	%r14d, %r14d
	jle	LBB0_13
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movl	(%rax,%r10,4), %edi
	leaq	(,%r11,4), %r8
	movq	%r15, %rbx
	xorl	%r9d, %r9d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%r9
	movslq	%r14d, %rcx
	addq	%r8, %rbx
	cmpq	%rcx, %r9
	jge	LBB0_12
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	testl	%edi, %edi
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%edx, (%rbx,%rcx,4)
	incq	%rcx
	movslq	(%rax,%r10,4), %rdi
	cmpq	%rdi, %rcx
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	(%rsi), %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r10,4), %r8d
	movl	%r8d, %ecx
	subl	%ebx, %ecx
	movq	32(%rdi), %rax
	movslq	%ecx, %r9
	movl	(%rax,%r10,4), %ebx
	movq	%r11, %rcx
	imulq	%r9, %rcx
	leaq	(%r15,%rcx,4), %rsi
	shlq	$2, %r11
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	incq	%r9
	movslq	%r8d, %rcx
	addq	%r11, %rsi
	cmpq	%rcx, %r9
	jge	LBB0_20
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_17 Depth 3
	testl	%ebx, %ebx
	jle	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%edx, (%rsi,%rcx,4)
	incq	%rcx
	movslq	(%rax,%r10,4), %rbx
	cmpq	%rbx, %rcx
	jl	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r10,4), %r8d
	jmp	LBB0_19
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fixed_borders16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fixed_borders16
_fixed_borders16:                       ; @fixed_borders16
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.1:
	mov	x8, #0
	ldr	x9, [x0, #8]
	ldp	x11, x10, [x1]
	ldr	x12, [x0, #40]
	ldr	x13, [x0, #24]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	ldrsw	x14, [x0]
	cmp	x8, x14
	b.ge	LBB0_28
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_16 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
                                        ;     Child Loop BB0_24 Depth 2
                                        ;       Child Loop BB0_26 Depth 3
	ldr	x15, [x10, x8, lsl #3]
	lsl	x16, x8, #2
	ldr	w14, [x9, x16]
	ldr	w17, [x0, #16]
	sub	w17, w17, #8
	lsl	w14, w14, w17
	ldr	w17, [x11, x16]
	cmp	w17, #0
	cinc	w17, w17, lt
	asr	w17, w17, #1
	add	x1, x12, x8, lsl #4
	ldr	w6, [x1]
	mov	x2, x1
	ldr	w20, [x2, #4]!
	ldr	w3, [x13, x16]
	sub	w3, w3, w20
	cmp	w6, w3
	b.ge	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x3, w6
	add	x4, x1, #8
	add	x5, x1, #12
	sxtw	x7, w17
	mul	x7, x3, x7
	add	x7, x15, x7, lsl #2
	sbfiz	x19, x17, #2, #32
	mul	w6, w6, w17
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldrsw	x21, [x13, x8, lsl #2]
	add	x3, x3, #1
	ldrsw	x20, [x2]
	add	x7, x7, x19
	add	w6, w6, w17
	sub	x21, x21, x20
	cmp	x3, x21
	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	w20, [x4]
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x20, #0
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	str	w14, [x7, x20, lsl #2]
	add	x20, x20, #1
	ldrsw	x21, [x4]
	cmp	x20, x21
	b.lt	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w22, [x5]
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	w20, #0
	ldr	x21, [x0, #32]
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w23, [x21, x8, lsl #2]
	sub	w22, w23, w22
	add	w23, w6, w20
	add	w22, w23, w22
	add	w20, w20, #1
	str	w14, [x15, w22, sxtw #2]
	ldr	w22, [x5]
	cmp	w20, w22
	b.lt	LBB0_11
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w6, [x1]
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w6, #1
	b.lt	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x3, #0
	ldr	x4, [x0, #32]
	ldr	w19, [x4, x8, lsl #2]
	mov	x5, x17
	sbfiz	x5, x5, #2, #32
	mov	x7, x15
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x3, x3, #1
	add	x7, x7, x5
	cmp	x3, w6, sxtw
	b.ge	LBB0_20
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x6, #0
LBB0_18:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	str	w14, [x7, x6, lsl #2]
	add	x6, x6, #1
	ldrsw	x19, [x4, x8, lsl #2]
	cmp	x6, x19
	b.lt	LBB0_18
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w6, [x1]
	b	LBB0_15
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w20, [x2]
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x13, x16]
	sub	w5, w3, w20
	ldr	x1, [x0, #32]
	sxtw	x2, w5
	ldr	w4, [x1, x16]
	smull	x16, w17, w5
	add	x15, x15, x16, lsl #2
                                        ; kill: def $w17 killed $w17 killed $x17 def $x17
	sbfiz	x16, x17, #2, #32
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	x2, x2, #1
	add	x15, x15, x16
	cmp	x2, w3, sxtw
	b.ge	LBB0_2
LBB0_24:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_26 Depth 3
	cmp	w4, #1
	b.lt	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x17, #0
LBB0_26:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_24 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	str	w14, [x15, x17, lsl #2]
	add	x17, x17, #1
	ldrsw	x4, [x1, x8, lsl #2]
	cmp	x17, x4
	b.lt	LBB0_26
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	w3, [x13, x8, lsl #2]
	b	LBB0_23
LBB0_28:
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fixed_borders16
.subsections_via_symbols
