	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd64_init_one_instance
_amd64_init_one_instance:               ## @amd64_init_one_instance
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_get_node_id
	movq	%rax, %r13
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, (%rax)
	movq	%rbx, 16(%rax)
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	movq	%rax, %rdi
	callq	_amd64_per_family_init
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r13
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movq	%r15, %rdi
	callq	_reserve_mc_sibling_devs
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	%r15, %rdi
	callq	_read_mc_regs
	movl	(%rbx), %r12d
	movq	32(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	js	LBB0_9
## %bb.4:
	movl	(%r14), %r12d
	movq	24(%r15), %rcx
	movl	(%rcx), %esi
	xorl	%edi, %edi
	movq	%rax, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_edac_mc_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movq	16(%r15), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_setup_mci_misc_attrs
	movq	%rbx, %rdi
	callq	_init_csrows
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EDAC_FLAG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_7:
	movq	%rbx, %rdi
	callq	_set_mc_sysfs_attrs
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_edac_mc_add_mc
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_12
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_debugf1
	movq	%rbx, %rdi
	callq	_edac_mc_free
LBB0_9:
	movq	%r15, %rdi
	callq	_free_mc_sibling_devs
LBB0_10:
	movq	%r15, %rdi
	callq	_kfree
LBB0_11:
	negl	%r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_report_gart_errors@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movl	$1, %edi
	callq	_amd_report_gart_errors
LBB0_14:
	movq	_amd64_decode_bus_error@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_amd_register_ecc_decoder
	movq	_mcis@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, (%rax,%r14,8)
	movq	_drv_instances@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
	xorl	%r12d, %r12d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EDAC_FLAG_NONE,4,2             ## @EDAC_FLAG_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed edac_mc_add_mc()\n"

	.comm	_report_gart_errors,8,3         ## @report_gart_errors
	.comm	_amd64_decode_bus_error,4,2     ## @amd64_decode_bus_error
	.comm	_mcis,8,3                       ## @mcis
	.comm	_drv_instances,4,2              ## @drv_instances
	.no_dead_strip	_amd64_init_one_instance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd64_init_one_instance
_amd64_init_one_instance:               ; @amd64_init_one_instance
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	bl	_get_node_id
	mov	x20, x0
Lloh0:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
	ldr	w23, [x25]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	str	x20, [x0]
	str	x21, [x0, #16]
Lloh5:
	adrp	x21, _EINVAL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
	ldr	w23, [x21]
	bl	_amd64_per_family_init
	cbz	x0, LBB0_10
; %bb.2:
	mov	x22, x0
Lloh7:
	adrp	x24, _ENODEV@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ENODEV@GOTPAGEOFF]
	ldr	w23, [x24]
	ldp	w2, w1, [x0]
	mov	x0, x19
	bl	_reserve_mc_sibling_devs
	cbnz	w0, LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_read_mc_regs
	ldr	w23, [x21]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	str	x0, [x19, #8]
	tbnz	x0, #63, LBB0_9
; %bb.4:
	mov	x2, x0
	ldr	w23, [x25]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	mov	w0, #0
	mov	x3, x20
	bl	_edac_mc_alloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x21, x0
	ldr	x8, [x19, #16]
	stp	x8, x19, [x0, #8]
	mov	x1, x22
	bl	_setup_mci_misc_attrs
	mov	x0, x21
	bl	_init_csrows
	cbz	x0, LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _EDAC_FLAG_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EDAC_FLAG_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_7:
	mov	x0, x21
	bl	_set_mc_sysfs_attrs
	ldr	w23, [x24]
	mov	x0, x21
	bl	_edac_mc_add_mc
	cbz	x0, LBB0_13
; %bb.8:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debugf1
	mov	x0, x21
	bl	_edac_mc_free
LBB0_9:
	mov	x0, x19
	bl	_free_mc_sibling_devs
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
	neg	w0, w23
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh14:
	adrp	x8, _report_gart_errors@GOTPAGE
Lloh15:
	ldr	x8, [x8, _report_gart_errors@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	w0, #1
	bl	_amd_report_gart_errors
LBB0_15:
Lloh17:
	adrp	x8, _amd64_decode_bus_error@GOTPAGE
Lloh18:
	ldr	x8, [x8, _amd64_decode_bus_error@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_amd_register_ecc_decoder
Lloh20:
	adrp	x8, _mcis@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mcis@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x21, [x8, x20, lsl #3]
Lloh23:
	adrp	x0, _drv_instances@GOTPAGE
Lloh24:
	ldr	x0, [x0, _drv_instances@GOTPAGEOFF]
	bl	_atomic_inc
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EDAC_FLAG_NONE,4,2             ; @EDAC_FLAG_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed edac_mc_add_mc()\n"

	.comm	_report_gart_errors,8,3         ; @report_gart_errors
	.comm	_amd64_decode_bus_error,4,2     ; @amd64_decode_bus_error
	.comm	_mcis,8,3                       ; @mcis
	.comm	_drv_instances,4,2              ; @drv_instances
	.no_dead_strip	_amd64_init_one_instance
.subsections_via_symbols
