	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i7core_register_mci
_i7core_register_mci:                   ## @i7core_register_mci
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_EDAC_MC_LAYER_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_NUM_CHANS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$0, -64(%rbp)
	movq	_EDAC_MC_LAYER_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_MAX_DIMMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$1, -52(%rbp)
	movl	16(%rdi), %ebx
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	$56, %ecx
	callq	_edac_mc_alloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_2:
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_edac_dbg
	movq	64(%rbx), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%r14, 48(%r12)
	movq	%rbx, (%r14)
	movq	_MEM_FLAG_DDR3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_EDAC_FLAG_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movq	%rax, 40(%rbx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_kasprintf
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	callq	_pci_name
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mci_bind_devs
	movl	%eax, %r15d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_get_dimm_config
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	cmpq	$0, 40(%r12)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_enable_sdram_scrub_setting
LBB0_7:
	movq	_i7core_dev_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_edac_mc_add_mc_with_groups
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_edac_dbg
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_12:
	movq	%rbx, %rdi
	callq	_i7core_create_sysfs_devices
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_edac_dbg
	movq	16(%rbx), %rdi
	callq	_edac_mc_del_mc
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_10:
	movl	8(%rbx), %edi
	callq	_kfree
LBB0_11:
	movq	%rbx, %rdi
	callq	_edac_mc_free
	movq	$0, (%r14)
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	$0, 32(%r12)
	pcmpeqd	%xmm0, %xmm0
	movdqu	%xmm0, 8(%r12)
	movl	$-1, 24(%r12)
	movq	%r12, %rdi
	callq	_i7core_pci_ctl_create
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_get_dclk_freq
	movl	%eax, (%r12)
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EDAC_MC_LAYER_CHANNEL,4,2      ## @EDAC_MC_LAYER_CHANNEL
	.comm	_NUM_CHANS,4,2                  ## @NUM_CHANS
	.comm	_EDAC_MC_LAYER_SLOT,4,2         ## @EDAC_MC_LAYER_SLOT
	.comm	_MAX_DIMMS,4,2                  ## @MAX_DIMMS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MC: mci = %p, dev = %p\n"

	.comm	_MEM_FLAG_DDR3,4,2              ## @MEM_FLAG_DDR3
	.comm	_EDAC_FLAG_NONE,8,3             ## @EDAC_FLAG_NONE
L_.str.1:                               ## @.str.1
	.asciz	"i7core_edac.c"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"i7 core #%d"

	.comm	_i7core_dev_groups,4,2          ## @i7core_dev_groups
L_.str.3:                               ## @.str.3
	.asciz	"MC: failed edac_mc_add_mc()\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"MC: failed to create sysfs nodes\n"

	.no_dead_strip	_i7core_register_mci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i7core_register_mci
_i7core_register_mci:                   ; @i7core_register_mci
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _EDAC_MC_LAYER_CHANNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDAC_MC_LAYER_CHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NUM_CHANS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NUM_CHANS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	wzr, w9, [sp, #16]
Lloh9:
	adrp	x9, _EDAC_MC_LAYER_SLOT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EDAC_MC_LAYER_SLOT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _MAX_DIMMS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MAX_DIMMS@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	stp	w10, w9, [sp, #32]
	mov	w9, #1
	stp	w8, w9, [sp, #24]
	ldr	w20, [x0, #16]
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	mov	x1, x0
	add	x2, sp, #16
	mov	x0, x20
	mov	w3, #56
	bl	_edac_mc_alloc
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	stp	x20, x8, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_edac_dbg
	ldr	x21, [x20, #64]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	str	x19, [x21, #48]
	str	x20, [x19]
Lloh20:
	adrp	x8, _MEM_FLAG_DDR3@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MEM_FLAG_DDR3@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20, #56]
Lloh23:
	adrp	x8, _EDAC_FLAG_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EDAC_FLAG_NONE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, l_.str.1@PAGE
Lloh27:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x8, [x20, #40]
	str	x9, [x20]
Lloh28:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	w2, [x19, #16]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_kasprintf
	str	w0, [x20, #8]
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_pci_name
	str	w0, [x20, #32]
	str	xzr, [x20, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_mci_bind_devs
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.4:
	mov	x0, x20
	bl	_get_dimm_config
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	str	x8, [x20, #16]
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_enable_sdram_scrub_setting
LBB0_6:
Lloh33:
	adrp	x8, _i7core_dev_groups@GOTPAGE
Lloh34:
	ldr	x8, [x8, _i7core_dev_groups@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_edac_mc_add_mc_with_groups
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.7:
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
	b	LBB0_11
LBB0_8:
Lloh38:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_9:
	mov	x0, x20
	bl	_i7core_create_sysfs_devices
	cbz	x0, LBB0_16
; %bb.10:
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
	ldr	x0, [x20, #16]
	bl	_edac_mc_del_mc
LBB0_11:
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	ldr	w0, [x20, #8]
	bl	_kfree
LBB0_13:
	mov	x0, x20
	bl	_edac_mc_free
	str	xzr, [x19]
LBB0_14:
	ldr	x8, [sp, #40]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	str	xzr, [x21, #32]
	mov	x8, #-1
	stp	x8, x8, [x21, #8]
	str	w8, [x21, #24]
	mov	x0, x21
	bl	_i7core_pci_ctl_create
	bl	_get_dclk_freq
	mov	w22, #0
	str	w0, [x21]
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_EDAC_MC_LAYER_CHANNEL,4,2      ; @EDAC_MC_LAYER_CHANNEL
	.comm	_NUM_CHANS,4,2                  ; @NUM_CHANS
	.comm	_EDAC_MC_LAYER_SLOT,4,2         ; @EDAC_MC_LAYER_SLOT
	.comm	_MAX_DIMMS,4,2                  ; @MAX_DIMMS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MC: mci = %p, dev = %p\n"

	.comm	_MEM_FLAG_DDR3,4,2              ; @MEM_FLAG_DDR3
	.comm	_EDAC_FLAG_NONE,8,3             ; @EDAC_FLAG_NONE
l_.str.1:                               ; @.str.1
	.asciz	"i7core_edac.c"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"i7 core #%d"

	.comm	_i7core_dev_groups,4,2          ; @i7core_dev_groups
l_.str.3:                               ; @.str.3
	.asciz	"MC: failed edac_mc_add_mc()\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"MC: failed to create sysfs nodes\n"

	.no_dead_strip	_i7core_register_mci
.subsections_via_symbols
