	.file	"extr_dvdnav.c_NextPgcn.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	NextPgcn, @function
NextPgcn:
.LFB0:
	.cfi_startproc
	endbr64
	movsx	rcx, esi
	mov	esi, 1
	mov	eax, ecx
	sal	esi, cl
	sar	eax, 5
	cdqe
	or	DWORD PTR [rdx+rax*4], esi
	mov	rsi, QWORD PTR [rdi]
	mov	rax, QWORD PTR 8[rsi]
	mov	rax, QWORD PTR -8[rax+rcx*8]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L5
	cmp	DWORD PTR MAX_PGCN[rip], eax
	jle	.L5
	cmp	DWORD PTR [rsi], eax
	jl	.L5
	mov	ecx, eax
	sar	ecx, 5
	movsx	rcx, ecx
	mov	edx, DWORD PTR [rdx+rcx*4]
	mov	ecx, eax
	sar	edx, cl
	and	edx, 1
	mov	edx, 0
	cmovne	eax, edx
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	NextPgcn, .-NextPgcn
	.comm	MAX_PGCN,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_dvdnav.c_NextPgcn.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	NextPgcn, %function
NextPgcn:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, #1
	ldr	ip, [r0]
	asr	r0, r1, #5
	ldr	r3, [r2, r0, lsl #2]
	ldr	lr, [ip, #4]
	and	r4, r1, #31
	sub	r1, r1, #-1073741823
	ldr	r1, [lr, r1, lsl #2]
	orr	r3, r3, r5, lsl r4
	str	r3, [r2, r0, lsl #2]
	ldr	r0, [r1]
	cmp	r0, #0
	ble	.L5
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, r0
	ble	.L5
	ldr	r3, [ip]
	cmp	r3, r0
	blt	.L5
	asr	r3, r0, #5
	ldr	r3, [r2, r3, lsl #2]
	and	r2, r0, #31
	asr	r3, r3, r2
	tst	r3, #1
	movne	r0, #0
	pop	{r4, r5, pc}
.L5:
	mov	r0, #0
	pop	{r4, r5, pc}
.L10:
	.align	2
.L9:
	.word	MAX_PGCN
	.size	NextPgcn, .-NextPgcn
	.comm	MAX_PGCN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
