	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_querymenu
_vidioc_querymenu:                      ## @vidioc_querymenu
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdx), %rax
	movq	_V4L2_CID_PRIVATE_COLORFILTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movslq	8(%rdx), %rcx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	movl	$0, %edi
	cmovgl	%ecx, %edi
	cmpl	$2, %edi
	movl	$2, %esi
	cmovbl	%edi, %esi
	cmpl	$1, %esi
	ja	LBB0_3
## %bb.2:
	movl	%esi, %edi
	leaq	_vidioc_querymenu.colorfilter(%rip), %rsi
	movq	(%rsi,%rdi,8), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_3
## %bb.5:
	movl	12(%rdx), %edi
	movq	(%rsi,%rcx,8), %rsi
	movl	$4, %edx
	callq	_strlcpy
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	%rdx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	popq	%rbp
	jmp	_v4l2_ctrl_query_menu           ## TAILCALL
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @vidioc_querymenu.colorfilter
_vidioc_querymenu.colorfilter:
	.quad	L_.str
	.quad	L_.str.1
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Off"

L_.str.1:                               ## @.str.1
	.asciz	"On"

	.comm	_V4L2_CID_PRIVATE_COLORFILTER,8,3 ## @V4L2_CID_PRIVATE_COLORFILTER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_querymenu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_querymenu
_vidioc_querymenu:                      ; @vidioc_querymenu
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _V4L2_CID_PRIVATE_COLORFILTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CID_PRIVATE_COLORFILTER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldrsw	x8, [x2, #8]
	cmp	w8, #0
	csel	w9, w8, wzr, gt
	mov	w10, #2
	cmp	w9, #2
	csel	w10, w9, w10, lo
	cmp	w10, #1
	b.hi	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _vidioc_querymenu.colorfilter@PAGE
Lloh4:
	add	x9, x9, _vidioc_querymenu.colorfilter@PAGEOFF
	ldr	x10, [x9, w10, uxtw #3]
	ldrb	w10, [x10]
	cbz	w10, LBB0_5
; %bb.3:
	ldr	w0, [x2, #12]
	ldr	x1, [x9, x8, lsl #3]
	mov	w2, #4
	bl	_strlcpy
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x2
	mov	x1, #0
	mov	x2, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_v4l2_ctrl_query_menu
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @vidioc_querymenu.colorfilter
_vidioc_querymenu.colorfilter:
	.quad	l_.str
	.quad	l_.str.1
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Off"

l_.str.1:                               ; @.str.1
	.asciz	"On"

	.comm	_V4L2_CID_PRIVATE_COLORFILTER,8,3 ; @V4L2_CID_PRIVATE_COLORFILTER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_querymenu
.subsections_via_symbols
