	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_unit
_check_unit:                            ## @check_unit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_drp@GOTPCREL(%rip), %rax
	movslq	%edi, %rbx
	leaq	(,%rbx,4), %rdi
	addq	(%rax), %rdi
	callq	_DIMMS_PRESENT
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movq	_ecc_ctrl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	jne	LBB0_3
## %bb.2:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_pnd2_printk
	movl	$1, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drp,8,3                        ## @drp
	.comm	_ecc_ctrl,8,3                   ## @ecc_ctrl
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ECC disabled on channel %d\n"

	.no_dead_strip	_check_unit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_unit
_check_unit:                            ; @check_unit
	.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
Lloh0:
	adrp	x8, _drp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drp@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, w0, sxtw #2
	bl	_DIMMS_PRESENT
	cbz	x0, LBB0_4
; %bb.1:
	sxtw	x8, w19
Lloh3:
	adrp	x9, _ecc_ctrl@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ecc_ctrl@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pnd2_printk
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_drp,8,3                        ; @drp
	.comm	_ecc_ctrl,8,3                   ; @ecc_ctrl
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ECC disabled on channel %d\n"

	.no_dead_strip	_check_unit
.subsections_via_symbols
