	.file	"extr_j2k.c_opj_j2k_set_cinema_parameters.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"JPEG 2000 Profile-3 and 4 (2k/4k dc profile) requires:\n1 single quality layer-> Number of layers forced to 1 (rather than %d)\n-> Rate of the last layer (%3.1f) will be used"
	.align 8
.LC1:
	.string	"JPEG 2000 Profile-3 (2k dc profile) requires:\nNumber of decomposition levels <= 5\n-> Number of decomposition levels forced to 5 (rather than %d)\n"
	.align 8
.LC2:
	.string	"JPEG 2000 Profile-4 (4k dc profile) requires:\nNumber of decomposition levels >= 1 && <= 6\n-> Number of decomposition levels forced to 1 (rather than %d)\n"
	.align 8
.LC3:
	.string	"JPEG 2000 Profile-4 (4k dc profile) requires:\nNumber of decomposition levels >= 1 && <= 6\n-> Number of decomposition levels forced to 6 (rather than %d)\n"
	.align 8
.LC4:
	.string	"JPEG 2000 Profile-3 and 4 (2k/4k dc profile) requires:\nMaximum 1302083 compressed bytes @ 24fps\nAs no rate has been given, this limit will be used.\n"
	.align 8
.LC5:
	.string	"JPEG 2000 Profile-3 and 4 (2k/4k dc profile) requires:\nMaximum 1302083 compressed bytes @ 24fps\n-> Specified rate exceeds this limit. Rate will be forced to 1302083 bytes.\n"
	.align 8
.LC6:
	.string	"JPEG 2000 Profile-3 and 4 (2k/4k dc profile) requires:\nMaximum 1041666 compressed bytes @ 24fps\nAs no rate has been given, this limit will be used.\n"
	.align 8
.LC7:
	.string	"JPEG 2000 Profile-3 and 4 (2k/4k dc profile) requires:\nMaximum 1041666 compressed bytes @ 24fps\n-> Specified rate exceeds this limit. Rate will be forced to 1041666 bytes.\n"
	.text
	.p2align 4
	.type	opj_j2k_set_cinema_parameters, @function
