	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_v4l2_open
_uvc_v4l2_open:                         ## @uvc_v4l2_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_UVC_TRACE_CALLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_uvc_trace
	movq	%r14, %rdi
	callq	_video_drvdata
	movq	%rax, %r12
	movq	8(%rax), %rax
	movl	12(%rax), %edi
	callq	_usb_autopm_get_interface
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	8(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	addq	$8, %rdi
	callq	_mutex_lock
	movq	8(%r12), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movl	(%rbx), %esi
	callq	_uvc_status_start
	movq	8(%r12), %rdi
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movq	(%rdi), %rax
LBB0_7:
	incq	%rax
	movq	%rax, (%rdi)
	addq	$8, %rdi
	callq	_mutex_unlock
	movq	%r15, %rbx
	addq	$20, %rbx
	movq	%r12, %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_v4l2_fh_init
	movq	%rbx, %rdi
	callq	_v4l2_fh_add
	movl	(%r12), %eax
	movl	%eax, 16(%r15)
	movq	%r12, 8(%r15)
	movq	_UVC_HANDLE_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_3:
	movl	12(%rdi), %edi
	callq	_usb_autopm_put_interface
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_9:
	movl	%eax, %ebx
	addq	$8, %rdi
	callq	_mutex_unlock
	movq	8(%r12), %rax
	movl	12(%rax), %edi
	callq	_usb_autopm_put_interface
	movq	%r15, %rdi
	callq	_kfree
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_TRACE_CALLS,4,2            ## @UVC_TRACE_CALLS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uvc_v4l2_open\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UVC_HANDLE_PASSIVE,4,2         ## @UVC_HANDLE_PASSIVE
	.no_dead_strip	_uvc_v4l2_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_v4l2_open
_uvc_v4l2_open:                         ; @uvc_v4l2_open
	.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, x0
Lloh0:
	adrp	x8, _UVC_TRACE_CALLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UVC_TRACE_CALLS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_uvc_trace
	mov	x0, x19
	bl	_video_drvdata
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #12]
	bl	_usb_autopm_get_interface
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh5:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #24
	bl	_kzalloc
	ldr	x8, [x20, #8]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	add	x0, x8, #8
	bl	_mutex_lock
	ldr	x0, [x20, #8]
	ldr	x8, [x0]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	w1, [x22]
	bl	_uvc_status_start
	mov	x22, x0
	ldr	x0, [x20, #8]
	tbnz	w22, #31, LBB0_8
; %bb.4:
	ldr	x8, [x0]
LBB0_5:
	add	x8, x8, #1
	str	x8, [x0], #8
	bl	_mutex_unlock
	add	x22, x21, #20
	add	x1, x20, #4
	mov	x0, x22
	bl	_v4l2_fh_init
	mov	x0, x22
	bl	_v4l2_fh_add
	mov	w22, #0
	ldr	w8, [x20]
	str	w8, [x21, #16]
	str	x20, [x21, #8]
Lloh7:
	adrp	x8, _UVC_HANDLE_PASSIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UVC_HANDLE_PASSIVE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x21]
	str	x21, [x19]
	b	LBB0_9
LBB0_6:
	mov	x22, x0
	b	LBB0_9
LBB0_7:
	ldr	w0, [x8, #12]
	bl	_usb_autopm_put_interface
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_8:
	add	x0, x0, #8
	bl	_mutex_unlock
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #12]
	bl	_usb_autopm_put_interface
	mov	x0, x21
	bl	_kfree
LBB0_9:
	mov	x0, x22
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_TRACE_CALLS,4,2            ; @UVC_TRACE_CALLS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uvc_v4l2_open\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UVC_HANDLE_PASSIVE,4,2         ; @UVC_HANDLE_PASSIVE
	.no_dead_strip	_uvc_v4l2_open
.subsections_via_symbols
