	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn10_reset_hw_ctx_wrap
_dcn10_reset_hw_ctx_wrap:               ## @dcn10_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
	pushq	%rax
	.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	16(%rdi), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.1:
	movq	%rdi, %r15
	incq	%r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	decq	%r14
	cmpq	$1, %r14
	jbe	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r14), %eax
	movq	8(%r15), %rdx
	movq	(%rdx), %rbx
	leaq	(,%rax,8), %rcx
	leaq	(%rcx,%rcx,2), %r12
	cmpl	$0, 8(%rbx,%r12)
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%rax,2), %rax
	cmpq	$0, 16(%rbx,%rax,8)
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r12, %rbx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	addq	%rcx, %r12
	cmpl	$0, 8(%rcx,%rax,8)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_pipe_need_reprogram
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rdx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dcn10_reset_back_end_for_pipe
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	%r13, %rdi
	callq	*(%rax)
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dcn10_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 dcn10_reset_hw_ctx_wrap
_dcn10_reset_hw_ctx_wrap:               ; @dcn10_reset_hw_ctx_wrap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x24, x8, #1
	mov	w25, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x24, x24, #1
	cmp	x24, #1
	b.ls	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w24, #2
	ldr	x2, [x20, #8]
	ldr	x10, [x2]
	add	x9, x8, w8, uxtw #1
	lsl	x9, x9, #3
	add	x21, x10, x9
	ldr	w11, [x21, #8]
	cbz	w11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x10, x8, x25, x10
	ldr	x10, [x10, #16]
	cbnz	x10, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x19]
	add	x22, x10, x9
	madd	x8, x8, x25, x10
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_pipe_need_reprogram
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [x20, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_dcn10_reset_back_end_for_pipe
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x22
	blr	x8
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x23, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8]
	mov	x0, x23
	blr	x8
	b	LBB0_2
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dcn10_reset_hw_ctx_wrap
.subsections_via_symbols
