	.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_ps_stream_find_streams
LCPI0_0:
	.quad	0x3fc999999999999a              ## double 0.20000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_hb_ps_stream_find_streams:             ## @hb_ps_stream_find_streams
	.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
	movq	%rdi, %r14
	movq	_HB_DVD_READ_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hb_buffer_init
	movq	%rax, %rbx
	movq	%rax, -80(%rbp)
	movl	12(%r14), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_fseeko
	movb	$1, %al
	movq	_MAX_PS_PROBE_SIZE@GOTPCREL(%rip), %r13
	leaq	-72(%rbp), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_hb_stream_seek
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	movl	$0, %eax
	je	LBB0_40
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_39
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	$2, %edi
	leaq	L_.str(%rip), %rsi
	callq	_hb_deep_log
LBB0_38:                                ##   in Loop: Header=BB0_3 Depth=2
	addl	(%rbx), %r12d
	cmpl	(%r13), %r12d
	jge	LBB0_39
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	$0, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hb_ps_read_packet
	testl	%eax, %eax
	je	LBB0_39
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_hb_parse_ps
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	-72(%rbp), %esi
	cmpl	$188, %esi
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$186, %esi
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_TS_HAS_PCR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_decode_ps_map
	testq	%rax, %rax
	je	LBB0_37
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=2
	leaq	L_.str.1(%rip), %rdi
	callq	_hb_log
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	%esi, %eax
	andl	$224, %eax
	cmpl	$192, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-68(%rbp), %edx
	movq	%r14, %rdi
	movl	$4, %ecx
	jmp	LBB0_32
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$189, %esi
	leaq	-44(%rbp), %rcx
	jne	LBB0_33
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-64(%rbp), %edx
	leal	-32(%rdx), %eax
	cmpl	$23, %eax
	ja	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	movl	$189, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	movl	$-1, %r8d
	callq	_update_ps_streams
	movq	_S@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r14), %rdx
	cltq
	shlq	$4, %rax
	movl	%ecx, 12(%rdx,%rax)
	movq	_WORK_DECVOBSUB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rdx,%rax)
	movl	8(%rdx,%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$80, %edx
	callq	_strncpy
	jmp	LBB0_38
LBB0_37:                                ##   in Loop: Header=BB0_3 Depth=2
	leaq	L_.str.2(%rip), %rdi
	callq	_hb_error
	jmp	LBB0_38
LBB0_33:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	%esi, %eax
	andl	$240, %eax
	cmpl	$224, %eax
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-68(%rbp), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_32
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	%edx, %eax
	andl	$-8, %eax
	movl	$189, %esi
	cmpl	$128, %eax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$152, %eax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$136, %eax
	jne	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_U@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	$189, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_update_ps_streams
	movq	_HB_ACODEC_DCA_HD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r14), %rdx
	cltq
	shlq	$4, %rax
	movl	%ecx, 4(%rdx,%rax)
	movq	_AV_CODEC_ID_DTS@GOTPCREL(%rip), %rcx
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	(%rcx), %ecx
	movl	%ecx, (%rdx,%rax)
	jmp	LBB0_38
LBB0_35:                                ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$253, %esi
	jne	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-68(%rbp), %edx
	leal	-85(%rdx), %eax
	cmpl	$2, %eax
	movl	$0, %ecx
	movl	$234, %eax
	cmovbl	%eax, %ecx
	movq	%r14, %rdi
	movl	$253, %esi
	jmp	LBB0_31
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$129, %ecx
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
LBB0_31:                                ##   in Loop: Header=BB0_3 Depth=2
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_32:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$-1, %r8d
	callq	_update_ps_streams
	jmp	LBB0_38
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	%edx, %eax
	andl	$-16, %eax
	cmpl	$192, %eax
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$176, %eax
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=2
	xorl	%ecx, %ecx
	cmpl	$160, %eax
	jne	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	$189, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$131, %ecx
	callq	_update_ps_streams
	jmp	LBB0_38
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	$189, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_update_ps_streams
	movq	_HB_ACODEC_FFTRUEHD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r14), %rdx
	cltq
	shlq	$4, %rax
	movl	%ecx, 4(%rdx,%rax)
	movq	_AV_CODEC_ID_TRUEHD@GOTPCREL(%rip), %rcx
	jmp	LBB0_21
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	-56(%rbp), %rax
	movq	8(%rbx), %rsi
	addq	%rax, %rsi
	movq	(%rbx), %rdx
	subq	%rax, %rdx
	movq	%rcx, %rdi
	xorl	%ecx, %ecx
	callq	_bits_init
	leaq	-44(%rbp), %rdi
	movl	$16, %esi
	callq	_bits_get
	xorl	%ecx, %ecx
	cmpl	$2935, %eax                     ## imm = 0xB77
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_3 Depth=2
	leaq	-44(%rbp), %rdi
	movl	$24, %esi
	callq	_bits_skip
	leaq	-44(%rbp), %rdi
	movl	$5, %esi
	callq	_bits_get
	cmpl	$11, %eax
	movl	$135, %ecx
	movl	$129, %eax
	cmovll	%eax, %ecx
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	-72(%rbp), %esi
	movl	-64(%rbp), %edx
	jmp	LBB0_30
