	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_ras_check_supported
_amdgpu_ras_check_supported:            ## @amdgpu_ras_check_supported
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$0, (%rsi)
	movl	$0, (%rdx)
	callq	_amdgpu_sriov_vf
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	(%rbx), %rax
	movq	_CHIP_VEGA20@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_amdgpu_atomfirmware_mem_ecc_supported
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_amdgpu_atomfirmware_sram_ecc_supported
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_AMDGPU_RAS_BLOCK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_6:
	movq	_amdgpu_ras_enable@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.8:
	movq	_amdgpu_ras_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	movl	%eax, (%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_VEGA20,8,3                ## @CHIP_VEGA20
	.comm	_AMDGPU_RAS_BLOCK_MASK,4,2      ## @AMDGPU_RAS_BLOCK_MASK
	.comm	_amdgpu_ras_enable,8,3          ## @amdgpu_ras_enable
	.comm	_amdgpu_ras_mask,4,2            ## @amdgpu_ras_mask
	.no_dead_strip	_amdgpu_ras_check_supported
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_ras_check_supported
_amdgpu_ras_check_supported:            ; @amdgpu_ras_check_supported
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	wzr, [x1]
	str	wzr, [x2]
	bl	_amdgpu_sriov_vf
	cbnz	x0, LBB0_9
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _CHIP_VEGA20@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_VEGA20@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_amdgpu_atomfirmware_mem_ecc_supported
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_amdgpu_atomfirmware_sram_ecc_supported
	cbz	x0, LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _AMDGPU_RAS_BLOCK_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMDGPU_RAS_BLOCK_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_6:
Lloh6:
	adrp	x8, _amdgpu_ras_enable@GOTPAGE
Lloh7:
	ldr	x8, [x8, _amdgpu_ras_enable@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _amdgpu_ras_mask@GOTPAGE
Lloh10:
	ldr	x9, [x9, _amdgpu_ras_mask@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
LBB0_8:
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_VEGA20,8,3                ; @CHIP_VEGA20
	.comm	_AMDGPU_RAS_BLOCK_MASK,4,2      ; @AMDGPU_RAS_BLOCK_MASK
	.comm	_amdgpu_ras_enable,8,3          ; @amdgpu_ras_enable
	.comm	_amdgpu_ras_mask,4,2            ; @amdgpu_ras_mask
	.no_dead_strip	_amdgpu_ras_check_supported
.subsections_via_symbols
