	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn20_reset_back_end_for_pipe
_dcn20_reset_back_end_for_pipe:         ## @dcn20_reset_back_end_for_pipe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movl	4(%rax), %edi
	callq	_DC_LOGGER_INIT
	cmpq	$0, 24(%rbx)
	je	LBB0_1
## %bb.2:
	movq	32(%r14), %rax
	movl	(%rax), %edi
	callq	_IS_FPGA_MAXIMUS_DC
	testl	%eax, %eax
	je	LBB0_3
LBB0_10:
	cmpq	$0, 48(%rbx)
	jne	LBB0_15
## %bb.11:
	movq	(%rbx), %rdi
	movq	8(%rdi), %rax
	callq	*24(%rax)
	movq	(%rbx), %rdi
	movq	8(%rdi), %rax
	xorl	%esi, %esi
	callq	*16(%rax)
	movq	(%rbx), %rdi
	movq	8(%rdi), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	movq	40(%rbx), %rsi
	callq	*%rcx
	movq	(%rbx), %rdi
	movq	8(%rdi), %rax
LBB0_13:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	xorl	%esi, %esi
	callq	*%rax
LBB0_15:
	movq	(%r14), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.19:
	movq	8(%r14), %rcx
	movq	(%rcx), %rdx
	addq	$-56, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	addq	$56, %rdx
	cmpq	%rbx, %rdx
	je	LBB0_17
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_20
	jmp	LBB0_22
LBB0_1:
	movq	$0, 40(%rbx)
	jmp	LBB0_22
LBB0_3:
	movq	40(%rbx), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_4
## %bb.5:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	*24(%r14)
	jmp	LBB0_7
LBB0_16:
	xorl	%ecx, %ecx
LBB0_17:
	cmpl	%eax, %ecx
	jne	LBB0_18
LBB0_22:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_18:
	movq	$0, 40(%rbx)
	movl	32(%rbx), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DC_LOG_DEBUG                   ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_core_link_disable_stream
LBB0_7:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.8:
	movq	(%rdi), %rax
	callq	*(%rax)
	cmpl	$1, 16(%r14)
	jne	LBB0_10
## %bb.9:
	movq	(%r14), %rsi
	movq	8(%r14), %rdi
	movq	16(%rbx), %rdx
	xorl	%ecx, %ecx
	callq	_update_audio_usage
	movq	$0, 16(%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reset back end for pipe %d, tg:%d\n"

	.no_dead_strip	_dcn20_reset_back_end_for_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn20_reset_back_end_for_pipe
_dcn20_reset_back_end_for_pipe:         ; @dcn20_reset_back_end_for_pipe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #32]
	ldr	w0, [x8, #4]
	bl	_DC_LOGGER_INIT
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.1:
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	bl	_IS_FPGA_MAXIMUS_DC
	cbz	w0, LBB0_12
LBB0_2:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_7
; %bb.3:
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #24]
	blr	x8
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #16]
	mov	w1, #0
	blr	x8
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	x1, [x19, #40]
	blr	x9
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
LBB0_5:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x1, #0
	blr	x8
LBB0_7:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.8:
	mov	x9, #0
	ldr	x10, [x20, #8]
	ldr	x10, [x10]
	sub	x10, x10, #56
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x10, #56
	cmp	x10, x19
	b.eq	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_9
	b	LBB0_18
LBB0_11:
	str	xzr, [x19, #40]
	b	LBB0_18
LBB0_12:
	ldr	x8, [x19, #40]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_20
; %bb.13:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x8, [x20, #24]
	mov	x0, x19
	blr	x8
LBB0_15:
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_21
	b	LBB0_2
LBB0_16:
	mov	w9, #0
LBB0_17:
	cmp	w9, w8
	b.ne	LBB0_19
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_19:
	str	xzr, [x19, #40]
	ldr	w1, [x19, #32]
	ldr	x8, [x19]
	ldr	w2, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DC_LOG_DEBUG
LBB0_20:
	mov	x0, x19
	bl	_core_link_disable_stream
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_2
LBB0_21:
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.22:
	ldp	x1, x0, [x20]
	ldr	x2, [x19, #16]
	mov	w3, #0
	bl	_update_audio_usage
	str	xzr, [x19, #16]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reset back end for pipe %d, tg:%d\n"

	.no_dead_strip	_dcn20_reset_back_end_for_pipe
.subsections_via_symbols
