	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_pes_stream
_add_pes_stream:                        ## @add_pes_stream
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$40, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, 32(%rax)
	movl	(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	%r14d, (%rbx)
	movl	%r12d, 4(%rbx)
	movq	_MPEGTS_SKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	_mpegts_push_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rcx
	callq	_mpegts_open_pes_filter
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_av_free
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPEGTS_SKIP,4,2                ## @MPEGTS_SKIP
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_mpegts_push_data,4,2           ## @mpegts_push_data
	.no_dead_strip	_add_pes_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_pes_stream
_add_pes_stream:                        ; @add_pes_stream
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #40
	bl	_av_mallocz
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	str	x21, [x19, #32]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _MPEGTS_SKIP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MPEGTS_SKIP@GOTPAGEOFF]
	stp	w20, w22, [x19]
Lloh2:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh3:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #8]
Lloh6:
	adrp	x8, _mpegts_push_data@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mpegts_push_data@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_mpegts_open_pes_filter
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_av_free
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MPEGTS_SKIP,4,2                ; @MPEGTS_SKIP
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_mpegts_push_data,4,2           ; @mpegts_push_data
	.no_dead_strip	_add_pes_stream
.subsections_via_symbols
