	.file	"extr_mp4.c_MP4_RTPHintToFrame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Sample not large enough for necessary structs"
	.align 8
.LC1:
	.string	"Unhandled constructor in RTP Reception Hint Track. Type:%u"
	.align 8
.LC2:
	.string	"Sample buffer is smaller than sample"
	.text
	.p2align 4
	.type	MP4_RTPHintToFrame, @function
MP4_RTPHintToFrame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 152
	.cfi_def_cfa_offset 208
	movsx	rcx, DWORD PTR 8[r13]
	mov	QWORD PTR 56[rsp], rdi
	mov	rdi, QWORD PTR [rsi]
	mov	QWORD PTR 32[rsp], rdx
	movsx	rdx, DWORD PTR RTPPACKETSIZE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR SAMPLEHEADERSIZE[rip]
	mov	rsi, rax
	lea	rbx, [rdi+rax*4]
	mov	eax, DWORD PTR CONSTRUCTORSIZE[rip]
	add	esi, edx
	add	esi, eax
	cmp	ecx, esi
	jl	.L28
	cmp	QWORD PTR 32[rsp], 0
	jle	.L29
	lea	rsi, 112[rsp]
	mov	QWORD PTR 8[rsp], rbx
	xor	r12d, r12d
	xor	r15d, r15d
	mov	QWORD PTR [rsp], 0
	mov	r9d, eax
	mov	QWORD PTR 48[rsp], rsi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L31:
	xor	esi, esi
	mov	rdi, r15
	call	block_Realloc@PLT
	mov	rbx, rax
	test	rbx, rbx
	je	.L6
.L32:
	mov	rax, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 48[rsp]
	mov	edx, 4
	lea	r15, [rax+r12*4]
	mov	rax, QWORD PTR 0[r13]
	lea	r14, [rax+r14*4]
	movabs	rax, 4294967296
	mov	rdi, r14
	mov	r12d, DWORD PTR [r14]
	mov	QWORD PTR 120[rsp], rax
	mov	QWORD PTR 112[rsp], 0
	call	memcmp@PLT
	test	rax, rax
	je	.L11
	and	r12d, 31
	sub	r12d, 7
	cmp	r12d, 1
	ja	.L12
	mov	DWORD PTR [r15], 0
	add	r15, 4
.L12:
	mov	QWORD PTR [r15], 0
	add	r15, 12
	mov	DWORD PTR -4[r15], 1
.L11:
	mov	rdx, rbp
	mov	rsi, r14
	lea	rbp, [r15+rbp*4]
	mov	rdi, r15
	call	memcpy@PLT
	sub	rbp, QWORD PTR [rbx]
	add	QWORD PTR [rsp], 1
	sar	rbp, 2
	mov	rax, QWORD PTR [rsp]
	mov	r12, rbp
	cmp	QWORD PTR 32[rsp], rax
	je	.L13
	mov	rdi, QWORD PTR 0[r13]
	movsx	rdx, DWORD PTR RTPPACKETSIZE[rip]
	mov	r15, rbx
	mov	r9d, DWORD PTR CONSTRUCTORSIZE[rip]
	movsx	rcx, DWORD PTR 8[r13]
