	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_get_video_ctrl
_uvc_get_video_ctrl:                    ## @uvc_get_video_ctrl
	.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	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	callq	_uvc_video_ctrl_size
	movl	%eax, %r12d
	movq	(%r13), %rax
	movq	_UVC_QUIRK_PROBE_DEF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_UVC_GET_DEF@GOTPCREL(%rip), %r15
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.1:
	cmpq	%rbx, (%r15)
	jne	LBB0_4
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%r13), %rdi
	movl	8(%r13), %ecx
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.8:
	movq	_UVC_VS_COMMIT_CONTROL@GOTPCREL(%rip), %rdx
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_26
LBB0_7:
	movq	_UVC_VS_PROBE_CONTROL@GOTPCREL(%rip), %rdx
LBB0_9:
	movl	(%rdx), %r8d
	movq	_uvc_timeout_param@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r9
	pushq	%r10
	pushq	%r12
	callq	___uvc_query_ctrl
	addq	$16, %rsp
	movq	_UVC_GET_MIN@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_UVC_GET_MAX@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_13
LBB0_11:
	cmpl	$2, %eax
	jne	LBB0_13
## %bb.12:
	movq	(%r13), %rdi
	movq	_UVC_WARN_MINMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_uvc_warn_once
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_le16_to_cpup
	movq	%r14, %rdi
	movq	%rax, 72(%r15)
	jmp	LBB0_25
LBB0_13:
	cmpl	$1, %r14d
	jne	LBB0_18
## %bb.14:
	cmpq	%rbx, (%r15)
	jne	LBB0_18
## %bb.15:
	cmpl	%r12d, %eax
	je	LBB0_18
## %bb.16:
	movq	(%r13), %rdi
	movq	_UVC_WARN_PROBE_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_uvc_warn_once
	jmp	LBB0_17
LBB0_18:
	cmpl	%r12d, %eax
	jne	LBB0_19
## %bb.20:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_le16_to_cpup
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 120(%rbx)
	movq	16(%r14), %rax
	movq	%rax, 112(%rbx)
	movq	24(%r14), %rax
	movq	%rax, 104(%rbx)
	leaq	32(%r14), %rdi
	callq	_le32_to_cpup
	movl	%eax, 96(%rbx)
	leaq	64(%r14), %rdi
	callq	_le16_to_cpup
	movq	%rax, 88(%rbx)
	leaq	80(%r14), %rdi
	callq	_le16_to_cpup
	movq	%rax, 80(%rbx)
	leaq	96(%r14), %rdi
	callq	_le16_to_cpup
	movq	%rax, 72(%rbx)
	leaq	112(%r14), %rdi
	callq	_le16_to_cpup
	movq	%rax, 64(%rbx)
	leaq	128(%r14), %rdi
	callq	_le16_to_cpup
	movq	%rax, 56(%rbx)
	leaq	144(%r14), %rdi
	callq	_get_unaligned_le32
	movq	%rax, 48(%rbx)
	leaq	176(%r14), %rdi
	callq	_get_unaligned_le32
	movq	%rax, 40(%rbx)
	cmpl	$34, %r12d
	jl	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	addq	$208, %rdi
	callq	_get_unaligned_le32
	movq	240(%r14), %rcx
	movq	%rcx, 24(%rbx)
	movq	248(%r14), %rcx
	movq	%rcx, 16(%rbx)
	movq	256(%r14), %rcx
	movq	%rcx, 8(%rbx)
	movq	264(%r14), %rcx
	jmp	LBB0_23
LBB0_19:
	testl	%r14d, %r14d
	movq	_KERN_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rdx, %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	movl	%eax, %r8d
	movl	%r12d, %r9d
	callq	_uvc_printk
