	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov51x_probe
_ov51x_probe:                           ## @ov51x_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_interface_to_usbdev
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_PDEBUG
	cmpl	$1, (%r13)
	jne	LBB0_1
## %bb.2:
	movq	8(%r12), %rbx
	cmpl	$255, (%rbx)
	jne	LBB0_1
## %bb.3:
	cmpl	$0, 4(%rbx)
	je	LBB0_4
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_43:
	subl	(%rax), %ebx
LBB0_44:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$136, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%r13, 128(%rax)
	movl	8(%rbx), %eax
	movl	%eax, 120(%r14)
	movq	_led@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%r14)
	movq	_compress@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%r14)
	movq	_lightfreq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r14)
	movl	$1, (%r14)
	movq	_fastset@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	sete	%cl
	movl	%ecx, 4(%r14)
	movq	_backlight@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r14)
	movq	_mirror@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r14)
	movq	_autobright@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r14)
	movq	_autogain@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r14)
	movq	_autoexp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r14)
	movl	4(%r13), %edi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_33
## %bb.7:
	movq	_BCL_OV511@GOTPCREL(%rip), %r15
	movq	_BRG_OV511@GOTPCREL(%rip), %rcx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_BCL_OV518@GOTPCREL(%rip), %r15
	movq	_BRG_OV518PLUS@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_42
LBB0_33:
	movl	4(%r13), %edi
	callq	_le16_to_cpu
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_34
LBB0_8:
	movq	_BCL_OV518@GOTPCREL(%rip), %r15
	movq	_BRG_OV518@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_10:
	movl	8(%r13), %edi
	callq	_le16_to_cpu
	movq	_VEND_MATTEL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_34
LBB0_11:
	movq	_BRG_OV511PLUS@GOTPCREL(%rip), %rcx
LBB0_12:
	movq	(%rcx), %rsi
	movq	%rsi, 80(%r14)
	movq	(%r15), %rax
	movq	%rax, 8(%r14)
	movq	_brglist@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_symbolic
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	leaq	76(%r14), %rdi
	callq	_init_waitqueue_head
	leaq	40(%r14), %rbx
	movq	%rbx, %rdi
	callq	_mutex_init
	leaq	72(%r14), %rdi
	callq	_mutex_init
	leaq	68(%r14), %rdi
	callq	_mutex_init
	leaq	20(%r14), %rdi
	callq	_mutex_init
	movq	_BUF_NOT_ALLOCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r14)
	movl	44(%r14), %esi
	movq	_OV511_USB_PATH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_usb_make_path
	testq	%rax, %rax
	js	LBB0_13
## %bb.14:
	movq	_OV511_CBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_34
## %bb.15:
	movq	8(%r14), %rax
	movq	_BCL_OV518@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_ov518_configure
	jmp	LBB0_18
LBB0_13:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_34
LBB0_17:
	movq	%r14, %rdi
	callq	_ov511_configure
LBB0_18:
	testq	%rax, %rax
	js	LBB0_34
## %bb.19:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_OV511_NUMFRAMES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_22
## %bb.20:
	movl	$4, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r14), %rdi
	movl	%ebx, (%rdi,%rbx,8)
	addq	%r13, %rdi
	callq	_init_waitqueue_head
	incq	%rbx
	movslq	(%r15), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jl	LBB0_21
LBB0_22:
	movq	_OV511_NUMSBUF@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_25
## %bb.23:
	movq	48(%r14), %rdi
	movl	$4, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, 4(%rdi,%rbx)
	addq	%rbx, %rdi
	callq	_spin_lock_init
	movq	48(%r14), %rdi
	movl	%r15d, -4(%rdi,%rbx)
	incq	%r15
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jl	LBB0_24
LBB0_25:
	movq	%r14, %rdi
	callq	_ov51x_set_default_params
	testq	%rax, %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	js	LBB0_34
## %bb.26:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_video_device_alloc
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_34
## %bb.27:
	movq	_vdev_template@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	movl	$16, %edx
	callq	_memcpy
	movq	32(%r14), %rdi
	movq	%r12, 8(%rdi)
	movq	%r14, %rsi
	callq	_video_set_drvdata
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_OV511_MAX_UNIT_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ov511_devused@GOTPCREL(%rip), %rdi
	callq	_find_first_zero_bit
	movl	%eax, %r13d
	movq	_unit_video@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r13d, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	32(%r14), %rdi
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpq	$1, %rax
	sbbl	%ebx, %ebx
	orl	%eax, %ebx
	movl	%ebx, %edx
	callq	_video_register_device
	testl	%eax, %eax
	js	LBB0_28
