	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_meta_with_crop
_to_meta_with_crop:                     ## @to_meta_with_crop
	.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	%rdx, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	movq	_C64YRES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_FFMIN
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	movq	_C64XRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FFMIN
	movl	(%rbx), %r14d
	testl	%r14d, %r14d
	jle	LBB0_42
## %bb.1:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	_C64XRES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r10d, %ecx
	cmpl	%r14d, %r10d
	jge	LBB0_42
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	leal	8(%rcx), %r10d
	testl	%r11d, %r11d
	jle	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	cmpl	%r11d, %edx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	jge	LBB0_2
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movl	%edx, %r15d
	leal	8(%r15), %edx
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	cmpl	%r14d, %ecx
	jge	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%r15d, %r9d
	orl	$1, %r9d
	movl	%r15d, %r8d
	orl	$2, %r8d
	movl	%r15d, %edx
	orl	$3, %edx
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	orl	$4, %esi
	movl	%r15d, %edx
	orl	$5, %edx
	movl	%edx, -96(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edx
	orl	$6, %edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edx
	orl	$7, %edx
	movl	%edx, -92(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%r11d, %r15d
	jge	LBB0_40
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	cmpl	%eax, %r15d
	jge	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	(%rcx), %ecx
	imull	%r12d, %ecx
	leal	(%rcx,%r15), %edx
	movslq	%edx, %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi,%rdx,4), %ebx
	cmpl	%eax, %r9d
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=3
	addl	%r9d, %ecx
	movslq	%ecx, %rcx
	addl	(%rdi,%rcx,4), %ebx
	movl	%ebx, %ecx
	shrl	$31, %ecx
	addl	%ebx, %ecx
	sarl	%ecx
	movl	%ecx, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=3
	movl	%ebx, (%r13)
	movq	_C64XRES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=3
	leaq	4(%r13), %rbx
	cmpl	%r11d, %r8d
	jge	LBB0_39
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=3
	movl	%r9d, %r14d
	cmpl	%eax, %r8d
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	jge	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	(%rcx), %edx
	imull	%r12d, %edx
	leal	(%rdx,%r8), %ecx
	movslq	%ecx, %rcx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%rcx,4), %ecx
	movl	-100(%rbp), %edi                ## 4-byte Reload
	cmpl	%eax, %edi
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=3
	addl	%edi, %edx
	movslq	%edx, %rdx
	addl	(%rsi,%rdx,4), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	%edx, %ecx
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=3
	movl	%ecx, (%rbx)
	movq	_C64XRES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=3
	leaq	8(%r13), %rbx
	cmpl	%r9d, %esi
	jae	LBB0_38
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	%r11d, %esi
	jge	LBB0_38
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	%eax, %esi
	jge	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jge	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	(%rcx), %edx
	imull	%r12d, %edx
	leal	(%rdx,%rsi), %ecx
	movslq	%ecx, %rcx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%rcx,4), %ecx
	movl	-96(%rbp), %edi                 ## 4-byte Reload
	cmpl	%eax, %edi
	jge	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_8 Depth=3
	addl	%edi, %edx
	movslq	%edx, %rdx
	addl	(%rsi,%rdx,4), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	%edx, %ecx
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=3
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ecx, (%rbx)
	movq	_C64XRES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
LBB0_27:                                ##   in Loop: Header=BB0_8 Depth=3
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_8 Depth=3
	leaq	12(%r13), %rbx
	cmpl	%r9d, %ecx
	jae	LBB0_38
## %bb.29:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	%r11d, %ecx
	movl	%r14d, %r9d
	jge	LBB0_39
## %bb.30:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	%eax, %ecx
	jge	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	(%rcx), %edx
	imull	%r12d, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%rcx,4), %ecx
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	cmpl	%eax, %edi
	jge	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_8 Depth=3
	addl	%edi, %edx
	movslq	%edx, %rdx
	addl	(%rsi,%rdx,4), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	%edx, %ecx
LBB0_34:                                ##   in Loop: Header=BB0_8 Depth=3
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ecx, (%rbx)
	movq	_C64XRES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
LBB0_35:                                ##   in Loop: Header=BB0_8 Depth=3
	addq	$16, %r13
	movq	%r13, %rbx
	jmp	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_8 Depth=3
	movl	%r14d, %r9d
LBB0_39:                                ##   in Loop: Header=BB0_8 Depth=3
	movq	_C64YRES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	%rbx, %r13
LBB0_40:                                ##   in Loop: Header=BB0_8 Depth=3
	incl	%r12d
	cmpl	%r10d, %r12d
	jae	LBB0_5
## %bb.41:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	%r14d, %r12d
	jl	LBB0_8
	jmp	LBB0_5
LBB0_42:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C64YRES,4,2                    ## @C64YRES
	.comm	_C64XRES,4,2                    ## @C64XRES
	.no_dead_strip	_to_meta_with_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_meta_with_crop
_to_meta_with_crop:                     ; @to_meta_with_crop
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x23, _C64YRES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _C64YRES@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_FFMIN
	mov	x20, x0
	ldr	w0, [x22]
Lloh2:
	adrp	x22, _C64XRES@GOTPAGE
