	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_video_querycap
_vsp1_video_querycap:                   ## @vsp1_video_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_vsp1_video
	movq	%rax, %r14
	movq	_V4L2_CAP_DEVICE_CAPS@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_STREAMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_CAP_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_V4L2_CAP_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	8(%rbx), %edi
	movq	8(%r14), %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	4(%rbx), %ebx
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CAP_DEVICE_CAPS,4,2       ## @V4L2_CAP_DEVICE_CAPS
	.comm	_V4L2_CAP_STREAMING,4,2         ## @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_VIDEO_CAPTURE_MPLANE,4,2 ## @V4L2_CAP_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_CAP_VIDEO_OUTPUT_MPLANE,4,2 ## @V4L2_CAP_VIDEO_OUTPUT_MPLANE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vsp1"

L_.str.1:                               ## @.str.1
	.asciz	"platform:%s"

	.no_dead_strip	_vsp1_video_querycap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsp1_video_querycap
_vsp1_video_querycap:                   ; @vsp1_video_querycap
	.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	x19, x2
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_to_vsp1_video
	mov	x20, x0
Lloh0:
	adrp	x8, _V4L2_CAP_DEVICE_CAPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CAP_DEVICE_CAPS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _V4L2_CAP_STREAMING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CAP_STREAMING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _V4L2_CAP_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_CAP_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _V4L2_CAP_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_CAP_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w0, [x19, #12]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	w0, [x19, #8]
	ldr	x1, [x20, #8]
	mov	w2, #4
	bl	_strscpy
	ldr	w19, [x19, #4]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_dev_name
	mov	x3, x0
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #4
	bl	_snprintf
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CAP_DEVICE_CAPS,4,2       ; @V4L2_CAP_DEVICE_CAPS
	.comm	_V4L2_CAP_STREAMING,4,2         ; @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_VIDEO_CAPTURE_MPLANE,4,2 ; @V4L2_CAP_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_CAP_VIDEO_OUTPUT_MPLANE,4,2 ; @V4L2_CAP_VIDEO_OUTPUT_MPLANE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vsp1"

l_.str.1:                               ; @.str.1
	.asciz	"platform:%s"

	.no_dead_strip	_vsp1_video_querycap
.subsections_via_symbols
