	.file	"extr_recorder.c_mux_packet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to allocate packet.\n"
.LC1:
	.string	"Failed writing packet.\n"
	.text
	.p2align 4
	.type	mux_packet, @function
mux_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	r12, QWORD PTR 24[rdi]
	movdqu	xmm1, XMMWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rdi, QWORD PTR [rsi]
	movsd	xmm0, QWORD PTR [r12]
	subsd	xmm0, QWORD PTR 8[r12]
	movaps	XMMWORD PTR 16[rsp], xmm1
	movsd	QWORD PTR 8[rsp], xmm0
	call	MP_ADD_PTS@PLT
	movsd	xmm0, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	mov	QWORD PTR 16[rsp], rax
	call	MP_ADD_PTS@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR 16[rbx]
	lea	rbp, 32[rsp]
	mov	QWORD PTR 24[rsp], rax
	call	MP_PTS_MAX@PLT
	lea	rsi, 16[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 16[rbx], eax
	mov	rax, QWORD PTR 8[rbx]
	lea	rdx, 4[rax]
	call	mp_set_av_packet@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 32[rsp], 0
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 40[rsp], eax
	js	.L9
.L2:
	mov	rdi, rbp
	call	av_packet_clone@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L10
.L3:
	mov	edi, DWORD PTR 16[r12]
	call	av_interleaved_write_frame@PLT
	test	rax, rax
	js	.L11
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	mov	rcx, QWORD PTR STREAM_SUB[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L2
	mov	QWORD PTR 32[rsp], 0
	mov	rdi, rbp
	call	av_packet_clone@PLT
	mov	rsi, rax
	test	rax, rax
	jne	.L3
.L10:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	MP_ERR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	MP_ERR@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mux_packet, .-mux_packet
	.comm	STREAM_SUB,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_recorder.c_mux_packet.c"
	.text
	.global	__aeabi_dsub
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to allocate packet.\012\000"
	.align	2
.LC1:
	.ascii	"Failed writing packet.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mux_packet, %function
mux_packet:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r8, [r0, #12]
	sub	sp, sp, #28
	add	r9, sp, #4
	mov	r4, r0
	add	r3, r8, #8
	ldmia	r3, {r2-r3}
	mov	r5, r1
	ldm	r1, {r0, r1}
	stm	r9, {r0, r1}
	ldmia	r8, {r0-r1}
	ldr	ip, .L12
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	bl	__aeabi_dsub
	mov	r6, r0
	mov	r3, r1
	mov	r2, r6
	ldr	r0, [sp, #4]
	mov	r7, r1
	bl	MP_ADD_PTS
	mov	r1, r0
	mov	r2, r6
	mov	r3, r7
	ldr	r0, [sp, #8]
	str	r1, [sp, #4]
	bl	MP_ADD_PTS
	mov	r3, r0
	ldr	r1, [r5]
	ldr	r0, [r4, #8]
	str	r3, [sp, #8]
	bl	MP_PTS_MAX
	ldr	r2, [r4, #4]
	str	r0, [r4, #8]
	add	r2, r2, #4
	mov	r1, r9
	add	r0, sp, #12
	bl	mp_set_av_packet
	ldr	r3, [r4, #4]
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	cmp	r2, #0
	str	r3, [sp, #16]
	bge	.L2
	ldr	r2, [r4]
	ldr	r3, .L12+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	movne	r3, #0
	strne	r3, [sp, #12]
.L2:
	add	r0, sp, #12
	bl	av_packet_clone
	subs	r1, r0, #0
	beq	.L9
	ldr	r0, [r8, #16]
	bl	av_interleaved_write_frame
	cmp	r0, #0
	blt	.L10
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	mov	r0, r8
	ldr	r1, .L12+8
	bl	MP_ERR
	b	.L1
.L9:
	mov	r0, r8
	ldr	r1, .L12+12
	bl	MP_ERR
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	STREAM_SUB
	.word	.LC1
	.word	.LC0
	.size	mux_packet, .-mux_packet
	.comm	STREAM_SUB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
