	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn10_wait_for_mpcc_disconnect
_dcn10_wait_for_mpcc_disconnect:        ## @dcn10_wait_for_mpcc_disconnect
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_dcn10_verify_allow_pstate_change_high
LBB0_2:
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_MAX_PIPES@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_hubp_by_inst
	movq	%rax, %r13
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	movl	%ebx, %esi
	callq	*(%rax)
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	$0, (%rax,%rbx,4)
	movq	(%r13), %rax
	movq	%r13, %rdi
	movl	$1, %esi
	callq	*(%rax)
	movl	(%r14), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rcx
	jmp	LBB0_5
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, (%rdi)
	je	LBB0_10
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dcn10_verify_allow_pstate_change_high ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PIPES,4,2                  ## @MAX_PIPES
	.no_dead_strip	_dcn10_wait_for_mpcc_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn10_wait_for_mpcc_disconnect
_dcn10_wait_for_mpcc_disconnect:        ; @dcn10_wait_for_mpcc_disconnect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_dcn10_verify_allow_pstate_change_high
LBB0_2:
	ldr	x9, [x20]
	cbz	x9, LBB0_11
; %bb.3:
Lloh0:
	adrp	x24, _MAX_PIPES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_PIPES@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x9]
	ldr	w9, [x9, x22, lsl #2]
	cbz	w9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_get_hubp_by_inst
	mov	x23, x0
	ldr	x0, [x21]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x22
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	wzr, [x8, x22, lsl #2]
	ldr	x8, [x23]
	ldr	x8, [x8]
	mov	x0, x23
	mov	w1, #1
	blr	x8
	ldr	w8, [x24]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x20]
	b	LBB0_5
LBB0_9:
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dcn10_verify_allow_pstate_change_high
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PIPES,4,2                  ; @MAX_PIPES
	.no_dead_strip	_dcn10_wait_for_mpcc_disconnect
.subsections_via_symbols
