	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_video_pipeline_build_branch
_vsp1_video_pipeline_build_branch:      ## @vsp1_video_pipeline_build_branch
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	40(%rsi), %rsi
	leaq	-48(%rbp), %rdi
	callq	_media_entity_enum_init
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_17
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_RWPF_PAD_SOURCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$4, %rdi
	addq	24(%r12), %rdi
	callq	_vsp1_entity_remote_pad
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %r15
	leaq	8(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rdi
	shlq	$4, %rdi
	addq	16(%r13), %rdi
	callq	_vsp1_entity_remote_pad
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	callq	_is_media_entity_v4l2_subdev
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r15), %edi
	callq	_media_entity_to_v4l2_subdev
	movl	%eax, %edi
	callq	_to_vsp1_entity
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	_VSP1_ENTITY_BRU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_VSP1_ENTITY_BRS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r14, %r14
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	24(%r13), %rdi
	callq	_to_brx
	movq	%rax, %r14
	movq	40(%rax), %rax
	movq	(%r15), %rcx
	movq	%r12, (%rax,%rcx,8)
	movq	%rcx, (%r12)
	movq	(%r13), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_VSP1_ENTITY_WPF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rsi
	addq	$24, %rsi
	leaq	-48(%rbp), %rdi
	callq	_media_entity_enum_test_and_set
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	movq	_VSP1_ENTITY_UDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 8(%rcx)
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, 8(%rcx)
	testq	%r14, %r14
	movq	%r14, %rax
	cmoveq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, (%rcx)
	jmp	LBB0_13
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	cmpq	%rax, %r13
	je	LBB0_16
LBB0_15:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	leaq	-48(%rbp), %rdi
	callq	_media_entity_enum_cleanup
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RWPF_PAD_SOURCE,8,3            ## @RWPF_PAD_SOURCE
	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_VSP1_ENTITY_BRU,8,3            ## @VSP1_ENTITY_BRU
	.comm	_VSP1_ENTITY_BRS,8,3            ## @VSP1_ENTITY_BRS
	.comm	_VSP1_ENTITY_WPF,8,3            ## @VSP1_ENTITY_WPF
	.comm	_VSP1_ENTITY_UDS,8,3            ## @VSP1_ENTITY_UDS
	.no_dead_strip	_vsp1_video_pipeline_build_branch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsp1_video_pipeline_build_branch
_vsp1_video_pipeline_build_branch:      ; @vsp1_video_pipeline_build_branch
	.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	x21, x1
	mov	x22, x0
	ldr	x1, [x1, #40]
	add	x0, sp, #8
	bl	_media_entity_enum_init
	mov	x19, x0
	tbnz	w0, #31, LBB0_16
; %bb.1:
	str	x20, [sp]                       ; 8-byte Folded Spill
	ldr	x8, [x21, #24]
Lloh0:
	adrp	x9, _RWPF_PAD_SOURCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RWPF_PAD_SOURCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #4
	bl	_vsp1_entity_remote_pad
	cbz	x0, LBB0_14
; %bb.2:
	mov	x25, x0
	mov	x23, #0
	add	x26, x21, #8
Lloh3:
	adrp	x27, _VSP1_ENTITY_BRU@GOTPAGE
Lloh4:
	ldr	x27, [x27, _VSP1_ENTITY_BRU@GOTPAGEOFF]
Lloh5:
	adrp	x28, _VSP1_ENTITY_BRS@GOTPAGE
Lloh6:
	ldr	x28, [x28, _VSP1_ENTITY_BRS@GOTPAGEOFF]
Lloh7:
	adrp	x20, _VSP1_ENTITY_WPF@GOTPAGE
Lloh8:
	ldr	x20, [x20, _VSP1_ENTITY_WPF@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [x24, #8]
	add	x0, x8, x9, lsl #4
	bl	_vsp1_entity_remote_pad
	mov	x25, x0
	cbz	x0, LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25, #8]
	bl	_is_media_entity_v4l2_subdev
	cbz	w0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25, #8]
	bl	_media_entity_to_v4l2_subdev
	bl	_to_vsp1_entity
	mov	x24, x0
	ldr	x8, [x0]
	ldr	x9, [x27]
	ldr	x10, [x28]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x23, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x24, #24
	bl	_to_brx
	mov	x23, x0
	ldr	x8, [x0, #40]
	ldr	x9, [x25]
	str	x21, [x8, x9, lsl #3]
	str	x9, [x21]
	ldr	x8, [x24]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x24, #24
	add	x0, sp, #8
	bl	_media_entity_enum_test_and_set
	cbnz	x0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
Lloh9:
	adrp	x9, _VSP1_ENTITY_UDS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VSP1_ENTITY_UDS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x23, #0
	csel	x8, x26, x23, eq
	stp	x8, x24, [x22]
	b	LBB0_3
LBB0_13:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x8, x8, #8
	cmp	x24, x8
	b.eq	LBB0_15
LBB0_14:
Lloh12:
	adrp	x8, _EPIPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_15:
	add	x0, sp, #8
	bl	_media_entity_enum_cleanup
LBB0_16:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RWPF_PAD_SOURCE,8,3            ; @RWPF_PAD_SOURCE
	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_VSP1_ENTITY_BRU,8,3            ; @VSP1_ENTITY_BRU
	.comm	_VSP1_ENTITY_BRS,8,3            ; @VSP1_ENTITY_BRS
	.comm	_VSP1_ENTITY_WPF,8,3            ; @VSP1_ENTITY_WPF
	.comm	_VSP1_ENTITY_UDS,8,3            ; @VSP1_ENTITY_UDS
	.no_dead_strip	_vsp1_video_pipeline_build_branch
.subsections_via_symbols