## %bb.30:
	movl	$1, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	movq	_ov511_devused@GOTPCREL(%rip), %rax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	orl	%edx, (%rax)
	movl	%r13d, 16(%r14)
	movl	44(%r14), %edx
	movq	32(%r14), %rax
	movl	(%rax), %ecx
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_usb_set_intfdata
	movq	32(%r14), %rdi
	callq	_ov_create_sysfs
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	notl	%ecx
	movq	_ov511_devused@GOTPCREL(%rip), %rax
	andl	%ecx, (%rax)
	jmp	LBB0_29
LBB0_28:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
LBB0_29:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_34:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.35:
	cmpl	$-1, (%rdi)
	je	LBB0_36
## %bb.37:
	callq	_video_unregister_device
	jmp	LBB0_38
LBB0_36:
	callq	_video_device_release
LBB0_38:
	movq	$0, 32(%r14)
LBB0_39:
	cmpq	$0, 24(%r14)
	je	LBB0_41
## %bb.40:
	movq	%r14, %rbx
	addq	$20, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	24(%r14), %rdi
	callq	_kfree
	movq	$0, 24(%r14)
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_41:
	movq	%r14, %rdi
	callq	_kfree
LBB0_42:
	leaq	L_.str.8(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_43
LBB0_32:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_44
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probing for device..."

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"couldn't kmalloc ov struct"

	.comm	_led,4,2                        ## @led
	.comm	_compress,4,2                   ## @compress
	.comm	_lightfreq,4,2                  ## @lightfreq
	.comm	_fastset,4,2                    ## @fastset
	.comm	_backlight,4,2                  ## @backlight
	.comm	_mirror,4,2                     ## @mirror
	.comm	_autobright,4,2                 ## @autobright
	.comm	_autogain,4,2                   ## @autogain
	.comm	_autoexp,4,2                    ## @autoexp
	.comm	_BRG_OV511,8,3                  ## @BRG_OV511
	.comm	_BCL_OV511,8,3                  ## @BCL_OV511
	.comm	_BRG_OV511PLUS,8,3              ## @BRG_OV511PLUS
	.comm	_BRG_OV518,8,3                  ## @BRG_OV518
	.comm	_BCL_OV518,8,3                  ## @BCL_OV518
	.comm	_BRG_OV518PLUS,8,3              ## @BRG_OV518PLUS
	.comm	_VEND_MATTEL,4,2                ## @VEND_MATTEL
L_.str.2:                               ## @.str.2
	.asciz	"Unknown product ID 0x%04x"

L_.str.3:                               ## @.str.3
	.asciz	"USB %s video device found\n"

	.comm	_brglist,4,2                    ## @brglist
	.comm	_BUF_NOT_ALLOCATED,4,2          ## @BUF_NOT_ALLOCATED
	.comm	_OV511_USB_PATH_LEN,4,2         ## @OV511_USB_PATH_LEN
L_.str.4:                               ## @.str.4
	.asciz	"usb_make_path error"

	.comm	_OV511_CBUF_SIZE,4,2            ## @OV511_CBUF_SIZE
	.comm	_OV511_NUMFRAMES,4,2            ## @OV511_NUMFRAMES
	.comm	_OV511_NUMSBUF,4,2              ## @OV511_NUMSBUF
	.comm	_vdev_template,4,2              ## @vdev_template
	.comm	_ov511_devused,4,2              ## @ov511_devused
	.comm	_OV511_MAX_UNIT_VIDEO,4,2       ## @OV511_MAX_UNIT_VIDEO
	.comm	_unit_video,8,3                 ## @unit_video
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
L_.str.5:                               ## @.str.5
	.asciz	"video_register_device failed"

L_.str.6:                               ## @.str.6
	.asciz	"Device at %s registered to minor %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"ov_create_sysfs failed"

L_.str.8:                               ## @.str.8
	.asciz	"Camera initialization failed"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_dump_bridge,8,3                ## @dump_bridge
	.no_dead_strip	_ov51x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov51x_probe
_ov51x_probe:                           ; @ov51x_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_interface_to_usbdev
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_PDEBUG
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	x21, [x20, #8]
	ldr	w8, [x21]
	cmp	w8, #255
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh4:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #136
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.7:
	mov	x19, x0
	str	x22, [x0, #128]
	ldr	w8, [x21, #8]
	str	w8, [x0, #120]
Lloh6:
	adrp	x8, _led@GOTPAGE
Lloh7:
	ldr	x8, [x8, _led@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _compress@GOTPAGE
Lloh10:
	ldr	x9, [x9, _compress@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #112]
Lloh12:
	adrp	x8, _lightfreq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _lightfreq@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #1
	str	w9, [x0]
Lloh15:
	adrp	x9, _fastset@GOTPAGE
Lloh16:
	ldr	x9, [x9, _fastset@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [x0, #4]
Lloh18:
	adrp	x9, _backlight@GOTPAGE
Lloh19:
	ldr	x9, [x9, _backlight@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #104]
Lloh21:
	adrp	x8, _mirror@GOTPAGE
Lloh22:
	ldr	x8, [x8, _mirror@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _autobright@GOTPAGE
Lloh25:
	ldr	x9, [x9, _autobright@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #96]
Lloh27:
	adrp	x8, _autogain@GOTPAGE
Lloh28:
	ldr	x8, [x8, _autogain@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _autoexp@GOTPAGE
Lloh31:
	ldr	x9, [x9, _autoexp@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #88]
	ldr	w0, [x22, #4]
	bl	_le16_to_cpu
	sub	w10, w0, #128
	cmp	w10, #4
	b.hi	LBB0_11
; %bb.8:
Lloh33:
	adrp	x8, _BCL_OV511@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BCL_OV511@GOTPAGEOFF]
Lloh35:
	adrp	x9, _BRG_OV511@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BRG_OV511@GOTPAGEOFF]
Lloh37:
	adrp	x11, lJTI0_0@PAGE
Lloh38:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_9
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_9:
Lloh39:
	adrp	x8, _BCL_OV518@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BCL_OV518@GOTPAGEOFF]
Lloh41:
	adrp	x9, _BRG_OV518PLUS@GOTPAGE
Lloh42:
	ldr	x9, [x9, _BRG_OV518PLUS@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh43:
	adrp	x0, l_.str.1@PAGE
Lloh44:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
	b	LBB0_29
LBB0_11:
	ldr	w0, [x22, #4]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh45:
	adrp	x0, l_.str.2@PAGE
Lloh46:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_12:
Lloh47:
	adrp	x8, _BCL_OV518@GOTPAGE
Lloh48:
	ldr	x8, [x8, _BCL_OV518@GOTPAGEOFF]
Lloh49:
	adrp	x9, _BRG_OV518@GOTPAGE
Lloh50:
	ldr	x9, [x9, _BRG_OV518@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	ldr	w0, [x22, #8]
	bl	_le16_to_cpu
Lloh51:
	adrp	x8, _VEND_MATTEL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _VEND_MATTEL@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_21
LBB0_14:
Lloh54:
	adrp	x8, _BCL_OV511@GOTPAGE
Lloh55:
	ldr	x8, [x8, _BCL_OV511@GOTPAGEOFF]
Lloh56:
	adrp	x9, _BRG_OV511PLUS@GOTPAGE
Lloh57:
	ldr	x9, [x9, _BRG_OV511PLUS@GOTPAGEOFF]
LBB0_15:
	ldr	x1, [x9]
	str	x1, [x19, #80]
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh58:
	adrp	x8, _brglist@GOTPAGE
Lloh59:
	ldr	x8, [x8, _brglist@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	bl	_symbolic
	mov	x2, x0
Lloh61:
	adrp	x1, l_.str.3@PAGE
Lloh62:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	add	x0, x19, #76
	bl	_init_waitqueue_head
	add	x21, x19, #40
	mov	x0, x21
	bl	_mutex_init
	add	x0, x19, #72
	bl	_mutex_init
	add	x0, x19, #68
	bl	_mutex_init
	add	x0, x19, #20
	bl	_mutex_init
Lloh63:
	adrp	x8, _BUF_NOT_ALLOCATED@GOTPAGE
Lloh64:
	ldr	x8, [x8, _BUF_NOT_ALLOCATED@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	str	w8, [x19, #64]
	ldr	w1, [x19, #44]
Lloh66:
	adrp	x8, _OV511_USB_PATH_LEN@GOTPAGE
Lloh67:
	ldr	x8, [x8, _OV511_USB_PATH_LEN@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_usb_make_path
	tbnz	x0, #63, LBB0_19
; %bb.16:
Lloh69:
	adrp	x8, _OV511_CBUF_SIZE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _OV511_CBUF_SIZE@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_kmalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_21
; %bb.17:
	ldr	x8, [x19, #8]
Lloh72:
	adrp	x9, _BCL_OV518@GOTPAGE
Lloh73:
	ldr	x9, [x9, _BCL_OV518@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.18:
	bl	_ov518_configure
	tbz	x0, #63, LBB0_31
	b	LBB0_21
LBB0_19:
Lloh75:
	adrp	x0, l_.str.4@PAGE
Lloh76:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_20:
	bl	_err
LBB0_21:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_26
; %bb.22:
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_24
; %bb.23:
	bl	_video_unregister_device
	b	LBB0_25
LBB0_24:
	bl	_video_device_release
LBB0_25:
	str	xzr, [x19, #32]
LBB0_26:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_28
; %bb.27:
	add	x20, x19, #20
	mov	x0, x20
	bl	_mutex_lock
	ldr	x0, [x19, #24]
	bl	_kfree
	str	xzr, [x19, #24]
	mov	x0, x20
	bl	_mutex_unlock
LBB0_28:
	mov	x0, x19
	bl	_kfree
LBB0_29:
Lloh77:
	adrp	x0, l_.str.8@PAGE
Lloh78:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_err
Lloh79:
	adrp	x8, _EIO@GOTPAGE
Lloh80:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_30:
	bl	_ov511_configure
	tbnz	x0, #63, LBB0_21
LBB0_31:
Lloh81:
	adrp	x22, _OV511_NUMFRAMES@GOTPAGE
Lloh82:
	ldr	x22, [x22, _OV511_NUMFRAMES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.32:
	mov	x23, #0
	mov	x24, #0
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x0, x8, x23
	str	w24, [x0], #4
	bl	_init_waitqueue_head
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #8
	cmp	x24, x8
	b.lt	LBB0_33
LBB0_34:
Lloh83:
	adrp	x22, _OV511_NUMSBUF@GOTPAGE
Lloh84:
	ldr	x22, [x22, _OV511_NUMSBUF@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_37
; %bb.35:
	mov	x23, #0
	mov	x24, #0
	ldr	x8, [x19, #48]
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x23
	str	x19, [x8, #8]
	add	x0, x8, #4
	bl	_spin_lock_init
	ldr	x8, [x19, #48]
	str	w24, [x8, x23]
	add	x24, x24, #1
	ldrsw	x9, [x22]
	add	x23, x23, #16
	cmp	x24, x9
	b.lt	LBB0_36
LBB0_37:
	mov	x0, x19
	bl	_ov51x_set_default_params
	tbnz	x0, #63, LBB0_21
; %bb.38:
	bl	_video_device_alloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_21
; %bb.39:
Lloh85:
	adrp	x1, _vdev_template@GOTPAGE
Lloh86:
	ldr	x1, [x1, _vdev_template@GOTPAGEOFF]
	mov	w2, #16
	bl	_memcpy
	ldr	x0, [x19, #32]
	str	x20, [x0, #8]
	mov	x1, x19
	bl	_video_set_drvdata
	mov	x0, x21
	bl	_mutex_lock
Lloh87:
	adrp	x8, _OV511_MAX_UNIT_VIDEO@GOTPAGE
Lloh88:
	ldr	x8, [x8, _OV511_MAX_UNIT_VIDEO@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
Lloh90:
	adrp	x22, _ov511_devused@GOTPAGE
Lloh91:
	ldr	x22, [x22, _ov511_devused@GOTPAGEOFF]
	mov	x0, x22
	bl	_find_first_zero_bit
	mov	x23, x0
Lloh92:
	adrp	x8, _unit_video@GOTPAGE
Lloh93:
	ldr	x8, [x8, _unit_video@GOTPAGEOFF]
Lloh94:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x0, [x19, #32]
Lloh95:
	adrp	x9, _VFL_TYPE_GRABBER@GOTPAGE
Lloh96:
	ldr	x9, [x9, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x9]
	cmp	x8, #0
	csinv	w2, w8, wzr, ne
	bl	_video_register_device
	tbnz	w0, #31, LBB0_42
; %bb.40:
	mov	w8, #1
	lsl	w24, w8, w23
	ldr	w8, [x22]
	orr	w8, w8, w24
	str	w8, [x22]
	str	w23, [x19, #16]
	ldr	w2, [x19, #44]
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh98:
	adrp	x1, l_.str.6@PAGE
Lloh99:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	x0, x20
	mov	x1, x19
	bl	_usb_set_intfdata
	ldr	x0, [x19, #32]
	bl	_ov_create_sysfs
	cbz	x0, LBB0_44
; %bb.41:
Lloh100:
	adrp	x0, l_.str.7@PAGE
Lloh101:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_err
	ldr	w8, [x22]
	bic	w8, w8, w24
	str	w8, [x22]
	b	LBB0_43
LBB0_42:
Lloh102:
	adrp	x0, l_.str.5@PAGE
Lloh103:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_err
LBB0_43:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_21
LBB0_44:
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpAdd	Lloh102, Lloh103
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_14-LBB0_9)>>2
	.byte	(LBB0_15-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probing for device..."

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"couldn't kmalloc ov struct"

	.comm	_led,4,2                        ; @led
	.comm	_compress,4,2                   ; @compress
	.comm	_lightfreq,4,2                  ; @lightfreq
	.comm	_fastset,4,2                    ; @fastset
	.comm	_backlight,4,2                  ; @backlight
	.comm	_mirror,4,2                     ; @mirror
	.comm	_autobright,4,2                 ; @autobright
	.comm	_autogain,4,2                   ; @autogain
	.comm	_autoexp,4,2                    ; @autoexp
	.comm	_BRG_OV511,8,3                  ; @BRG_OV511
	.comm	_BCL_OV511,8,3                  ; @BCL_OV511
	.comm	_BRG_OV511PLUS,8,3              ; @BRG_OV511PLUS
	.comm	_BRG_OV518,8,3                  ; @BRG_OV518
	.comm	_BCL_OV518,8,3                  ; @BCL_OV518
	.comm	_BRG_OV518PLUS,8,3              ; @BRG_OV518PLUS
	.comm	_VEND_MATTEL,4,2                ; @VEND_MATTEL
l_.str.2:                               ; @.str.2
	.asciz	"Unknown product ID 0x%04x"

l_.str.3:                               ; @.str.3
	.asciz	"USB %s video device found\n"

	.comm	_brglist,4,2                    ; @brglist
	.comm	_BUF_NOT_ALLOCATED,4,2          ; @BUF_NOT_ALLOCATED
	.comm	_OV511_USB_PATH_LEN,4,2         ; @OV511_USB_PATH_LEN
l_.str.4:                               ; @.str.4
	.asciz	"usb_make_path error"

	.comm	_OV511_CBUF_SIZE,4,2            ; @OV511_CBUF_SIZE
	.comm	_OV511_NUMFRAMES,4,2            ; @OV511_NUMFRAMES
	.comm	_OV511_NUMSBUF,4,2              ; @OV511_NUMSBUF
	.comm	_vdev_template,4,2              ; @vdev_template
	.comm	_ov511_devused,4,2              ; @ov511_devused
	.comm	_OV511_MAX_UNIT_VIDEO,4,2       ; @OV511_MAX_UNIT_VIDEO
	.comm	_unit_video,8,3                 ; @unit_video
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
l_.str.5:                               ; @.str.5
	.asciz	"video_register_device failed"

l_.str.6:                               ; @.str.6
	.asciz	"Device at %s registered to minor %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"ov_create_sysfs failed"

l_.str.8:                               ; @.str.8
	.asciz	"Camera initialization failed"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_dump_bridge,8,3                ; @dump_bridge
	.no_dead_strip	_ov51x_probe
.subsections_via_symbols
