	.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
	movq	(%rsi), %r14
	movl	24(%rsi), %esi
	callq	_v4l2_ctrl_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	$0, 16(%rbx)
	movl	(%rax), %ecx
	cmpl	$129, %ecx
	je	LBB0_5
## %bb.3:
	cmpl	$128, %ecx
	jne	LBB0_1
## %bb.4:
	cmpq	$0, 8(%rax)
	jne	LBB0_6
	jmp	LBB0_1
LBB0_5:
	cmpq	$0, 40(%rax)
	je	LBB0_1
LBB0_6:
	cmpq	16(%rax), %r14
	jb	LBB0_1
## %bb.7:
	cmpq	24(%rax), %r14
	ja	LBB0_1
## %bb.8:
	movq	32(%rax), %rdx
	btq	%r14, %rdx
	jae	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	cmpl	$128, %ecx
	jne	LBB0_13
## %bb.10:
	movq	8(%rax), %rax
	movq	(%rax,%r14,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.11:
	cmpb	$0, (%rsi)
	je	LBB0_1
## %bb.12:
	movl	12(%rbx), %edi
	movl	$4, %edx
	callq	_strscpy
	jmp	LBB0_14
LBB0_13:
	movq	40(%rax), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, 8(%rbx)
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
	.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
	ldr	x20, [x1]
	ldr	w1, [x1, #24]
	bl	_v4l2_ctrl_find
	cbz	x0, LBB0_8
; %bb.1:
	str	xzr, [x19, #16]
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.3:
	ldr	x9, [x0, #8]
	cbnz	x9, LBB0_5
	b	LBB0_8
LBB0_4:
	ldr	x9, [x0, #40]
	cbz	x9, LBB0_8
LBB0_5:
	ldr	x9, [x0, #16]
	cmp	x20, x9
	b.lo	LBB0_8
; %bb.6:
	ldr	x9, [x0, #24]
	cmp	x20, x9
	b.hi	LBB0_8
; %bb.7:
	ldr	x9, [x0, #32]
	lsr	x9, x9, x20
	tbz	w9, #0, LBB0_10
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_9:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.11:
	ldr	x8, [x0, #8]
	ldr	x1, [x8, x20, lsl #3]
	cbz	x1, LBB0_8
; %bb.12:
	ldrb	w8, [x1]
	cbz	w8, LBB0_8
; %bb.13:
	ldr	w0, [x19, #12]
	mov	w2, #4
	bl	_strscpy
	mov	w8, #0
	b	LBB0_9
LBB0_14:
	mov	w8, #0
	ldr	x9, [x0, #40]
	ldr	w9, [x9, x20, lsl #2]
	str	w9, [x19, #8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
