	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmc_v9_0_late_init
_gmc_v9_0_late_init:                    ## @gmc_v9_0_late_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_gmc_v9_0_keep_stolen_memory
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_amdgpu_bo_late_init
LBB0_2:
	movq	%rbx, %rdi
	callq	_gmc_v9_0_allocate_vm_inv_eng
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	%rbx, %rdi
	callq	_amdgpu_sriov_vf
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movl	(%rbx), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_amdgpu_atomfirmware_mem_ecc_supported
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_INFO
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_9:
	movq	%rbx, %rdi
	callq	_amdgpu_atomfirmware_sram_ecc_supported
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_DRM_INFO
LBB0_10:
	movq	%rbx, %rdi
	callq	_gmc_v9_0_ecc_late_init
	testl	%eax, %eax
	je	LBB0_12
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_12:
	leaq	4(%rbx), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_amdgpu_irq_get                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ECC is not present.\n"

L_.str.1:                               ## @.str.1
	.asciz	"ECC is active.\n"

L_.str.2:                               ## @.str.2
	.asciz	"SRAM ECC is not present.\n"

L_.str.3:                               ## @.str.3
	.asciz	"SRAM ECC is active.\n"

	.no_dead_strip	_gmc_v9_0_late_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmc_v9_0_late_init
_gmc_v9_0_late_init:                    ; @gmc_v9_0_late_init
	.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	_gmc_v9_0_keep_stolen_memory
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_amdgpu_bo_late_init
LBB0_2:
	mov	x0, x19
	bl	_gmc_v9_0_allocate_vm_inv_eng
	cbnz	w0, LBB0_11
; %bb.3:
	mov	x0, x19
	bl	_amdgpu_sriov_vf
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w8, [x19]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_amdgpu_atomfirmware_mem_ecc_supported
	cbz	w0, LBB0_7
; %bb.6:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_INFO
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_9:
	mov	x0, x19
	bl	_amdgpu_atomfirmware_sram_ecc_supported
Lloh4:
	adrp	x8, l_.str.3@PAGE
Lloh5:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x0, x9, x8, eq
	bl	_DRM_INFO
LBB0_10:
	mov	x0, x19
	bl	_gmc_v9_0_ecc_late_init
	cbz	w0, LBB0_12
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	add	x1, x19, #4
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_amdgpu_irq_get
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ECC is not present.\n"

l_.str.1:                               ; @.str.1
	.asciz	"ECC is active.\n"

l_.str.2:                               ; @.str.2
	.asciz	"SRAM ECC is not present.\n"

l_.str.3:                               ; @.str.3
	.asciz	"SRAM ECC is active.\n"

	.no_dead_strip	_gmc_v9_0_late_init
.subsections_via_symbols
