	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnd2_register_mci
_pnd2_register_mci:                     ## @pnd2_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	_ops@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_EDAC_MC_LAYER_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	(%r12), %rax
	movl	24(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movl	$0, -64(%rbp)
	movq	_EDAC_MC_LAYER_SLOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)
	movl	20(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$1, -52(%rbp)
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	movl	$4, %ecx
	callq	_edac_mc_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	16(%rax), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_EDAC_MOD_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	(%r12), %rax
	movl	16(%rax), %eax
	movl	%eax, 8(%rbx)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	(%r12), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	%rbx, %rdi
	callq	_edac_mc_add_mc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_edac_dbg
	movq	%rbx, %rdi
	callq	_edac_mc_free
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, (%r14)
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ops,8,3                        ## @ops
	.comm	_EDAC_MC_LAYER_CHANNEL,4,2      ## @EDAC_MC_LAYER_CHANNEL
	.comm	_EDAC_MC_LAYER_SLOT,4,2         ## @EDAC_MC_LAYER_SLOT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EDAC_MOD_STR,4,2               ## @EDAC_MOD_STR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pondicherry2"

L_.str.1:                               ## @.str.1
	.asciz	"MC: failed edac_mc_add_mc()\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pnd2_register_mci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnd2_register_mci
_pnd2_register_mci:                     ; @pnd2_register_mci
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	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, #24]
Lloh3:
	adrp	x21, _ops@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ops@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8]
	blr	x8
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh5:
	adrp	x8, _EDAC_MC_LAYER_CHANNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EDAC_MC_LAYER_CHANNEL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x21]
Lloh8:
	adrp	x10, _EDAC_MC_LAYER_SLOT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EDAC_MC_LAYER_SLOT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	str	w10, [sp, #20]
	ldp	w11, w10, [x9, #20]
	stp	wzr, w10, [sp]
	mov	w9, #1
	str	w8, [sp, #8]
	stp	w9, w11, [sp, #12]
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x2, sp
	mov	w0, #0
	mov	w3, #4
	bl	_edac_mc_alloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x0, [x0, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh11:
	adrp	x8, _EDAC_MOD_STR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EDAC_MOD_STR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	ldr	x8, [x21]
	ldr	w8, [x8, #16]
	str	w8, [x20, #8]
Lloh14:
	adrp	x8, l_.str@PAGE
Lloh15:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	_edac_mc_add_mc
	cbz	x0, LBB0_6
; %bb.3:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
	mov	x0, x20
	bl	_edac_mc_free
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	str	x20, [x19]
LBB0_7:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ops,8,3                        ; @ops
	.comm	_EDAC_MC_LAYER_CHANNEL,4,2      ; @EDAC_MC_LAYER_CHANNEL
	.comm	_EDAC_MC_LAYER_SLOT,4,2         ; @EDAC_MC_LAYER_SLOT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EDAC_MOD_STR,4,2               ; @EDAC_MOD_STR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pondicherry2"

l_.str.1:                               ; @.str.1
	.asciz	"MC: failed edac_mc_add_mc()\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pnd2_register_mci
.subsections_via_symbols
