	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_frame
_copy_frame:                            ## @copy_frame
	.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
	movl	4(%rdi), %eax
	imull	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.1:
	movq	24(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	(%rdi), %rax
	movslq	4(%rdi), %rcx
	imulq	%rax, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##       Child Loop BB0_11 Depth 3
                                        ##     Child Loop BB0_21 Depth 2
                                        ##       Child Loop BB0_23 Depth 3
                                        ##     Child Loop BB0_27 Depth 2
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %r11
	movq	16(%rdi), %rcx
	movq	(%rcx), %r8
	movq	8(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r9d, %r9d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	8(%rdi), %eax
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	incq	%r9
	movslq	%eax, %rcx
	cmpq	%rcx, %r9
	jge	LBB0_15
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##       Child Loop BB0_11 Depth 3
	movq	%r9, %rcx
	shlq	$4, %rcx
	movq	8(%r11,%rcx), %rsi
	movq	8(%rsi), %r15
	movl	(%r15), %edx
	movl	4(%r15), %r12d
	cmpl	%r12d, %edx
	jge	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rsi), %rax
	movl	(%r8,%r9,4), %r13d
	movl	%r13d, %esi
	imull	%edx, %esi
	movslq	%esi, %rsi
	shlq	$2, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	(%rbx,%r9,8), %rsi
	movslq	(%rax), %r14
	leaq	(%rsi,%r14,4), %r10
	movq	(%r11,%rcx), %rbx
	movl	4(%rax), %esi
	cmpl	%esi, %r14d
	jge	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%r10, %rcx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rcx), %esi
	addq	$4, %rcx
	addl	$-128, %esi
	movl	%esi, (%rbx)
	addq	$4, %rbx
	incl	%r14d
	movl	4(%rax), %esi
	cmpl	%esi, %r14d
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r8,%r9,4), %r13d
	movl	4(%r15), %r12d
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	incl	%edx
	cmpl	%r12d, %edx
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	movslq	%r13d, %rcx
	leaq	(%r10,%rcx,4), %r10
	movl	(%rax), %r14d
	cmpl	%esi, %r14d
	jl	LBB0_8
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %r13
	movq	8(%r13), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %r12d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %r8d
	cmpl	%r8d, %r12d
	jge	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rdi), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %rcx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %r9d
	movl	%r9d, %edx
	imull	%r12d, %edx
	movslq	%edx, %rdx
	shlq	$2, %rdx
	addq	(%rcx), %rdx
	movq	(%rax), %r10
	movl	8(%rdi), %ebx
	movl	(%r10), %r14d
	movl	4(%r10), %eax
	movl	%ebx, %ecx
	imull	%r14d, %ecx
	movslq	%ecx, %rcx
	leaq	(%rdx,%rcx,4), %r15
	xorl	%r11d, %r11d
	cmpl	%eax, %r14d
	jge	LBB0_27
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r11d, %r11
	movq	%r15, %rcx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=2
	incl	%r14d
	incq	%r11
	cmpl	%eax, %r14d
	jge	LBB0_26
