	.file	"extr_solo6x10-v4l2-enc.c_solo_enc_v4l2_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Encoders as /dev/video%d-%d\n"
	.text
	.p2align 4
	.globl	solo_enc_v4l2_init
	.type	solo_enc_v4l2_init, @function
solo_enc_v4l2_init:
.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	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	add	rdi, 52
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	init_waitqueue_head@PLT
	mov	DWORD PTR 0[rbp], 4
	mov	rdi, QWORD PTR 32[rbp]
	lea	rdx, 48[rbp]
	mov	esi, 4
	call	pci_alloc_consistent@PLT
	mov	QWORD PTR 40[rbp], rax
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR 4[rbp]
	mov	rax, QWORD PTR 24[rbp]
	xor	ebx, ebx
	test	edx, edx
	jg	.L3
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edx, DWORD PTR 4[rbp]
	lea	ecx, 1[rbx]
	add	rbx, 1
	mov	rax, QWORD PTR 24[rbp]
	cmp	edx, ebx
	jle	.L29
.L3:
	mov	rdi, rbp
	lea	r12, 0[0+rbx*8]
	mov	edx, r13d
	mov	esi, ebx
	lea	r15, [rax+r12]
	mov	r14d, ebx
	call	solo_enc_alloc@PLT
	mov	QWORD PTR [r15], rax
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	IS_ERR@PLT
	test	rax, rax
	je	.L30
	mov	rax, QWORD PTR 24[rbp]
	cmp	DWORD PTR 4[rbp], ebx
	jne	.L31
.L8:
	mov	rdi, QWORD PTR [rax]
	sub	r12, 8
.L15:
	mov	edx, DWORD PTR 20[rbp]
	mov	rcx, QWORD PTR SOLO_DEV_6010[rip]
	cmp	QWORD PTR 8[rbp], rcx
	je	.L32
	lea	edx, [rdx+rdx*4]
	sal	edx, 2
.L12:
	mov	rax, QWORD PTR [rax+r12]
	mov	DWORD PTR 16[rbp], edx
	lea	rsi, .LC0[rip]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 32[rbp]
	mov	ecx, DWORD PTR [rdx]
	mov	edx, DWORD PTR [rax]
	call	dev_info@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	solo_ring_start@PLT
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	movsx	rsi, ecx
	lea	r12, 0[0+rsi*8]
	cmp	edx, ecx
	je	.L8
	mov	rdi, QWORD PTR [rax+rsi*8]
	mov	ebx, r14d
	call	PTR_ERR@PLT
	mov	r12d, eax
.L13:
	movsx	rbx, ebx
	xor	r13d, r13d
	sal	rbx, 3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, QWORD PTR [rax+rbx]
	call	solo_enc_free@PLT
	mov	rax, rbx
	sub	rbx, 8
	cmp	r13, rax
	jne	.L10
.L9:
	mov	ecx, DWORD PTR 48[rbp]
	mov	rdx, QWORD PTR 40[rbp]
	mov	rdi, QWORD PTR 32[rbp]
	mov	esi, DWORD PTR 0[rbp]
	call	pci_free_consistent@PLT
	mov	QWORD PTR 40[rbp], 0
.L1:
	add	rsp, 8
	.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
.L32:
	.cfi_restore_state
	sal	edx, 4
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, QWORD PTR [rax+r12]
	lea	ebx, -1[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	test	r14d, r14d
	jne	.L13
	jmp	.L9
.L28:
	mov	rdi, QWORD PTR [rax]
	mov	r12, -8
	je	.L15
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	solo_enc_v4l2_init, .-solo_enc_v4l2_init
	.comm	SOLO_DEV_6010,8,8
	.comm	ENOMEM,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_solo6x10-v4l2-enc.c_solo_enc_v4l2_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Encoders as /dev/video%d-%d\012\000"
	.text
	.align	2
	.global	solo_enc_v4l2_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	solo_enc_v4l2_init, %function
solo_enc_v4l2_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	add	r0, r0, #36
	mov	r7, r1
	bl	init_waitqueue_head
	mov	r2, r5
	mov	r1, #4
	ldr	r0, [r5, #24]
	str	r1, [r2], #32
	bl	pci_alloc_consistent
	cmp	r0, #0
	str	r0, [r5, #28]
	beq	.L2
	ldr	r3, [r5, #4]
	ldr	r6, [r5, #20]
	cmp	r3, #0
	movgt	r4, #0
	bgt	.L3
	b	.L27
.L29:
	ldr	r2, [r5, #4]
	ldr	r6, [r5, #20]
	cmp	r2, r3
	ble	.L28
	mov	r4, r3
.L3:
	mov	r2, r7
	mov	r1, r4
	mov	r0, r5
	bl	solo_enc_alloc
	ldr	r3, [r5, #20]
	str	r0, [r6, r4, lsl #2]
	ldr	r0, [r3, r4, lsl #2]
	bl	IS_ERR
	cmp	r0, #0
	add	r3, r4, #1
	lsl	r2, r4, #2
	beq	.L29
	ldr	r3, [r5, #4]
	ldr	r6, [r5, #20]
	cmp	r3, r4
	bne	.L30
	sub	r4, r4, #-1073741823
	ldr	r0, [r6]
	lsl	r4, r4, #2
.L15:
	ldr	r3, .L31
	ldr	r1, [r5, #8]
	ldr	r2, [r3]
	ldr	r3, [r5, #16]
	cmp	r1, r2
	addne	r3, r3, r3, lsl #2
	lsleq	r1, r3, #4
	lslne	r1, r3, #2
	ldr	r3, [r6, r4]
	ldr	r2, [r0]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r5, #24]
	str	r1, [r5, #12]
	ldr	r1, .L31+4
	bl	dev_info
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	solo_ring_start
.L28:
	bne	.L14
	ldr	r0, [r6]
	lsl	r4, r4, #2
	b	.L15
.L2:
	ldr	r3, .L31+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	ldr	r0, [r6, r2]
	bl	PTR_ERR
	cmp	r4, #0
	mov	r6, r0
	sub	r4, r4, #1
	beq	.L9
.L10:
	ldr	r3, [r5, #20]
	ldr	r0, [r3, r4, lsl #2]
	sub	r4, r4, #1
	bl	solo_enc_free
	cmn	r4, #1
	bne	.L10
.L9:
	ldr	r3, [r5, #32]
	ldr	r2, [r5, #28]
	ldr	r1, [r5]
	ldr	r0, [r5, #24]
	bl	pci_free_consistent
	mov	r3, #0
	mov	r0, r6
	str	r3, [r5, #28]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r0, [r6, r3, lsl #2]
	bl	PTR_ERR
	mov	r6, r0
	b	.L10
.L27:
	mvneq	r4, #3
	ldr	r0, [r6]
	beq	.L15
	bl	PTR_ERR
	mov	r6, r0
	b	.L9
.L32:
	.align	2
.L31:
	.word	SOLO_DEV_6010
	.word	.LC0
	.word	ENOMEM
	.size	solo_enc_v4l2_init, .-solo_enc_v4l2_init
	.comm	SOLO_DEV_6010,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
