	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ctrl_populate_cache
_uvc_ctrl_populate_cache:               ## @uvc_ctrl_populate_cache
	.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, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %eax
	movq	_UVC_CTRL_FLAG_GET_DEF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	_UVC_GET_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r15), %rax
	movl	(%rax), %r13d
	movl	(%rbx), %r14d
	movl	12(%r15), %r12d
	movq	_UVC_CTRL_DATA_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_uvc_ctrl_data
	movl	8(%r15), %ecx
	movl	%ecx, (%rsp)
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_uvc_query_ctrl
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	movl	4(%r15), %eax
LBB0_3:
	movq	_UVC_CTRL_FLAG_GET_MIN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	_UVC_GET_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r15), %rax
	movl	(%rax), %r12d
	movl	(%rbx), %r13d
	movl	12(%r15), %r14d
	movq	_UVC_CTRL_DATA_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_uvc_ctrl_data
	movl	8(%r15), %ecx
	movl	%ecx, (%rsp)
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_uvc_query_ctrl
	testl	%eax, %eax
	js	LBB0_16
## %bb.5:
	movl	4(%r15), %eax
LBB0_6:
	movq	_UVC_CTRL_FLAG_GET_MAX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	_UVC_GET_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r15), %rax
	movl	(%rax), %r12d
	movl	(%rbx), %r13d
	movl	12(%r15), %r14d
	movq	_UVC_CTRL_DATA_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_uvc_ctrl_data
	movl	8(%r15), %ecx
	movl	%ecx, (%rsp)
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_uvc_query_ctrl
	testl	%eax, %eax
	js	LBB0_16
## %bb.8:
	movl	4(%r15), %eax
LBB0_9:
	movq	_UVC_CTRL_FLAG_GET_RES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	_UVC_GET_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r15), %rax
	movl	(%rax), %r12d
	movl	(%rbx), %r13d
	movl	12(%r15), %r14d
	movq	_UVC_CTRL_DATA_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_uvc_ctrl_data
	movl	8(%r15), %ecx
	movl	%ecx, (%rsp)
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_uvc_query_ctrl
	testl	%eax, %eax
	jns	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	movq	_UVC_CTRL_DATA_RES@GOTPCREL(%rip), %r14
	movq	16(%r15), %rdi
	callq	_UVC_ENTITY_TYPE
	movq	_UVC_VC_EXTENSION_UNIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_UVC_WARN_XU_GET_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_uvc_warn_once
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_uvc_ctrl_data
	movl	8(%r15), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_memset
LBB0_13:
	movl	$1, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_16:
	movl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_CTRL_FLAG_GET_DEF,4,2      ## @UVC_CTRL_FLAG_GET_DEF
	.comm	_UVC_GET_DEF,4,2                ## @UVC_GET_DEF
	.comm	_UVC_CTRL_DATA_DEF,4,2          ## @UVC_CTRL_DATA_DEF
	.comm	_UVC_CTRL_FLAG_GET_MIN,4,2      ## @UVC_CTRL_FLAG_GET_MIN
	.comm	_UVC_GET_MIN,4,2                ## @UVC_GET_MIN
	.comm	_UVC_CTRL_DATA_MIN,4,2          ## @UVC_CTRL_DATA_MIN
	.comm	_UVC_CTRL_FLAG_GET_MAX,4,2      ## @UVC_CTRL_FLAG_GET_MAX
	.comm	_UVC_GET_MAX,4,2                ## @UVC_GET_MAX
	.comm	_UVC_CTRL_DATA_MAX,4,2          ## @UVC_CTRL_DATA_MAX
	.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
	.comm	_UVC_VC_EXTENSION_UNIT,8,3      ## @UVC_VC_EXTENSION_UNIT
	.comm	_UVC_WARN_XU_GET_RES,4,2        ## @UVC_WARN_XU_GET_RES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UVC non compliance - GET_RES failed on an XU control. Enabling workaround.\n"

	.no_dead_strip	_uvc_ctrl_populate_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_ctrl_populate_cache
_uvc_ctrl_populate_cache:               ; @uvc_ctrl_populate_cache
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #4]
Lloh0:
	adrp	x9, _UVC_CTRL_FLAG_GET_DEF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UVC_CTRL_FLAG_GET_DEF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x21, [x20]