LBB0_40:
	leaq	-80(%rbp), %rdi
	callq	_hb_buffer_close
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_DVD_READ_BUFFER_SIZE,4,2    ## @HB_DVD_READ_BUFFER_SIZE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_MAX_PS_PROBE_SIZE,4,2          ## @MAX_PS_PROBE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hb_ps_stream_find_streams: Error parsing PS packet"

	.comm	_TS_HAS_PCR,4,2                 ## @TS_HAS_PCR
L_.str.1:                               ## @.str.1
	.asciz	"Found program stream map"

L_.str.2:                               ## @.str.2
	.asciz	"Error parsing program stream map"

	.comm	_S,4,2                          ## @S
	.comm	_WORK_DECVOBSUB,4,2             ## @WORK_DECVOBSUB
L_.str.3:                               ## @.str.3
	.asciz	"DVD Subtitle"

	.comm	_U,4,2                          ## @U
	.comm	_HB_ACODEC_DCA_HD,4,2           ## @HB_ACODEC_DCA_HD
	.comm	_AV_CODEC_ID_DTS,4,2            ## @AV_CODEC_ID_DTS
	.comm	_A,4,2                          ## @A
	.comm	_HB_ACODEC_FFTRUEHD,4,2         ## @HB_ACODEC_FFTRUEHD
	.comm	_AV_CODEC_ID_TRUEHD,4,2         ## @AV_CODEC_ID_TRUEHD
	.no_dead_strip	_hb_ps_stream_find_streams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hb_ps_stream_find_streams
