	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_stream_title_scan           ## -- Begin function hb_stream_title_scan
	.p2align	4, 0x90
_hb_stream_title_scan:                  ## @hb_stream_title_scan
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, -40(%rbp)
	movq	(%rdi), %rax
	movq	_ffmpeg@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ffmpeg_title_scan              ## TAILCALL
LBB0_1:
	movq	_HB_STREAM_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_hb_strr_dir_sep
	leaq	1(%rax), %rdi
	testq	%rax, %rax
	cmoveq	%rbx, %rdi
	callq	_strdup
	movl	%eax, 48(%r15)
	movl	%eax, %edi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movb	$0, (%rax)
	movq	-40(%rbp), %r15
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hb_init_audio_list
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hb_init_subtitle_list
	movq	%r14, %rdi
	callq	_pes_index_of_video
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	leaq	(,%rbx,8), %rdi
	addq	32(%r14), %rdi
	callq	_get_id
	movl	%eax, 44(%r15)
	movq	32(%r14), %rax
	movl	4(%rax,%rbx,8), %ecx
	movl	%ecx, 40(%r15)
	movl	(%rax,%rbx,8), %eax
	movl	%eax, 36(%r15)
	movabsq	$386547056640001, %rax          ## imm = 0x15F9000000001
	movq	%rax, 28(%r15)
	movq	(%r14), %rax
	movq	_transport@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.6:
	movq	_HB_TS_DEMUXER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movl	24(%r14), %esi
	movq	_P@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$-1, %ecx
	xorl	%r9d, %r9d
	callq	_update_ts_streams
	jmp	LBB0_8
LBB0_4:
	leaq	-40(%rbp), %rdi
	callq	_hb_title_close
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_7:
	movq	_HB_PS_DEMUXER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
LBB0_8:
	movl	$0, 16(%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hb_stream_duration
	movl	$20, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_hb_chapter_set_title
	movl	$1, (%rbx)
	movups	8(%r15), %xmm0
	movups	%xmm0, 4(%rbx)
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	callq	_hb_list_add
	cmpl	$0, 16(%r14)
	jg	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_hb_log
	movq	_HBTF_NO_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_10:
	movq	(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.11:
	movq	_TS_HAS_PCR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%r14)
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	callq	_hb_log
LBB0_13:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ffmpeg,8,3                     ## @ffmpeg
	.comm	_HB_STREAM_TYPE,4,2             ## @HB_STREAM_TYPE
	.comm	_transport,8,3                  ## @transport
	.comm	_HB_TS_DEMUXER,4,2              ## @HB_TS_DEMUXER
	.comm	_P,4,2                          ## @P
	.comm	_HB_PS_DEMUXER,4,2              ## @HB_PS_DEMUXER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chapter 1"

L_.str.1:                               ## @.str.1
	.asciz	"stream doesn't seem to have video IDR frames"

	.comm	_HBTF_NO_IDR,4,2                ## @HBTF_NO_IDR
	.comm	_TS_HAS_PCR,4,2                 ## @TS_HAS_PCR
L_.str.2:                               ## @.str.2
	.asciz	"transport stream missing PCRs - using video DTS instead"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function hb_stream_title_scan
lCPI0_0:
	.long	1                               ; 0x1
	.long	90000                           ; 0x15f90
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hb_stream_title_scan
	.p2align	2
_hb_stream_title_scan:                  ; @hb_stream_title_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	str	x1, [sp, #8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ffmpeg@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ffmpeg@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ffmpeg_title_scan
LBB0_2:
Lloh3:
	adrp	x8, _HB_STREAM_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HB_STREAM_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #52]
	ldr	x21, [x20, #8]
	mov	x0, x21
	bl	_hb_strr_dir_sep
	cmp	x0, #0
	csinc	x0, x21, x0, eq
	bl	_strdup
	str	w0, [x19, #48]
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_4
; %bb.3:
	strb	wzr, [x0]
	ldr	x19, [sp, #8]
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_hb_init_audio_list
	mov	x0, x20
	mov	x1, x19
	bl	_hb_init_subtitle_list
	mov	x0, x20
	bl	_pes_index_of_video
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	x8, [x20, #32]
	mov	w9, w0
	lsl	x21, x9, #3
	add	x0, x8, x21
	bl	_get_id
	str	w0, [x19, #44]
	ldr	x8, [x20, #32]
	ldr	d0, [x8, x21]
	stur	d0, [x19, #36]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #28]
	ldr	x8, [x20]
Lloh8:
	adrp	x22, _transport@GOTPAGE
Lloh9:
	ldr	x22, [x22, _transport@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh10:
	adrp	x8, _HB_TS_DEMUXER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HB_TS_DEMUXER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w1, [x20, #24]
Lloh13:
	adrp	x8, _P@GOTPAGE
Lloh14:
	ldr	x8, [x8, _P@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #-1
	mov	x5, #0
	bl	_update_ts_streams
	b	LBB0_9
LBB0_7:
	add	x0, sp, #8
	bl	_hb_title_close
	mov	x19, #0
	b	LBB0_14
LBB0_8:
Lloh16:
	adrp	x8, _HB_PS_DEMUXER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HB_PS_DEMUXER@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_9:
	str	wzr, [x20, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_hb_stream_duration
	mov	w23, #1
	mov	w0, #20
	mov	w1, #1
	bl	_calloc
	mov	x21, x0
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_hb_chapter_set_title
	str	w23, [x21]
	ldur	q0, [x19, #8]
	stur	q0, [x21, #4]
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_hb_list_add
	ldr	w8, [x20, #16]
	cmp	w8, #0
	b.gt	LBB0_11
; %bb.10:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hb_log
Lloh23:
	adrp	x8, _HBTF_NO_IDR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HBTF_NO_IDR@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_11:
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	ldr	w8, [x20, #20]
Lloh26:
	adrp	x9, _TS_HAS_PCR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _TS_HAS_PCR@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.13:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hb_log
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ffmpeg,8,3                     ; @ffmpeg
	.comm	_HB_STREAM_TYPE,4,2             ; @HB_STREAM_TYPE
	.comm	_transport,8,3                  ; @transport
	.comm	_HB_TS_DEMUXER,4,2              ; @HB_TS_DEMUXER
	.comm	_P,4,2                          ; @P
	.comm	_HB_PS_DEMUXER,4,2              ; @HB_PS_DEMUXER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chapter 1"

l_.str.1:                               ; @.str.1
	.asciz	"stream doesn't seem to have video IDR frames"

	.comm	_HBTF_NO_IDR,4,2                ; @HBTF_NO_IDR
	.comm	_TS_HAS_PCR,4,2                 ; @TS_HAS_PCR
l_.str.2:                               ; @.str.2
	.asciz	"transport stream missing PCRs - using video DTS instead"

.subsections_via_symbols
