	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w9966_init
_w9966_init:                            ## @w9966_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	cmpq	$0, (%rdi)
	je	LBB0_1
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	%rsi, 24(%rdi)
	movabsq	$274877907072, %rax             ## imm = 0x4000000080
	movq	%rax, 8(%rdi)
	movl	$64, 16(%rdi)
	movq	$0, 56(%rdi)
	movq	_parmode@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IEEE1284_MODE_ECP@GOTPCREL(%rip), %rax
	cmpl	$1, %ecx
	je	LBB0_7
## %bb.2:
	cmpl	$2, %ecx
	jne	LBB0_3
LBB0_6:
	movq	_IEEE1284_MODE_EPP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movl	(%rsi), %ecx
	movq	_PARPORT_MODE_ECP@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_7
## %bb.4:
	movq	_PARPORT_MODE_EPP@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_IEEE1284_MODE_ECP@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movq	$0, (%rsp)
	leaq	L_.str(%rip), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_parport_register_device
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_W9966_STATE_PDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_w9966_setState
	movq	%rbx, %rdi
	callq	_w9966_pdev_claim
	movl	$160, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1023, %ecx                     ## imm = 0x3FF
	movl	$1023, %r8d                     ## imm = 0x3FF
	movl	$200, %r9d
	callq	_w9966_setup
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	callq	_DPRINTF
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINTF
	jmp	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	callq	_w9966_pdev_release
	leaq	32(%rbx), %r15
	movq	_w9966_template@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_video_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_video_register_device
	testq	%rax, %rax
	js	LBB0_13
## %bb.12:
	movq	_W9966_STATE_VDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_w9966_setState
	movq	24(%rbx), %rax
	movl	4(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_printk
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_parmode,4,2                    ## @parmode
	.comm	_PARPORT_MODE_ECP,4,2           ## @PARPORT_MODE_ECP
	.comm	_IEEE1284_MODE_ECP,8,3          ## @IEEE1284_MODE_ECP
	.comm	_PARPORT_MODE_EPP,4,2           ## @PARPORT_MODE_EPP
	.comm	_IEEE1284_MODE_EPP,8,3          ## @IEEE1284_MODE_EPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w9966"

L_.str.1:                               ## @.str.1
	.asciz	"parport_register_device() failed\n"

	.comm	_W9966_STATE_PDEV,4,2           ## @W9966_STATE_PDEV
L_.str.2:                               ## @.str.2
	.asciz	"w9966_setup() failed.\n"

	.comm	_w9966_template,4,2             ## @w9966_template
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
	.comm	_video_nr,4,2                   ## @video_nr
	.comm	_W9966_STATE_VDEV,4,2           ## @W9966_STATE_VDEV
L_.str.3:                               ## @.str.3
	.asciz	"w9966cf: Found and initialized a webcam on %s.\n"

	.no_dead_strip	_w9966_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function w9966_init
lCPI0_0:
	.long	128                             ; 0x80
	.long	64                              ; 0x40
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_w9966_init:                            ; @w9966_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cbnz	x8, LBB0_12
; %bb.1:
	mov	x19, x0
	str	x1, [x0, #24]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0, #8]
	mov	w8, #64
	str	w8, [x0, #16]
	str	xzr, [x0, #56]
Lloh2:
	adrp	x8, _parmode@GOTPAGE
Lloh3:
	ldr	x8, [x8, _parmode@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _IEEE1284_MODE_EPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE1284_MODE_EPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh7:
	adrp	x8, _IEEE1284_MODE_ECP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IEEE1284_MODE_ECP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w9, [x1]
Lloh9:
	adrp	x8, _PARPORT_MODE_ECP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PARPORT_MODE_ECP@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x8]
Lloh12:
	adrp	x8, _IEEE1284_MODE_ECP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE1284_MODE_ECP@GOTPAGEOFF]
	tst	w10, w9
	b.ne	LBB0_7
; %bb.6:
Lloh14:
	adrp	x10, _PARPORT_MODE_EPP@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PARPORT_MODE_EPP@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _IEEE1284_MODE_EPP@GOTPAGE
Lloh18:
	ldr	x11, [x11, _IEEE1284_MODE_EPP@GOTPAGEOFF]
	tst	w10, w9
	csel	x8, x8, x11, eq
LBB0_7:
	ldr	x8, [x8]
	str	x8, [x19, #48]
Lloh19:
	adrp	x8, l_.str@PAGE
Lloh20:
	add	x8, x8, l_.str@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_parport_register_device
	str	x0, [x19, #40]
	cbz	x0, LBB0_10
; %bb.8:
Lloh21:
	adrp	x8, _W9966_STATE_PDEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _W9966_STATE_PDEV@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x1
	bl	_w9966_setState
	mov	x0, x19
	bl	_w9966_pdev_claim
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #1023
	mov	w4, #1023
	mov	w5, #200
	mov	w6, #160
	bl	_w9966_setup
	cbz	x0, LBB0_14
; %bb.9:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_DPRINTF
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x19
	bl	_w9966_pdev_release
	add	x20, x19, #32
Lloh28:
	adrp	x1, _w9966_template@GOTPAGE
Lloh29:
	ldr	x1, [x1, _w9966_template@GOTPAGEOFF]
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	mov	x1, x19
	bl	_video_set_drvdata
Lloh30:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _video_nr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _video_nr@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_video_register_device
	tbnz	x0, #63, LBB0_12
; %bb.15:
Lloh36:
	adrp	x8, _W9966_STATE_VDEV@GOTPAGE
Lloh37:
	ldr	x8, [x8, _W9966_STATE_VDEV@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x1
	bl	_w9966_setState
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #4]
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_parmode,4,2                    ; @parmode
	.comm	_PARPORT_MODE_ECP,4,2           ; @PARPORT_MODE_ECP
	.comm	_IEEE1284_MODE_ECP,8,3          ; @IEEE1284_MODE_ECP
	.comm	_PARPORT_MODE_EPP,4,2           ; @PARPORT_MODE_EPP
	.comm	_IEEE1284_MODE_EPP,8,3          ; @IEEE1284_MODE_EPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w9966"

l_.str.1:                               ; @.str.1
	.asciz	"parport_register_device() failed\n"

	.comm	_W9966_STATE_PDEV,4,2           ; @W9966_STATE_PDEV
l_.str.2:                               ; @.str.2
	.asciz	"w9966_setup() failed.\n"

	.comm	_w9966_template,4,2             ; @w9966_template
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
	.comm	_video_nr,4,2                   ; @video_nr
	.comm	_W9966_STATE_VDEV,4,2           ; @W9966_STATE_VDEV
l_.str.3:                               ; @.str.3
	.asciz	"w9966cf: Found and initialized a webcam on %s.\n"

	.no_dead_strip	_w9966_init
.subsections_via_symbols
