	.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
	movq	_UVC_DEV_DISCONNECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	8(%rax), %edi
	callq	_usb_autopm_get_interface
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	8(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	addq	$4, %rdi
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.8:
	movq	8(%r12), %rdi
	callq	_uvc_status_start
	testl	%eax, %eax
	js	LBB0_9
LBB0_10:
	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_11
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_6:
	movl	8(%rdi), %edi
	callq	_usb_autopm_put_interface
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movl	%eax, %ebx
	movq	8(%r12), %rax
	movl	8(%rax), %edi
	callq	_usb_autopm_put_interface
	movq	8(%r12), %rdi
	addq	$4, %rdi
	callq	_atomic_dec
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_11
	.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	_UVC_DEV_DISCONNECTED,4,2       ## @UVC_DEV_DISCONNECTED
	.comm	_ENODEV,4,2                     ## @ENODEV
	.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
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
Lloh5:
	adrp	x10, _UVC_DEV_DISCONNECTED@GOTPAGE
Lloh6:
	ldr	x10, [x10, _UVC_DEV_DISCONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	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:
	mov	x20, x0
	ldr	w0, [x8, #8]
	bl	_usb_autopm_get_interface
	tbnz	w0, #31, LBB0_9
; %bb.5:
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	ldr	x8, [x20, #8]
	cbz	x0, LBB0_10
; %bb.6:
	mov	x22, x0
	add	x0, x8, #4
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.7:
	ldr	x0, [x20, #8]
	bl	_uvc_status_start
	tbnz	w0, #31, LBB0_11
LBB0_8:
	mov	w21, #0
	ldr	w8, [x20]
	str	w8, [x22, #16]
	str	x20, [x22, #8]
Lloh13:
	adrp	x8, _UVC_HANDLE_PASSIVE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UVC_HANDLE_PASSIVE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x22]
	str	x22, [x19]
	b	LBB0_3
LBB0_9:
	mov	x21, x0
	b	LBB0_3
LBB0_10:
	ldr	w0, [x8, #8]
	bl	_usb_autopm_put_interface
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	bl	_usb_autopm_put_interface
	ldr	x8, [x20, #8]
	add	x0, x8, #4
	bl	_atomic_dec
	mov	x0, x22
	bl	_kfree
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.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	_UVC_DEV_DISCONNECTED,4,2       ; @UVC_DEV_DISCONNECTED
	.comm	_ENODEV,4,2                     ; @ENODEV
	.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
