	.file	"extr_firedtv-fw.c_start_iso.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	start_iso, @function
start_iso:
.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
	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
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	device_of@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 40
	mov	r13, rax
	call	kmalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	ecx, DWORD PTR 4[r13]
	mov	edx, DWORD PTR 8[rbx]
	mov	rbp, rax
	mov	esi, DWORD PTR FW_ISO_CONTEXT_RECEIVE[rip]
	mov	r9d, DWORD PTR handle_iso[rip]
	push	rbx
	.cfi_def_cfa_offset 96
	mov	r8d, DWORD PTR ISO_HEADER_SIZE[rip]
	mov	edi, DWORD PTR 0[r13]
	call	fw_iso_context_create@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	pop	rcx
	.cfi_def_cfa_offset 88
	pop	rsi
	.cfi_def_cfa_offset 80
	test	rax, rax
	jne	.L16
	lea	rax, 8[rbp]
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	edx, DWORD PTR N_PAGES[rip]
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	fw_iso_buffer_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	edx, DWORD PTR N_PAGES[rip]
	mov	QWORD PTR 32[rbp], 0
	mov	QWORD PTR 24[rbp], 0
	test	edx, edx
	jle	.L7
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 16[rbp]
	lea	r14, [rax+r15*4]
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax+r15*4]
	add	r15, 1
	call	page_address@PLT
	mov	DWORD PTR [r14], eax
	cmp	DWORD PTR N_PAGES[rip], r15d
	jg	.L8
.L7:
	mov	eax, DWORD PTR N_PACKETS[rip]
	test	eax, eax
	jg	.L11
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	add	r12d, 1
	cmp	DWORD PTR N_PACKETS[rip], r12d
	jle	.L9
.L11:
	mov	esi, r12d
	mov	rdi, rbp
	call	queue_iso@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L17
.L10:
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, QWORD PTR 8[rsp]
	mov	r12d, r15d
	call	fw_iso_buffer_destroy@PLT
.L6:
	mov	edi, DWORD PTR 0[rbp]
	call	fw_iso_context_destroy@PLT
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L16:
	.cfi_restore_state
.L5:
	endbr64
	mov	edi, DWORD PTR 0[rbp]
	call	PTR_ERR@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, DWORD PTR FW_ISO_CONTEXT_MATCH_ALL_TAGS[rip]
	mov	edi, DWORD PTR 0[rbp]
	xor	edx, edx
	mov	esi, -1
	call	fw_iso_context_start@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L10
	mov	QWORD PTR [rbx], rbp
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	start_iso, .-start_iso
	.comm	handle_iso,4,4
	.comm	N_PAGES,4,4
	.comm	N_PACKETS,4,4
	.comm	ISO_HEADER_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FW_ISO_CONTEXT_RECEIVE,4,4
	.comm	FW_ISO_CONTEXT_MATCH_ALL_TAGS,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_FROM_DEVICE,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_firedtv-fw.c_start_iso.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_iso, %function
start_iso:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r8, r0
	bl	device_of
	ldr	r3, .L19
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, #20
	bl	kmalloc
	subs	r5, r0, #0
	beq	.L16
	ldr	r3, .L19+4
	ldr	r2, .L19+8
	ldr	ip, [r3]
	ldr	r1, [r2]
	ldr	r2, .L19+12
	ldm	r7, {r0, r3}
	str	ip, [sp, #4]
	str	r8, [sp, #8]
	str	r1, [sp]
	ldr	r1, [r2]
	ldr	r2, [r8, #4]
	bl	fw_iso_context_create
	str	r0, [r5]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L17
	ldr	r3, .L19+16
	ldr	r10, .L19+20
	add	r9, r5, #4
	mov	r0, r9
	ldr	r3, [r3]
	ldr	r2, [r10]
	ldr	r1, [r7]
	bl	fw_iso_buffer_init
	subs	r4, r0, #0
	bne	.L6
	ldr	r3, [r10]
	str	r4, [r5, #16]
	cmp	r3, #0
	str	r4, [r5, #12]
	ble	.L7
	mov	r6, r4
.L8:
	ldmib	r5, {r3, fp}
	ldr	r0, [r3, r6, lsl #2]
	bl	page_address
	str	r0, [fp, r6, lsl #2]
	ldr	r3, [r10]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L8
.L7:
	ldr	r10, .L19+24
	ldr	r3, [r10]
	cmp	r3, #0
	bgt	.L11
	b	.L9
.L18:
	ldr	r3, [r10]
	cmp	r3, r4
	ble	.L9
.L11:
	mov	r1, r4
	mov	r0, r5
	bl	queue_iso
	subs	r6, r0, #0
	add	r4, r4, #1
	beq	.L18
.L10:
	mov	r0, r9
	ldr	r1, [r7]
	bl	fw_iso_buffer_destroy
	mov	r4, r6
.L6:
	ldr	r0, [r5]
	bl	fw_iso_context_destroy
	b	.L5
.L17:
	ldr	r0, [r5]
	bl	PTR_ERR
	mov	r4, r0
.L5:
	mov	r0, r5
	bl	kfree
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r3, .L19+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r3, .L19+32
	mov	r2, #0
	mvn	r1, #0
	ldr	r3, [r3]
	ldr	r0, [r5]
	bl	fw_iso_context_start
	subs	r6, r0, #0
	bne	.L10
	mov	r4, r6
	mov	r0, r4
	str	r5, [r8]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	.align	2
.L19:
	.word	GFP_KERNEL
	.word	handle_iso
	.word	ISO_HEADER_SIZE
	.word	FW_ISO_CONTEXT_RECEIVE
	.word	DMA_FROM_DEVICE
	.word	N_PAGES
	.word	N_PACKETS
	.word	ENOMEM
	.word	FW_ISO_CONTEXT_MATCH_ALL_TAGS
	.size	start_iso, .-start_iso
	.comm	handle_iso,4,4
	.comm	N_PAGES,4,4
	.comm	N_PACKETS,4,4
	.comm	ISO_HEADER_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FW_ISO_CONTEXT_RECEIVE,4,4
	.comm	FW_ISO_CONTEXT_MATCH_ALL_TAGS,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
