	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_ctrl_get                   ## -- Begin function uvc_ctrl_get
	.p2align	4, 0x90
_uvc_ctrl_get:                          ## @uvc_ctrl_get
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	4(%rsi), %esi
	leaq	-56(%rbp), %rdx
	callq	_uvc_find_control
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	_UVC_CONTROL_GET_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_2
## %bb.3:
	cmpl	$0, (%rbx)
	jne	LBB0_7
## %bb.4:
	movq	(%r15), %r15
	movq	_UVC_GET_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	16(%rbx), %rax
	movl	(%rax), %r13d
	movl	(%r15), %r12d
	movl	12(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_UVC_CTRL_DATA_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_uvc_ctrl_data
	movl	8(%rbx), %ecx
	movl	%ecx, (%rsp)
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_uvc_query_ctrl
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	$1, (%rbx)
LBB0_7:
	movq	-56(%rbp), %r15
	movq	(%r15), %r13
	movq	_UVC_GET_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_UVC_CTRL_DATA_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_uvc_ctrl_data
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	*%r13
	movl	%eax, (%r14)
	movq	-56(%rbp), %rsi
	movq	8(%rsi), %rdx
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	cmpq	(%rdi), %rdx
	jne	LBB0_14
## %bb.8:
	movl	16(%rsi), %edx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.9:
	movq	24(%rsi), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rsi,%rcx,4)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	cmpl	%ecx, %edx
	jne	LBB0_10
	jmp	LBB0_13
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_14:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %ecx
	jmp	LBB0_14
LBB0_11:
	movl	%ecx, (%r14)
LBB0_13:
	xorl	%ecx, %ecx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_CONTROL_GET_CUR,4,2        ## @UVC_CONTROL_GET_CUR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UVC_GET_CUR,4,2                ## @UVC_GET_CUR
	.comm	_UVC_CTRL_DATA_CURRENT,4,2      ## @UVC_CTRL_DATA_CURRENT
	.comm	_V4L2_CTRL_TYPE_MENU,8,3        ## @V4L2_CTRL_TYPE_MENU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uvc_ctrl_get                   ; -- Begin function uvc_ctrl_get
	.p2align	2
_uvc_ctrl_get:                          ; @uvc_ctrl_get
	.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	x19, x1
	mov	x21, x0
	ldr	w1, [x1, #4]
	add	x2, sp, #8
	bl	_uvc_find_control
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _UVC_CONTROL_GET_CUR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UVC_CONTROL_GET_CUR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.2:
	ldr	w8, [x20]
Lloh3:
	adrp	x26, _UVC_GET_CUR@GOTPAGE
Lloh4:
	ldr	x26, [x26, _UVC_GET_CUR@GOTPAGEOFF]
Lloh5:
	adrp	x27, _UVC_CTRL_DATA_CURRENT@GOTPAGE
Lloh6:
	ldr	x27, [x27, _UVC_CTRL_DATA_CURRENT@GOTPAGEOFF]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	x21, [x21]
	ldr	w22, [x26]
	ldr	x8, [x20, #16]
	ldr	w23, [x8]
	ldr	w24, [x21]
	ldr	w25, [x20, #12]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_uvc_ctrl_data
	mov	x5, x0
	ldr	w6, [x20, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	bl	_uvc_query_ctrl
	tbnz	w0, #31, LBB0_12
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
LBB0_5:
	ldr	x21, [sp, #8]
	ldr	x23, [x21]
	ldr	w22, [x26]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_uvc_ctrl_data
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	blr	x23
	str	w0, [x19]
	ldr	x10, [sp, #8]
	ldr	x8, [x10, #8]
Lloh7:
	adrp	x9, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh8:
	ldr	x9, [x9, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	w8, [x10, #16]
	cbz	w8, LBB0_10
; %bb.7:
	mov	x9, #0
	ldr	x10, [x10, #24]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9, lsl #2]
	cmp	w11, w0
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #1
	cmp	w8, w9
	b.ne	LBB0_8
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
LBB0_13:
	mov	w0, #0
	str	w9, [x19]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_CONTROL_GET_CUR,4,2        ; @UVC_CONTROL_GET_CUR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UVC_GET_CUR,4,2                ; @UVC_GET_CUR
	.comm	_UVC_CTRL_DATA_CURRENT,4,2      ; @UVC_CTRL_DATA_CURRENT
	.comm	_V4L2_CTRL_TYPE_MENU,8,3        ; @V4L2_CTRL_TYPE_MENU
.subsections_via_symbols
