	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_uvc_video_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_V4L2_CAP_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	movq	_V4L2_CAP_META_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	16(%rbx), %rcx
	movq	%rcx, %rdx
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r15d
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_uvc_printk
	movl	%r15d, %eax
	jmp	LBB0_2
LBB0_5:
	movq	16(%rbx), %rdx
	movl	(%rdx), %eax
	movq	_V4L2_CAP_VIDEO_OUTPUT@GOTPCREL(%rip), %rcx
LBB0_6:
	orl	(%rcx), %eax
	movl	%eax, (%rdx)
	movq	%rbx, %rdi
	callq	_uvc_debugfs_init_stream
	leaq	12(%rbx), %rdx
	leaq	8(%rbx), %rcx
	movq	(%rbx), %r8
	movq	_uvc_ioctl_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rsp)
	movq	_uvc_fops@GOTPCREL(%rip), %r9
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_uvc_register_video_device
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	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"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ## @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_META_CAPTURE,4,2      ## @V4L2_CAP_META_CAPTURE
	.comm	_V4L2_CAP_VIDEO_OUTPUT,4,2      ## @V4L2_CAP_VIDEO_OUTPUT
	.comm	_uvc_fops,4,2                   ## @uvc_fops
	.comm	_uvc_ioctl_ops,4,2              ## @uvc_ioctl_ops
	.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	x20, x0
	mov	x0, x1
	bl	_uvc_video_init
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _V4L2_CAP_META_CAPTURE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_CAP_META_CAPTURE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x10, [x19, #16]
	mov	x9, x10
	b	LBB0_5
LBB0_3:
	mov	x21, x0
Lloh9:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_uvc_printk
	mov	x0, x21
	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
LBB0_4:
	ldr	x9, [x19, #16]
	ldr	w8, [x9]
Lloh14:
	adrp	x10, _V4L2_CAP_VIDEO_OUTPUT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _V4L2_CAP_VIDEO_OUTPUT@GOTPAGEOFF]
LBB0_5:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x9]
	mov	x0, x19
	bl	_uvc_debugfs_init_stream
	mov	x3, x19
	ldr	x4, [x3], #8
	add	x2, x19, #12
Lloh16:
	adrp	x5, _uvc_fops@GOTPAGE
Lloh17:
	ldr	x5, [x5, _uvc_fops@GOTPAGEOFF]
Lloh18:
	adrp	x6, _uvc_ioctl_ops@GOTPAGE
Lloh19:
	ldr	x6, [x6, _uvc_ioctl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	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
	b	_uvc_register_video_device
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.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"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ; @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_META_CAPTURE,4,2      ; @V4L2_CAP_META_CAPTURE
	.comm	_V4L2_CAP_VIDEO_OUTPUT,4,2      ; @V4L2_CAP_VIDEO_OUTPUT
	.comm	_uvc_fops,4,2                   ; @uvc_fops
	.comm	_uvc_ioctl_ops,4,2              ; @uvc_ioctl_ops
	.no_dead_strip	_uvc_register_video
.subsections_via_symbols
