	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_video_init                 ## -- Begin function uvc_video_init
	.p2align	4, 0x90
_uvc_video_init:                        ## @uvc_video_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
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	leaq	80(%rdi), %r14
	addq	$72, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	68(%r15), %rdi
	movq	8(%r15), %rsi
	movq	_uvc_no_drop_param@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	$0, (%rax)
	sete	%dl
	callq	_uvc_queue_init
	movq	32(%r15), %rax
	movl	4(%rax), %edi
	movl	64(%r15), %esi
	xorl	%edx, %edx
	callq	_usb_set_interface
	movq	_UVC_GET_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_uvc_get_video_ctrl
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_uvc_set_video_ctrl
LBB0_4:
	movq	_UVC_GET_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_uvc_get_video_ctrl
	testl	%eax, %eax
	js	LBB0_25
## %bb.5:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.7:
	movq	56(%r15), %rdx
	movq	80(%r15), %rsi
	decl	%ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	leaq	(%rax,%rax,2), %rdi
	leaq	(%rdx,%rdi,8), %rax
	subl	$1, %ecx
	setb	%bl
	cmpq	%rsi, (%rdx,%rdi,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testb	%bl, %bl
	je	LBB0_8
	jmp	LBB0_10
LBB0_1:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_24
LBB0_6:
	xorl	%eax, %eax
LBB0_10:
	movl	8(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_26
## %bb.11:
	movq	16(%rax), %r8
	movq	88(%r15), %rsi
	decl	%ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %ebx
	movq	(%r8,%rbx,8), %rdi
	subl	$1, %ecx
	setb	%dl
	cmpq	%rsi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testb	%dl, %dl
	je	LBB0_12
LBB0_14:
	leaq	(%r8,%rbx,8), %rcx
	movq	(%rax), %rdx
	movq	%rdx, 80(%r15)
	movq	%rdi, 88(%r15)
	movq	%rax, 48(%r15)
	movq	%rcx, 40(%r15)
	movq	8(%r15), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.15:
	movq	32(%r15), %rax
	movq	_UVC_QUIRK_BUILTIN_ISIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.16:
	movq	_uvc_video_decode_isight@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_26:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_24
LBB0_21:
	movq	24(%r15), %rax
	cmpl	$1, (%rax)
	jne	LBB0_23
## %bb.22:
	movq	_uvc_video_encode_bulk@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_23:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_24:
	callq	_uvc_printk
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_25
LBB0_18:
	movq	24(%r15), %rax
	cmpl	$2, (%rax)
	jl	LBB0_20
## %bb.19:
	movq	_uvc_video_decode_isoc@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_20:
	movq	_uvc_video_decode_bulk@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	xorl	%eax, %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No supported video formats found.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_uvc_no_drop_param,4,2          ## @uvc_no_drop_param
	.comm	_UVC_GET_DEF,4,2                ## @UVC_GET_DEF
	.comm	_UVC_GET_CUR,4,2                ## @UVC_GET_CUR
L_.str.1:                               ## @.str.1
	.asciz	"No frame descriptor found for the default format.\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_UVC_QUIRK_BUILTIN_ISIGHT,4,2   ## @UVC_QUIRK_BUILTIN_ISIGHT
	.comm	_uvc_video_decode_isight,4,2    ## @uvc_video_decode_isight
	.comm	_uvc_video_decode_isoc,4,2      ## @uvc_video_decode_isoc
	.comm	_uvc_video_decode_bulk,4,2      ## @uvc_video_decode_bulk
	.comm	_uvc_video_encode_bulk,4,2      ## @uvc_video_encode_bulk
L_.str.2:                               ## @.str.2
	.asciz	"Isochronous endpoints are not supported for video output devices.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_video_init                 ; -- Begin function uvc_video_init
	.p2align	2
_uvc_video_init:                        ; @uvc_video_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
	mov	x20, x0
	ldr	w8, [x20], #80
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x0
	add	x0, x0, #72
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #68
	ldr	x1, [x19, #8]
Lloh0:
	adrp	x8, _uvc_no_drop_param@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uvc_no_drop_param@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w2, eq
	bl	_uvc_queue_init
	ldr	x8, [x19, #32]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #64]
	mov	w2, #0
	bl	_usb_set_interface
Lloh3:
	adrp	x8, _UVC_GET_DEF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UVC_GET_DEF@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_uvc_get_video_ctrl
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_uvc_set_video_ctrl
LBB0_3:
Lloh6:
	adrp	x8, _UVC_GET_CUR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UVC_GET_CUR@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_uvc_get_video_ctrl
	tbnz	w0, #31, LBB0_24
; %bb.4:
	ldr	w8, [x19]
	cbz	w8, LBB0_14
; %bb.5:
	ldr	x9, [x19, #56]
	ldr	x10, [x19, #80]
	sub	w11, w8, #1
	mov	w12, #24
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	umaddl	x8, w11, w12, x9
	ldr	x13, [x8]
	cmp	x13, x10
	ccmp	w11, #0, #4, ne
	sub	w11, w11, #1
	b.ne	LBB0_6
; %bb.7:
	ldr	w10, [x8, #8]
	cbz	w10, LBB0_15
LBB0_8:
	ldr	x9, [x8, #16]
	ldr	x11, [x19, #88]
	sub	w12, w10, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x9, w12, uxtw #3
	ldr	x13, [x10]
	cmp	x13, x11
	ccmp	w12, #0, #4, ne
	sub	w12, w12, #1
	b.ne	LBB0_9
; %bb.10:
	ldr	x9, [x8]
	stp	x9, x13, [x19, #80]
	stp	x10, x8, [x19, #40]
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.11:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _UVC_QUIRK_BUILTIN_ISIGHT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _UVC_QUIRK_BUILTIN_ISIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.12:
	mov	w0, #0
Lloh15:
	adrp	x8, _uvc_video_decode_isight@GOTPAGE
Lloh16:
	ldr	x8, [x8, _uvc_video_decode_isight@GOTPAGEOFF]
	b	LBB0_23
LBB0_13:
Lloh17:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_19
LBB0_14:
	mov	x8, #0
	ldr	w10, [x8, #8]
	cbnz	w10, LBB0_8
LBB0_15:
Lloh22:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_16:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #0
Lloh27:
	adrp	x8, _uvc_video_encode_bulk@GOTPAGE
Lloh28:
	ldr	x8, [x8, _uvc_video_encode_bulk@GOTPAGEOFF]
	b	LBB0_23
LBB0_18:
Lloh29:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_19:
	bl	_uvc_printk
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_20:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_22
; %bb.21:
	mov	w0, #0
Lloh37:
	adrp	x8, _uvc_video_decode_isoc@GOTPAGE
Lloh38:
	ldr	x8, [x8, _uvc_video_decode_isoc@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
	mov	w0, #0
Lloh39:
	adrp	x8, _uvc_video_decode_bulk@GOTPAGE
Lloh40:
	ldr	x8, [x8, _uvc_video_decode_bulk@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_24:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No supported video formats found.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_uvc_no_drop_param,4,2          ; @uvc_no_drop_param
	.comm	_UVC_GET_DEF,4,2                ; @UVC_GET_DEF
	.comm	_UVC_GET_CUR,4,2                ; @UVC_GET_CUR
l_.str.1:                               ; @.str.1
	.asciz	"No frame descriptor found for the default format.\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_UVC_QUIRK_BUILTIN_ISIGHT,4,2   ; @UVC_QUIRK_BUILTIN_ISIGHT
	.comm	_uvc_video_decode_isight,4,2    ; @uvc_video_decode_isight
	.comm	_uvc_video_decode_isoc,4,2      ; @uvc_video_decode_isoc
	.comm	_uvc_video_decode_bulk,4,2      ; @uvc_video_decode_bulk
	.comm	_uvc_video_encode_bulk,4,2      ; @uvc_video_encode_bulk
l_.str.2:                               ; @.str.2
	.asciz	"Isochronous endpoints are not supported for video output devices.\n"

.subsections_via_symbols
