	.file	"extr_a64multienc.c_to_meta_with_crop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	to_meta_with_crop, @function
to_meta_with_crop:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	mov	esi, DWORD PTR C64YRES[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR 4[rdi]
	mov	rbx, rdx
	call	FFMIN@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	esi, DWORD PTR C64XRES[rip]
	mov	ebp, eax
	call	FFMIN@PLT
	mov	edi, eax
	mov	rax, QWORD PTR [r12]
	mov	r9, QWORD PTR [rax]
	mov	eax, DWORD PTR C64YRES[rip]
	test	eax, eax
	jle	.L1
	mov	edx, DWORD PTR C64XRES[rip]
	mov	r11d, 7
	xor	r13d, r13d
.L2:
	mov	r8d, 7
	test	edx, edx
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	lea	r10d, -7[r8]
	mov	esi, r13d
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	eax, esi
	jle	.L8
	mov	eax, r10d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	edi, eax
	jle	.L4
	cmp	ebp, esi
	jle	.L4
	mov	rdx, QWORD PTR 8[r12]
	lea	ecx, 1[rax]
	mov	r14d, DWORD PTR [rdx]
	imul	r14d, esi
	lea	edx, [r14+rax]
	movsx	rdx, edx
	mov	edx, DWORD PTR [r9+rdx*4]
	cmp	ecx, edi
	jge	.L5
	add	ecx, r14d
	movsx	rcx, ecx
	add	edx, DWORD PTR [r9+rcx*4]
	mov	ecx, edx
	shr	edx, 31
	add	edx, ecx
	sar	edx
.L5:
	mov	DWORD PTR [rbx], edx
	mov	edx, DWORD PTR C64XRES[rip]
.L4:
	add	eax, 2
	add	rbx, 4
	cmp	r8d, eax
	jl	.L6
.L9:
	cmp	edx, eax
	jg	.L7
.L6:
	add	esi, 1
	mov	eax, DWORD PTR C64YRES[rip]
	cmp	esi, r11d
	jle	.L11
.L8:
	lea	ecx, 8[r8]
	add	r8d, 1
	cmp	r8d, edx
	jge	.L10
	mov	r8d, ecx
	jmp	.L12
.L10:
	add	r13d, 8
	add	r11d, 8
	cmp	r13d, eax
	jl	.L2
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	to_meta_with_crop, .-to_meta_with_crop
	.comm	C64YRES,4,4
	.comm	C64XRES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_a64multienc.c_to_meta_with_crop.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	to_meta_with_crop, %function
to_meta_with_crop:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, .L22
	mov	r9, r0
	mov	r6, r1
	sub	sp, sp, #12
	ldr	r1, [r8]
	ldr	r0, [r0, #4]
	mov	r4, r2
	bl	FFMIN
	ldr	r7, .L22+4
	mov	r5, r0
	ldr	r1, [r7]
	ldr	r0, [r9]
	bl	FFMIN
	ldr	r3, [r8]
	ldr	r2, [r6]
	cmp	r3, #0
	ldr	r10, [r2]
	ble	.L1
	mov	r1, #7
	mov	r2, #0
	mov	ip, r0
	stm	sp, {r1, r2}
.L2:
	ldr	r2, [r7]
	cmp	r2, #0
	movgt	r9, #7
	ble	.L10
.L12:
	ldr	r1, [sp, #4]
	sub	fp, r9, #7
.L11:
	cmp	r3, r1
	ble	.L8
	mov	r3, fp
	b	.L9
.L7:
	cmp	ip, r3
	cmpgt	r5, r1
	ble	.L4
	ldr	r2, [r6, #4]
	cmp	lr, ip
	ldr	r2, [r2]
	mul	r2, r1, r2
	add	r0, r2, r3
	addlt	r2, lr, r2
	ldrlt	r2, [r10, r2, lsl #2]
	ldr	r0, [r10, r0, lsl #2]
	addlt	r2, r0, r2
	addlt	r2, r2, r2, lsr #31
	asrlt	r0, r2, #1
	str	r0, [r4]
	ldr	r2, [r7]
.L4:
	add	r3, r3, #2
	cmp	r9, r3
	add	r4, r4, #4
	blt	.L6
.L9:
	cmp	r2, r3
	add	lr, r3, #1
	bgt	.L7
.L6:
	ldr	r3, [sp]
	add	r1, r1, #1
	cmp	r1, r3
	ldr	r3, [r8]
	ble	.L11
.L8:
	add	r1, r9, #1
	cmp	r1, r2
	add	r9, r9, #8
	blt	.L12
.L10:
	ldr	r2, [sp, #4]
	add	r2, r2, #8
	str	r2, [sp, #4]
	cmp	r2, r3
	ldr	r2, [sp]
	add	r2, r2, #8
	str	r2, [sp]
	blt	.L2
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	.align	2
.L22:
	.word	C64YRES
	.word	C64XRES
	.size	to_meta_with_crop, .-to_meta_with_crop
	.comm	C64YRES,4,4
	.comm	C64XRES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
