	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_device_ip_need_full_reset
_amdgpu_device_ip_need_full_reset:      ## @amdgpu_device_ip_need_full_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_amdgpu_asic_need_full_reset
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movl	(%rbx), %edi
	testl	%edi, %edi
	jle	LBB0_12
## %bb.2:
	movq	8(%rbx), %rax
	movq	_AMD_IP_BLOCK_TYPE_GMC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_AMD_IP_BLOCK_TYPE_SMC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_AMD_IP_BLOCK_TYPE_ACP@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r10
	movq	_AMD_IP_BLOCK_TYPE_DCE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r9
	movq	_AMD_IP_BLOCK_TYPE_PSP@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	shlq	$3, %rdi
	leaq	(%rdi,%rdi,2), %rbx
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%rax,%rdi)
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rdi
	cmpq	%rdi, %rbx
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 8(%rax,%rdi)
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rax,%rdi), %rsi
	movq	(%rsi), %rsi
	cmpq	%rcx, %rsi
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, %rsi
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r10, %rsi
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r9, %rsi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r8, %rsi
	jne	LBB0_11
	jmp	LBB0_9
LBB0_12:
	xorl	%r14d, %r14d
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_IP_BLOCK_TYPE_GMC,8,3      ## @AMD_IP_BLOCK_TYPE_GMC
	.comm	_AMD_IP_BLOCK_TYPE_SMC,8,3      ## @AMD_IP_BLOCK_TYPE_SMC
	.comm	_AMD_IP_BLOCK_TYPE_ACP,8,3      ## @AMD_IP_BLOCK_TYPE_ACP
	.comm	_AMD_IP_BLOCK_TYPE_DCE,8,3      ## @AMD_IP_BLOCK_TYPE_DCE
	.comm	_AMD_IP_BLOCK_TYPE_PSP,8,3      ## @AMD_IP_BLOCK_TYPE_PSP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Some block need full reset!\n"

	.no_dead_strip	_amdgpu_device_ip_need_full_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_need_full_reset
_amdgpu_device_ip_need_full_reset:      ; @amdgpu_device_ip_need_full_reset
	.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_asic_need_full_reset
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_10
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	ldr	x14, [x19, #8]
Lloh0:
	adrp	x9, _AMD_IP_BLOCK_TYPE_GMC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMD_IP_BLOCK_TYPE_GMC@GOTPAGEOFF]
Lloh2:
	adrp	x10, _AMD_IP_BLOCK_TYPE_SMC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AMD_IP_BLOCK_TYPE_SMC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _AMD_IP_BLOCK_TYPE_ACP@GOTPAGE
Lloh7:
	ldr	x11, [x11, _AMD_IP_BLOCK_TYPE_ACP@GOTPAGEOFF]
Lloh8:
	adrp	x12, _AMD_IP_BLOCK_TYPE_DCE@GOTPAGE
Lloh9:
	ldr	x12, [x12, _AMD_IP_BLOCK_TYPE_DCE@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
Lloh11:
	ldr	x12, [x12]
Lloh12:
	adrp	x13, _AMD_IP_BLOCK_TYPE_PSP@GOTPAGE
Lloh13:
	ldr	x13, [x13, _AMD_IP_BLOCK_TYPE_PSP@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x13]
	add	x14, x14, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x14, x14, #24
	subs	x8, x8, #1
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x14]
	cbz	w15, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x15, [x14, #8]
	ldr	x15, [x15]
	cmp	x15, x9
	ccmp	x15, x10, #4, ne
	ccmp	x15, x11, #4, ne
	ccmp	x15, x12, #4, ne
	ccmp	x15, x13, #4, ne
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x15, [x14, #-8]
	cbz	x15, LBB0_4
; %bb.8:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_IP_BLOCK_TYPE_GMC,8,3      ; @AMD_IP_BLOCK_TYPE_GMC
	.comm	_AMD_IP_BLOCK_TYPE_SMC,8,3      ; @AMD_IP_BLOCK_TYPE_SMC
	.comm	_AMD_IP_BLOCK_TYPE_ACP,8,3      ; @AMD_IP_BLOCK_TYPE_ACP
	.comm	_AMD_IP_BLOCK_TYPE_DCE,8,3      ; @AMD_IP_BLOCK_TYPE_DCE
	.comm	_AMD_IP_BLOCK_TYPE_PSP,8,3      ; @AMD_IP_BLOCK_TYPE_PSP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Some block need full reset!\n"

	.no_dead_strip	_amdgpu_device_ip_need_full_reset
.subsections_via_symbols
