	.file	"extr_dvbsubdec.c_dvbsub_parse_page_segment.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Page time out %ds, state %d\n"
.LC1:
	.string	"Region %d, (%d,%d)\n"
.LC2:
	.string	"duplicate region\n"
	.text
	.p2align 4
	.type	dvbsub_parse_page_segment, @function
dvbsub_parse_page_segment:
.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
	movsx	r13, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 8[rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	test	r13d, r13d
	jle	.L1
	mov	rax, QWORD PTR 8[rsp]
	mov	rbx, rsi
	mov	rbp, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rsi]
	mov	edx, eax
	sar	edx, 4
	and	edx, 15
	cmp	DWORD PTR 0[rbp], edx
	je	.L19
	mov	r9d, DWORD PTR [rsi]
	sar	eax, 2
	mov	DWORD PTR 0[rbp], edx
	mov	r15, rcx
	and	eax, 3
	mov	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[rsp], r8
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 4[rbp], r9d
	mov	ecx, eax
	mov	r14d, eax
	mov	edx, r9d
	xor	eax, eax
	call	ff_dlog@PLT
	cmp	DWORD PTR 8[rbp], 1
	mov	r8, QWORD PTR 16[rsp]
	je	.L45
.L5:
	sub	r14d, 1
	cmp	r14d, 1
	jbe	.L46
.L6:
	lea	rax, [rbx+r13*4]
	mov	r13, QWORD PTR 16[rbp]
	mov	QWORD PTR 16[rbp], 0
	mov	QWORD PTR 24[rsp], rax
	mov	rcx, rax
	lea	rax, 28[rbx]
	mov	QWORD PTR 48[rsp], r13
	cmp	rcx, rax
	jbe	.L8
	lea	rax, 48[rsp]
	mov	r15d, DWORD PTR 8[rbx]
	lea	r14, 16[rbx]
	mov	QWORD PTR 16[rsp], rax
	.p2align 4,,10
	.p2align 3
.L25:
	mov	QWORD PTR 40[rsp], r13
	mov	r12, QWORD PTR 16[rsp]
	mov	rbx, r13
	xor	eax, eax
	test	r13, r13
	jne	.L23
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L14:
	lea	r12, 8[rbx]
	mov	rbx, QWORD PTR 8[rbx]
	mov	eax, 1
	test	rbx, rbx
	je	.L13
.L23:
	cmp	r15d, DWORD PTR [rbx]
	jne	.L14
	test	al, al
	je	.L28
	mov	QWORD PTR 40[rsp], rbx
