	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_mc_create_links
_uvc_mc_create_links:                   ## @uvc_mc_create_links
	.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	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rax
	movq	_MEDIA_LNK_FL_IMMUTABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	%rsi, %rdi
	callq	_UVC_ENTITY_TYPE
	movq	_UVC_TT_STREAMING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%r13), %r12
	testq	%r12, %r12
	je	LBB0_13
## %bb.3:
	cmpl	$0, (%r13)
	jne	LBB0_4
	jmp	LBB0_13
LBB0_2:
	leaq	4(%r13), %r12
	cmpl	$0, (%r13)
	je	LBB0_13
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	addq	$4, %rdi
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %esi
	decl	%esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_media_create_pad_link
	testl	%eax, %eax
	js	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jae	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%rbx,4)
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	16(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_uvc_entity_by_id
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_UVC_ENTITY_TYPE
	movq	_UVC_TT_STREAMING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_11
	jmp	LBB0_12
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ## @MEDIA_LNK_FL_ENABLED
	.comm	_MEDIA_LNK_FL_IMMUTABLE,4,2     ## @MEDIA_LNK_FL_IMMUTABLE
	.comm	_UVC_TT_STREAMING,8,3           ## @UVC_TT_STREAMING
	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_uvc_mc_create_links
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_mc_create_links
_uvc_mc_create_links:                   ; @uvc_mc_create_links
	.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
Lloh0:
	adrp	x8, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _MEDIA_LNK_FL_IMMUTABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEDIA_LNK_FL_IMMUTABLE@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x0, x1
	bl	_UVC_ENTITY_TYPE
Lloh6:
	adrp	x25, _UVC_TT_STREAMING@GOTPAGE
Lloh7:
	ldr	x25, [x25, _UVC_TT_STREAMING@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_12
; %bb.2:
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
	b	LBB0_12
LBB0_3:
	add	x21, x19, #4
	ldr	w8, [x19]
	cbz	w8, LBB0_12
LBB0_4:
	mov	x22, #0
	orr	w23, w24, w23
Lloh8:
	adrp	x26, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x24, #4
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x24]
	sub	w1, w8, #1
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	bl	_media_create_pad_link
	tbnz	w0, #31, LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldr	w8, [x19]
	cmp	x22, x8
	b.hs	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x22, lsl #2]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20]
	ldr	x8, [x19, #16]
	ldr	w1, [x8, x22, lsl #2]
	bl	_uvc_entity_by_id
	cbz	x0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x0
	bl	_UVC_ENTITY_TYPE
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x24, #8]
	cbnz	x0, LBB0_6
	b	LBB0_7
LBB0_12:
	mov	w0, #0
LBB0_13:
	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_14:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.comm	_MEDIA_LNK_FL_IMMUTABLE,4,2     ; @MEDIA_LNK_FL_IMMUTABLE
	.comm	_UVC_TT_STREAMING,8,3           ; @UVC_TT_STREAMING
	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_uvc_mc_create_links
.subsections_via_symbols
