	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_parse_control
_uvc_parse_control:                     ## @uvc_parse_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %r13
	movl	8(%r13), %r12d
	cmpl	$3, %r12d
	jl	LBB0_7
## %bb.1:
	movq	(%r13), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rbx), %eax
	subl	%eax, %r12d
	addq	%rax, %rbx
	cmpl	$2, %r12d
	jle	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_uvc_parse_vendor_control
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%rbx), %eax
	movq	_USB_DT_CS_INTERFACE@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_uvc_parse_standard_control
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	jmp	LBB0_13
LBB0_7:
	xorl	%r14d, %r14d
	cmpl	$1, 24(%r13)
	jne	LBB0_13
## %bb.8:
	movq	_UVC_QUIRK_BUILTIN_ISIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_9
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	16(%r13), %rbx
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_int_in
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movl	12(%rbx), %edi
	callq	_le16_to_cpu
	cmpl	$8, %eax
	jl	LBB0_13
## %bb.11:
	cmpq	$0, (%rbx)
	je	LBB0_13
## %bb.12:
	movq	_UVC_TRACE_DESCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_uvc_trace
	movq	%rbx, 8(%r15)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DT_CS_INTERFACE,1,0        ## @USB_DT_CS_INTERFACE
	.comm	_UVC_QUIRK_BUILTIN_ISIGHT,4,2   ## @UVC_QUIRK_BUILTIN_ISIGHT
	.comm	_UVC_TRACE_DESCR,4,2            ## @UVC_TRACE_DESCR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found a Status endpoint (addr %02x).\n"

	.no_dead_strip	_uvc_parse_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_control
_uvc_parse_control:                     ; @uvc_parse_control
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	ldr	w20, [x22, #8]
	cmp	w20, #3
	b.lt	LBB0_6
; %bb.1:
	ldr	x21, [x22]
Lloh0:
	adrp	x23, _USB_DT_CS_INTERFACE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _USB_DT_CS_INTERFACE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21]
	sub	w20, w20, w8
	add	x21, x21, x8
	cmp	w20, #2
	b.le	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_uvc_parse_vendor_control
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #1]
	ldrb	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_uvc_parse_standard_control
	tbz	w0, #31, LBB0_2
	b	LBB0_9
LBB0_6:
	ldr	w8, [x22, #24]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _UVC_QUIRK_BUILTIN_ISIGHT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UVC_QUIRK_BUILTIN_ISIGHT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x20, [x22, #16]
	mov	x0, x20
	bl	_usb_endpoint_is_int_in
	cbz	x0, LBB0_9
; %bb.11:
	ldr	w0, [x20, #12]
	bl	_le16_to_cpu
	cmp	w0, #8
	b.lt	LBB0_8
; %bb.12:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.13:
Lloh5:
	adrp	x8, _UVC_TRACE_DESCR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UVC_TRACE_DESCR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x20, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_uvc_trace
	mov	w0, #0
	str	x20, [x19, #8]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DT_CS_INTERFACE,1,0        ; @USB_DT_CS_INTERFACE
	.comm	_UVC_QUIRK_BUILTIN_ISIGHT,4,2   ; @UVC_QUIRK_BUILTIN_ISIGHT
	.comm	_UVC_TRACE_DESCR,4,2            ; @UVC_TRACE_DESCR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found a Status endpoint (addr %02x).\n"

	.no_dead_strip	_uvc_parse_control
.subsections_via_symbols
