	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_scan_chain_forward
_uvc_scan_chain_forward:                ## @uvc_scan_chain_forward
	.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	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movb	$1, %r12b
	xorl	%ebx, %ebx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%rbx, %rdx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r15), %edi
	movl	4(%r14), %esi
	callq	_uvc_entity_by_reference
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rax, %rbx
	movq	%r13, %rdx
	cmpq	%r13, %rax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_UVC_ENTITY_TYPE
                                        ## kill: def $eax killed $eax def $rax
	leal	-129(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_UVC_ENTITY_IS_ITERM
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	movq	_UVC_TRACE_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_uvc_trace_param@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.4(%rip), %rdi
	testb	$1, %r12b
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdi, %r12
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	%r12, %rdi
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %esi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, (%rbx)
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	movq	_UVC_TRACE_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_uvc_trace_param@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rdi
	testb	$1, %r12b
	jne	LBB0_16
	jmp	LBB0_17
LBB0_18:
	xorl	%ebx, %ebx
	testb	$1, %r12b
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.5(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printk
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_UVC_TRACE_DESCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	_UVC_TRACE_DESCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rsi
LBB0_8:
	callq	_uvc_trace
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_TRACE_DESCR,4,2            ## @UVC_TRACE_DESCR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Extension unit %d has more than 1 input pin.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_uvc_trace_param,4,2            ## @uvc_trace_param
	.comm	_UVC_TRACE_PROBE,4,2            ## @UVC_TRACE_PROBE
L_.str.1:                               ## @.str.1
	.asciz	" (->"

L_.str.2:                               ## @.str.2
	.asciz	" XU %d"

L_.str.3:                               ## @.str.3
	.asciz	"Unsupported input terminal %u.\n"

L_.str.4:                               ## @.str.4
	.asciz	" OT %d"

L_.str.5:                               ## @.str.5
	.asciz	")"

	.no_dead_strip	_uvc_scan_chain_forward
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_scan_chain_forward
_uvc_scan_chain_forward:                ; @uvc_scan_chain_forward
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x23, #0
	mov	w28, #1
Lloh0:
	adrp	x25, _uvc_trace_param@GOTPAGE
Lloh1:
	ldr	x25, [x25, _uvc_trace_param@GOTPAGEOFF]
Lloh2:
	adrp	x26, _UVC_TRACE_PROBE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _UVC_TRACE_PROBE@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.4@PAGE
Lloh5:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh6:
	adrp	x27, l_.str.1@PAGE
Lloh7:
	add	x27, x27, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
Lloh8:
	adrp	x24, l_.str.2@PAGE
Lloh9:
	add	x24, x24, l_.str.2@PAGEOFF
	mov	x2, x23
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21, #4]
	ldr	w1, [x19, #4]
	bl	_uvc_entity_by_reference
	cbz	x0, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x23, x0
	mov	x2, x20
	cmp	x0, x20
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x23
	bl	_UVC_ENTITY_TYPE
	sub	w8, w0, #129
	cmp	w8, #4
	b.hs	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x23
	bl	_UVC_ENTITY_IS_ITERM
	cbnz	w0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=2
	add	x0, x23, #8
	mov	x1, x21
	bl	_list_add_tail
	ldr	w8, [x25]
	ldr	w9, [x26]
	mov	x2, x23
	tst	w9, w8
	b.eq	LBB0_2
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=2
	mov	x2, x23
	cmp	w0, #128
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	w8, [x23]
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=2
	add	x0, x23, #8
	mov	x1, x21
	bl	_list_add_tail
	ldr	w8, [x25]
	ldr	w9, [x26]
	mov	x2, x23
	tst	w9, w8
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w28, #0, LBB0_12
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x22
	tbz	w28, #0, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	bl	_printk
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23, #4]
	str	x8, [sp]
	mov	x0, x24
	bl	_printk
	mov	w28, #0
	b	LBB0_1
LBB0_14:
	tbnz	w28, #0, LBB0_16
; %bb.15:
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printk
LBB0_16:
	mov	w0, #0
	b	LBB0_20
LBB0_17:
Lloh12:
	adrp	x8, _UVC_TRACE_DESCR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UVC_TRACE_DESCR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w2, [x23, #4]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh17:
	adrp	x8, _UVC_TRACE_DESCR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UVC_TRACE_DESCR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
LBB0_19:
	bl	_uvc_trace
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_TRACE_DESCR,4,2            ; @UVC_TRACE_DESCR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Extension unit %d has more than 1 input pin.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_uvc_trace_param,4,2            ; @uvc_trace_param
	.comm	_UVC_TRACE_PROBE,4,2            ; @UVC_TRACE_PROBE
l_.str.1:                               ; @.str.1
	.asciz	" (->"

l_.str.2:                               ; @.str.2
	.asciz	" XU %d"

l_.str.3:                               ; @.str.3
	.asciz	"Unsupported input terminal %u.\n"

l_.str.4:                               ; @.str.4
	.asciz	" OT %d"

l_.str.5:                               ; @.str.5
	.asciz	")"

	.no_dead_strip	_uvc_scan_chain_forward
.subsections_via_symbols
