	.file	"extr_rtpenc_mpegts.c_rtp_mpegts_write_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtp_mpegts_write_packet, @function
rtp_mpegts_write_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	r13, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rdi, QWORD PTR 8[r13]
	cmp	QWORD PTR 8[rdi], 0
	je	.L11
.L2:
	mov	rsi, rbx
	call	av_write_frame@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 8[r13]
	lea	rsi, 8[rsp]
	mov	rdi, QWORD PTR 8[rax]
	call	avio_close_dyn_buf@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR 8[r13]
	mov	QWORD PTR 8[rax], 0
	test	r12d, r12d
	je	.L9
	lea	r14, 16[rsp]
	mov	rdi, r14
	call	av_init_packet@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 16[rbx]
	mov	DWORD PTR 16[rsp], r12d
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 48[rsp], rax
	mov	rax, QWORD PTR AV_NOPTS_VALUE[rip]
	cmp	rdi, rax
	jne	.L12
	mov	r8, QWORD PTR 24[rbx]
	mov	rdi, QWORD PTR 0[r13]
	cmp	r8, rax
	jne	.L13
.L6:
	mov	rsi, r14
	call	av_write_frame@PLT
	mov	r12d, eax
.L9:
	mov	rdi, QWORD PTR 8[rsp]
	call	av_free@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	add	rdi, 8
	call	avio_open_dyn_buf@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rdi, QWORD PTR 8[r13]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR [rdi]
	mov	rcx, QWORD PTR 8[rbx]
	mov	rdi, r8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax+rcx*8]
	mov	edx, DWORD PTR [rdx]
	mov	esi, DWORD PTR [rax]
	call	av_rescale_q@PLT
	mov	rdi, QWORD PTR 0[r13]
	mov	rsi, r14
	mov	QWORD PTR 40[rsp], rax
	call	av_write_frame@PLT
	mov	r12d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR 0[r13]
	mov	rcx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax+rcx*8]
	mov	edx, DWORD PTR [rdx]
	mov	esi, DWORD PTR [rax]
	call	av_rescale_q@PLT
	mov	r8, QWORD PTR 24[rbx]
	mov	rdi, QWORD PTR 0[r13]
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR AV_NOPTS_VALUE[rip]
	cmp	r8, rax
	je	.L6
	jmp	.L13
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rtp_mpegts_write_packet, .-rtp_mpegts_write_packet
	.comm	AV_NOPTS_VALUE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rtpenc_mpegts.c_rtp_mpegts_write_packet.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtp_mpegts_write_packet, %function
rtp_mpegts_write_packet:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r7, [r0, #4]
	ldr	r3, .L15
	mov	r6, r0
	ldr	r0, [r7, #4]
	sub	sp, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r3, [r0, #4]
	mov	r5, r1
	cmp	r3, #0
	beq	.L11
.L2:
	mov	r1, r5
	bl	av_write_frame
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, [r7, #4]
	add	r1, sp, #4
	ldr	r0, [r3, #4]
	bl	avio_close_dyn_buf
	mov	r8, #0
	ldr	r3, [r7, #4]
	subs	r4, r0, #0
	str	r8, [r3, #4]
	beq	.L9
	ldr	r9, .L15+4
	add	r0, sp, #8
	bl	av_init_packet
	ldr	r3, [r9]
	ldr	r0, [r5, #8]
	ldr	r2, [sp, #4]
	cmp	r0, r3
	str	r4, [sp, #8]
	str	r8, [sp, #12]
	str	r2, [sp, #24]
	bne	.L12
	ldr	ip, [r5, #12]
	ldr	r0, [r7]
	cmp	ip, r3
	bne	.L13
.L6:
	add	r1, sp, #8
	bl	av_write_frame
	mov	r4, r0
.L9:
	ldr	r0, [sp, #4]
	bl	av_free
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	add	r0, r0, #4
	bl	avio_open_dyn_buf
	subs	r4, r0, #0
	blt	.L1
	ldr	r0, [r7, #4]
	b	.L2
.L13:
	ldr	r2, [r0]
	ldr	r1, [r5, #4]
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	r3, [r3, r1, lsl #2]
	mov	r0, ip
	ldr	r1, [r3]
	ldr	r2, [r2]
	bl	av_rescale_q
	mov	r3, r0
	add	r1, sp, #8
	ldr	r0, [r7]
	str	r3, [sp, #20]
	bl	av_write_frame
	mov	r4, r0
	b	.L9
.L12:
	ldr	r3, [r7]
	ldr	r1, [r5, #4]
	ldr	r2, [r3]
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	r3, [r3, r1, lsl #2]
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	av_rescale_q
	ldr	r3, [r9]
	ldr	ip, [r5, #12]
	str	r0, [sp, #16]
	cmp	ip, r3
	ldr	r0, [r7]
	beq	.L6
	b	.L13
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	AV_NOPTS_VALUE
	.size	rtp_mpegts_write_packet, .-rtp_mpegts_write_packet
	.comm	AV_NOPTS_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