.L14:
	mov	rbx, QWORD PTR 8[rsp]
	mov	rax, rbx
	sub	rax, rdi
	sar	rax, 2
	mov	rsi, rax
	movsx	rax, r9d
	add	rax, rdx
	add	rax, rsi
	cmp	rax, rcx
	ja	.L6
	lea	rbx, [rbx+rdx*4]
	mov	rdx, QWORD PTR [rbx]
	mov	eax, DWORD PTR [rbx]
	lea	rdi, 8[rbx]
	mov	QWORD PTR 16[rsp], rdx
	mov	DWORD PTR 44[rsp], eax
	call	GetWBE@PLT
	lea	rdi, 16[rbx]
	mov	rbp, rax
	call	GetDWBE@PLT
	lea	rdi, 32[rbx]
	call	GetDWBE@PLT
	lea	rdi, 48[rbx]
	mov	r14, rax
	call	GetWBE@PLT
	lea	rdi, 56[rbx]
	mov	QWORD PTR 24[rsp], rax
	call	GetWBE@PLT
	movsx	rcx, DWORD PTR CONSTRUCTORSIZE[rip]
	mov	rdx, QWORD PTR 16[rsp]
	lea	rsi, [rbx+rcx*4]
	mov	QWORD PTR 64[rsp], rdx
	movabs	rcx, -4294967294
	mov	QWORD PTR 8[rsp], rsi
	cmp	rdx, rcx
	jne	.L7
	mov	esi, DWORD PTR 24[rsp]
	mov	DWORD PTR 92[rsp], eax
	movabs	rax, 4294967297
	mov	DWORD PTR 88[rsp], esi
	cmp	QWORD PTR 88[rsp], rax
	jne	.L7
	movsx	rax, DWORD PTR 8[r13]
	lea	rdx, 0[rbp+r14]
	cmp	rdx, rax
	jg	.L30
	lea	rdx, 4[rbp+r12]
	test	r15, r15
	jne	.L31
	mov	rdi, rdx
	call	block_Alloc@PLT
	mov	rbx, rax
	test	rbx, rbx
	jne	.L32
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r13
	call	block_Release@PLT
	test	r15, r15
	je	.L1
.L15:
	mov	rdi, r15
	xor	r15d, r15d
	call	block_Release@PLT
