	.file	"extr_w9966.c_w9966_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"w9966"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"parport_register_device() failed\n"
	.section	.rodata.str1.1
.LC2:
	.string	"w9966_setup() failed.\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"w9966cf: Found and initialized a webcam on %s.\n"
	.text
	.p2align 4
	.type	w9966_init, @function
w9966_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR [rdi], 0
	jne	.L16
	movabs	rax, 274877907072
	mov	QWORD PTR 24[rbx], rsi
	mov	rdi, rsi
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR parmode[rip]
	mov	DWORD PTR 16[rbx], 64
	mov	QWORD PTR 56[rbx], 0
	cmp	eax, 1
	je	.L4
	cmp	eax, 2
	je	.L5
	mov	eax, DWORD PTR [rsi]
	test	DWORD PTR PARPORT_MODE_ECP[rip], eax
	je	.L6
.L4:
	mov	rax, QWORD PTR IEEE1284_MODE_ECP[rip]
	mov	QWORD PTR 48[rbx], rax
.L7:
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	lea	rsi, .LC0[rip]
	xor	r9d, r9d
	xor	ecx, ecx
	push	0
	.cfi_def_cfa_offset 48
	xor	r8d, r8d
	xor	edx, edx
	call	parport_register_device@PLT
	pop	rsi
	.cfi_def_cfa_offset 40
	pop	rdi
	.cfi_def_cfa_offset 32
	mov	QWORD PTR 40[rbx], rax
	test	rax, rax
	je	.L18
	mov	esi, DWORD PTR W9966_STATE_PDEV[rip]
	mov	rdi, rbx
	mov	edx, esi
	call	w9966_setState@PLT
	mov	rdi, rbx
	call	w9966_pdev_claim@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	ecx, 1023
	xor	edx, edx
	push	160
	.cfi_def_cfa_offset 48
	mov	r9d, 200
	xor	esi, esi
	mov	rdi, rbx
	mov	r8d, 1023
	call	w9966_setup@PLT
	pop	rdx
	.cfi_def_cfa_offset 40
	pop	rcx
	.cfi_def_cfa_offset 32
	test	rax, rax
	jne	.L19
	lea	rbp, 32[rbx]
	mov	rdi, rbx
	call	w9966_pdev_release@PLT
	mov	edx, 4
	lea	rsi, w9966_template[rip]
	mov	rdi, rbp
	call	memcpy@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	video_set_drvdata@PLT
	mov	edx, DWORD PTR video_nr[rip]
	mov	esi, DWORD PTR VFL_TYPE_GRABBER[rip]
	mov	rdi, rbp
	call	video_register_device@PLT
	test	rax, rax
	js	.L16
	mov	esi, DWORD PTR W9966_STATE_VDEV[rip]
	mov	rdi, rbx
	mov	edx, esi
	call	w9966_setState@PLT
	mov	rax, QWORD PTR 24[rbx]
	lea	rdi, .LC3[rip]
	mov	esi, DWORD PTR 4[rax]
	call	printk@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	test	DWORD PTR PARPORT_MODE_EPP[rip], eax
	je	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR IEEE1284_MODE_EPP[rip]
	mov	QWORD PTR 48[rbx], rax
	jmp	.L7
.L18:
	lea	rdi, .LC1[rip]
	call	DPRINTF@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rdi, .LC2[rip]
	call	DPRINTF@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	w9966_init, .-w9966_init
	.comm	w9966_template,4,4
	.comm	video_nr,4,4
	.comm	parmode,4,4
	.comm	W9966_STATE_VDEV,4,4
	.comm	W9966_STATE_PDEV,4,4
	.comm	VFL_TYPE_GRABBER,4,4
	.comm	PARPORT_MODE_EPP,4,4
	.comm	PARPORT_MODE_ECP,4,4
	.comm	IEEE1284_MODE_EPP,8,8
	.comm	IEEE1284_MODE_ECP,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_w9966.c_w9966_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"w9966\000"
	.align	2
