	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_querymenu                 ## -- Begin function v4l2_querymenu
	.p2align	4, 0x90
_v4l2_querymenu:                        ## @v4l2_querymenu
	.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	%rsi, %rbx
	movslq	(%rsi), %r14
	movl	16(%rsi), %esi
	callq	_v4l2_ctrl_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	$0, 8(%rbx)
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.3:
	cmpl	8(%rax), %r14d
	jl	LBB0_1
## %bb.4:
	cmpl	12(%rax), %r14d
	jg	LBB0_1
## %bb.5:
	movl	16(%rax), %eax
	btl	%r14d, %eax
	jae	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	(%rcx,%r14,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.7:
	cmpb	$0, (%rsi)
	je	LBB0_1
## %bb.8:
	movl	4(%rbx), %edi
	movl	$4, %edx
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_querymenu                 ; -- Begin function v4l2_querymenu
	.p2align	2
_v4l2_querymenu:                        ; @v4l2_querymenu
	.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, x1
	ldrsw	x20, [x1]
	ldr	w1, [x1, #16]
	bl	_v4l2_ctrl_find
	cbz	x0, LBB0_5
; %bb.1:
	str	xzr, [x19, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w9, [x0, #8]
	cmp	w20, w9
	b.lt	LBB0_5
; %bb.3:
	ldr	w9, [x0, #12]
	cmp	w20, w9
	b.gt	LBB0_5
; %bb.4:
	ldr	w9, [x0, #16]
	lsr	w9, w9, w20
	tbz	w9, #0, LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x1, [x8, x20, lsl #3]
	cbz	x1, LBB0_5
; %bb.8:
	ldrb	w8, [x1]
	cbz	w8, LBB0_5
; %bb.9:
	ldr	w0, [x19, #4]
	mov	w2, #4
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
