	.file	"extr_j2k.c_j2k_get_cstr_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	j2k_get_cstr_info
	.type	j2k_get_cstr_info, @function
j2k_get_cstr_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, 64
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 32[rdi]
	mov	edi, 1
	mov	r13, QWORD PTR [rax]
	call	opj_calloc@PLT
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L13
	mov	rdx, QWORD PTR 32[rbx]
	mov	r14, QWORD PTR [rbx]
	mov	esi, 72
	mov	rdi, QWORD PTR [rdx]
	mov	edx, DWORD PTR 28[rbx]
	mov	DWORD PTR 60[rax], edx
	mov	edx, DWORD PTR 24[rbx]
	mov	DWORD PTR [rax], edi
	mov	DWORD PTR 56[rax], edx
	mov	edx, DWORD PTR 20[rbx]
	mov	DWORD PTR 52[rax], edx
	mov	edx, DWORD PTR 16[rbx]
	mov	DWORD PTR 48[rax], edx
	mov	edx, DWORD PTR 12[rbx]
	mov	DWORD PTR 44[rax], edx
	mov	edx, DWORD PTR 8[rbx]
	mov	QWORD PTR 32[rax], 0
	mov	DWORD PTR 40[rax], edx
	mov	edx, DWORD PTR 20[r14]
	mov	DWORD PTR 28[rax], edx
	mov	edx, DWORD PTR 16[r14]
	mov	DWORD PTR 24[rax], edx
	mov	edx, DWORD PTR 12[r14]
	mov	DWORD PTR 20[rax], edx
	mov	edx, DWORD PTR 8[r14]
	mov	DWORD PTR 16[rax], edx
	call	opj_calloc@PLT
	mov	r8, QWORD PTR [rsp]
	mov	QWORD PTR 8[r8], rax
	test	rax, rax
	je	.L3
	xor	r12d, r12d
	test	r13, r13
	jne	.L4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR [rbx]
	lea	esi, -2[rax+rax*2]
	cmp	esi, edx
	jl	.L20
.L10:
	mov	eax, DWORD PTR 16[rbx]
	add	r12, 1
	mov	DWORD PTR 32[rbp], eax
	cmp	r13, r12
	je	.L1
.L9:
	mov	rax, QWORD PTR 8[r8]
.L4:
	mov	rbx, r12
	lea	rdx, [r12+r12*8]
	sal	rbx, 6
	add	rbx, QWORD PTR [r14]
	lea	rbp, [rax+rdx*8]
	mov	eax, DWORD PTR 60[rbx]
	mov	rdx, QWORD PTR [rbx]
	cmp	rdx, QWORD PTR OPJ_J2K_MAXRLVLS[rip]
	mov	DWORD PTR 64[rbp], eax
	mov	eax, DWORD PTR 56[rbx]
	mov	QWORD PTR 0[rbp], rdx
	mov	DWORD PTR 60[rbp], eax
	mov	eax, DWORD PTR 52[rbx]
	mov	DWORD PTR 56[rbp], eax
	mov	eax, DWORD PTR 48[rbx]
	mov	DWORD PTR 52[rbp], eax
	mov	eax, DWORD PTR 44[rbx]
	mov	DWORD PTR 48[rbp], eax
	jl	.L21
.L6:
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR 32[rbx]
	cmp	rax, QWORD PTR J2K_CCP_QNTSTY_SIQNT[rip]
	mov	DWORD PTR 36[rbp], edx
	mov	edx, DWORD PTR OPJ_J2K_MAXBANDS[rip]
	mov	QWORD PTR 8[rbp], rax
	jne	.L7
	cmp	edx, 1
	jle	.L10
	mov	esi, 1
