	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movq	16(%rsi), %rbx
	xorl	%r12d, %r12d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%rbx, 16(%r13)
	movq	%r15, (%r13)
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	16(%r13), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_uvc_find_control
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r12
	movq	-56(%rbp), %rbx
	movq	(%rbx), %rax
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	(%r13), %rdx
	cmpq	8(%rbx), %rdx
	jae	LBB0_4
## %bb.6:
	movq	16(%rbx), %rax
	movq	32(%rbx), %rsi
	movq	_UVC_CTRL_DATA_TYPE_BITMASK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.7:
	movq	_UVC_CTRL_FLAG_GET_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_12
## %bb.8:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	jne	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_uvc_ctrl_populate_cache
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	movq	-56(%rbp), %rbx
LBB0_11:
	movq	24(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_UVC_GET_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_UVC_CTRL_DATA_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_uvc_ctrl_data
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, (%rsi,%rdx,8)
	je	LBB0_4
LBB0_12:
	movl	8(%r13), %edi
	movl	4(%rsi,%rdx,8), %esi
	movl	$4, %edx
	callq	_strscpy
	jmp	LBB0_13
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_14
LBB0_1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$40, %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
	.comm	_UVC_CTRL_DATA_TYPE_BITMASK,8,3 ## @UVC_CTRL_DATA_TYPE_BITMASK
	.comm	_UVC_CTRL_FLAG_GET_RES,4,2      ## @UVC_CTRL_FLAG_GET_RES
	.comm	_UVC_GET_RES,4,2                ## @UVC_GET_RES
	.comm	_UVC_CTRL_DATA_RES,4,2          ## @UVC_CTRL_DATA_RES
.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	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_13
; %bb.1:
	mov	x20, x0
	ldr	x1, [x21, #16]
	add	x2, sp, #8
	mov	x0, x19
	bl	_uvc_find_control
	cbz	x0, LBB0_11
; %bb.2:
	ldr	x23, [sp, #8]
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
	ldr	x25, [x21]
	ldr	x8, [x23, #8]
	cmp	x25, x8
	b.hs	LBB0_11
; %bb.4:
	ldr	x26, [x23, #32]
	ldr	x8, [x23, #16]
Lloh3:
	adrp	x9, _UVC_CTRL_DATA_TYPE_BITMASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UVC_CTRL_DATA_TYPE_BITMASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	mov	x22, x0
	ldr	w8, [x0, #4]
Lloh6:
	adrp	x9, _UVC_CTRL_FLAG_GET_RES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UVC_CTRL_FLAG_GET_RES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.6:
	ldr	w8, [x22]
	cbnz	w8, LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x22
	bl	_uvc_ctrl_populate_cache
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.8:
	ldr	x23, [sp, #8]
LBB0_9:
	ldr	x27, [x23, #24]
Lloh9:
	adrp	x8, _UVC_GET_RES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UVC_GET_RES@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
Lloh12:
	adrp	x8, _UVC_CTRL_DATA_RES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UVC_CTRL_DATA_RES@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_uvc_ctrl_data
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	blr	x27
	lsl	x8, x25, #3
	ldr	w8, [x26, x8]
	tst	w8, w0
	b.eq	LBB0_11
LBB0_10:
	ldr	w0, [x21, #8]
	add	x8, x26, x25, lsl #3
	ldr	w1, [x8, #4]
	mov	w2, #4
	bl	_strscpy
	b	LBB0_12
LBB0_11:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_14
LBB0_13:
Lloh18:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.comm	_UVC_CTRL_DATA_TYPE_BITMASK,8,3 ; @UVC_CTRL_DATA_TYPE_BITMASK
	.comm	_UVC_CTRL_FLAG_GET_RES,4,2      ; @UVC_CTRL_FLAG_GET_RES
	.comm	_UVC_GET_RES,4,2                ; @UVC_GET_RES
	.comm	_UVC_CTRL_DATA_RES,4,2          ; @UVC_CTRL_DATA_RES
.subsections_via_symbols
