	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce110_reset_hw_ctx_wrap
_dce110_reset_hw_ctx_wrap:              ## @dce110_reset_hw_ctx_wrap
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_MAX_PIPES@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_19
## %bb.1:
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	*(%rbx)
	movq	$0, (%r13,%r14)
	movq	_MAX_PIPES@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%rcx), %rax
	addq	$48, %r14
	cmpq	%rax, %r15
	jge	LBB0_19
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	8(%rax), %r13
	cmpq	$0, (%r13,%r14)
	je	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 40(%r13,%r14)
	jne	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r13), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	cmpq	$0, (%r12,%r14)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%r14), %rsi
	callq	_pipe_need_reprogram
	testq	%rax, %rax
	movq	_MAX_PIPES@GOTPCREL(%rip), %rcx
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12,%r14), %rax
	movq	32(%r13,%r14), %r12
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%rax)
	jne	LBB0_12
	jmp	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13,%r14), %r12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_core_link_disable_stream
	movq	24(%r13,%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rax
	callq	*(%rax)
	cmpl	$1, 24(%rbx)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rdi
	addq	$8, %rdi
	movl	8(%rbx), %esi
	movq	24(%r13,%r14), %rdx
	xorl	%ecx, %ecx
	callq	_update_audio_usage
	movq	$0, 24(%r13,%r14)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13,%r14), %rdi
	movq	(%rdi), %rax
	movl	$1, %esi
	callq	*8(%rax)
	movq	16(%r13,%r14), %rdi
	callq	_hwss_wait_for_blank_complete
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_dm_error
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13,%r14), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	8(%r13,%r14), %rdi
	movq	(%rdi), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
	testq	%r12, %r12
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_resource_get_clock_source_reference
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	jmp	LBB0_17
LBB0_19:
	addq	$24, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DC: failed to blank crtc!\n"

	.no_dead_strip	_dce110_reset_hw_ctx_wrap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce110_reset_hw_ctx_wrap
_dce110_reset_hw_ctx_wrap:              ; @dce110_reset_hw_ctx_wrap
	.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
Lloh0:
	adrp	x24, _MAX_PIPES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_PIPES@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x25, #0
	mov	x26, #0
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	str	xzr, [x27, x25]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #48
	cmp	x26, x8
	b.ge	LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x27, [x8, #8]
	add	x22, x27, x25
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #40]
	cbnz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [x19]
	ldr	x8, [x23, x25]
	cbz	x8, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x23, x25
	mov	x0, x22
	bl	_pipe_need_reprogram
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, x25]
	add	x9, x27, x25
	ldr	x23, [x9, #32]
	cbz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8]
	cbnz	w8, LBB0_14
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x27, x25
	ldr	x23, [x8, #32]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_core_link_disable_stream
	add	x28, x27, x25
	ldr	x0, [x28, #24]
	cbz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	ldr	w8, [x20, #24]
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	add	x0, x8, #8
	ldr	w1, [x20, #8]
	ldr	x2, [x28, #24]
	mov	w3, #0
	bl	_update_audio_usage
	str	xzr, [x28, #24]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x27, x25
	ldr	x0, [x28, #16]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	mov	w1, #1
	blr	x8
	ldr	x0, [x28, #16]
	bl	_hwss_wait_for_blank_complete
	cbnz	w0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_dm_error
	bl	_BREAK_TO_DEBUGGER
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x28, #16]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	ldr	x0, [x28, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [x20, #16]
	ldr	w1, [x9]
	blr	x8
	cbz	x23, LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x20, #8]
	mov	x0, x19
	mov	x2, x23
	bl	_resource_get_clock_source_reference
	cbnz	x0, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8]
	mov	x0, x23
	blr	x8
	b	LBB0_2
LBB0_19:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PIPES,4,2                  ; @MAX_PIPES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DC: failed to blank crtc!\n"

	.no_dead_strip	_dce110_reset_hw_ctx_wrap
.subsections_via_symbols