LBB0_17:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_22:
	movq	(%r13), %rax
	movq	8(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	xorl	%ecx, %ecx
LBB0_23:
	movq	%rax, 32(%rbx)
	movq	%rcx, (%rbx)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_uvc_fixup_video_ctrl
	xorl	%ebx, %ebx
LBB0_24:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_25:
	callq	_kfree
LBB0_26:
	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_QUIRK_PROBE_DEF,4,2        ## @UVC_QUIRK_PROBE_DEF
	.comm	_UVC_GET_DEF,8,3                ## @UVC_GET_DEF
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UVC_VS_PROBE_CONTROL,4,2       ## @UVC_VS_PROBE_CONTROL
	.comm	_UVC_VS_COMMIT_CONTROL,4,2      ## @UVC_VS_COMMIT_CONTROL
	.comm	_uvc_timeout_param,4,2          ## @uvc_timeout_param
	.comm	_UVC_GET_MIN,8,3                ## @UVC_GET_MIN
	.comm	_UVC_GET_MAX,8,3                ## @UVC_GET_MAX
	.comm	_UVC_WARN_MINMAX,4,2            ## @UVC_WARN_MINMAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UVC non compliance - GET_MIN/MAX(PROBE) incorrectly supported. Enabling workaround.\n"

	.comm	_UVC_WARN_PROBE_DEF,4,2         ## @UVC_WARN_PROBE_DEF
L_.str.1:                               ## @.str.1
	.asciz	"UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.\n"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.2:                               ## @.str.2
	.asciz	"Failed to query (%u) UVC %s control : %d (exp. %u).\n"

L_.str.3:                               ## @.str.3
	.asciz	"probe"

L_.str.4:                               ## @.str.4
	.asciz	"commit"

	.no_dead_strip	_uvc_get_video_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_get_video_ctrl
_uvc_get_video_ctrl:                    ; @uvc_get_video_ctrl
	.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	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	bl	_uvc_video_ctrl_size
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _UVC_QUIRK_PROBE_DEF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UVC_QUIRK_PROBE_DEF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x25, _UVC_GET_DEF@GOTPAGE
Lloh4:
	ldr	x25, [x25, _UVC_GET_DEF@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	w8, #0
	ccmp	x9, x23, #0, ne
	b.eq	LBB0_5
; %bb.1:
	mov	x22, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	x0, [x21]
	ldr	w3, [x21, #8]
Lloh8:
	adrp	x8, _UVC_VS_PROBE_CONTROL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UVC_VS_PROBE_CONTROL@GOTPAGEOFF]
Lloh10:
	adrp	x9, _UVC_VS_COMMIT_CONTROL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UVC_VS_COMMIT_CONTROL@GOTPAGEOFF]
	cmp	w24, #0
	csel	x8, x9, x8, eq
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _uvc_timeout_param@GOTPAGE
Lloh13:
	ldr	x8, [x8, _uvc_timeout_param@GOTPAGEOFF]
Lloh14:
	ldr	w7, [x8]
	mov	x1, x23
	mov	w2, #0
	mov	x5, x19
	mov	x6, x22
	bl	___uvc_query_ctrl
	mov	x4, x0
Lloh15:
	adrp	x8, _UVC_GET_MIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UVC_GET_MIN@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_8
; %bb.3:
	cmp	w4, #2
	b.ne	LBB0_9
LBB0_4:
	ldr	x0, [x21]
Lloh18:
	adrp	x8, _UVC_WARN_MINMAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UVC_WARN_MINMAX@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	bl	_uvc_warn_once
	mov	x0, x20
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	mov	x0, x19
	bl	_le16_to_cpup
	mov	w21, #0
	str	x0, [x20, #72]
	b	LBB0_20
LBB0_5:
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_21
LBB0_8:
Lloh27:
	adrp	x8, _UVC_GET_MAX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _UVC_GET_MAX@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x8, x23
	ccmp	w4, #2, #0, eq
	b.eq	LBB0_4
LBB0_9:
	cmp	w24, #1
	b.ne	LBB0_13
; %bb.10:
	ldr	x8, [x25]
	cmp	x8, x23
	b.ne	LBB0_13
; %bb.11:
	cmp	w4, w22
	b.eq	LBB0_13
; %bb.12:
	ldr	x0, [x21]
Lloh30:
	adrp	x8, _UVC_WARN_PROBE_DEF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UVC_WARN_PROBE_DEF@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str.1@PAGE
Lloh34:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_uvc_warn_once
	b	LBB0_17
LBB0_13:
	cmp	w4, w22
	b.ne	LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_le16_to_cpup
	ldr	x8, [x19, #16]
	stp	x8, x0, [x20, #112]
	ldr	x8, [x19, #24]
	str	x8, [x20, #104]
	add	x0, x19, #32
	bl	_le32_to_cpup
	str	w0, [x20, #96]
	add	x0, x19, #64
	bl	_le16_to_cpup
	str	x0, [x20, #88]
	add	x0, x19, #80
	bl	_le16_to_cpup
	str	x0, [x20, #80]
	add	x0, x19, #96
	bl	_le16_to_cpup
	str	x0, [x20, #72]
	add	x0, x19, #112
	bl	_le16_to_cpup
	str	x0, [x20, #64]
	add	x0, x19, #128
	bl	_le16_to_cpup
	str	x0, [x20, #56]
	add	x0, x19, #144
	bl	_get_unaligned_le32
	str	x0, [x20, #48]
	add	x0, x19, #176
	bl	_get_unaligned_le32
	str	x0, [x20, #40]
	cmp	w22, #34
	b.lt	LBB0_18
; %bb.15:
	add	x0, x19, #208
	bl	_get_unaligned_le32
	ldr	x8, [x19, #240]
	str	x8, [x20, #24]
	ldr	x8, [x19, #248]
	str	x8, [x20, #16]
	ldr	x8, [x19, #256]
	str	x8, [x20, #8]
	ldr	x8, [x19, #264]
	b	LBB0_19
LBB0_16:
Lloh35:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x8, l_.str.3@PAGE
Lloh39:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh40:
	adrp	x9, l_.str.4@PAGE
Lloh41:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w24, #0
	csel	x3, x9, x8, eq
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	mov	x5, x22
	bl	_uvc_printk
LBB0_17:
Lloh44:
	adrp	x8, _EIO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_20
LBB0_18:
	mov	x8, #0
	ldr	x9, [x21]
	ldr	x0, [x9, #8]
	stp	xzr, xzr, [x20, #8]
	str	xzr, [x20, #24]
LBB0_19:
	str	x0, [x20, #32]
	str	x8, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_uvc_fixup_video_ctrl
	mov	w21, #0
LBB0_20:
	mov	x0, x19
	bl	_kfree
LBB0_21:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_QUIRK_PROBE_DEF,4,2        ; @UVC_QUIRK_PROBE_DEF
	.comm	_UVC_GET_DEF,8,3                ; @UVC_GET_DEF
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UVC_VS_PROBE_CONTROL,4,2       ; @UVC_VS_PROBE_CONTROL
	.comm	_UVC_VS_COMMIT_CONTROL,4,2      ; @UVC_VS_COMMIT_CONTROL
	.comm	_uvc_timeout_param,4,2          ; @uvc_timeout_param
	.comm	_UVC_GET_MIN,8,3                ; @UVC_GET_MIN
	.comm	_UVC_GET_MAX,8,3                ; @UVC_GET_MAX
	.comm	_UVC_WARN_MINMAX,4,2            ; @UVC_WARN_MINMAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UVC non compliance - GET_MIN/MAX(PROBE) incorrectly supported. Enabling workaround.\n"

	.comm	_UVC_WARN_PROBE_DEF,4,2         ; @UVC_WARN_PROBE_DEF
l_.str.1:                               ; @.str.1
	.asciz	"UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.\n"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.2:                               ; @.str.2
	.asciz	"Failed to query (%u) UVC %s control : %d (exp. %u).\n"

l_.str.3:                               ; @.str.3
	.asciz	"probe"

l_.str.4:                               ; @.str.4
	.asciz	"commit"

	.no_dead_strip	_uvc_get_video_ctrl
.subsections_via_symbols
