	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_parse_vendor_control
_uvc_parse_vendor_control:              ## @uvc_parse_vendor_control
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r13
	movl	4(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$1133, %ecx                     ## imm = 0x46D
	jne	LBB0_15
## %bb.1:
	cmpb	$65, 1(%r15)
	jne	LBB0_15
## %bb.2:
	cmpb	$1, 2(%r15)
	jne	LBB0_15
## %bb.3:
	xorl	%r8d, %r8d
	movl	$0, %edx
	cmpl	$22, %r12d
	jl	LBB0_5
## %bb.4:
	movzbl	21(%r15), %edx
LBB0_5:
	leal	25(%rdx), %eax
	cmpl	%r12d, %eax
	ja	LBB0_7
## %bb.6:
	movl	%edx, %ecx
	movzbl	22(%rcx,%r15), %r8d
LBB0_7:
	leal	(%rax,%r8,2), %eax
	cmpl	%r12d, %eax
	jbe	LBB0_9
## %bb.8:
	movq	_UVC_TRACE_DESCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_uvc_trace
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_9:
	leal	(%r8,%r8), %ecx
	movq	_UVC_VC_EXTENSION_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzbl	3(%r15), %esi
	movq	%rdx, %r13
	incl	%edx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_uvc_alloc_entity
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r12
	movq	32(%rax), %rdi
	leaq	4(%r15), %rsi
	movl	$16, %edx
	callq	_memcpy
	movb	20(%r15), %al
	movb	%al, 8(%r12)
	movq	40(%r12), %rdi
	leaq	22(%r15), %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r13d, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movb	22(%rcx,%r15), %al
	movb	%al, 9(%r12)
	leaq	192(%r12), %rdi
	movq	%rdi, 16(%r12)
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	leaq	192(%r12,%rax,4), %rax
	movq	%rax, 24(%r12)
	leaq	(%rcx,%r15), %rsi
	addq	$23, %rsi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r13d, %eax
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movb	24(%r15,%rax), %al
	movl	4(%r12), %edx
	testb	%al, %al
	je	LBB0_13
## %bb.12:
	movzbl	%al, %esi
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_usb_string
	jmp	LBB0_14
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_13:
	movzbl	3(%r15), %eax
	leaq	L_.str.1(%rip), %rsi
	movl	%edx, %edi
	movl	%eax, %edx
	callq	_sprintf
LBB0_14:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	movl	$1, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_TRACE_DESCR,4,2            ## @UVC_TRACE_DESCR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device %d videocontrol interface %d EXTENSION_UNIT error\n"

	.comm	_UVC_VC_EXTENSION_UNIT,4,2      ## @UVC_VC_EXTENSION_UNIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Extension %u"

	.no_dead_strip	_uvc_parse_vendor_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_parse_vendor_control
_uvc_parse_vendor_control:              ; @uvc_parse_vendor_control
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x20, x8, [x0, #8]
	ldr	x25, [x8]
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	cmp	w0, #1133
	b.ne	LBB0_5
; %bb.1:
	ldrb	w8, [x21, #1]
	cmp	w8, #65
	b.ne	LBB0_5
; %bb.2:
	ldrb	w8, [x21, #2]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	cmp	w23, #22
	b.lt	LBB0_7
; %bb.4:
	ldrb	w22, [x21, #21]
	b	LBB0_8
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
LBB0_7:
	mov	w22, #0
LBB0_8:
	add	w8, w22, #25
	cmp	w8, w23
	b.ls	LBB0_10
; %bb.9:
	mov	w26, #0
	b	LBB0_11
LBB0_10:
	add	x9, x21, w22, uxtw
	ldrb	w26, [x9, #22]
LBB0_11:
	lsl	w24, w26, #1
	add	w8, w24, w8
	cmp	w8, w23
	b.ls	LBB0_13
; %bb.12:
Lloh0:
	adrp	x8, _UVC_TRACE_DESCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UVC_TRACE_DESCR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x20]
	ldr	w3, [x25]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_uvc_trace
	mov	w0, #0
	b	LBB0_6
LBB0_13:
Lloh5:
	adrp	x8, _UVC_VC_EXTENSION_UNIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UVC_VC_EXTENSION_UNIT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldrb	w1, [x21, #3]
	add	w2, w22, #1
	mov	x3, x24
	bl	_uvc_alloc_entity
	cbz	x0, LBB0_16
; %bb.14:
	mov	x23, x0
	ldr	x0, [x0, #32]
	add	x1, x21, #4
	mov	w2, #16
	bl	_memcpy
	ldrb	w8, [x21, #20]
	strb	w8, [x23, #8]
	ldr	x0, [x23, #40]
	add	x1, x21, #22
	mov	x2, x22
	bl	_memcpy
	add	x8, x21, w22, uxtw
	ldrb	w8, [x8, #22]
	strb	w8, [x23, #9]
	add	x0, x23, #192
	add	x8, x0, w26, uxtw #2
	stp	x0, x8, [x23, #16]
	add	w8, w22, #23
	add	x1, x21, x8
	mov	x2, x24
	bl	_memcpy
	add	w8, w22, #24
	add	x8, x8, w24, uxtw
	ldrb	w1, [x21, x8]
	ldr	w2, [x23, #4]
	cbz	w1, LBB0_17
; %bb.15:
	mov	x0, x20
	mov	w3, #4
	bl	_usb_string
	b	LBB0_18
LBB0_16:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_17:
	ldrb	w8, [x21, #3]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x2
	mov	x2, x8
	bl	_sprintf
LBB0_18:
	mov	x0, x23
	mov	x1, x19
	bl	_list_add_tail
	mov	w0, #1
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_TRACE_DESCR,4,2            ; @UVC_TRACE_DESCR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device %d videocontrol interface %d EXTENSION_UNIT error\n"

	.comm	_UVC_VC_EXTENSION_UNIT,4,2      ; @UVC_VC_EXTENSION_UNIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Extension %u"

	.no_dead_strip	_uvc_parse_vendor_control
.subsections_via_symbols
