	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpegts_prefix_m2ts_header
_mpegts_prefix_m2ts_header:             ## @mpegts_prefix_m2ts_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	callq	_get_pcr
	cltq
	imulq	$-2147483645, %rax, %rcx        ## imm = 0x80000003
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$29, %ecx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shll	$30, %edx
	subl	%edx, %ecx
	addl	%eax, %ecx
	movl	%ecx, -20(%rbp)
	leaq	-20(%rbp), %r14
	movq	%r14, %rdi
	callq	_AV_RB32
	movl	%eax, -20(%rbp)
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_avio_write
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mpegts_prefix_m2ts_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpegts_prefix_m2ts_header
_mpegts_prefix_m2ts_header:             ; @mpegts_prefix_m2ts_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x19]
	bl	_get_pcr
	mov	w8, #-2147483645
	smull	x8, w0, w8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #29
	add	w8, w9, w8, lsr #31
	sub	w8, w8, w8, lsl #30
	add	w8, w0, w8
	str	w8, [sp, #12]
	add	x0, sp, #12
	bl	_AV_RB32
	str	w0, [sp, #12]
	ldr	w0, [x19]
	add	x1, sp, #12
	mov	w2, #4
	bl	_avio_write
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mpegts_prefix_m2ts_header
.subsections_via_symbols
