	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkFirstPts
_checkFirstPts:                         ## @checkFirstPts
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_12
## %bb.1:
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_SYNC_TYPE_SUBTITLE@GOTPCREL(%rip), %rcx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r14
	leaq	-80(%rbp), %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %rcx
	cmovlq	%rcx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmovlq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	_SYNC_TYPE_SUBTITLE@GOTPCREL(%rip), %rcx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%rdi), %rax
	cmpq	%rax, %r12
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	8(%rdi), %r13
	movq	%r12, %rbx
	shlq	$4, %rbx
	movq	(%r13,%rbx), %rax
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13,%rbx), %edi
	callq	_hb_list_count
	testq	%rax, %rax
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	addq	%rbx, %r13
	addq	$8, %r13
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_hb_list_item
	movq	%rax, -80(%rbp)
	movq	(%rax), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r13), %edi
	movq	%rax, %rsi
	callq	_hb_list_rem
	movq	%r15, %rdi
	callq	_hb_buffer_close
	movl	(%r13), %edi
	callq	_hb_list_count
	testq	%rax, %rax
	jg	LBB0_5
	jmp	LBB0_8
LBB0_10:
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	jne	LBB0_11
LBB0_12:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
	jmp	LBB0_13
LBB0_11:
	movl	$1, 4(%rdi)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_computeInitialTS
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.comm	_SYNC_TYPE_SUBTITLE,8,3         ## @SYNC_TYPE_SUBTITLE
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"checkFirstPts: No initial PTS found!\n"

	.no_dead_strip	_checkFirstPts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkFirstPts
_checkFirstPts:                         ; @checkFirstPts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	mov	x20, #0
Lloh0:
	adrp	x21, _INT64_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INT64_MAX@GOTPAGEOFF]
	ldr	x22, [x21]
Lloh2:
	adrp	x24, _SYNC_TYPE_SUBTITLE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SYNC_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _AV_NOPTS_VALUE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _AV_NOPTS_VALUE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, x22
	csel	x22, x8, x22, lt
	csel	x20, x26, x20, lt
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x19, #8]
	add	x26, x8, x23, lsl #4
	ldr	x8, [x26]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x26
	ldr	w0, [x27, #8]!
	bl	_hb_list_count
	cmp	x0, #1
	b.lt	LBB0_3
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x27]
	mov	w1, #0
	bl	_hb_list_item
	str	x0, [sp, #8]
	ldr	x8, [x0]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x1, x0
	ldr	w0, [x27]
	bl	_hb_list_rem
	add	x0, sp, #8
	bl	_hb_buffer_close
	ldr	w0, [x27]
	bl	_hb_list_count
	cmp	x0, #0
	b.gt	LBB0_6
	b	LBB0_3
LBB0_8:
	ldr	x8, [x21]
	cmp	x22, x8
	b.ne	LBB0_10
LBB0_9:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
	b	LBB0_11
LBB0_10:
	mov	w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_computeInitialTS
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.comm	_SYNC_TYPE_SUBTITLE,8,3         ; @SYNC_TYPE_SUBTITLE
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"checkFirstPts: No initial PTS found!\n"

	.no_dead_strip	_checkFirstPts
.subsections_via_symbols
