	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_register_video
_uvc_register_video:                    ## @uvc_register_video
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_uvc_video_init
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_video_device_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	8(%r15), %rax
	movq	%rax, 16(%r12)
	movq	_uvc_fops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movq	_uvc_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	(%r12), %edi
	movl	4(%r15), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r12, (%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_video_set_drvdata
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_atomic_inc
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_uvc_printk
	jmp	LBB0_7
LBB0_3:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_uvc_printk
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %ebx
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ebx
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_uvc_printk
	movq	$0, (%r14)
	movq	%r12, %rdi
	callq	_video_device_release
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize the device (%d).\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate video device (%d).\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_uvc_fops,4,2                   ## @uvc_fops
	.comm	_uvc_release,4,2                ## @uvc_release
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register video device (%d).\n"

	.no_dead_strip	_uvc_register_video
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_register_video
_uvc_register_video:                    ; @uvc_register_video
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_uvc_video_init
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	bl	_video_device_alloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _uvc_fops@GOTPAGE
Lloh1:
	ldr	x9, [x9, _uvc_fops@GOTPAGEOFF]
	stp	x9, x8, [x0, #8]
Lloh2:
	adrp	x8, _uvc_release@GOTPAGE
Lloh3:
	ldr	x8, [x8, _uvc_release@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	w0, [x0]
	ldr	w1, [x21, #4]
	mov	w2, #4
	bl	_strlcpy
	str	x22, [x19]
	mov	x0, x22
	mov	x1, x19
	bl	_video_set_drvdata
Lloh5:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #-1
	bl	_video_register_device
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_atomic_inc
	mov	w20, #0
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_uvc_printk
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_uvc_printk
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_6:
	mov	x20, x0
Lloh21:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_uvc_printk
	str	xzr, [x19]
	mov	x0, x22
	bl	_video_device_release
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize the device (%d).\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate video device (%d).\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_uvc_fops,4,2                   ; @uvc_fops
	.comm	_uvc_release,4,2                ; @uvc_release
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register video device (%d).\n"

	.no_dead_strip	_uvc_register_video
.subsections_via_symbols
