	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_validate_global_state       ## -- Begin function dc_validate_global_state
	.p2align	4, 0x90
_dc_validate_global_state:              ## @dc_validate_global_state
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	*%rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	movq	_DC_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_24
LBB0_4:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.5:
	leaq	8(%rbx), %r13
	movq	(%rdi), %rax
	xorl	%esi, %esi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	movslq	%ecx, %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_20
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rcx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rcx,%rsi,8), %rbx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%r14
	movq	(%rdi), %rax
	movslq	(%rax), %rcx
	addq	$24, %r15
	cmpq	%rcx, %r14
	jge	LBB0_18
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %r12
	cmpq	%rbx, 8(%r12,%r15)
	jne	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%rax), %rax
	movq	8(%rax), %rax
	movq	%rbx, %rcx
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	16(%r12,%r15), %rdi
	movq	%rbx, %rcx
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	(%rdi), %rdx
	movq	%rbx, %rcx
	movq	_DC_SW_UNKNOWN@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=2
	callq	*%rax
	movl	%eax, %ecx
	movq	_DC_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r12,%r15), %rcx
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	(%rcx), %edi
	callq	_dc_is_dp_signal
	testq	%rax, %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_find_pll_sharable_stream
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	(%rdi), %rsi
	movl	(%r12,%r15), %edx
	movq	%r13, %rdi
	callq	_resource_unreference_clock_source
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movl	16(%rsi), %edx
	movl	%edx, (%r12,%r15)
	movq	%r13, %rdi
	callq	_resource_reference_clock_source
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_1:
	movq	_DC_ERROR_UNEXPECTED@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %ecx
	jmp	LBB0_24
LBB0_20:
	movq	%rdi, %r14
	movq	%rbx, %rsi
	callq	_resource_build_scaling_params_for_context
	movl	%eax, %ecx
	movq	_DC_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_24
## %bb.21:
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%ecx, %ebx
	callq	*16(%rax)
	movl	%ebx, %ecx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.22:
	movq	_DC_FAIL_BANDWIDTH_VALIDATE@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_24:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_ERROR_UNEXPECTED,4,2        ## @DC_ERROR_UNEXPECTED
	.comm	_DC_OK,4,2                      ## @DC_OK
	.comm	_DC_SW_UNKNOWN,8,3              ## @DC_SW_UNKNOWN
	.comm	_DC_FAIL_BANDWIDTH_VALIDATE,4,2 ## @DC_FAIL_BANDWIDTH_VALIDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_validate_global_state       ; -- Begin function dc_validate_global_state
	.p2align	2
_dc_validate_global_state:              ; @dc_validate_global_state
	.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
	cbz	x1, LBB0_19
; %bb.1:
	mov	x19, x2
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x22, _DC_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DC_OK@GOTPAGEOFF]
	mov	x20, x1
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	blr	x8
	mov	x26, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_23
LBB0_3:
	str	w19, [sp, #4]                   ; 4-byte Folded Spill
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.4:
	mov	x11, #0
	add	x22, x20, #8
	ldr	x8, [x21]
Lloh2:
	adrp	x24, _DC_SW_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DC_SW_UNKNOWN@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20]
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x11, #1
	cmp	x11, w9, sxtw
	b.ge	LBB0_20
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x28, #0
	mov	x19, #0
	ldr	x9, [x20, #16]
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x23, [x9, x11, lsl #3]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x19, x19, #1
	ldr	x8, [x21]
	ldrsw	x9, [x8]
	add	x28, x28, #24
	cmp	x19, x9
	b.ge	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x25, [x22]
	add	x27, x25, x28
	ldr	x9, [x27, #8]
	cmp	x9, x23
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	mov	x9, x23
	cbz	x8, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x9, x25, x28
	ldr	x0, [x9, #16]
	mov	x9, x23
	cbz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x10, [x0]
	ldr	x11, [x24]
	mov	x9, x23
	cmp	x10, x11
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
	blr	x8
Lloh4:
	adrp	x8, _DC_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DC_OK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [x27, #8]
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w0, [x9]
	bl	_dc_is_dp_signal
	cbz	x0, LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x23
	mov	x1, x20
	bl	_find_pll_sharable_stream
	cbnz	w0, LBB0_9
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x1, [x21]
	ldr	w2, [x25, x28]
	mov	x0, x22
	bl	_resource_unreference_clock_source
	ldr	x1, [x21]
	ldr	w2, [x1, #16]
	str	w2, [x25, x28]
	mov	x0, x22
	bl	_resource_reference_clock_source
	b	LBB0_9
LBB0_19:
Lloh7:
	adrp	x8, _DC_ERROR_UNEXPECTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DC_ERROR_UNEXPECTED@GOTPAGEOFF]
Lloh9:
	ldr	w26, [x8]
	b	LBB0_23
LBB0_20:
	mov	x0, x21
	mov	x1, x20
	bl	_resource_build_scaling_params_for_context
	mov	x26, x0
Lloh10:
	adrp	x8, _DC_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DC_OK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	b.ne	LBB0_23
; %bb.21:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #16]
	mov	x0, x21
	mov	x1, x20
	blr	x8
Lloh13:
	adrp	x8, _DC_FAIL_BANDWIDTH_VALIDATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DC_FAIL_BANDWIDTH_VALIDATE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w26, w8, w26, eq
	b	LBB0_23
LBB0_22:
	mov	x26, x0
LBB0_23:
	mov	x0, x26
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_ERROR_UNEXPECTED,4,2        ; @DC_ERROR_UNEXPECTED
	.comm	_DC_OK,4,2                      ; @DC_OK
	.comm	_DC_SW_UNKNOWN,8,3              ; @DC_SW_UNKNOWN
	.comm	_DC_FAIL_BANDWIDTH_VALIDATE,4,2 ; @DC_FAIL_BANDWIDTH_VALIDATE
.subsections_via_symbols
