	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_querycap
_vidioc_querycap:                       ## @vidioc_querycap
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rsi, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	cmpl	$0, 24(%r12)
	je	LBB0_3
## %bb.4:
	movq	24(%r14), %rdi
	movq	16(%r12), %rax
	movq	(%rax), %rsi
	movl	$8, %edx
	callq	_strncpy
	movq	8(%r12), %rax
	movq	8(%rax), %rsi
	movq	16(%r14), %r15
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_strncpy
	jmp	LBB0_7
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	$8, %esi
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_snprintf
LBB0_7:
	movq	8(%r12), %rdi
	movq	8(%r14), %rsi
	movl	$8, %edx
	callq	_usb_make_path
	movq	_DRIVER_VERSION_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_V4L2_CAP_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_STREAMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_CAP_READWRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB Camera (%04x:%04x)"

	.comm	_DRIVER_VERSION_NUMBER,4,2      ## @DRIVER_VERSION_NUMBER
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ## @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_STREAMING,4,2         ## @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_READWRITE,4,2         ## @V4L2_CAP_READWRITE
	.no_dead_strip	_vidioc_querycap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_querycap
_vidioc_querycap:                       ; @vidioc_querycap
	.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	x20, x2
	mov	x19, x1
	mov	x0, x1
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_2:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x0, [x20, #24]
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	mov	w2, #8
	bl	_strncpy
	ldr	x8, [x19, #8]
	ldr	x1, [x8, #8]
	ldr	x21, [x20, #16]
	cbz	x1, LBB0_6
; %bb.4:
	mov	x0, x21
	mov	w2, #8
	bl	_strncpy
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_6:
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	mov	x4, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #8
	mov	x3, x22
	bl	_snprintf
LBB0_7:
	ldr	x0, [x19, #8]
	ldr	x1, [x20, #8]
	mov	w2, #8
	bl	_usb_make_path
	mov	w21, #0
Lloh8:
	adrp	x8, _DRIVER_VERSION_NUMBER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRIVER_VERSION_NUMBER@GOTPAGEOFF]
Lloh10:
	adrp	x9, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _V4L2_CAP_STREAMING@GOTPAGE
Lloh15:
	ldr	x10, [x10, _V4L2_CAP_STREAMING@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh17:
	adrp	x10, _V4L2_CAP_READWRITE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _V4L2_CAP_READWRITE@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w9, w10
	stp	w9, w8, [x20]
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB Camera (%04x:%04x)"

	.comm	_DRIVER_VERSION_NUMBER,4,2      ; @DRIVER_VERSION_NUMBER
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ; @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_STREAMING,4,2         ; @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_READWRITE,4,2         ; @V4L2_CAP_READWRITE
	.no_dead_strip	_vidioc_querycap
.subsections_via_symbols
