	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function graph_port_state_propagate
_graph_port_state_propagate:            ## @graph_port_state_propagate
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	movq	24(%rbx), %r13
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	(%rbx), %r14
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_LOG_TRACE
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_MMAL_PORT_TYPE_OUTPUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	movq	_MMAL_PORT_TYPE_INPUT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmoveq	%rdx, %r14
	cmpq	%rdx, %rax
	cmoveq	%rcx, %r14
	cmpl	$0, (%r13)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_23
## %bb.1:
	xorl	%r12d, %r12d
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movl	(%r13), %eax
	cmpq	%rax, %r12
	jae	LBB0_23
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rdx
	cmpq	%r14, (%rdx)
	jne	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r8, %r8
	setne	%cl
	movq	8(%rdx), %rax
	testq	%rax, %rax
	setne	%bl
	testb	%bl, %cl
	jne	LBB0_22
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	orq	%r8, %rax
	je	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi), %eax
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rcx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%r15,8), %rsi
	cmpq	%rdx, 8(%rsi)
	je	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpq	%rdx, (%rsi)
	je	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%r15
	cmpq	%r15, %rax
	jne	LBB0_13
	jmp	LBB0_22
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %r15d
	je	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_graph_component_topology_ports_linked
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %r15d
	testq	%r8, %r8
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rax
	movq	%rdi, %rbx
	movq	(%rax,%r15,8), %rdi
	callq	_mmal_connection_enable
	movq	%rax, %rcx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_11
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movq	8(%rax), %rdi
	callq	_mmal_log_dump_port
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax), %rdi
	callq	_mmal_log_dump_port
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %rdi
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax), %rsi
	movq	8(%r13), %rcx
	cmpq	(%rcx,%r12,8), %rsi
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rsi
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, %rdx
	movq	%r8, %rbx
	callq	_graph_port_state_propagate
	movq	%rax, %rcx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	(%rax), %rcx
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	movq	%rbx, %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_mmal_connection_disable
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, %rcx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	(%rax), %rcx
	je	LBB0_22
	jmp	LBB0_23
LBB0_11:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
LBB0_23:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"graph: %p, port %s(%p)"

	.comm	_MMAL_PORT_TYPE_OUTPUT,8,3      ## @MMAL_PORT_TYPE_OUTPUT
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ## @MMAL_PORT_TYPE_INPUT
	.no_dead_strip	_graph_port_state_propagate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function graph_port_state_propagate
_graph_port_state_propagate:            ; @graph_port_state_propagate
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x1, #24]
Lloh0:
	adrp	x24, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x22, [x24]
	ldr	x25, [x1]
	ldr	w2, [x1, #16]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x3, x20
	bl	_LOG_TRACE
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _MMAL_PORT_TYPE_OUTPUT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MMAL_PORT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _MMAL_PORT_TYPE_INPUT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MMAL_PORT_TYPE_INPUT@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x11, x10, x25, eq
	cmp	x8, x10
	csel	x25, x9, x11, eq
	ldr	w8, [x23]
	cbz	w8, LBB0_22
; %bb.1:
	mov	x26, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	ldr	w8, [x23]
	cmp	x26, x8
	b.hs	LBB0_22
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x23, #8]
	ldr	x2, [x8, x26, lsl #3]
	ldr	x8, [x2]
	cmp	x8, x25
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x2, #8]
	cmp	x8, #0
	ccmp	x19, #0, #4, ne
	orr	x8, x8, x19
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	cbz	w8, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
	ldr	x9, [x21, #8]
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9, x28, lsl #3]
	ldr	x11, [x10, #8]
	cmp	x11, x2
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x10, [x10]
	cmp	x10, x2
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x28, x28, #1
	cmp	x8, x28
	b.ne	LBB0_7
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w28, w8
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_graph_component_topology_ports_linked
	cbz	w0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, w28
	cbz	x19, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	x0, [x8, w28, uxtw #3]
	bl	_mmal_connection_enable
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	lsl	x22, x27, #3
	ldr	x8, [x8, x22]
	ldr	x0, [x8, #8]
	bl	_mmal_log_dump_port
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x22]
	ldr	x0, [x8]
	bl	_mmal_log_dump_port
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x27, lsl #3]
	ldr	x1, [x8]
	ldr	x9, [x23, #8]
	ldr	x9, [x9, x26, lsl #3]
	cmp	x1, x9
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x8, #8]
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x2, x19
	bl	_graph_port_state_propagate
	mov	x22, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x19, LBB0_2
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x27, lsl #3]
	bl	_mmal_connection_disable
	mov	x22, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_2
	b	LBB0_22
LBB0_21:
	mov	x22, x0
LBB0_22:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"graph: %p, port %s(%p)"

	.comm	_MMAL_PORT_TYPE_OUTPUT,8,3      ; @MMAL_PORT_TYPE_OUTPUT
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ; @MMAL_PORT_TYPE_INPUT
	.no_dead_strip	_graph_port_state_propagate
.subsections_via_symbols
