	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_ras_error_query         ## -- Begin function amdgpu_ras_error_query
	.p2align	4, 0x90
_amdgpu_ras_error_query:                ## @amdgpu_ras_error_query
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_amdgpu_ras_find_obj
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	$0, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_8
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.5:
	movq	24(%r14), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	*%rax
	movq	24(%r14), %rcx
LBB0_7:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_8:
	movq	16(%r14), %rax
	jmp	LBB0_10
LBB0_9:
	movq	8(%r14), %rax
LBB0_10:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
LBB0_12:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	*%rcx
LBB0_13:
	movq	-80(%rbp), %rax
	movl	(%r12), %ecx
	addl	%eax, %ecx
	movl	%ecx, (%r12)
	movq	-72(%rbp), %rdx
	movl	4(%r12), %ebx
	addl	%edx, %ebx
	movl	%ebx, 4(%r12)
	movl	%ecx, 8(%r15)
	movl	%ebx, 4(%r15)
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.14:
	movl	(%r14), %r13d
	movl	(%r15), %edi
	callq	_ras_block_str
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_info
	movq	-80(%rbp), %rax
LBB0_15:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	(%r14), %r14d
	movl	(%r12), %r12d
	movl	(%r15), %edi
	callq	_ras_block_str
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_info
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%ld correctable errors detected in %s block\n"

L_.str.1:                               ## @.str.1
	.asciz	"%ld uncorrectable errors detected in %s block\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_ras_error_query         ; -- Begin function amdgpu_ras_error_query
	.p2align	2
_amdgpu_ras_error_query:                ; @amdgpu_ras_error_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
	bl	_amdgpu_ras_find_obj
	str	xzr, [sp, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_16
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.4:
	ldr	x8, [x20, #24]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_8
; %bb.5:
	mov	x1, sp
	mov	x0, x20
	blr	x9
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	cbnz	x8, LBB0_9
	b	LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_7:
	ldr	x8, [x20, #16]
LBB0_8:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
LBB0_9:
	mov	x1, sp
	mov	x0, x20
	blr	x8
LBB0_10:
	ldr	x8, [sp]
	ldp	w9, w10, [x21]
	add	w9, w9, w8
	str	w9, [x21]
	ldr	x11, [sp, #8]
	add	w22, w10, w11
	str	w22, [x21, #4]
	stp	w22, w9, [x19, #4]
	cbz	x11, LBB0_12
; %bb.11:
	ldr	w23, [x20]
	ldr	w0, [x19]
	bl	_ras_block_str
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_dev_info
	ldr	x8, [sp]
LBB0_12:
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w20, [x20]
	ldr	w21, [x21]
	ldr	w0, [x19]
	bl	_ras_block_str
	mov	x3, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_info
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_9
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%ld correctable errors detected in %s block\n"

l_.str.1:                               ; @.str.1
	.asciz	"%ld uncorrectable errors detected in %s block\n"

.subsections_via_symbols
