	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn10_init_pipes
_dcn10_init_pipes:                      ## @dcn10_init_pipes
	.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	%rdi, %r13
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	16(%rsi), %rcx
	movq	(%rcx), %rdx
	movb	$1, %dil
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	cmpq	$0, (%rdx)
	jne	LBB0_7
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdx
	cmpq	%rbx, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rcx,%rdx,8), %rdi
	leaq	1(%rdx), %rbx
	cmpq	$0, (%rdi)
	je	LBB0_4
LBB0_6:
	cmpq	%rax, %rdx
	setb	%al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_7
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_7:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rax
	cmpl	$0, (%rax)
	jle	LBB0_27
## %bb.8:
	movl	$6, %r12d
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_28:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*32(%rax)
	movq	(%r14), %rax
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*24(%rax)
	movq	%r14, %rdi
	callq	_hwss_wait_for_blank_complete
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movq	24(%r13), %rax
	movslq	(%rax), %rcx
	addq	$7, %r12
	cmpq	%rcx, %rbx
	jge	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	cmpq	$0, (%rcx,%r12,8)
	setne	%cl
	testb	%cl, -44(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_29
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	32(%rax), %rax
	movq	(%rax,%rbx,8), %r14
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*16(%rax)
	testq	%rax, %rax
	je	LBB0_29
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	*%rax
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*32(%rax)
	jmp	LBB0_29
LBB0_13:
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.14:
	movl	$48, %r14d
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	movslq	(%rax), %rcx
	addq	$56, %r14
	cmpq	%rcx, %rbx
	jge	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	cmpq	$0, (%rcx,%r14)
	setne	%cl
	testb	%cl, -44(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	40(%rax), %rdi
	movq	(%rdi), %rax
	movl	%ebx, %esi
	callq	*(%rax)
	movq	24(%r13), %rax
	jmp	LBB0_17
LBB0_18:
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.19:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	*(%rbx)
	movq	$0, 32(%r15,%r14)
	movq	$0, 16(%r15,%r14)
	movq	(%r13), %rax
	movq	%r13, %rdi
	callq	*(%rax)
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	24(%r13), %rax
	movslq	(%rax), %rcx
	addq	$56, %r14
	cmpq	%rcx, %r12
	jge	LBB0_27
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%rax), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rcx
	movq	24(%rax), %rax
	movq	(%rax,%r12,8), %r13
	movq	(%rcx,%r12,8), %rbx
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpq	$0, 48(%rax,%r14)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	32(%rax,%r14), %rdi
	movq	(%rdi), %rax
	callq	*16(%rax)
	testq	%rax, %rax
	jne	LBB0_26
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movq	(%rax), %r15
	leaq	(%r15,%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 32(%r15,%r14)
	movl	%r12d, (%r15,%r14)
	movq	%r13, 16(%r15,%r14)
	movq	%rbx, 24(%r15,%r14)
	movq	(%rbx), %rax
	movq	%rax, 8(%r15,%r14)
	movq	%rax, (%r13)
	movq	_OPP_ID_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r13)
	movl	$0, 8(%r13)
	movq	%rdx, %r13
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx,%r12,8), %rdx
	movl	24(%rdx), %esi
	movl	%esi, 16(%rdx)
	movq	$0, 8(%rdx)
	movq	(%rcx,%r12,8), %rcx
	movq	(%rcx), %rdx
	movl	$1, (%rdx,%rax,4)
	movq	%rcx, 40(%r15,%r14)
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	*8(%rbx)
	movq	(%r13), %rax
	movq	%r13, %rdi
	callq	*16(%rax)
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	(%r13), %rax
	movq	%r13, %rdi
	callq	*8(%rax)
	jmp	LBB0_25
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPP_ID_INVALID,4,2             ## @OPP_ID_INVALID
	.no_dead_strip	_dcn10_init_pipes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn10_init_pipes