Lloh3:
	ldr	x22, [x22, _C64XRES@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_FFMIN
	ldr	w6, [x23]
	cmp	w6, #1
	b.lt	LBB0_38
; %bb.1:
	mov	w10, #0
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w14, [x22]
	mov	w9, #5
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, x11
	cmp	w11, w6
	b.ge	LBB0_38
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
	add	w11, w10, #8
	cmp	w14, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w13, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x13, x12
	cmp	w12, w14
	b.ge	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
	add	w12, w13, #8
	cmp	w10, w6
	b.ge	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	orr	w15, w13, #0x1
	orr	w16, w13, #0x2
	orr	w17, w13, #0x3
	orr	w1, w13, #0x4
	orr	w2, w13, w9
	orr	w3, w13, #0x6
	orr	w4, w13, #0x7
	mov	x5, x10
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w13, w14
	b.ge	LBB0_36
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=3
	cmp	w13, w0
	b.ge	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=3
	cmp	w5, w20
	b.ge	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=3
	ldr	x14, [x19, #8]
	ldr	w14, [x14]
	mul	w6, w14, w5
	add	w14, w6, w13
	ldr	w14, [x8, w14, sxtw #2]
	cmp	w15, w0
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=3
	add	w6, w6, w15
	ldr	w6, [x8, w6, sxtw #2]
	add	w14, w6, w14
	cmp	w14, #0
	cinc	w14, w14, lt
	asr	w14, w14, #1
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=3
	str	w14, [x21]
	ldr	w14, [x22]
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=3
	add	x7, x21, #4
	cmp	w16, w14
	b.ge	LBB0_35
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=3
	cmp	w16, w0
	b.ge	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=3
	cmp	w5, w20
	b.ge	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=3
	ldr	x14, [x19, #8]
	ldr	w14, [x14]
	mul	w6, w14, w5
	add	w14, w6, w16
	ldr	w14, [x8, w14, sxtw #2]
	cmp	w17, w0
	b.ge	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=3
	add	w6, w6, w17
	ldr	w6, [x8, w6, sxtw #2]
	add	w14, w6, w14
	cmp	w14, #0
	cinc	w14, w14, lt
	asr	w14, w14, #1
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=3
	str	w14, [x7]
	ldr	w14, [x22]
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=3
	add	x7, x21, #8
	cmp	w1, w12
	b.hs	LBB0_35
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=3
	cmp	w1, w14
	b.ge	LBB0_35
; %bb.22:                               ;   in Loop: Header=BB0_8 Depth=3
	cmp	w1, w0
	b.ge	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_8 Depth=3
	cmp	w5, w20
	b.ge	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_8 Depth=3
	ldr	x14, [x19, #8]
	ldr	w14, [x14]
	mul	w6, w14, w5
	add	w14, w6, w1
	ldr	w14, [x8, w14, sxtw #2]
	cmp	w2, w0
	b.ge	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_8 Depth=3
	add	w6, w6, w2
	ldr	w6, [x8, w6, sxtw #2]
	add	w14, w6, w14
	cmp	w14, #0
	cinc	w14, w14, lt
	asr	w14, w14, #1
LBB0_26:                                ;   in Loop: Header=BB0_8 Depth=3
	str	w14, [x7]
	ldr	w14, [x22]
LBB0_27:                                ;   in Loop: Header=BB0_8 Depth=3
	add	x7, x21, #12
	cmp	w3, w12
	b.hs	LBB0_35
; %bb.28:                               ;   in Loop: Header=BB0_8 Depth=3
	cmp	w3, w14
	b.ge	LBB0_35
; %bb.29:                               ;   in Loop: Header=BB0_8 Depth=3
	cmp	w3, w0
	b.ge	LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_8 Depth=3
	cmp	w5, w20
	b.ge	LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_8 Depth=3
	ldr	x14, [x19, #8]
	ldr	w14, [x14]
	mul	w6, w14, w5
	add	w14, w6, w3
	ldr	w14, [x8, w14, sxtw #2]
	cmp	w4, w0
	b.ge	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_8 Depth=3
	add	w6, w6, w4
	ldr	w6, [x8, w6, sxtw #2]
	add	w14, w6, w14
	cmp	w14, #0
	cinc	w14, w14, lt
	asr	w14, w14, #1
LBB0_33:                                ;   in Loop: Header=BB0_8 Depth=3
	str	w14, [x7]
	ldr	w14, [x22]
LBB0_34:                                ;   in Loop: Header=BB0_8 Depth=3
	add	x7, x21, #16
LBB0_35:                                ;   in Loop: Header=BB0_8 Depth=3
	ldr	w6, [x23]
	mov	x21, x7
LBB0_36:                                ;   in Loop: Header=BB0_8 Depth=3
	add	w5, w5, #1
	cmp	w5, w11
	b.hs	LBB0_5
; %bb.37:                               ;   in Loop: Header=BB0_8 Depth=3
	cmp	w5, w6
	b.lt	LBB0_8
	b	LBB0_5
LBB0_38:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_C64YRES,4,2                    ; @C64YRES
	.comm	_C64XRES,4,2                    ; @C64XRES
	.no_dead_strip	_to_meta_with_crop
.subsections_via_symbols