.L21:
	mov	DWORD PTR [rbx], r15d
	mov	rdi, r14
	call	AV_RB16@PLT
	lea	rdi, 8[r14]
	mov	QWORD PTR 24[rbx], rax
	mov	rbx, QWORD PTR 40[rsp]
	call	AV_RB16@PLT
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC1[rip]
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR 40[rsp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR 40[rsp]
	mov	rdx, QWORD PTR 16[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	r8, QWORD PTR 16[rax]
	mov	QWORD PTR 8[rax], rdx
	mov	edx, r15d
	mov	QWORD PTR 16[rbp], rax
	xor	eax, eax
	call	ff_dlog@PLT
	lea	rax, 36[r14]
	cmp	QWORD PTR 24[rsp], rax
	jbe	.L43
	mov	rax, QWORD PTR 16[rbp]
	mov	r15d, DWORD PTR 16[r14]
	mov	QWORD PTR 40[rsp], rax
	test	rax, rax
	je	.L10
	xor	edx, edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 8[rax]
	mov	edx, 1
	test	rax, rax
	je	.L10
.L9:
	cmp	DWORD PTR [rax], r15d
	jne	.L11
	test	dl, dl
	je	.L22
	mov	QWORD PTR 40[rsp], rax
.L22:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, QWORD PTR 8[rsp]
	lea	rdx, .LC2[rip]
	call	av_log@PLT
.L43:
	mov	r13, QWORD PTR 48[rsp]
.L8:
	lea	rbx, 40[rsp]
	test	r13, r13
	je	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	mov	QWORD PTR 40[rsp], r13
	mov	r13, QWORD PTR 8[r13]
	mov	rdi, rbx
	mov	QWORD PTR 48[rsp], r13
	call	av_freep@PLT
	test	r13, r13
	jne	.L18
.L19:
	xor	eax, eax
.L1:
	mov	rsi, QWORD PTR 56[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L47
	add	rsp, 72
	.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	r13, QWORD PTR 48[rsp]
	add	r14, 24
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L13:
	mov	QWORD PTR 40[rsp], 0
.L24:
	mov	edi, 32
	call	av_mallocz@PLT
	mov	QWORD PTR 40[rsp], rax
	mov	rbx, rax
	test	rax, rax
	jne	.L21
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rbx, r13
	jmp	.L21
.L46:
	mov	rdi, rbp
	call	delete_regions@PLT
	mov	rdi, rbp
	call	delete_objects@PLT
	mov	rdi, rbp
	call	delete_cluts@PLT
	jmp	.L6
.L45:
	mov	rdi, QWORD PTR 8[rsp]
	mov	rdx, r8
	mov	rsi, r15
	call	save_subtitle_set@PLT
	jmp	.L5
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dvbsub_parse_page_segment, .-dvbsub_parse_page_segment
	.comm	ENOMEM,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AVERROR_INVALIDDATA,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_dvbsubdec.c_dvbsub_parse_page_segment.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Page time out %ds, state %d\012\000"
	.align	2
.LC1:
	.ascii	"Region %d, (%d,%d)\012\000"
	.align	2
.LC2:
	.ascii	"duplicate region\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dvbsub_parse_page_segment, %function
dvbsub_parse_page_segment:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	ldr	r3, .L48
	sub	sp, sp, #36
	subs	r8, r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r10, [sp, #72]
	ble	.L43
	ldr	r2, [r1, #4]
	ldr	r7, [r0]
	mov	r6, r1
	ldr	r3, [r7]
	asr	r1, r2, #4
	and	r1, r1, #15
	cmp	r3, r1
	mov	r9, r0
	beq	.L19
	asr	r4, r2, #2
	ldr	r2, [r6]
	and	r4, r4, #3
	mov	r3, r4
	stm	r7, {r1, r2}
	ldr	r1, .L48+4
	bl	ff_dlog
	ldr	r3, [r7, #8]
	cmp	r3, #1
	beq	.L44
.L5:
	sub	r4, r4, #1
	cmp	r4, #1
	bls	.L45
.L6:
	mov	r2, #0
	add	r1, r6, r8, lsl #2
	add	r3, r6, #28
	ldr	r8, [r7, #12]
	cmp	r1, r3
	str	r1, [sp, #12]
	str	r2, [r7, #12]
	str	r8, [sp, #24]
	bls	.L8
	ldr	r10, .L48+8
	ldr	r5, [r6, #8]
	add	r6, r6, #16
.L25:
	cmp	r8, #0
	str	r8, [sp, #20]
	addeq	fp, sp, #24
	beq	.L24
	mov	r4, r8
	mov	r2, #0
	add	fp, sp, #24
	b	.L23
.L14:
	add	fp, r4, #4
	ldr	r4, [r4, #4]
	mov	r2, #1
	cmp	r4, #0
	beq	.L46
.L23:
	ldr	r3, [r4]
	cmp	r5, r3
	bne	.L14
	cmp	r2, #0
	moveq	r4, r8
	strne	r4, [sp, #20]
.L21:
	str	r5, [r4]
	mov	r0, r6
	bl	AV_RB16
	mov	r3, r0
	add	r0, r6, #8
	str	r3, [r4, #12]
	ldr	r4, [sp, #20]
	bl	AV_RB16
	ldr	r3, [sp, #20]
	str	r0, [r4, #8]
	ldr	r3, [r3, #4]
	mov	r2, r5
	str	r3, [fp]
	ldr	r1, [sp, #20]
	ldr	ip, [r7, #12]
	ldr	r0, [r1, #8]
	ldr	r3, [r1, #12]
	str	ip, [r1, #4]
	str	r1, [r7, #12]
	str	r0, [sp]
	mov	r1, r10
	mov	r0, r9
	bl	ff_dlog
	ldr	r2, [sp, #12]
	add	r3, r6, #36
	cmp	r2, r3
	bls	.L41
	ldr	r3, [r7, #12]
	ldr	r5, [r6, #16]
	cmp	r3, #0
	movne	r1, #0
	str	r3, [sp, #20]
	bne	.L9
	b	.L10
.L11:
	ldr	r3, [r3, #4]
	mov	r1, #1
	cmp	r3, #0
	beq	.L10
.L9:
	ldr	r2, [r3]
	cmp	r2, r5
	bne	.L11
	cmp	r1, #0
	strne	r3, [sp, #20]
	ldr	r3, .L48+12
	mov	r0, r9
	ldr	r1, [r3]
	ldr	r2, .L48+16
	bl	av_log
.L41:
	ldr	r8, [sp, #24]
.L8:
	cmp	r8, #0
	beq	.L19
.L18:
	str	r8, [sp, #20]
	ldr	r8, [r8, #4]
	add	r0, sp, #20
	str	r8, [sp, #24]
	bl	av_freep
	cmp	r8, #0
	bne	.L18
.L19:
	mov	r0, #0
.L1:
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r8, [sp, #24]
	add	r6, r6, #24
	b	.L25
.L46:
	str	r4, [sp, #20]
.L24:
	mov	r0, #16
	bl	av_mallocz
	cmp	r0, #0
	mov	r4, r0
	str	r0, [sp, #20]
	bne	.L21
	ldr	r3, .L48+20
	ldr	r0, [r3]
	bl	AVERROR
	b	.L1
.L43:
	ldr	r3, .L48+24
	ldr	r0, [r3]
	b	.L1
.L45:
	mov	r0, r7
	bl	delete_regions
	mov	r0, r7
	bl	delete_objects
	mov	r0, r7
	bl	delete_cluts
	b	.L6
.L44:
	mov	r2, r10
	mov	r1, r5
	mov	r0, r9
	bl	save_subtitle_set
	b	.L5
.L47:
	bl	__stack_chk_fail
.L49:
	.align	2
.L48:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	AV_LOG_ERROR
	.word	.LC2
	.word	ENOMEM
	.word	AVERROR_INVALIDDATA
	.size	dvbsub_parse_page_segment, .-dvbsub_parse_page_segment
	.comm	ENOMEM,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
