	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_ts_streams
_update_ts_streams:                     ## @update_ts_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%r8d, %r12d
	movl	%esi, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_update_ps_streams
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	%eax, (%rbx)
LBB0_2:
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_15
## %bb.5:
	movq	8(%rdi), %rcx
	cmpl	%r15d, (%rcx)
	je	LBB0_15
## %bb.6:
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	16(%rdi), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	(%rax,%rcx,8), %rbx
	xorl	%r14d, %r14d
	movq	_V@GOTPCREL(%rip), %r8
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r13
	cmpq	(%r8), %rbx
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, %r12d
	movq	%r8, %r15
	movl	%r13d, %esi
	callq	_ts_stream_kind
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r8
	movl	%r12d, %r15d
	cmpq	(%r8), %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rdi), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	4(%rax,%r14), %ecx
	jl	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%r13), %rcx
	movslq	(%rdi), %rax
	cmpq	%rax, %rcx
	jge	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rdi), %rdx
	leaq	12(%r14), %rsi
	cmpl	%r15d, 12(%rdx,%r14)
	movq	%rsi, %r14
	jne	LBB0_8
LBB0_13:
	incl	%r13d
LBB0_14:
	movl	-60(%rbp), %r12d                ## 4-byte Reload
LBB0_15:
	cmpl	%eax, %r13d
	jne	LBB0_17
## %bb.16:
	callq	_new_pid
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r13d
LBB0_17:
	movq	8(%rdi), %rax
	movslq	%r13d, %rsi
	leaq	(%rsi,%rsi,2), %r14
	movl	%r15d, (%rax,%r14,4)
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rdi, %rbx
	callq	_ts_pes_list_add
	movq	_P@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_19
## %bb.18:
	movq	8(%rbx), %rax
	movl	$1, 8(%rax,%r14,4)
	jmp	LBB0_19
LBB0_3:
	movl	$-1, %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	_new_pid
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,4), %rdi
	addq	%rcx, %r14
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_V,8,3                          ## @V
	.comm	_P,4,2                          ## @P
	.no_dead_strip	_update_ts_streams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_ts_streams
_update_ts_streams:                     ; @update_ts_streams
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x20, x4
	mov	x21, x1
	mov	x19, x0
	bl	_update_ps_streams
	mov	x22, x0
	cbz	x23, LBB0_2
; %bb.1:
	str	w22, [x23]
LBB0_2:
	tbnz	w22, #31, LBB0_9
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	cmp	w9, w21
	b.ne	LBB0_11
LBB0_5:
	mov	w23, #0
	cmp	w23, w8
	b.ne	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_new_pid
	mov	x23, x0
LBB0_7:
	ldr	x8, [x19, #8]
	mov	w9, #12
	smull	x9, w23, w9
	str	w21, [x8, x9]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_ts_pes_list_add
Lloh0:
	adrp	x8, _P@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.8:
	mov	x8, x23
	sxtw	x8, w8
	ldr	x9, [x19, #8]
	mov	w10, #12
	madd	x8, x8, x10, x9
	mov	w9, #1
	str	w9, [x8, #8]
	b	LBB0_10
LBB0_9:
	mov	w23, #-1
LBB0_10:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x24, #0
	mov	x9, #0
	ldr	x8, [x19, #16]
	ldr	x25, [x8, w22, uxtw #3]
Lloh3:
	adrp	x26, _V@GOTPAGE
Lloh4:
	ldr	x26, [x26, _V@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x23, x9
	ldr	x8, [x26]
	cmp	x25, x8
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_ts_stream_kind
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x24
	ldr	w8, [x8, #4]
	cmp	w22, w8
	b.lt	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x23, #1
	ldrsw	x8, [x19]
	cmp	x9, x8
	b.ge	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x10, [x19, #8]
	add	x10, x10, x24
	ldr	w10, [x10, #12]
	add	x24, x24, #12
	cmp	w10, w21
	b.ne	LBB0_12
LBB0_17:
	add	w23, w23, #1
	cmp	w23, w8
	b.ne	LBB0_7
	b	LBB0_6
LBB0_18:
	mov	x0, x19
	bl	_new_pid
	ldr	x8, [x19, #8]
	mov	w9, #12
	smaddl	x0, w0, w9, x8
	add	x1, x8, x24
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x19]
	cmp	w23, w8
	b.eq	LBB0_6
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_V,8,3                          ; @V
	.comm	_P,4,2                          ; @P
	.no_dead_strip	_update_ts_streams
.subsections_via_symbols