opj_j2k_set_cinema_parameters:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR OPJ_FALSE[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	movabs	rsi, 8589934591
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	DWORD PTR 160[rdi], eax
	movabs	rax, 4294967297
	mov	QWORD PTR [rdi], rax
	mov	BYTE PTR 8[rdi], 67
	mov	ecx, DWORD PTR 40[rbx]
	mov	QWORD PTR 152[rdi], 0
	mov	QWORD PTR 144[rdi], 0
	mov	QWORD PTR 136[rdi], 0
	mov	QWORD PTR 128[rdi], 0
	mov	QWORD PTR 120[rdi], 0
	mov	DWORD PTR 12[rdi], 1
	movabs	rdi, 137438953504
	mov	QWORD PTR 16[rbx], rdi
	mov	QWORD PTR 24[rbx], rsi
	mov	QWORD PTR 32[rbx], rax
	cmp	ecx, 1
	jle	.L2
	mov	rax, QWORD PTR 48[rbx]
	movsx	rdx, ecx
	mov	esi, DWORD PTR EVT_WARNING[rip]
	mov	rdi, r12
	mov	r8d, DWORD PTR -4[rax+rdx*4]
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	opj_event_msg@PLT
	movsx	rdx, DWORD PTR 40[rbx]
	mov	rax, QWORD PTR 48[rbx]
	mov	edx, DWORD PTR -4[rax+rdx*4]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR 40[rbx], 1
.L2:
	mov	eax, DWORD PTR 56[rbx]
	mov	ecx, DWORD PTR 60[rbx]
	cmp	eax, 128
	je	.L3
	cmp	eax, 129
	jne	.L4
	cmp	ecx, 6
	jg	.L24
.L4:
	or	DWORD PTR 64[rbx], 1
	cmp	ecx, 1
	je	.L7
.L9:
	sub	ecx, 1
	mov	DWORD PTR 68[rbx], ecx
	test	ecx, ecx
	jle	.L10
.L11:
	mov	rcx, QWORD PTR 72[rbx]
	mov	rdx, QWORD PTR 80[rbx]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L12:
	mov	DWORD PTR [rcx+rax*4], 256
	mov	DWORD PTR [rdx+rax*4], 256
	add	rax, 1
	cmp	DWORD PTR 68[rbx], eax
	jg	.L12
.L10:
	mov	eax, DWORD PTR OPJ_CPRL[rip]
	cmp	DWORD PTR 56[rbx], 128
	mov	DWORD PTR 116[rbx], eax
	je	.L25
	mov	DWORD PTR 88[rbx], 0
.L15:
	mov	rax, QWORD PTR 96[rbx]
	mov	DWORD PTR 92[rbx], 1
	mov	rdx, QWORD PTR OPJ_CINEMA_24_CS[rip]
	test	rax, rax
	jle	.L26
	cmp	rax, rdx
	jg	.L27
.L17:
	mov	rax, QWORD PTR 104[rbx]
	mov	rdx, QWORD PTR OPJ_CINEMA_24_COMP[rip]
	test	rax, rax
	jle	.L28
	cmp	rax, rdx
	jg	.L29
.L19:
	mov	rdx, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 48[rbx]
	imul	eax, DWORD PTR [rdx]
	mov	ecx, DWORD PTR 12[rdx]
	imul	eax, DWORD PTR 4[rdx]
	imul	ecx, DWORD PTR 96[rbx]
	imul	eax, DWORD PTR 8[rdx]
	imul	ecx, DWORD PTR 16[rdx]
	cdq
	sal	ecx, 3
	idiv	ecx
	mov	DWORD PTR [rsi], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	esi, DWORD PTR EVT_WARNING[rip]
	add	ecx, 1
	mov	rdi, r12
	xor	eax, eax
	lea	rdx, .LC2[rip]
	call	opj_event_msg@PLT
	or	DWORD PTR 64[rbx], 1
	mov	DWORD PTR 60[rbx], 1
.L7:
	mov	rax, QWORD PTR 72[rbx]
	mov	DWORD PTR 68[rbx], 1
	mov	DWORD PTR [rax], 128
	mov	rax, QWORD PTR 80[rbx]
	mov	DWORD PTR [rax], 128
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	ecx, 1
	jle	.L30
	cmp	ecx, 7
	jg	.L31
	or	DWORD PTR 64[rbx], 1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L28:
	mov	QWORD PTR 104[rbx], rdx
	mov	esi, DWORD PTR EVT_WARNING[rip]
	mov	rdi, r12
	xor	eax, eax
	lea	rdx, .LC6[rip]
	call	opj_event_msg@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L26:
	mov	QWORD PTR 96[rbx], rdx
	mov	esi, DWORD PTR EVT_WARNING[rip]
	mov	rdi, r12
	xor	eax, eax
	lea	rdx, .LC4[rip]
	call	opj_event_msg@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L29:
	mov	esi, DWORD PTR EVT_WARNING[rip]
	lea	rdx, .LC7[rip]
	mov	rdi, r12
	xor	eax, eax
	call	opj_event_msg@PLT
	mov	rax, QWORD PTR OPJ_CINEMA_24_COMP[rip]
	mov	QWORD PTR 104[rbx], rax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, DWORD PTR EVT_WARNING[rip]
	lea	rdx, .LC5[rip]
	mov	rdi, r12
	xor	eax, eax
	call	opj_event_msg@PLT
	mov	rax, QWORD PTR OPJ_CINEMA_24_CS[rip]
	mov	QWORD PTR 96[rbx], rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR 60[rbx]
	mov	edi, DWORD PTR 112[rbx]
	call	opj_j2k_initialise_4K_poc@PLT
	mov	DWORD PTR 88[rbx], eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR EVT_WARNING[rip]
	add	ecx, 1
	mov	rdi, r12
	xor	eax, eax
	lea	rdx, .LC1[rip]
	call	opj_event_msg@PLT
	or	DWORD PTR 64[rbx], 1
	mov	eax, 6
	mov	DWORD PTR 60[rbx], 6
.L5:
	sub	eax, 1
	mov	DWORD PTR 68[rbx], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, DWORD PTR EVT_WARNING[rip]
	add	ecx, 1
	mov	rdi, r12
	xor	eax, eax
	lea	rdx, .LC3[rip]
	call	opj_event_msg@PLT
	or	DWORD PTR 64[rbx], 1
	mov	eax, 7
	mov	DWORD PTR 60[rbx], 7
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	opj_j2k_set_cinema_parameters, .-opj_j2k_set_cinema_parameters
	.comm	OPJ_FALSE,4,4
	.comm	OPJ_CPRL,4,4
	.comm	OPJ_CINEMA_24_CS,8,8
	.comm	OPJ_CINEMA_24_COMP,8,8
	.comm	EVT_WARNING,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_j2k.c_opj_j2k_set_cinema_parameters.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"JPEG 2000 Profile-3 and 4 (2k/4k dc profile) requir"
	.ascii	"es:\0121 single quality layer-> Number of layers fo"
	.ascii	"rced to 1 (rather than %d)\012-> Rate of the last l"
	.ascii	"ayer (%3.1f) will be used\000"
	.align	2
.LC1:
	.ascii	"JPEG 2000 Profile-3 (2k dc profile) requires:\012Nu"
	.ascii	"mber of decomposition levels <= 5\012-> Number of d"
	.ascii	"ecomposition levels forced to 5 (rather than %d)\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"JPEG 2000 Profile-4 (4k dc profile) requires:\012Nu"
	.ascii	"mber of decomposition levels >= 1 && <= 6\012-> Num"
	.ascii	"ber of decomposition levels forced to 1 (rather tha"
	.ascii	"n %d)\012\000"
	.align	2
.LC3:
	.ascii	"JPEG 2000 Profile-4 (4k dc profile) requires:\012Nu"
	.ascii	"mber of decomposition levels >= 1 && <= 6\012-> Num"
	.ascii	"ber of decomposition levels forced to 6 (rather tha"
	.ascii	"n %d)\012\000"
	.align	2
.LC4:
	.ascii	"JPEG 2000 Profile-3 and 4 (2k/4k dc profile) requir"
	.ascii	"es:\012Maximum 1302083 compressed bytes @ 24fps\012"
	.ascii	"As no rate has been given, this limit will be used."
	.ascii	"\012\000"
	.align	2
.LC5:
	.ascii	"JPEG 2000 Profile-3 and 4 (2k/4k dc profile) requir"
	.ascii	"es:\012Maximum 1302083 compressed bytes @ 24fps\012"
	.ascii	"-> Specified rate exceeds this limit. Rate will be "
	.ascii	"forced to 1302083 bytes.\012\000"
	.align	2
.LC6:
	.ascii	"JPEG 2000 Profile-3 and 4 (2k/4k dc profile) requir"
	.ascii	"es:\012Maximum 1041666 compressed bytes @ 24fps\012"
	.ascii	"As no rate has been given, this limit will be used."
	.ascii	"\012\000"
	.align	2
.LC7:
	.ascii	"JPEG 2000 Profile-3 and 4 (2k/4k dc profile) requir"
	.ascii	"es:\012Maximum 1041666 compressed bytes @ 24fps\012"
	.ascii	"-> Specified rate exceeds this limit. Rate will be "
	.ascii	"forced to 1041666 bytes.\012\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	opj_j2k_set_cinema_parameters, %function
opj_j2k_set_cinema_parameters:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r3, #67
	mov	r4, r0
	mov	r7, #1
	mov	r0, #0
	mov	ip, #32
	mvn	lr, #0
	ldr	r6, .L32
	strb	r3, [r4, #8]
	ldr	r3, [r4, #40]
	mov	r5, r1
	ldr	r1, [r6]
	cmp	r3, r7
	mov	r6, r2
	sub	sp, sp, #12
	str	r1, [r4, #116]
	str	lr, [r4, #24]
	str	r7, [r4]
	str	r7, [r4, #4]
	str	r7, [r4, #12]
	str	r7, [r4, #28]
	str	r7, [r4, #32]
	str	r7, [r4, #36]
	str	r0, [r4, #112]
	str	r0, [r4, #108]
	str	r0, [r4, #104]
	str	r0, [r4, #100]
	str	r0, [r4, #96]
	str	ip, [r4, #16]
	str	ip, [r4, #20]
	ble	.L2
	ldr	r2, [r4, #44]
	sub	r1, r3, #-1073741823
	ldr	r1, [r2, r1, lsl #2]
	ldr	r2, .L32+4
	str	r1, [sp]
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, .L32+8
	bl	opj_event_msg
	ldr	r3, [r4, #40]
	ldr	r2, [r4, #44]
	sub	r3, r3, #-1073741823
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [r2]
	str	r7, [r4, #40]
.L2:
	ldr	r2, [r4, #48]
	ldr	r3, [r4, #52]
	cmp	r2, #128
	beq	.L3
	cmp	r2, #129
	bne	.L4
	cmp	r3, #6
	bgt	.L24
.L4:
	ldr	r1, [r4, #56]
	cmp	r3, #1
	orr	r1, r1, #1
	str	r1, [r4, #56]
	beq	.L7
.L9:
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4, #60]
	ble	.L10
.L11:
	mov	r3, #0
	mov	r2, #256
	ldr	ip, [r4, #64]
	ldr	r0, [r4, #68]
	sub	ip, ip, #4
	sub	r0, r0, #4
.L12:
	str	r2, [ip, #4]!
	str	r2, [r0, #4]!
	ldr	r1, [r4, #60]
	add	r3, r3, #1
	cmp	r1, r3
	bgt	.L12
	ldr	r2, [r4, #48]
.L10:
	ldr	r3, .L32+12
	cmp	r2, #128
	ldr	r3, [r3]
	str	r3, [r4, #92]
	movne	r3, #0
	strne	r3, [r4, #72]
	beq	.L25
.L15:
	mov	r2, #1
	ldr	r3, [r4, #80]
	ldr	r7, .L32+16
	cmp	r3, #0
	str	r2, [r4, #76]
	ldr	r2, [r7]
	ble	.L26
	cmp	r3, r2
	bgt	.L27
.L17:
	ldr	r3, [r4, #84]
	ldr	r7, .L32+20
	cmp	r3, #0
	ldr	r2, [r7]
	ble	.L28
	cmp	r3, r2
	bgt	.L29
.L19:
	ldr	r2, [r5, #4]
	ldr	r3, [r5]
	ldr	r0, [r2]
	ldr	ip, [r2, #12]
	ldr	r1, [r4, #80]
	mul	r3, r0, r3
	mul	r1, ip, r1
	ldr	r0, [r2, #4]
	ldr	ip, [r2, #16]
	mul	r3, r0, r3
	mul	r1, ip, r1
	ldr	r0, [r2, #8]
	lsl	r1, r1, #3
	mul	r0, r3, r0
	bl	__aeabi_idiv
	ldr	r3, [r4, #44]
	str	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L30:
	ldr	r2, .L32+4
	add	r3, r3, #1
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, .L32+24
	bl	opj_event_msg
	mov	r2, #1
	ldr	r3, [r4, #56]
	str	r2, [r4, #52]
	orr	r3, r3, r2
	str	r3, [r4, #56]
.L7:
	mov	r2, #1
	mov	r3, #128
	str	r2, [r4, #60]
	ldr	r1, [r4, #64]
	ldr	r2, [r4, #68]
	str	r3, [r1]
	str	r3, [r2]
	ldr	r2, [r4, #48]
	b	.L10
.L3:
	cmp	r3, #1
	ble	.L30
	cmp	r3, #7
	bgt	.L31
	ldr	r1, [r4, #56]
	orr	r1, r1, #1
	str	r1, [r4, #56]
	b	.L9
.L28:
	ldr	r3, .L32+4
	str	r2, [r4, #84]
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L32+28
	bl	opj_event_msg
	b	.L19
.L26:
	ldr	r3, .L32+4
	str	r2, [r4, #80]
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L32+32
	bl	opj_event_msg
	b	.L17
.L29:
	ldr	r3, .L32+4
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L32+36
	bl	opj_event_msg
	ldr	r3, [r7]
	str	r3, [r4, #84]
	b	.L19
.L27:
	ldr	r3, .L32+4
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L32+40
	bl	opj_event_msg
	ldr	r3, [r7]
	str	r3, [r4, #80]
	b	.L17
.L25:
	ldr	r1, [r4, #52]
	ldr	r0, [r4, #88]
	bl	opj_j2k_initialise_4K_poc
	str	r0, [r4, #72]
	b	.L15
.L24:
	ldr	r2, .L32+4
	add	r3, r3, #1
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, .L32+44
	bl	opj_event_msg
	mov	r3, #6
	ldr	r2, [r4, #56]
	str	r3, [r4, #52]
	orr	r2, r2, #1
	str	r2, [r4, #56]
.L5:
	sub	r3, r3, #1
	str	r3, [r4, #60]
	b	.L11
.L31:
	ldr	r2, .L32+4
	add	r3, r3, #1
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, .L32+48
	bl	opj_event_msg
	mov	r3, #7
	ldr	r2, [r4, #56]
	str	r3, [r4, #52]
	orr	r2, r2, #1
	str	r2, [r4, #56]
	b	.L5
.L33:
	.align	2
.L32:
	.word	OPJ_FALSE
	.word	EVT_WARNING
	.word	.LC0
	.word	OPJ_CPRL
	.word	OPJ_CINEMA_24_CS
	.word	OPJ_CINEMA_24_COMP
	.word	.LC2
	.word	.LC6
	.word	.LC4
	.word	.LC7
	.word	.LC5
	.word	.LC1
	.word	.LC3
	.size	opj_j2k_set_cinema_parameters, .-opj_j2k_set_cinema_parameters
	.comm	OPJ_FALSE,4,4
	.comm	OPJ_CPRL,4,4
	.comm	OPJ_CINEMA_24_CS,4,4
	.comm	OPJ_CINEMA_24_COMP,4,4
	.comm	EVT_WARNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
