	.file	"extr_turbojpeg.c_tjBufSizeYUV2.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"tjBufSizeYUV2(): Invalid argument"
	.text
	.p2align 4
	.globl	tjBufSizeYUV2
	.type	tjBufSizeYUV2, @function
tjBufSizeYUV2:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 8[rsp], edi
	test	ecx, ecx
	js	.L2
	cmp	DWORD PTR NUMSUBOPT[rip], ecx
	jle	.L2
.L3:
	xor	eax, eax
	cmp	DWORD PTR TJSAMP_GRAY[rip], ebp
	mov	DWORD PTR 4[rsp], 0
	setne	al
	xor	r12d, r12d
	lea	eax, 1[rax+rax]
	mov	DWORD PTR 12[rsp], eax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR 8[rsp]
	mov	edx, ebp
	mov	edi, r12d
	call	tjPlaneWidth@PLT
	mov	esi, r14d
	mov	edi, eax
	mov	r13d, eax
	call	PAD@PLT
	mov	edx, ebp
	mov	esi, r15d
	mov	edi, r12d
	mov	ebx, eax
	call	tjPlaneHeight@PLT
	test	r13d, r13d
	js	.L9
	test	eax, eax
	js	.L9
	imul	eax, ebx
	add	r12d, 1
	add	DWORD PTR 4[rsp], eax
	cmp	DWORD PTR 12[rsp], r12d
	jne	.L6
.L7:
	endbr64
	movsx	rax, DWORD PTR 4[rsp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	_throwg@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rax, -1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tjBufSizeYUV2, .-tjBufSizeYUV2
	.comm	TJSAMP_GRAY,4,4
	.comm	NUMSUBOPT,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_turbojpeg.c_tjBufSizeYUV2.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tjBufSizeYUV2(): Invalid argument\000"
	.text
	.align	2
	.global	tjBufSizeYUV2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tjBufSizeYUV2, %function
tjBufSizeYUV2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r7, r3, #0
	mov	r8, r0
	mov	r9, r1
	mov	r10, r2
	sub	sp, sp, #12
	blt	.L2
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, r7
	ble	.L2
.L3:
	mov	r4, #0
	ldr	r2, .L13+4
	mov	fp, r4
	ldr	r3, [r2]
	cmp	r3, r7
	moveq	r3, #1
	movne	r3, #3
	str	r3, [sp, #4]
.L6:
	mov	r2, r7
	mov	r1, r8
	mov	r0, r4
	bl	tjPlaneWidth
	mov	r1, r9
	mov	r5, r0
	bl	PAD
	mov	r2, r7
	mov	r6, r0
	mov	r1, r10
	mov	r0, r4
	bl	tjPlaneHeight
	orrs	r3, r5, r0
	add	r4, r4, #1
	bmi	.L9
	ldr	r3, [sp, #4]
	mla	fp, r0, r6, fp
	cmp	r3, r4
	bne	.L6
.L7:
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r0, .L13+8
	bl	_throwg
	b	.L3
.L9:
	mvn	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	NUMSUBOPT
	.word	TJSAMP_GRAY
	.word	.LC0
	.size	tjBufSizeYUV2, .-tjBufSizeYUV2
	.comm	TJSAMP_GRAY,4,4
	.comm	NUMSUBOPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