.L1:
	mov	rax, QWORD PTR 136[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	add	rsp, 152
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, QWORD PTR 56[rsp]
	mov	edx, DWORD PTR 44[rsp]
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	msg_Err@PLT
	mov	rdi, r13
	call	block_Release@PLT
	test	r15, r15
	jne	.L15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, QWORD PTR 56[rsp]
	xor	eax, eax
	lea	rsi, .LC2[rip]
	call	msg_Err@PLT
	mov	rdi, r13
	call	block_Release@PLT
	test	r15, r15
	jne	.L15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r13
	mov	r15, rbx
	call	block_Release@PLT
	mov	DWORD PTR 8[rbx], ebp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, QWORD PTR 56[rsp]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	xor	r15d, r15d
	call	msg_Err@PLT
	mov	rdi, r13
	call	block_Release@PLT
	jmp	.L1
.L29:
	mov	rdi, r13
	xor	r15d, r15d
	call	block_Release@PLT
	jmp	.L1
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	MP4_RTPHintToFrame, .-MP4_RTPHintToFrame
	.comm	SAMPLEHEADERSIZE,4,4
	.comm	RTPPACKETSIZE,4,4
	.comm	CONSTRUCTORSIZE,4,4
	.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_mp4.c_MP4_RTPHintToFrame.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Sample not large enough for necessary structs\000"
	.align	2
.LC1:
	.ascii	"Unhandled constructor in RTP Reception Hint Track. "
	.ascii	"Type:%u\000"
	.align	2
.LC2:
	.ascii	"Sample buffer is smaller than sample\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	MP4_RTPHintToFrame, %function
MP4_RTPHintToFrame:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L34
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r3]
	ldr	r3, .L34+4
	sub	sp, sp, #52
	ldr	ip, [r3]
	ldr	r3, .L34+8
	ldr	lr, [r1, #4]
	ldr	r3, [r3]
	add	r4, r5, ip
	str	r2, [sp, #16]
	mov	r9, r1
	ldr	r2, .L34+12
	ldr	r1, [r1]
	add	r4, r4, r3
	cmp	lr, r4
	ldr	r2, [r2]
	str	r2, [sp, #44]
	mov	r2,#0
	add	r5, r1, r5, lsl #2
	str	r0, [sp, #20]
	blt	.L28
	ldr	r2, [sp, #16]
	cmp	r2, #0
	movgt	r2, #0
	movgt	fp, r2
	strgt	r2, [sp, #12]
	strgt	r2, [sp, #4]
	bgt	.L14
	b	.L29
.L31:
	bl	block_Realloc
	mov	r4, r0
	cmp	r4, #0
	beq	.L7
.L32:
	mov	ip, #0
	mov	lr, #1
	ldr	r3, [r9]
	mov	r2, #4
	add	r10, r3, r8, lsl #2
	mov	r0, r10
	add	r1, sp, #28
	ldr	r7, [r3, r8, lsl #2]
	str	ip, [sp, #28]
	str	ip, [sp, #32]
	str	ip, [sp, #36]
	str	lr, [sp, #40]
	bl	memcmp
	ldr	r2, [r4]
	cmp	r0, #0
	add	r3, r2, fp, lsl #2
	lsl	fp, fp, #2
	beq	.L11
	and	r7, r7, #31
	sub	r7, r7, #7
	cmp	r7, #1
	movls	ip, #0
	strls	ip, [r2, fp]
	mov	r2, #0
	addls	r3, r3, #4
	str	r2, [r3]
	str	r2, [r3, #4]
	mov	r2, #1
	add	r3, r3, #12
	str	r2, [r3, #-4]
.L11:
	mov	r2, r6
	mov	r0, r3
	mov	r1, r10
	bl	memcpy
	ldr	r2, [r4]
	ldr	r3, [sp, #12]
	add	fp, r0, r6, lsl #2
	sub	fp, fp, r2
	ldr	r2, [sp, #16]
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [sp, #12]
	asr	fp, fp, #2
	beq	.L13
	ldr	r3, .L34+4
	ldr	r1, [r9]
	ldr	ip, [r3]
	ldr	r3, .L34+8
	ldr	lr, [r9, #4]
	ldr	r3, [r3]
	str	r4, [sp, #4]
.L14:
	sub	r1, r5, r1
	add	r3, r3, ip
	add	r3, r3, r1, asr #2
	cmp	r3, lr
	bhi	.L7
	add	r4, r5, ip, lsl #2
	ldr	r2, [r5, ip, lsl #2]
	add	r0, r4, #8
	str	r2, [sp, #8]
	ldr	r7, [r4, #4]
	bl	GetWBE
	mov	r6, r0
	add	r0, r4, #16
	bl	GetDWBE
	add	r0, r4, #32
	bl	GetDWBE
	mov	r8, r0
	add	r0, r4, #48
	bl	GetWBE
	mov	r10, r0
	add	r0, r4, #56
	bl	GetWBE
	ldr	r3, .L34+8
	ldr	r2, [sp, #8]
	ldr	r5, [r3]
	cmp	r2, #2
	add	r5, r4, r5, lsl #2
	bne	.L5
	cmp	r10, #1
	cmpeq	r0, #1
	movne	r10, #1
	moveq	r10, #0
	adds	r7, r7, #1
	movne	r7, #1
	orrs	r1, r7, r10
	bne	.L5
	ldr	r3, [r9, #4]
	add	r2, r6, r8
	cmp	r2, r3
	bgt	.L30
	ldr	r0, [sp, #4]
	add	r2, fp, #4
	cmp	r0, #0
	add	r2, r2, r6
	bne	.L31
	mov	r0, r2
	bl	block_Alloc
	mov	r4, r0
	cmp	r4, #0
	bne	.L32
.L7:
	mov	r0, r9
	bl	block_Release
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L1
	ldr	r0, [sp, #4]
	bl	block_Release
	mov	r3, #0
	str	r3, [sp, #4]
.L1:
	ldr	r3, .L34+12
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	ldr	r0, [sp, #4]
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r0, [sp, #20]
	ldr	r1, .L34+16
	bl	msg_Err
	b	.L7
.L30:
	ldr	r0, [sp, #20]
	ldr	r1, .L34+20
	bl	msg_Err
	b	.L7
.L13:
	mov	r0, r9
	bl	block_Release
	str	r4, [sp, #4]
	str	fp, [r4, #4]
	b	.L1
.L28:
	ldr	r1, .L34+24
	bl	msg_Err
	mov	r0, r9
	bl	block_Release
	mov	r3, #0
	str	r3, [sp, #4]
	b	.L1
.L29:
	mov	r0, r9
	bl	block_Release
	mov	r3, #0
	str	r3, [sp, #4]
	b	.L1
.L33:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	SAMPLEHEADERSIZE
	.word	RTPPACKETSIZE
	.word	CONSTRUCTORSIZE
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	MP4_RTPHintToFrame, .-MP4_RTPHintToFrame
	.comm	SAMPLEHEADERSIZE,4,4
	.comm	RTPPACKETSIZE,4,4
	.comm	CONSTRUCTORSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
