	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_query_v4l2_menu            ## -- Begin function uvc_query_v4l2_menu
	.p2align	4, 0x90
_uvc_query_v4l2_menu:                   ## @uvc_query_v4l2_menu
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %r12
	movq	16(%rsi), %r13
	xorl	%r15d, %r15d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r13, 16(%rbx)
	movq	%r12, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	movq	16(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_uvc_find_control
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.5:
	movq	(%rbx), %rcx
	cmpq	8(%rax), %rcx
	jae	LBB0_4
## %bb.6:
	movq	16(%rax), %rax
	movl	8(%rbx), %edi
	movl	(%rax,%rcx,4), %esi
	movl	$4, %edx
	callq	_strlcpy
	movl	%r12d, %r15d
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
LBB0_1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_V4L2_CTRL_TYPE_MENU,8,3        ## @V4L2_CTRL_TYPE_MENU
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_query_v4l2_menu            ; -- Begin function uvc_query_v4l2_menu
	.p2align	2
_uvc_query_v4l2_menu:                   ; @uvc_query_v4l2_menu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x1]
	ldr	x22, [x1, #16]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x22, [x21, #16]
	str	x20, [x21]
	mov	x0, x19
	bl	_mutex_lock_interruptible
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x1, [x21, #16]
	add	x2, sp, #8
	mov	x0, x19
	bl	_uvc_find_control
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh1:
	ldr	x10, [x10, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
	ldr	x9, [x21]
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.hs	LBB0_5
; %bb.4:
	ldr	x8, [x8, #16]
	ldr	w0, [x21, #8]
	ldr	w1, [x8, x9, lsl #2]
	mov	w2, #4
	bl	_strlcpy
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_V4L2_CTRL_TYPE_MENU,8,3        ; @V4L2_CTRL_TYPE_MENU
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