LBB0_21:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_23 Depth 3
	testl	%ebx, %ebx
	jle	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	%r13, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_21 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rcx), %ebx
	addq	$4, %rcx
	addl	$-128, %ebx
	movq	(%rax), %rdx
	movl	%ebx, (%rdx,%r11,4)
	incq	%rsi
	movslq	8(%rdi), %rbx
	addq	$16, %rax
	cmpq	%rbx, %rsi
	jl	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=2
	movl	4(%r10), %eax
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r9d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %r8d
LBB0_27:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%r12d
	cmpl	%r8d, %r12d
	jge	LBB0_15
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	movslq	%r9d, %rcx
	leaq	(%r15,%rcx,4), %r15
	movl	(%r10), %r14d
	cmpl	%eax, %r14d
	jl	LBB0_20
	jmp	LBB0_27
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_copy_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_frame
_copy_frame:                            ; @copy_frame
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x0]
	mul	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.1:
	mov	x8, #0
	ldp	x10, x9, [x0, #24]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	ldpsw	x11, x12, [x0]
	mul	x11, x12, x11
	cmp	x8, x11
	b.ge	LBB0_26
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;       Child Loop BB0_13 Depth 3
                                        ;     Child Loop BB0_19 Depth 2
                                        ;       Child Loop BB0_21 Depth 3
                                        ;     Child Loop BB0_24 Depth 2
	cbz	x10, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w17, [x0, #8]
	cmp	w17, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	ldr	x12, [x9, x8, lsl #3]
	ldr	x14, [x0, #16]
	ldp	x14, x13, [x14]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w17, [x0, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x11, x11, #1
	cmp	x11, w17, sxtw
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;       Child Loop BB0_13 Depth 3
	add	x15, x12, x11, lsl #4
	ldr	x1, [x15, #8]
	ldr	x15, [x1, #8]
	ldp	w16, w3, [x15]
	cmp	w16, w3
	b.ge	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x17, [x1]
	ldr	x1, [x13, x11, lsl #3]
	ldr	w4, [x14, x11, lsl #2]
	mul	w2, w4, w16
	add	x1, x1, w2, sxtw #2
	ldp	w6, w5, [x17]
                                        ; kill: def $w6 killed $w6 def $x6
	sxtw	x6, w6
	add	x1, x1, x6, lsl #2
	lsl	x2, x11, #4
	ldr	x2, [x12, x2]
	cmp	w6, w5
	b.ge	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x3, x1
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w4, [x3], #4
	sub	w4, w4, #128
	str	w4, [x2], #4
	add	w6, w6, #1
	ldr	w5, [x17, #4]
	cmp	w6, w5
	b.lt	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w4, [x14, x11, lsl #2]
	ldr	w3, [x15, #4]
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w16, w16, #1
	cmp	w16, w3
	b.ge	LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	add	x1, x1, w4, sxtw #2
	ldr	w6, [x17]
	cmp	w6, w5
	b.lt	LBB0_10
	b	LBB0_13
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x9, x8, lsl #3]
	ldr	x14, [x11, #8]
	ldr	x12, [x14, #8]
	ldp	w13, w3, [x12]
	cmp	w13, w3
	b.ge	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w4, #0
	ldr	x16, [x0, #16]
	ldr	x14, [x14]
	ldp	x15, x16, [x16]
	ldr	x16, [x16]
	ldr	w5, [x15]
	mul	w17, w5, w13
	add	x16, x16, w17, sxtw #2
	ldr	w17, [x0, #8]
	ldp	w2, w1, [x14]
	mul	w6, w17, w2
	add	x16, x16, w6, sxtw #2
	cmp	w2, w1
	b.ge	LBB0_24
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x4, w4
	mov	x3, x16
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	w2, w2, #1
	add	x4, x4, #1
	cmp	w2, w1
	b.ge	LBB0_23
LBB0_19:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_21 Depth 3
	cmp	w17, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x1, #0
	mov	x5, x11
LBB0_21:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_19 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w17, [x3], #4
	ldr	x6, [x5], #16
	sub	w17, w17, #128
	str	w17, [x6, x4, lsl #2]
	add	x1, x1, #1
	ldrsw	x17, [x0, #8]
	cmp	x1, x17
	b.lt	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	w1, [x14, #4]
	b	LBB0_18
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w5, [x15]
	ldr	w3, [x12, #4]
                                        ; kill: def $w4 killed $w4 killed $x4 def $x4
LBB0_24:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w13, w13, #1
	cmp	w13, w3
	b.ge	LBB0_2
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	add	x16, x16, w5, sxtw #2
	ldr	w2, [x14]
	cmp	w2, w1
	b.lt	LBB0_17
	b	LBB0_24
LBB0_26:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_copy_frame
.subsections_via_symbols