_dcn10_init_pipes:                      ; @dcn10_init_pipes
	.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, x1
	mov	x20, x0
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x19, #16]
	ldr	x10, [x9]
	ldr	x10, [x10]
	cbz	x10, LBB0_4
; %bb.2:
	mov	w24, #1
	b	LBB0_8
LBB0_3:
	mov	w24, #0
	b	LBB0_8
LBB0_4:
	mov	w11, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x11
	cmp	x8, x11
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x9, x10, lsl #3]
	ldr	x12, [x11]
	add	x11, x10, #1
	cbz	x12, LBB0_5
LBB0_7:
	cmp	x10, x8
	cset	w24, lo
LBB0_8:
	ldr	x8, [x20, #24]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.9:
	mov	x22, #0
	mov	w23, #48
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, #32]
	mov	x0, x21
	blr	x8
	ldr	x8, [x21]
	ldr	x8, [x8, #24]
	mov	x0, x21
	mov	w1, #1
	blr	x8
	mov	x0, x21
	bl	_hwss_wait_for_blank_complete
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	ldr	x8, [x20, #24]
	ldrsw	x9, [x8]
	add	x23, x23, #56
	cmp	x22, x9
	b.ge	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x23]
	cmp	x9, #0
	cset	w9, ne
	and	w9, w9, w24
	tbnz	w9, #0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x8, #32]
	ldr	x21, [x8, x22, lsl #3]
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	mov	x0, x21
	blr	x8
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	x8, [x21]
	ldr	x8, [x8, #32]
	mov	x0, x21
	blr	x8
	b	LBB0_11
LBB0_16:
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.17:
	mov	x21, #0
	mov	w22, #48
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x21, x21, #1
	ldrsw	x9, [x8]
	add	x22, x22, #56
	cmp	x21, x9
	b.ge	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x22]
	cmp	x9, #0
	cset	w9, ne
	and	w9, w9, w24
	tbnz	w9, #0, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x8, #40]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x21
	blr	x8
	ldr	x8, [x20, #24]
	b	LBB0_18
LBB0_21:
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.22:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x20]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	str	xzr, [x22, #32]
	str	xzr, [x22, #16]
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x26, x26, #1
	ldr	x8, [x20, #24]
	ldrsw	x9, [x8]
	add	x25, x25, #56
	cmp	x26, x9
	b.ge	LBB0_30
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #32]
	lsl	x27, x26, #3
	ldr	x21, [x9, x27]
	ldp	x8, x9, [x8, #16]
	ldr	x28, [x9, x27]
	ldr	x23, [x8, x27]
	cbz	w24, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	ldr	x9, [x8, #48]
	cbz	x9, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x0, [x8, #32]
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
	blr	x8
	cbnz	x0, LBB0_24
LBB0_28:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	add	x22, x8, x25
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	mov	x0, x23
	blr	x8
	str	w26, [x22]
	stp	x23, x21, [x22, #24]
	ldr	x8, [x23]
	stp	x8, x28, [x22, #8]
	str	x8, [x28]
Lloh0:
	adrp	x9, _OPP_ID_INVALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OPP_ID_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	wzr, w9, [x28, #8]
	ldr	x9, [x20, #24]
	ldr	x9, [x9, #8]
	ldr	x10, [x9, x27]
	ldr	w11, [x10, #24]
	str	xzr, [x10, #8]
	ldr	x9, [x9, x27]
	str	w11, [x10, #16]
	ldr	x10, [x9]
	mov	w11, #1
	str	w11, [x10, x8, lsl #2]
	str	x9, [x22, #40]
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	mov	x0, x21
	blr	x8
	cbz	x0, LBB0_23
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	mov	x0, x21
	blr	x8
	b	LBB0_23
LBB0_30:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OPP_ID_INVALID,4,2             ; @OPP_ID_INVALID
	.no_dead_strip	_dcn10_init_pipes
.subsections_via_symbols
