	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpegts_insert_pcr_only
_mpegts_insert_pcr_only:                ## @mpegts_insert_pcr_only
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r15
	movq	(%rsi), %r12
	movq	_TS_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	$71, (%rbx)
	movl	(%r12), %eax
	sarl	$8, %eax
	movl	%eax, 4(%rbx)
	movl	(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r12), %eax
	orl	$32, %eax
	movl	%eax, 12(%rbx)
	leal	-5(%r13), %eax
	movl	%eax, 16(%rbx)
	movl	$16, 20(%rbx)
	cmpq	$0, 8(%r12)
	je	LBB0_2
## %bb.1:
	movl	$144, 20(%rbx)
	movq	$0, 8(%r12)
LBB0_2:
	leaq	24(%rbx), %r12
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_get_pcr
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_write_pcr_bits
	cltq
	leaq	(%rbx,%rax,4), %rdi
	addq	$24, %rdi
	movq	_TS_PACKET_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rdi, %rax
	subq	%rbx, %rax
	shrq	$2, %rax
	subl	%eax, %edx
	movl	$255, %esi
	callq	_memset
	movq	%r14, %rdi
	callq	_mpegts_prefix_m2ts_header
	movl	(%r14), %edi
	movl	(%r15), %edx
	movq	%rbx, %rsi
	callq	_avio_write
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_PACKET_SIZE,4,2             ## @TS_PACKET_SIZE
	.no_dead_strip	_mpegts_insert_pcr_only
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpegts_insert_pcr_only
_mpegts_insert_pcr_only:                ; @mpegts_insert_pcr_only
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x0, [x0, #8]
	ldr	x12, [x1]
Lloh3:
	adrp	x22, _TS_PACKET_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TS_PACKET_SIZE@GOTPAGEOFF]
	ldr	w13, [x22]
	lsl	x8, x13, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	w8, #71
	str	w8, [x20]
	ldr	w8, [x12]
	asr	w8, w8, #8
	str	w8, [x20, #4]
	ldr	w8, [x12]
	str	w8, [x20, #8]
	ldr	w8, [x12, #4]
	orr	w8, w8, #0x20
	sub	w9, w13, #5
	stp	w8, w9, [x20, #12]
	mov	w8, #16
	str	w8, [x20, #20]
	ldr	x8, [x12, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w8, #144
	str	w8, [x20, #20]
	str	xzr, [x12, #8]
LBB0_2:
	add	x21, x20, #24
	ldr	w1, [x19]
	bl	_get_pcr
	mov	x1, x0
	mov	x0, x21
	bl	_write_pcr_bits
	add	x0, x21, w0, sxtw #2
	ldr	w8, [x22]
	sub	x9, x0, x20
	lsr	x9, x9, #2
	sub	w2, w8, w9
	mov	w1, #255
	bl	_memset
	mov	x0, x19
	bl	_mpegts_prefix_m2ts_header
	ldr	w0, [x19]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_avio_write
	ldur	x8, [x29, #-40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	sub	sp, x29, #32
	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
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_PACKET_SIZE,4,2             ; @TS_PACKET_SIZE
	.no_dead_strip	_mpegts_insert_pcr_only
.subsections_via_symbols