.L8:
	mov	r9, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 24[rbp]
	xor	eax, eax
	mov	rdx, QWORD PTR 24[rbx]
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rcx, QWORD PTR 8[rdx]
	add	rdx, 16
	mov	QWORD PTR [r9+rax*8], rcx
	mov	rcx, QWORD PTR -16[rdx]
	mov	QWORD PTR [rdi+rax*8], rcx
	add	rax, 1
	cmp	esi, eax
	jg	.L11
	mov	eax, DWORD PTR 16[rbx]
	add	r12, 1
	mov	DWORD PTR 32[rbp], eax
	cmp	r13, r12
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r8
	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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	esi, DWORD PTR 40[rbx]
	mov	edi, DWORD PTR 44[rbp]
	call	memcpy@PLT
	mov	esi, DWORD PTR 36[rbx]
	mov	edi, DWORD PTR 40[rbp]
	mov	rdx, QWORD PTR [rbx]
	call	memcpy@PLT
	mov	r8, QWORD PTR [rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	test	esi, esi
	jg	.L8
	jmp	.L10
.L13:
	xor	r8d, r8d
	jmp	.L1
.L3:
	mov	rdi, rsp
	call	opj_destroy_cstr_info@PLT
	xor	r8d, r8d
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	j2k_get_cstr_info, .-j2k_get_cstr_info
	.comm	OPJ_J2K_MAXRLVLS,8,8
	.comm	OPJ_J2K_MAXBANDS,4,4
	.comm	J2K_CCP_QNTSTY_SIQNT,8,8
	.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_j2k_get_cstr_info.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	j2k_get_cstr_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	j2k_get_cstr_info, %function
j2k_get_cstr_info:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #28]
	ldr	r2, .L22
	ldr	r5, [r3]
	sub	sp, sp, #20
	mov	r4, r0
	mov	r1, #52
	mov	r0, #1
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r5, [sp]
	bl	opj_calloc
	subs	r3, r0, #0
	str	r0, [sp, #8]
	moveq	r0, r3
	beq	.L1
	mov	r7, #0
	ldr	r2, [r4, #28]
	ldr	lr, [r4]
	ldr	ip, [r4, #24]
	ldr	r0, [r2]
	ldr	r2, [r4, #20]
	ldr	r1, [lr, #16]
	str	ip, [r3, #48]
	str	r2, [r3, #44]
	ldr	ip, [r4, #16]
	ldr	r2, [r4, #12]
	str	ip, [r3, #40]
	str	r2, [r3, #36]
	ldmib	r4, {r2, ip}
	str	ip, [r3, #32]
	ldr	ip, [lr, #12]
	str	r1, [r3, #20]
	ldr	r1, [lr, #8]
	str	r2, [r3, #28]
	ldr	r2, [lr, #4]
	str	r0, [r3]
	str	r1, [r3, #12]
	str	ip, [r3, #16]
	str	r2, [r3, #8]
	str	r7, [r3, #24]
	mov	r1, #52
	str	lr, [sp, #4]
	bl	opj_calloc
	mov	r4, r0
	mov	r3, r0
	ldr	r0, [sp, #8]
	cmp	r4, r7
	str	r4, [r0, #4]
	beq	.L3
	cmp	r5, r7
	beq	.L1
	mov	r6, r7
	ldr	r9, .L22+4
	ldr	r8, .L22+8
	b	.L4
.L7:
	ldr	r2, [r10, fp, lsl #4]
	add	r2, r2, r2, lsl #1
	sub	r2, r2, #2
	cmp	r2, r3
	blt	.L19
.L10:
	ldr	r2, [sp]
	ldr	r3, [r5, #8]
	add	r6, r6, #1
	cmp	r2, r6
	str	r3, [r4, #16]
	add	r7, r7, #52
	beq	.L1
	ldr	r3, [r0, #4]
.L4:
	ldr	r2, [sp, #4]
	add	fp, r6, r6, lsl #1
	ldr	r10, [r2]
	ldr	ip, [r9]
	ldr	r2, [r10, fp, lsl #4]
	add	r5, r10, fp, lsl #4
	ldr	r1, [r5, #44]
	cmp	r2, ip
	ldr	ip, [r5, #40]
	add	r4, r3, r7
	str	r1, [r4, #48]
	ldr	r1, [r5, #36]
	str	r2, [r3, r7]
	ldr	r3, [r5, #32]
	str	ip, [r4, #44]
	ldr	ip, [r5, #28]
	str	r1, [r4, #40]
	str	r3, [r4, #36]
	str	ip, [r4, #32]
	blt	.L20
.L6:
	ldr	r3, [r5, #4]
	ldr	r1, [r8]
	ldr	r2, [r5, #16]
	cmp	r3, r1
	str	r3, [r4, #4]
	ldr	r3, .L22+12
	str	r2, [r4, #20]
	ldr	r3, [r3]
	bne	.L7
	cmp	r3, #1
	ble	.L10
	mov	r2, #1
.L8:
	mov	r3, #0
	ldr	r10, [r5, #12]
	ldr	ip, [r4, #8]
	ldr	r1, [r4, #12]
	add	fp, r10, #4
	sub	ip, ip, #4
	sub	r1, r1, #4
.L11:
	ldr	lr, [fp, r3, lsl #3]
	str	lr, [ip, #4]!
	ldr	lr, [r10, r3, lsl #3]
	add	r3, r3, #1
	cmp	r2, r3
	str	lr, [r1, #4]!
	bgt	.L11
	b	.L10
.L20:
	ldr	r1, [r5, #24]
	ldr	r0, [r4, #28]
	bl	memcpy
	ldr	r2, [r10, fp, lsl #4]
	ldr	r1, [r5, #20]
	ldr	r0, [r4, #24]
	bl	memcpy
	ldr	r0, [sp, #8]
	b	.L6
.L19:
	cmp	r2, #0
	bgt	.L8
	b	.L10
.L3:
	add	r0, sp, #8
	bl	opj_destroy_cstr_info
	mov	r0, r4
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	OPJ_J2K_MAXRLVLS
	.word	J2K_CCP_QNTSTY_SIQNT
	.word	OPJ_J2K_MAXBANDS
	.size	j2k_get_cstr_info, .-j2k_get_cstr_info
	.comm	OPJ_J2K_MAXRLVLS,4,4
	.comm	OPJ_J2K_MAXBANDS,4,4
	.comm	J2K_CCP_QNTSTY_SIQNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