Lloh3:
	adrp	x8, _UVC_GET_DEF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UVC_GET_DEF@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	x8, [x19, #16]
	ldr	w23, [x8]
	ldr	w24, [x21]
	ldr	w25, [x19, #12]
Lloh6:
	adrp	x8, _UVC_CTRL_DATA_DEF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UVC_CTRL_DATA_DEF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_uvc_ctrl_data
	mov	x5, x0
	ldr	w6, [x19, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	bl	_uvc_query_ctrl
	tbnz	w0, #31, LBB0_14
; %bb.2:
	ldr	w8, [x19, #4]
LBB0_3:
Lloh9:
	adrp	x9, _UVC_CTRL_FLAG_GET_MIN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UVC_CTRL_FLAG_GET_MIN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	x21, [x20]
Lloh12:
	adrp	x8, _UVC_GET_MIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UVC_GET_MIN@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	ldr	x8, [x19, #16]
	ldr	w23, [x8]
	ldr	w24, [x21]
	ldr	w25, [x19, #12]
Lloh15:
	adrp	x8, _UVC_CTRL_DATA_MIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UVC_CTRL_DATA_MIN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_uvc_ctrl_data
	mov	x5, x0
	ldr	w6, [x19, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	bl	_uvc_query_ctrl
	tbnz	w0, #31, LBB0_14
; %bb.5:
	ldr	w8, [x19, #4]
LBB0_6:
Lloh18:
	adrp	x9, _UVC_CTRL_FLAG_GET_MAX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _UVC_CTRL_FLAG_GET_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	ldr	x21, [x20]
Lloh21:
	adrp	x8, _UVC_GET_MAX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _UVC_GET_MAX@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
	ldr	x8, [x19, #16]
	ldr	w23, [x8]
	ldr	w24, [x21]
	ldr	w25, [x19, #12]
Lloh24:
	adrp	x8, _UVC_CTRL_DATA_MAX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _UVC_CTRL_DATA_MAX@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_uvc_ctrl_data
	mov	x5, x0
	ldr	w6, [x19, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	bl	_uvc_query_ctrl
	tbnz	w0, #31, LBB0_14
; %bb.8:
	ldr	w8, [x19, #4]
LBB0_9:
Lloh27:
	adrp	x9, _UVC_CTRL_FLAG_GET_RES@GOTPAGE
Lloh28:
	ldr	x9, [x9, _UVC_CTRL_FLAG_GET_RES@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:
	ldr	x21, [x20]
Lloh30:
	adrp	x8, _UVC_GET_RES@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UVC_GET_RES@GOTPAGEOFF]
Lloh32:
	ldr	w22, [x8]
	ldr	x8, [x19, #16]
	ldr	w23, [x8]
	ldr	w24, [x21]
	ldr	w25, [x19, #12]
Lloh33:
	adrp	x26, _UVC_CTRL_DATA_RES@GOTPAGE
Lloh34:
	ldr	x26, [x26, _UVC_CTRL_DATA_RES@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_uvc_ctrl_data
	mov	x5, x0
	ldr	w6, [x19, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	bl	_uvc_query_ctrl
	tbz	w0, #31, LBB0_13
; %bb.11:
	mov	x21, x0
	ldr	x0, [x19, #16]
	bl	_UVC_ENTITY_TYPE
Lloh35:
	adrp	x8, _UVC_VC_EXTENSION_UNIT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _UVC_VC_EXTENSION_UNIT@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.12:
	ldr	x0, [x20]
Lloh38:
	adrp	x8, _UVC_WARN_XU_GET_RES@GOTPAGE
Lloh39:
	ldr	x8, [x8, _UVC_WARN_XU_GET_RES@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x2, l_.str@PAGE
Lloh42:
	add	x2, x2, l_.str@PAGEOFF
	bl	_uvc_warn_once
	ldr	w1, [x26]
	mov	x0, x19
	bl	_uvc_ctrl_data
	ldr	w2, [x19, #8]
	mov	w1, #0
	bl	_memset
LBB0_13:
	mov	w21, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_15
LBB0_14:
	mov	x21, x0
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_CTRL_FLAG_GET_DEF,4,2      ; @UVC_CTRL_FLAG_GET_DEF
	.comm	_UVC_GET_DEF,4,2                ; @UVC_GET_DEF
	.comm	_UVC_CTRL_DATA_DEF,4,2          ; @UVC_CTRL_DATA_DEF
	.comm	_UVC_CTRL_FLAG_GET_MIN,4,2      ; @UVC_CTRL_FLAG_GET_MIN
	.comm	_UVC_GET_MIN,4,2                ; @UVC_GET_MIN
	.comm	_UVC_CTRL_DATA_MIN,4,2          ; @UVC_CTRL_DATA_MIN
	.comm	_UVC_CTRL_FLAG_GET_MAX,4,2      ; @UVC_CTRL_FLAG_GET_MAX
	.comm	_UVC_GET_MAX,4,2                ; @UVC_GET_MAX
	.comm	_UVC_CTRL_DATA_MAX,4,2          ; @UVC_CTRL_DATA_MAX
	.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
	.comm	_UVC_VC_EXTENSION_UNIT,8,3      ; @UVC_VC_EXTENSION_UNIT
	.comm	_UVC_WARN_XU_GET_RES,4,2        ; @UVC_WARN_XU_GET_RES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UVC non compliance - GET_RES failed on an XU control. Enabling workaround.\n"

	.no_dead_strip	_uvc_ctrl_populate_cache
.subsections_via_symbols
