	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_channel
_check_channel:                         ## @check_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %edx
	movq	_drp0@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%edi, %rsi
	shlq	$4, %rsi
	cmpq	$0, (%rcx,%rsi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pnd2_printk
	movl	$1, %eax
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
	cmpq	$0, 8(%rcx,%rsi)
	je	LBB0_3
LBB0_5:
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_drp0,8,3                       ## @drp0
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported DIMM in channel %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"ECC disabled on channel %d\n"

	.no_dead_strip	_check_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_channel
_check_channel:                         ; @check_channel
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x0
Lloh0:
	adrp	x8, _drp0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drp0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sbfiz	x9, x2, #4, #32
	ldr	x9, [x8, x9]
	cbz	x9, LBB0_3
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
Lloh5:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pnd2_printk
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	sxtw	x9, w2
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_drp0,8,3                       ; @drp0
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported DIMM in channel %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"ECC disabled on channel %d\n"

	.no_dead_strip	_check_channel
.subsections_via_symbols
