	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_device_should_recover_gpu ## -- Begin function amdgpu_device_should_recover_gpu
	.p2align	4, 0x90
_amdgpu_device_should_recover_gpu:      ## @amdgpu_device_should_recover_gpu
	.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
	movq	%rdi, %rbx
	callq	_amdgpu_device_ip_check_soft_reset
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_amdgpu_gpu_recovery@GOTPCREL(%rip), %r15
	leaq	L_.str.1(%rip), %r14
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_amdgpu_sriov_vf
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.4:
	cmpl	$-1, (%r15)
	jne	LBB0_7
## %bb.5:
	movl	(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$13, %ecx
	jae	LBB0_6
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %r14
LBB0_6:
	movq	%r14, %rdi
	callq	_DRM_INFO
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout, but no hardware hang detected.\n"

	.comm	_amdgpu_gpu_recovery,4,2        ## @amdgpu_gpu_recovery
L_.str.1:                               ## @.str.1
	.asciz	"GPU recovery disabled.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_device_should_recover_gpu ; -- Begin function amdgpu_device_should_recover_gpu
	.p2align	2
_amdgpu_device_should_recover_gpu:      ; @amdgpu_device_should_recover_gpu
	.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, x0
	bl	_amdgpu_device_ip_check_soft_reset
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x20, _amdgpu_gpu_recovery@GOTPAGE
Lloh1:
	ldr	x20, [x20, _amdgpu_gpu_recovery@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_amdgpu_sriov_vf
	mov	x8, x0
	mov	w0, #1
	cbnz	x8, LBB0_9
; %bb.3:
	ldr	w8, [x20]
	cmn	w8, #1
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #13
	b.hs	LBB0_7
; %bb.5:
	mov	w0, #1
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_DRM_INFO
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout, but no hardware hang detected.\n"

	.comm	_amdgpu_gpu_recovery,4,2        ; @amdgpu_gpu_recovery
l_.str.1:                               ; @.str.1
	.asciz	"GPU recovery disabled.\n"

.subsections_via_symbols