_hb_ps_stream_find_streams:             ; @hb_ps_stream_find_streams
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _HB_DVD_READ_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_DVD_READ_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_hb_buffer_init
	mov	x20, x0
	str	x0, [sp, #40]
	ldr	w0, [x19, #12]
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseeko
	mov	w8, #1
Lloh6:
	adrp	x25, _MAX_PS_PROBE_SIZE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MAX_PS_PROBE_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
Lloh10:
	adrp	x22, l_.str.2@PAGE
Lloh11:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh12:
	adrp	x26, _TS_HAS_PCR@GOTPAGE
Lloh13:
	ldr	x26, [x26, _TS_HAS_PCR@GOTPAGEOFF]
Lloh14:
	adrp	x23, l_.str.1@PAGE
Lloh15:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	x27, #-7378697629483820647
	movk	x27, #39322
	movk	x27, #16329, lsl #48
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	fmov	d0, x27
	mov	x0, x19
	bl	_hb_stream_seek
	mov	w8, #0
	tbz	w28, #0, LBB0_41
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x28, x8
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w24, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	w0, #2
	mov	x1, x21
	bl	_hb_deep_log
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x20]
	ldr	w9, [x25]
	add	w24, w24, w8
	cmp	w24, w9
	b.ge	LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	xzr, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_hb_ps_read_packet
	cbz	w0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldp	x2, x1, [x20]
	add	x3, sp, #16
	mov	x0, x19
	bl	_hb_parse_ps
	cbz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w1, [sp, #16]
	cmp	w1, #188
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w1, #186
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x26]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=2
	ldp	x2, x1, [x20]
	mov	x0, x19
	bl	_decode_ps_map
	cbz	x0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x23
	bl	_hb_log
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=2
	and	w8, w1, #0xe0
	cmp	w8, #192
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w2, [sp, #20]
	mov	x0, x19
	mov	w3, #4
	b	LBB0_31
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w1, #189
	b.ne	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w2, [sp, #24]
	sub	w8, w2, #32
	cmp	w8, #23
	b.hi	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	mov	w1, #189
	mov	w3, #0
	mov	w4, #-1
	bl	_update_ps_streams
Lloh16:
	adrp	x8, _S@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	x9, [x19]
	add	x9, x9, w0, sxtw #4
	str	w8, [x9, #12]
Lloh19:
	adrp	x8, _WORK_DECVOBSUB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WORK_DECVOBSUB@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x9, #4]
	ldr	w0, [x9, #8]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #80
	bl	_strncpy
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x22
	bl	_hb_error
	b	LBB0_5
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=2
	and	w8, w1, #0xf0
	cmp	w8, #224
	b.ne	LBB0_26
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w2, [sp, #20]
	mov	x0, x19
	mov	w3, #0
	b	LBB0_31
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=2
	and	w8, w2, #0xfffffff8
	cmp	w8, #128
	b.eq	LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=2
	cmp	w8, #152
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=2
	cmp	w8, #136
	b.ne	LBB0_32
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=2
Lloh24:
	adrp	x8, _U@GOTPAGE
Lloh25:
	ldr	x8, [x8, _U@GOTPAGEOFF]
Lloh26:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #189
	mov	w3, #0
	bl	_update_ps_streams
Lloh27:
	adrp	x8, _HB_ACODEC_DCA_HD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HB_ACODEC_DCA_HD@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	x9, [x19]
	add	x9, x9, w0, sxtw #4
	str	w8, [x9, #4]
Lloh30:
	adrp	x8, _AV_CODEC_ID_DTS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_CODEC_ID_DTS@GOTPAGEOFF]
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x8]
	str	w8, [x9]
	b	LBB0_5
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w1, #253
	b.ne	LBB0_5
; %bb.27:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w2, [sp, #20]
	sub	w8, w2, #85
	cmp	w8, #2
	mov	w8, #234
	csel	w3, w8, wzr, lo
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	w3, #129
LBB0_29:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	w1, #189
LBB0_30:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
LBB0_31:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	w4, #-1
	bl	_update_ps_streams
	b	LBB0_5
LBB0_32:                                ;   in Loop: Header=BB0_6 Depth=2
	and	w8, w2, #0xfffffff0
	cmp	w8, #192
	b.eq	LBB0_37
; %bb.33:                               ;   in Loop: Header=BB0_6 Depth=2
	cmp	w8, #176
	b.eq	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_6 Depth=2
	cmp	w8, #160
	b.ne	LBB0_40
; %bb.35:                               ;   in Loop: Header=BB0_6 Depth=2
Lloh32:
	adrp	x8, _A@GOTPAGE
Lloh33:
	ldr	x8, [x8, _A@GOTPAGEOFF]
Lloh34:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #189
	mov	w3, #131
	bl	_update_ps_streams
	b	LBB0_5
LBB0_36:                                ;   in Loop: Header=BB0_6 Depth=2
Lloh35:
	adrp	x8, _A@GOTPAGE
Lloh36:
	ldr	x8, [x8, _A@GOTPAGEOFF]
Lloh37:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #189
	mov	w3, #0
	bl	_update_ps_streams
Lloh38:
	adrp	x8, _HB_ACODEC_FFTRUEHD@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HB_ACODEC_FFTRUEHD@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	x9, [x19]
	add	x9, x9, w0, sxtw #4
	str	w8, [x9, #4]
Lloh41:
	adrp	x8, _AV_CODEC_ID_TRUEHD@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AV_CODEC_ID_TRUEHD@GOTPAGEOFF]
	b	LBB0_25
LBB0_37:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [sp, #32]
	ldp	x10, x9, [x20]
	add	x1, x8, x9
	sub	x2, x10, x8
	add	x0, sp, #12
	mov	w3, #0
	bl	_bits_init
	add	x0, sp, #12
	mov	w1, #16
	bl	_bits_get
	mov	w3, #0
	cmp	w0, #2935
	b.ne	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_6 Depth=2
	add	x0, sp, #12
	mov	w1, #24
	bl	_bits_skip
	add	x0, sp, #12
	mov	w1, #5
	bl	_bits_get
	cmp	w0, #11
	mov	w8, #135
	mov	w9, #129
	csel	w3, w9, w8, lt
LBB0_39:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w1, [sp, #16]
	ldr	w2, [sp, #24]
	b	LBB0_30
LBB0_40:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	w3, #0
	b	LBB0_29
LBB0_41:
	add	x0, sp, #40
	bl	_hb_buffer_close
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_DVD_READ_BUFFER_SIZE,4,2    ; @HB_DVD_READ_BUFFER_SIZE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_MAX_PS_PROBE_SIZE,4,2          ; @MAX_PS_PROBE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hb_ps_stream_find_streams: Error parsing PS packet"

	.comm	_TS_HAS_PCR,4,2                 ; @TS_HAS_PCR
l_.str.1:                               ; @.str.1
	.asciz	"Found program stream map"

l_.str.2:                               ; @.str.2
	.asciz	"Error parsing program stream map"

	.comm	_S,4,2                          ; @S
	.comm	_WORK_DECVOBSUB,4,2             ; @WORK_DECVOBSUB
l_.str.3:                               ; @.str.3
	.asciz	"DVD Subtitle"

	.comm	_U,4,2                          ; @U
	.comm	_HB_ACODEC_DCA_HD,4,2           ; @HB_ACODEC_DCA_HD
	.comm	_AV_CODEC_ID_DTS,4,2            ; @AV_CODEC_ID_DTS
	.comm	_A,4,2                          ; @A
	.comm	_HB_ACODEC_FFTRUEHD,4,2         ; @HB_ACODEC_FFTRUEHD
	.comm	_AV_CODEC_ID_TRUEHD,4,2         ; @AV_CODEC_ID_TRUEHD
	.no_dead_strip	_hb_ps_stream_find_streams
.subsections_via_symbols