.LC1:
	.ascii	"parport_register_device() failed\012\000"
	.align	2
.LC2:
	.ascii	"w9966_setup() failed.\012\000"
	.align	2
.LC3:
	.ascii	"w9966cf: Found and initialized a webcam on %s.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w9966_init, %function
w9966_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, [r0]
	sub	sp, sp, #16
	cmp	r3, #0
	bne	.L16
	mov	r4, r0
	mov	ip, #128
	mov	r0, r1
	mov	r1, #64
	ldr	r2, .L20
	str	r0, [r4, #16]
	ldr	r2, [r2]
	str	r3, [r4, #32]
	cmp	r2, #1
	str	ip, [r4, #4]
	str	r1, [r4, #8]
	str	r1, [r4, #12]
	beq	.L4
	cmp	r2, #2
	beq	.L5
	ldr	r2, .L20+4
	ldr	r3, [r0]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L6
.L4:
	ldr	r3, .L20+8
	ldr	r3, [r3]
	str	r3, [r4, #28]
.L7:
	mov	r5, #0
	ldr	r1, .L20+12
	mov	r3, r5
	mov	r2, r5
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	str	r5, [sp]
	bl	parport_register_device
	cmp	r0, r5
	str	r0, [r4, #24]
	beq	.L18
	ldr	r3, .L20+16
	mov	r0, r4
	ldr	r2, [r3]
	mov	r1, r2
	bl	w9966_setState
	mov	r0, r4
	bl	w9966_pdev_claim
	mov	r1, #160
	mov	r2, #200
	ldr	r3, .L20+20
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	mov	r1, r5
	mov	r2, r5
	mov	r0, r4
	str	r3, [sp]
	bl	w9966_setup
	subs	r6, r0, #0
	bne	.L19
	add	r5, r4, #20
	mov	r0, r4
	bl	w9966_pdev_release
	mov	r2, #4
	ldr	r1, .L20+24
	mov	r0, r5
	bl	memcpy
	mov	r1, r4
	mov	r0, r5
	bl	video_set_drvdata
	ldr	r3, .L20+28
	ldr	r2, .L20+32
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	video_register_device
	cmp	r0, #0
	blt	.L16
	ldr	r3, .L20+36
	mov	r0, r4
	ldr	r2, [r3]
	mov	r1, r2
	bl	w9966_setState
	ldr	r3, [r4, #16]
	ldr	r0, .L20+40
	ldr	r1, [r3, #4]
	bl	printk
.L1:
	mov	r0, r6
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r2, .L20+44
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L4
.L5:
	ldr	r3, .L20+48
	ldr	r3, [r3]
	str	r3, [r4, #28]
	b	.L7
.L18:
	ldr	r0, .L20+52
	bl	DPRINTF
.L16:
	mvn	r6, #0
	b	.L1
.L19:
	ldr	r0, .L20+56
	bl	DPRINTF
	mvn	r6, #0
	b	.L1
.L21:
	.align	2
.L20:
	.word	parmode
	.word	PARPORT_MODE_ECP
	.word	IEEE1284_MODE_ECP
	.word	.LC0
	.word	W9966_STATE_PDEV
	.word	1023
	.word	w9966_template
	.word	VFL_TYPE_GRABBER
	.word	video_nr
	.word	W9966_STATE_VDEV
	.word	.LC3
	.word	PARPORT_MODE_EPP
	.word	IEEE1284_MODE_EPP
	.word	.LC1
	.word	.LC2
	.size	w9966_init, .-w9966_init
	.comm	w9966_template,4,4
	.comm	video_nr,4,4
	.comm	parmode,4,4
	.comm	W9966_STATE_VDEV,4,4
	.comm	W9966_STATE_PDEV,4,4
	.comm	VFL_TYPE_GRABBER,4,4
	.comm	PARPORT_MODE_EPP,4,4
	.comm	PARPORT_MODE_ECP,4,4
	.comm	IEEE1284_MODE_EPP,4,4
	.comm	IEEE1284_MODE_ECP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
