	.file	"extr_vcd.c_EntryPoints.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not read entry points sector"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"invalid entry points number"
.LC2:
	.string	"ENTRYVCD"
.LC3:
	.string	"ENTRYSVD"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"unrecognized entry points format"
	.section	.rodata.str1.1
.LC5:
	.string	"Entry[%d] title=%d sector=%d"
	.text
	.p2align 4
	.type	EntryPoints, @function
EntryPoints:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	rcx, rsp
	mov	QWORD PTR -112[rbp], rax
	mov	r15, QWORD PTR 16[rax]
	movsx	rax, DWORD PTR VCD_DATA_SIZE[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L27:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L27
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L28
.L4:
	mov	rax, QWORD PTR -112[rbp]
	mov	ebx, DWORD PTR VCD_ENTRIES_SECTOR[rip]
	mov	rdi, r13
	mov	r12, rsp
	mov	r9d, DWORD PTR VCD_TYPE[rip]
	mov	r14d, DWORD PTR 8[rax]
	mov	DWORD PTR -88[rbp], r9d
	call	VLC_OBJECT@PLT
	mov	r9d, DWORD PTR -88[rbp]
	mov	rcx, r12
	mov	edx, ebx
	mov	edi, eax
	mov	r8d, 1
	mov	esi, r14d
	call	ioctl_ReadSectors@PLT
	test	rax, rax
	js	.L29
	mov	edx, DWORD PTR CD_SECTOR_SIZE[rip]
	lea	rdi, -80[rbp]
	mov	rsi, r12
	call	memcpy@PLT
	lea	rdi, -68[rbp]
	call	GetWBE@PLT
	mov	ebx, eax
	cmp	eax, 500
	jg	.L30
	mov	edi, DWORD PTR -72[rbp]
	mov	edx, 4
	lea	rsi, .LC2[rip]
	call	strncmp@PLT
	test	rax, rax
	jne	.L8
.L11:
	lea	eax, -1[rbx]
	xor	r14d, r14d
	mov	QWORD PTR -104[rbp], rax
	test	ebx, ebx
	jg	.L15
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r14, rax
.L15:
	mov	rax, QWORD PTR -80[rbp]
	mov	r12, r14
	sal	r12, 4
	mov	edi, DWORD PTR 12[rax+r12]
	call	BCD_TO_BIN@PLT
	lea	ebx, -2[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	edi, DWORD PTR [rax+r12]
	call	BCD_TO_BIN@PLT
	mov	DWORD PTR -96[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	edi, DWORD PTR 4[rax+r12]
	call	BCD_TO_BIN@PLT
	mov	DWORD PTR -88[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	edi, DWORD PTR 8[rax+r12]
	call	BCD_TO_BIN@PLT
	mov	edx, DWORD PTR -96[rbp]
	mov	esi, DWORD PTR -88[rbp]
	mov	edi, eax
	call	MSF_TO_LBA2@PLT
	mov	r12d, eax
	test	ebx, ebx
	js	.L13
	mov	edi, DWORD PTR 8[r15]
	call	USABLE_TITLES@PLT
	cmp	eax, ebx
	jle	.L13
	mov	r8d, r12d
	mov	ecx, ebx
	mov	edx, r14d
	mov	rdi, r13
	lea	rsi, .LC5[rip]
	call	msg_Dbg@PLT
	movsx	rdx, ebx
	mov	rax, QWORD PTR -112[rbp]
	mov	rcx, rdx
	mov	QWORD PTR -96[rbp], rdx
	sal	rcx, 4
	mov	rbx, rcx
	add	rbx, QWORD PTR [rax]
	mov	QWORD PTR -88[rbp], rcx
	mov	eax, DWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [rbx]
	lea	esi, 4[0+rax*4]
	call	xrealloc@PLT
	mov	rdx, QWORD PTR -96[rbp]
	mov	rcx, QWORD PTR -88[rbp]
	mov	r8d, r12d
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR [r15]
	mov	rbx, QWORD PTR -112[rbp]
	sub	r8d, DWORD PTR 4[rax+rdx*4]
	imul	r8d, DWORD PTR VCD_DATA_SIZE[rip]
	mov	rax, QWORD PTR [rbx]
	add	rax, rcx
	movsx	rdx, DWORD PTR 8[rax]
	mov	rcx, QWORD PTR [rax]
	lea	esi, 1[rdx]
	mov	DWORD PTR 8[rax], esi
	mov	DWORD PTR [rcx+rdx*4], r8d
.L13:
	lea	rax, 1[r14]
	cmp	QWORD PTR -104[rbp], r14
	jne	.L17
.L10:
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L31
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	msg_Err@PLT
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	msg_Err@PLT
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR -72[rbp]
	mov	edx, 4
	lea	rsi, .LC3[rip]
	call	strncmp@PLT
	test	rax, rax
	je	.L11
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	call	msg_Err@PLT
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	jmp	.L1
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	EntryPoints, .-EntryPoints
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	VCD_TYPE,4,4
	.comm	VCD_ENTRIES_SECTOR,4,4
	.comm	VCD_DATA_SIZE,4,4
	.comm	CD_SECTOR_SIZE,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_vcd.c_EntryPoints.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not read entry points sector\000"
	.align	2
.LC1:
	.ascii	"invalid entry points number\000"
	.align	2
.LC2:
	.ascii	"ENTRYVCD\000"
	.align	2
.LC3:
	.ascii	"ENTRYSVD\000"
	.align	2
.LC4:
	.ascii	"unrecognized entry points format\000"
	.align	2
.LC5:
	.ascii	"Entry[%d] title=%d sector=%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	EntryPoints, %function
EntryPoints:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	ldr	r3, .L23
	ldr	r10, [r0]
	ldr	r3, [r3]
	ldr	r2, .L23+4
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	str	r0, [fp, #-56]
	ldr	r2, [r2]
	str	r2, [fp, #-40]
	mov	r2,#0
	ldr	r9, [r10, #8]
	bl	VLC_OBJECT
	mov	r3, #1
	ldr	r2, .L23+8
	ldr	r1, [r10, #4]
	ldr	ip, [r2]
	ldr	r2, .L23+12
	stm	sp, {r3, ip}
	add	r4, sp, #8
	mov	r3, r4
	ldr	r2, [r2]
	bl	ioctl_ReadSectors
	cmp	r0, #0
	blt	.L20
	ldr	r3, .L23+16
	mov	r1, r4
	ldr	r2, [r3]
	sub	r0, fp, #52
	bl	memcpy
	sub	r0, fp, #44
	bl	GetWBE
	cmp	r0, #500
	mov	r8, r0
	bgt	.L21
	mov	r2, #4
	ldr	r1, .L23+20
	ldr	r0, [fp, #-48]
	bl	strncmp
	cmp	r0, #0
	bne	.L5
.L8:
	cmp	r8, #0
	movgt	r4, #0
	ble	.L7
.L6:
	ldr	r3, [fp, #-52]
	lsl	r6, r4, #4
	add	r3, r3, r4, lsl #4
	ldr	r0, [r3, #12]
	bl	BCD_TO_BIN
	ldr	r3, [fp, #-52]
	mov	r5, r0
	add	r3, r3, r6
	ldr	r0, [r3, #8]
	bl	BCD_TO_BIN
	ldr	r3, [fp, #-52]
	mov	r7, r0
	add	r6, r3, r6
	ldr	r0, [r6, #4]
	bl	BCD_TO_BIN
	ldr	r3, [fp, #-52]
	mov	r6, r0
	ldr	r0, [r3, r4, lsl #4]
	bl	BCD_TO_BIN
	mov	r1, r6
	mov	r2, r0
	mov	r0, r7
	bl	MSF_TO_LBA2
	sub	r7, r5, #2
	cmp	r7, #0
	mov	r6, r0
	blt	.L10
	ldr	r0, [r9, #4]
	bl	USABLE_TITLES
	cmp	r0, r7
	ble	.L10
	mov	r3, r7
	mov	r2, r4
	ldr	r1, .L23+24
	str	r6, [sp]
	ldr	r0, [fp, #-56]
	bl	msg_Dbg
	ldr	r2, [r10]
	lsl	r3, r7, #3
	add	r1, r2, r7, lsl #3
	ldr	r1, [r1, #4]
	ldr	r0, [r2, r7, lsl #3]
	add	r1, r1, #1
	lsl	r1, r1, #2
	str	r3, [fp, #-64]
	str	r2, [fp, #-60]
	bl	xrealloc
	ldr	r1, [r9]
	ldr	r3, .L23
	sub	r5, r5, #1
	ldr	lr, [r1, r5, lsl #2]
	ldr	ip, [r3]
	ldr	r1, [r10]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-60]
	sub	r6, r6, lr
	add	r3, r1, r3
	mul	r6, ip, r6
	str	r0, [r2, r7, lsl #3]
	ldr	r2, [r3, #4]
	ldr	r1, [r1, r7, lsl #3]
	add	r0, r2, #1
	str	r0, [r3, #4]
	str	r6, [r1, r2, lsl #2]
.L10:
	add	r4, r4, #1
	cmp	r8, r4
	bne	.L6
.L7:
	ldr	r3, .L23+28
	ldr	r0, [r3]
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r0, [fp, #-56]
	ldr	r1, .L23+32
	bl	msg_Err
	ldr	r3, .L23+36
	ldr	r0, [r3]
	b	.L1
.L20:
	ldr	r0, [fp, #-56]
	ldr	r1, .L23+40
	bl	msg_Err
	ldr	r3, .L23+36
	ldr	r0, [r3]
	b	.L1
.L5:
	mov	r2, #4
	ldr	r1, .L23+44
	ldr	r0, [fp, #-48]
	bl	strncmp
	cmp	r0, #0
	beq	.L8
	ldr	r0, [fp, #-56]
	ldr	r1, .L23+48
	bl	msg_Err
	ldr	r3, .L23+36
	ldr	r0, [r3]
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	VCD_DATA_SIZE
	.word	.LC6
	.word	VCD_TYPE
	.word	VCD_ENTRIES_SECTOR
	.word	CD_SECTOR_SIZE
	.word	.LC2
	.word	.LC5
	.word	VLC_SUCCESS
	.word	.LC1
	.word	VLC_EGENERIC
	.word	.LC0
	.word	.LC3
	.word	.LC4
	.size	EntryPoints, .-EntryPoints
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	VCD_TYPE,4,4
	.comm	VCD_ENTRIES_SECTOR,4,4
	.comm	VCD_DATA_SIZE,4,4
	.comm	CD_SECTOR_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
