	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PttDuration
_PttDuration:                           ## @PttDuration
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, (%rcx)
	movq	_MAX_PGCN@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leal	31(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$5, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_PgcWalkInit
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	movq	-8(%rax,%rcx,8), %rax
	movslq	%r14d, %rdx
	movslq	-8(%rax,%rdx,8), %r14
	testq	%r14, %r14
	jle	LBB0_3
## %bb.1:
	movq	(%rbx), %rcx
	cmpl	(%rcx), %r14d
	jg	LBB0_3
## %bb.2:
	cmpl	(%r13), %r14d
	jge	LBB0_3
## %bb.5:
	movl	-4(%rax,%rdx,8), %r13d
	leal	-100(%r13), %eax
	cmpl	$-99, %eax
	jae	LBB0_6
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r13d, %esi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
LBB0_4:
	xorl	%eax, %eax
	callq	_hb_log
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rcx), %rax
	movq	-8(%rax,%r14,8), %r12
	testq	%r12, %r12
	je	LBB0_12
## %bb.7:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	cmpq	$0, 24(%r12)
	je	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	(%r12), %r13d
	jg	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	32(%r12), %rdi
	callq	_dvdtime2msec
	imulq	$90, %rax, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	decl	%r13d
	movl	(%rax,%r13,4), %eax
	movl	16(%r12), %ebx
	cmpl	%ebx, %eax
	jg	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	decl	%eax
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r12), %rcx
	movslq	%eax, %rsi
	movq	%rsi, %rax
	shlq	$4, %rax
	movl	8(%rcx,%rax), %edx
	subl	(%rcx,%rax), %edx
	movl	(%r15), %eax
	addl	%edx, %eax
	incl	%eax
	movl	%eax, (%r15)
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FindNextCell
	cmpl	%ebx, %eax
	jl	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, -56(%rbp)                 ## 8-byte Folded Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_NextPgcn
	testl	%eax, %eax
	je	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movslq	%r14d, %rcx
	movq	-8(%rax,%rcx,8), %r12
	movl	$1, %r13d
	testq	%r12, %r12
	jne	LBB0_8
LBB0_12:
	movl	$0, (%r15)
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_9:
	movl	$0, (%r15)
	leaq	L_.str.3(%rip), %rdi
LBB0_13:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_hb_log
	jmp	LBB0_21
LBB0_20:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PGCN,4,2                   ## @MAX_PGCN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid PGC ID %d, skipping"

L_.str.1:                               ## @.str.1
	.asciz	"scan: pgn %d not valid, skipping"

L_.str.2:                               ## @.str.2
	.asciz	"scan: pgc not valid, skipping"

L_.str.3:                               ## @.str.3
	.asciz	"invalid PGC cell_playback table, skipping"

	.no_dead_strip	_PttDuration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PttDuration
_PttDuration:                           ; @PttDuration
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x4
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	wzr, [x3]
Lloh3:
	adrp	x25, _MAX_PGCN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX_PGCN@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #5
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x22
	bl	_PgcWalkInit
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	add	x8, x8, w24, sxtw #3
	ldur	x8, [x8, #-8]
	add	x10, x8, w23, sxtw #3
	ldur	w23, [x10, #-8]
	subs	w8, w23, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x9, [x21]
	ldr	w11, [x9]
	ldr	w12, [x25]
	cmp	w23, w11
	ccmp	w23, w12, #0, le
	b.lt	LBB0_7
LBB0_2:
	str	x23, [sp, #-16]!
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_hb_log
	add	sp, sp, #16
LBB0_4:
	mov	x24, #0
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.6:
	mov	x0, x24
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldur	w28, [x10, #-4]
	sub	w10, w28, #100
	cmn	w10, #99
	b.hs	LBB0_9
; %bb.8:
	str	x28, [sp, #-16]!
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_9:
	ldr	x9, [x9, #8]
	ldr	x25, [x9, w8, sxtw #3]
	cbz	x25, LBB0_19
; %bb.10:
	mov	x24, #0
	mov	w27, #90
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x25]
	cmp	w28, w8
	b.gt	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, x25, #32
	bl	_dvdtime2msec
	mov	x26, x0
	ldr	x8, [x25, #8]
	sub	w9, w28, #1
	ldr	w8, [x8, w9, uxtw #2]
	ldr	w28, [x25, #16]
	cmp	w8, w28
	b.gt	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w1, w8, #1
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, #24]
	add	x8, x8, w1, sxtw #4
	ldr	w9, [x8, #8]
	ldr	w8, [x8]
	ldr	w10, [x19]
	sub	w8, w9, w8
	add	w8, w8, w10
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x25
	bl	_FindNextCell
	mov	x1, x0
	cmp	w0, w28
	b.lt	LBB0_15
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	madd	x24, x26, x27, x24
	str	w23, [x20]
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_NextPgcn
	cbz	w0, LBB0_5
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x0
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	add	x8, x8, w0, sxtw #3
	ldur	x25, [x8, #-8]
	mov	w28, #1
	cbnz	x25, LBB0_11
LBB0_19:
	str	wzr, [x19]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hb_log
	b	LBB0_4
LBB0_20:
	str	wzr, [x19]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hb_log
	b	LBB0_4
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PGCN,4,2                   ; @MAX_PGCN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid PGC ID %d, skipping"

l_.str.1:                               ; @.str.1
	.asciz	"scan: pgn %d not valid, skipping"

l_.str.2:                               ; @.str.2
	.asciz	"scan: pgc not valid, skipping"

l_.str.3:                               ; @.str.3
	.asciz	"invalid PGC cell_playback table, skipping"

	.no_dead_strip	_PttDuration
.subsections_via_symbols
