	.file	"extr_ts_psip.c_ATSC_InsertETTOrdered.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ATSC_InsertETTOrdered, @function
ATSC_InsertETTOrdered:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdx, rsi
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	ecx, DWORD PTR [rdi]
	test	ecx, ecx
	jle	.L6
	mov	r9, QWORD PTR 8[rdi]
	mov	r8, QWORD PTR [rsi]
	xor	ebx, ebx
	xor	eax, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	eax, 1
	add	rbx, 8
	cmp	ecx, eax
	je	.L2
.L5:
	mov	rdi, QWORD PTR [r9+rbx]
	cmp	QWORD PTR [rdi], r8
	jl	.L3
	mov	ecx, eax
	je	.L12
.L2:
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 8[rbp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	ARRAY_INSERT@PLT
.L12:
	.cfi_restore_state
	mov	QWORD PTR 8[rsp], rdx
	call	dvbpsi_atsc_DeleteETT@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rax+rbx], rdx
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	xor	ecx, ecx
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ATSC_InsertETTOrdered, .-ATSC_InsertETTOrdered
	.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_ts_psip.c_ATSC_InsertETTOrdered.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ATSC_InsertETTOrdered, %function
ATSC_InsertETTOrdered:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r5, r6, r7, r8, lr}
	ldr	r3, [r0]
	mov	r8, r0
	cmp	r3, #0
	mov	r2, r1
	sub	sp, sp, #12
	ble	.L6
	ldr	lr, [r0, #4]
	mov	ip, #0
	ldr	r6, [r1]
	sub	lr, lr, #4
	b	.L5
.L3:
	add	ip, ip, #1
	cmp	r3, ip
	beq	.L2
.L5:
	ldr	r0, [lr, #4]!
	lsl	r7, ip, #2
	ldr	r5, [r0]
	cmp	r5, r6
	blt	.L3
	movne	r3, ip
	beq	.L12
.L2:
	ldm	r8, {r0, r1}
	add	sp, sp, #12
	@ sp needed
	pop	{r5, r6, r7, r8, lr}
	b	ARRAY_INSERT
.L12:
	str	r2, [sp, #4]
	bl	dvbpsi_atsc_DeleteETT
	ldr	r3, [r8, #4]
	ldr	r2, [sp, #4]
	str	r2, [r3, r7]
	add	sp, sp, #12
	@ sp needed
	pop	{r5, r6, r7, r8, pc}
.L6:
	mov	r3, #0
	b	.L2
	.size	ATSC_InsertETTOrdered, .-ATSC_InsertETTOrdered
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
