	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn10_hw_wa_force_recovery
_dcn10_hw_wa_force_recovery:            ## @dcn10_hw_wa_force_recovery
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_16
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	(%rax), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	*%rcx
	movq	8(%r15), %rax
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_38
LBB0_9:
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movl	(%rax), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rdi), %rcx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %esi
	callq	*%rcx
	movq	8(%r15), %rax
	jmp	LBB0_15
LBB0_16:
	movl	4(%rax), %edi
	movl	$1, %r14d
	movl	$1, %esi
	callq	_hubbub1_soft_reset
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_30
## %bb.17:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movl	(%rax), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_23
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%rdi), %rcx
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$1, %esi
	callq	*%rcx
	movq	8(%r15), %rax
	jmp	LBB0_22
LBB0_23:
	testl	%ecx, %ecx
	je	LBB0_30
## %bb.24:
	xorl	%ebx, %ebx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_25 Depth=1
	incq	%rbx
	movl	(%rax), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_30
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	(%rdi), %rcx
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	$1, %esi
	callq	*%rcx
	movq	8(%r15), %rax
	jmp	LBB0_29
LBB0_30:
	movl	4(%rax), %edi
	xorl	%esi, %esi
	callq	_hubbub1_soft_reset
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_38
## %bb.31:
	xorl	%ebx, %ebx
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_32 Depth=1
	incq	%rbx
	movl	(%rax), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_37
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_36
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	(%rdi), %rcx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	$1, %esi
	callq	*%rcx
	movq	8(%r15), %rax
	jmp	LBB0_36
LBB0_37:
	movl	$1, %r14d
LBB0_38:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dcn10_hw_wa_force_recovery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn10_hw_wa_force_recovery
_dcn10_hw_wa_force_recovery:            ; @dcn10_hw_wa_force_recovery
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	cbz	w9, LBB0_16
; %bb.2:
	mov	x20, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldr	w9, [x8]
	cmp	x20, x9
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x9, [x9]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x0]
	ldr	x9, [x9]
	cbz	x9, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	blr	x9
	ldr	x8, [x19, #8]
	b	LBB0_3
LBB0_8:
	mov	w0, #0
	b	LBB0_38
LBB0_9:
	cbz	w9, LBB0_16
; %bb.10:
	mov	x20, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x20, x20, #1
	ldr	w9, [x8]
	cmp	x20, x9
	b.hs	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x9, [x9]
	cbz	x9, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w1, #1
	blr	x9
	ldr	x8, [x19, #8]
	b	LBB0_11
LBB0_16:
	ldr	w0, [x8, #4]
	mov	w1, #1
	bl	_hubbub1_soft_reset
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cbz	w9, LBB0_30
; %bb.17:
	mov	x20, #0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x20, x20, #1
	ldr	w9, [x8]
	cmp	x20, x9
	b.hs	LBB0_23
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x9, [x9]
	cbz	x9, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x9, [x0]
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w1, #1
	blr	x9
	ldr	x8, [x19, #8]
	b	LBB0_18
LBB0_23:
	cbz	w9, LBB0_30
; %bb.24:
	mov	x20, #0
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x20, x20, #1
	ldr	w9, [x8]
	cmp	x20, x9
	b.hs	LBB0_30
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x9, [x9]
	cbz	x9, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x9, [x0]
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_25
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	w1, #1
	blr	x9
	ldr	x8, [x19, #8]
	b	LBB0_25
LBB0_30:
	ldr	w0, [x8, #4]
	mov	w1, #0
	bl	_hubbub1_soft_reset
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cbz	w9, LBB0_37
; %bb.31:
	mov	x20, #0
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	add	x20, x20, #1
	ldr	w9, [x8]
	cmp	x20, x9
	b.hs	LBB0_37
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x9, [x9]
	cbz	x9, LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_32
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	w1, #1
	blr	x9
	ldr	x8, [x19, #8]
	b	LBB0_32
LBB0_37:
	mov	w0, #1
LBB0_38:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dcn10_hw_wa_force_recovery
.subsections_via_symbols
