	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atomfirmware_mem_ecc_supported ## -- Begin function amdgpu_atomfirmware_mem_ecc_supported
	.p2align	4, 0x90
_amdgpu_atomfirmware_mem_ecc_supported: ## @amdgpu_atomfirmware_mem_ecc_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_atom_master_list_of_data_tables_v2_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_index_into_master_table
	movq	(%rbx), %rdi
	leaq	-32(%rbp), %rdx
	leaq	-16(%rbp), %rcx
	leaq	-12(%rbp), %r8
	leaq	-24(%rbp), %r9
	movl	%eax, %esi
	callq	_amdgpu_atom_parse_data_header
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movl	-16(%rbp), %esi
	cmpl	$3, %esi
	sete	%cl
	cmpl	$0, -12(%rbp)
	setg	%dl
	cmpl	$3, %esi
	jg	LBB0_3
## %bb.2:
	andb	%dl, %cl
	je	LBB0_4
LBB0_3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	-24(%rbp), %rcx
	movl	(%rcx,%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %ecx
	movq	_UMC_CONFIG__DEFAULT_MEM_ECC_ENABLE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	setne	%al
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_atom_master_list_of_data_tables_v2_1,4,2 ## @atom_master_list_of_data_tables_v2_1
	.comm	_UMC_CONFIG__DEFAULT_MEM_ECC_ENABLE,4,2 ## @UMC_CONFIG__DEFAULT_MEM_ECC_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atomfirmware_mem_ecc_supported ; -- Begin function amdgpu_atomfirmware_mem_ecc_supported
	.p2align	2
_amdgpu_atomfirmware_mem_ecc_supported: ; @amdgpu_atomfirmware_mem_ecc_supported
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _atom_master_list_of_data_tables_v2_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _atom_master_list_of_data_tables_v2_1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_index_into_master_table
	mov	x1, x0
	ldr	x0, [x19]
	add	x2, sp, #16
	add	x3, sp, #12
	add	x4, sp, #8
	add	x5, sp, #24
	bl	_amdgpu_atom_parse_data_header
	cbz	x0, LBB0_4
; %bb.1:
	ldp	w9, w8, [sp, #8]
	cmp	w9, #0
	cset	w9, gt
	cmp	w8, #3
	cset	w8, eq
	and	w8, w8, w9
	ccmp	w8, #0, #0, le
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [sp, #24]
	ldr	w0, [x9, x8]
	bl	_le32_to_cpu
Lloh3:
	adrp	x8, _UMC_CONFIG__DEFAULT_MEM_ECC_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UMC_CONFIG__DEFAULT_MEM_ECC_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_atom_master_list_of_data_tables_v2_1,4,2 ; @atom_master_list_of_data_tables_v2_1
	.comm	_UMC_CONFIG__DEFAULT_MEM_ECC_ENABLE,4,2 ; @UMC_CONFIG__DEFAULT_MEM_ECC_ENABLE
.subsections_via_symbols
