	.file	"extr_firedtv-fw.c_handle_iso.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"length = %d\n"
.LC1:
	.string	"requeue failed\n"
	.text
	.p2align 4
	.type	handle_iso, @function
handle_iso:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	and	rdx, -4
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	rsi, [rcx+rdx]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 8[r8]
	mov	QWORD PTR 8[rsp], r8
	mov	QWORD PTR [rsp], rsi
	mov	r12d, DWORD PTR [r14]
	cmp	rcx, rsi
	jnb	.L2
	mov	r13, rcx
	lea	rbp, 4[r8]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r13
	call	be32_to_cpup@PLT
	xor	edi, edi
	sar	eax, 16
	cmp	DWORD PTR MAX_PACKET_SIZE[rip], eax
	setl	dil
	mov	r15d, eax
	call	unlikely@PLT
	mov	ecx, DWORD PTR MAX_PACKET_SIZE[rip]
	test	rax, rax
	jne	.L16
.L4:
	mov	eax, r12d
	mov	rsi, QWORD PTR 8[r14]
	movsx	rbx, r15d
	cdq
	idiv	DWORD PTR PACKETS_PER_PAGE[rip]
	imul	edx, ecx
	cdqe
	movsx	rcx, edx
	add	rcx, QWORD PTR [rsi+rax*8]
	add	rbx, rcx
	add	rcx, QWORD PTR MPEG2_TS_HEADER_SIZE[rip]
	add	rcx, QWORD PTR CIP_HEADER_SIZE[rip]
	mov	r15, rcx
	cmp	rbx, rcx
	jbe	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, r15
	mov	edx, 1
	mov	rdi, rbp
	call	dvb_dmx_swfilter_packets@PLT
	movsx	rax, DWORD PTR MPEG2_TS_SOURCE_PACKET_SIZE[rip]
	add	r15, rax
	cmp	rbx, r15
	ja	.L8
.L9:
	mov	rdi, r14
	mov	esi, r12d
	call	queue_iso@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L17
.L7:
	mov	eax, DWORD PTR N_PACKETS[rip]
	add	r12d, 1
	add	r13, 4
	sub	eax, 1
	and	r12d, eax
	cmp	QWORD PTR [rsp], r13
	ja	.L10
.L2:
	mov	DWORD PTR [r14], r12d
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, r15d
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	dev_err@PLT
	mov	r15d, DWORD PTR MAX_PACKET_SIZE[rip]
	mov	ecx, r15d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	handle_iso, .-handle_iso
	.comm	PACKETS_PER_PAGE,4,4
	.comm	N_PACKETS,4,4
	.comm	MPEG2_TS_SOURCE_PACKET_SIZE,4,4
	.comm	MPEG2_TS_HEADER_SIZE,8,8
	.comm	MAX_PACKET_SIZE,4,4
	.comm	CIP_HEADER_SIZE,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_firedtv-fw.c_handle_iso.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"length = %d\012\000"
	.global	__aeabi_idivmod
	.align	2
.LC1:
	.ascii	"requeue failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_iso, %function
handle_iso:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	sub	sp, sp, #12
	bic	r2, r2, #3
	add	r3, r3, r2
	ldr	r2, [sp, #48]
	cmp	r7, r3
	ldr	r8, [r2, #8]
	str	r3, [sp, #4]
	ldr	r6, [r8]
	bcs	.L2
	ldr	r9, .L16
	ldr	r5, .L16+4
.L10:
	mov	r0, r7
	bl	be32_to_cpup
	ldr	r3, [r9]
	asr	r4, r0, #16
	cmp	r3, r0, asr #16
	movlt	r0, #1
	movge	r0, #0
	bl	unlikely
	cmp	r0, #0
	bne	.L3
	ldr	fp, [r9]
.L4:
	ldr	r3, .L16+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	__aeabi_idivmod
	ldr	r2, [r8, #4]
	ldr	r3, .L16+12
	ldr	r0, [r2, r0, lsl #2]
	ldr	r2, .L16+16
	mla	r1, fp, r1, r0
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r4, r1, r4
	add	r3, r3, r2
	add	r10, r1, r3
	cmp	r4, r10
	ldrhi	r3, [sp, #48]
	addhi	fp, r3, #4
	bls	.L9
.L8:
	mov	r1, r10
	mov	r2, #1
	mov	r0, fp
	bl	dvb_dmx_swfilter_packets
	ldr	r3, [r5]
	add	r10, r10, r3
	cmp	r4, r10
	bhi	.L8
.L9:
	mov	r1, r6
	mov	r0, r8
	bl	queue_iso
	bl	unlikely
	cmp	r0, #0
	bne	.L15
.L7:
	ldr	r3, .L16+20
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	add	r7, r7, #4
	add	r6, r6, #1
	sub	r3, r3, #1
	cmp	r2, r7
	and	r6, r6, r3
	bhi	.L10
.L2:
	str	r6, [r8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, [sp, #48]
	ldr	r1, .L16+24
	ldr	r0, [r3]
	bl	dev_err
	b	.L7
.L3:
	ldr	r3, [sp, #48]
	mov	r2, r4
	ldr	r1, .L16+28
	ldr	r0, [r3]
	bl	dev_err
	ldr	r4, [r9]
	mov	fp, r4
	b	.L4
.L17:
	.align	2
.L16:
	.word	MAX_PACKET_SIZE
	.word	MPEG2_TS_SOURCE_PACKET_SIZE
	.word	PACKETS_PER_PAGE
	.word	CIP_HEADER_SIZE
	.word	MPEG2_TS_HEADER_SIZE
	.word	N_PACKETS
	.word	.LC1
	.word	.LC0
	.size	handle_iso, .-handle_iso
	.comm	PACKETS_PER_PAGE,4,4
	.comm	N_PACKETS,4,4
	.comm	MPEG2_TS_SOURCE_PACKET_SIZE,4,4
	.comm	MPEG2_TS_HEADER_SIZE,4,4
	.comm	MAX_PACKET_SIZE,4,4
	.comm	CIP_HEADER_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
