	.file	"extr_t2.c_opj_t2_decode_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	opj_t2_decode_packet, @function
opj_t2_decode_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r15, QWORD PTR 120[rsp]
	mov	QWORD PTR [r9], 0
	mov	r9, r8
	mov	r14, QWORD PTR 128[rsp]
	mov	QWORD PTR 32[rsp], 0
	push	r14
	.cfi_def_cfa_offset 120
	push	r15
	.cfi_def_cfa_offset 128
	push	QWORD PTR 128[rsp]
	.cfi_def_cfa_offset 136
	lea	r13, 56[rsp]
	push	r13
	.cfi_def_cfa_offset 144
	lea	r8, 56[rsp]
	mov	QWORD PTR 40[rsp], rsi
	mov	QWORD PTR 32[rsp], rdi
	call	opj_t2_read_packet_header@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 8[rsp]
	test	eax, eax
	je	.L8
	cmp	QWORD PTR 24[rsp], 0
	mov	r10, QWORD PTR 32[rsp]
	jne	.L10
.L4:
	mov	QWORD PTR [rbx], r10
	mov	rax, QWORD PTR OPJ_TRUE[rip]
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 56
	.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
.L10:
	.cfi_restore_state
	mov	QWORD PTR 32[rsp], 0
	lea	rcx, 0[rbp+r10*4]
	mov	rdx, r12
	mov	r8, r13
	push	r14
	.cfi_def_cfa_offset 120
	push	r15
	.cfi_def_cfa_offset 128
	mov	r9, QWORD PTR 128[rsp]
	sub	r9, r10
	mov	QWORD PTR 16[rsp], r10
	call	opj_t2_read_packet_data@PLT
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	test	eax, eax
	mov	r10, QWORD PTR [rsp]
	je	.L8
	add	r10, QWORD PTR 32[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR OPJ_FALSE[rip]
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	opj_t2_decode_packet, .-opj_t2_decode_packet
	.comm	OPJ_TRUE,8,8
	.comm	OPJ_FALSE,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_t2.c_opj_t2_decode_packet.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	opj_t2_decode_packet, %function
opj_t2_decode_packet:
	@ args = 20, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	ldr	lr, .L15
	sub	sp, sp, #52
	ldr	lr, [lr]
	str	lr, [sp, #44]
	mov	lr,#0
	ldr	r7, [sp, #92]
	ldr	lr, [sp, #96]
	ldr	r8, [sp, #88]
	ldr	r9, [sp, #100]
	ldr	r10, [sp, #104]
	add	ip, sp, #36
	str	r8, [sp, #4]
	str	r4, [r7]
	str	lr, [sp, #12]
	add	lr, sp, #40
	str	r9, [sp, #16]
	str	r10, [sp, #20]
	str	lr, [sp, #8]
	str	ip, [sp]
	mov	r5, r1
	mov	r6, r3
	str	r4, [sp, #40]
	str	r0, [sp, #28]
	bl	opj_t2_read_packet_header
	cmp	r0, r4
	beq	.L11
	ldr	r3, [sp, #36]
	ldr	fp, [sp, #40]
	cmp	r3, #0
	bne	.L13
.L4:
	ldr	r3, .L15+4
	str	fp, [r7]
	ldr	r0, [r3]
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, [sp, #96]
	mov	r2, r6
	sub	r3, r3, fp
	stmib	sp, {r3, r9, r10}
	add	r3, sp, #40
	str	r3, [sp]
	mov	r1, r5
	ldr	r0, [sp, #28]
	add	r3, r8, fp, lsl #2
	str	r4, [sp, #40]
	bl	opj_t2_read_packet_data
	cmp	r0, #0
	ldrne	r3, [sp, #40]
	addne	fp, fp, r3
	bne	.L4
.L11:
	ldr	r3, .L15+8
	ldr	r0, [r3]
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	OPJ_TRUE
	.word	OPJ_FALSE
	.size	opj_t2_decode_packet, .-opj_t2_decode_packet
	.comm	OPJ_TRUE,4,4
	.comm	OPJ_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
