	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_device_ip_check_soft_reset
_amdgpu_device_ip_check_soft_reset:     ## @amdgpu_device_ip_check_soft_reset
	.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	%rdi, %r12
	callq	_amdgpu_sriov_vf
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movq	%r12, %rdi
	callq	_amdgpu_asic_need_full_reset
	testq	%rax, %rax
	je	LBB0_2
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r15
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	addq	$24, %rbx
	cmpq	%rax, %r13
	jge	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	cmpl	$0, 16(%rcx,%rbx)
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx,%rbx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	*%rdx
	movq	8(%r12), %rcx
	movq	%rax, 8(%rcx,%rbx)
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rcx,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx,%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_DRM_INFO
	movl	$1, %r14d
	jmp	LBB0_11
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IP block:%s is hung!\n"

	.no_dead_strip	_amdgpu_device_ip_check_soft_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_device_ip_check_soft_reset
_amdgpu_device_ip_check_soft_reset:     ; @amdgpu_device_ip_check_soft_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_amdgpu_sriov_vf
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_amdgpu_asic_need_full_reset
	cbz	x0, LBB0_4
LBB0_2:
	mov	w20, #1
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.5:
	mov	x22, #0
	mov	x23, #0
	mov	w20, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x8, x22
	ldr	x0, [x9, #8]
	cbz	x0, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x8, x22]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_DRM_INFO
	mov	w20, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #24
	cmp	x23, x8
	b.ge	LBB0_3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x9, x8, x22
	ldr	w9, [x9, #16]
	cbz	w9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x8, x22]
	ldr	x9, [x9]
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	blr	x9
	ldr	x8, [x19, #8]
	add	x9, x8, x22
	str	x0, [x9, #8]
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_12:
	mov	w20, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IP block:%s is hung!\n"

	.no_dead_strip	_amdgpu_device_ip_check_soft_reset
.subsections_via_symbols
