	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_video_pipeline_build
_vsp1_video_pipeline_build:             ## @vsp1_video_pipeline_build
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rsi), %rsi
	leaq	-48(%rbp), %rdi
	callq	_media_graph_walk_init
	testl	%eax, %eax
	jne	LBB0_22
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_media_graph_walk_start
	movq	%rbx, %rdi
	callq	_media_graph_walk_next
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %rbx
	leaq	56(%r13), %r15
	leaq	LJTI0_0(%rip), %r12
	jmp	LBB0_3
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, 24(%r13)
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_media_graph_walk_next
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_is_media_entity_v4l2_subdev
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_media_entity_to_v4l2_subdev
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_vsp1_entity
	movq	%rax, %r14
	leaq	16(%rax), %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	movq	%r13, 8(%r14)
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, 40(%r13)
	jmp	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_to_rwpf
	movq	%rax, 8(%r13)
	movq	(%rax), %rax
	movq	$0, (%rax)
	jmp	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_to_rwpf
	movq	16(%r13), %rcx
	movq	8(%rax), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r13), %rcx
	incq	%rcx
	movq	%rcx, (%r13)
	movq	(%rax), %rax
	movq	%rcx, (%rax)
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, 48(%r13)
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, 32(%r13)
	jmp	LBB0_12
LBB0_13:
	leaq	-48(%rbp), %rdi
	callq	_media_graph_walk_cleanup
	cmpq	$0, (%r13)
	je	LBB0_23
## %bb.14:
	cmpq	$0, 8(%r13)
	je	LBB0_23
## %bb.15:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movq	(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_21
## %bb.16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r14), %rax
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movq	(%rax), %rcx
	movl	(%rcx), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rcx
	movq	(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%r13), %rdx
	movq	%r13, %rdi
	callq	_vsp1_video_pipeline_build_branch
	testl	%eax, %eax
	jns	LBB0_19
	jmp	LBB0_22
LBB0_23:
	movq	_EPIPE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_EPIPE,4,2                      ## @EPIPE
	.no_dead_strip	_vsp1_video_pipeline_build
.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
_vsp1_video_pipeline_build:             ; @vsp1_video_pipeline_build
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x21, x1
	ldr	x1, [x21, #8]!
	add	x0, sp, #8
	bl	_media_graph_walk_init
	cbnz	w0, LBB0_23
; %bb.1:
	add	x0, sp, #8
	mov	x1, x21
	bl	_media_graph_walk_start
	add	x0, sp, #8
	bl	_media_graph_walk_next
	cbz	x0, LBB0_13
; %bb.2:
	mov	x22, x0
	add	x21, x20, #56
Lloh0:
	adrp	x24, lJTI0_0@PAGE
Lloh1:
	add	x24, x24, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x23, [x20, #24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_media_graph_walk_next
	mov	x22, x0
	cbz	x0, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_is_media_entity_v4l2_subdev
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_media_entity_to_v4l2_subdev
	mov	x22, x0
	bl	_to_vsp1_entity
	mov	x23, x0
	add	x0, x0, #16
	mov	x1, x21
	bl	_list_add_tail
	str	x20, [x23, #8]
	ldr	w8, [x23]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x23, [x20, #40]
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_to_rwpf
	str	x0, [x20, #8]
	ldr	x8, [x0]
	str	xzr, [x8]
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_to_rwpf
	ldr	x8, [x20, #16]
	ldr	x9, [x0, #8]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	ldr	x9, [x0]
	str	x8, [x9]
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x23, [x20, #48]
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x23, [x20, #32]
	b	LBB0_4
LBB0_13:
	add	x0, sp, #8
	bl	_media_graph_walk_cleanup
	ldr	x8, [x20]
	cbz	x8, LBB0_21
; %bb.14:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_21
; %bb.15:
	ldr	x8, [x19]
	ldr	x9, [x8]
	ldr	w9, [x9]
	cbz	w9, LBB0_22
; %bb.16:
	mov	x21, #0
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x19]
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x21, x21, #1
	ldr	x9, [x8]
	ldr	w9, [x9]
	cmp	x21, x9
	b.hs	LBB0_22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	ldr	x1, [x9, x21, lsl #3]
	cbz	x1, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x2, [x20, #8]
	mov	x0, x20
	bl	_vsp1_video_pipeline_build_branch
	tbz	w0, #31, LBB0_17
	b	LBB0_23
LBB0_21:
Lloh2:
	adrp	x8, _EPIPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
LBB0_22:
	mov	w0, #0
LBB0_23:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_EPIPE,4,2                      ; @EPIPE
	.no_dead_strip	_vsp1_video_pipeline_build
.subsections_via_symbols
