	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmci_setup
_cmci_setup:                            ## @cmci_setup
	.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	_mp_maxid@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leal	8(,%rax,8), %edi
	movq	_M_MCA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_malloc
	movq	_cmc_state@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	cmpl	$0, (%rbx)
	js	LBB0_3
## %bb.1:
	movq	%rbx, %rcx
	movq	$-1, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_mca_banks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	movl	(%r12), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r14), %edx
	movq	%r12, %r13
	movq	%rcx, %r12
	callq	_malloc
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx,8)
	movq	%r12, %rcx
	movq	%r13, %r12
	movslq	(%rcx), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	__hw_mca@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SYSCTL_STATIC_CHILDREN
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CTLTYPE_INT@GOTPCREL(%rip), %rcx
	movq	_CTLFLAG_RW@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rcx), %r8d
	movq	_CTLFLAG_MPSAFE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_sysctl_positive_int@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	L_.str.2(%rip), %r10
	leaq	L_.str.1(%rip), %r11
	leaq	L_.str(%rip), %rcx
	movq	_cmc_throttle@GOTPCREL(%rip), %r9
	xorl	%edi, %edi
	movl	%eax, %esi
	pushq	%r10
	pushq	%r11
	pushq	%rbx
	pushq	$0
	callq	_SYSCTL_ADD_PROC
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mp_maxid,4,2                   ## @mp_maxid
	.comm	_M_MCA,4,2                      ## @M_MCA
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_cmc_state,8,3                  ## @cmc_state
	.comm	_mca_banks,4,2                  ## @mca_banks
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	__hw_mca,4,2                    ## @_hw_mca
	.comm	_OID_AUTO,4,2                   ## @OID_AUTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmc_throttle"

	.comm	_CTLTYPE_INT,4,2                ## @CTLTYPE_INT
	.comm	_CTLFLAG_RW,4,2                 ## @CTLFLAG_RW
	.comm	_CTLFLAG_MPSAFE,4,2             ## @CTLFLAG_MPSAFE
	.comm	_cmc_throttle,4,2               ## @cmc_throttle
	.comm	_sysctl_positive_int,4,2        ## @sysctl_positive_int
L_.str.1:                               ## @.str.1
	.asciz	"I"

L_.str.2:                               ## @.str.2
	.asciz	"Interval in seconds to throttle corrected MC interrupts"

	.no_dead_strip	_cmci_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmci_setup
_cmci_setup:                            ; @cmci_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x19, _mp_maxid@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mp_maxid@GOTPAGEOFF]
	ldr	w8, [x19]
	lsl	w8, w8, #3
	add	w0, w8, #8
Lloh2:
	adrp	x20, _M_MCA@GOTPAGE
Lloh3:
	ldr	x20, [x20, _M_MCA@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x21, _M_WAITOK@GOTPAGE
Lloh5:
	ldr	x21, [x21, _M_WAITOK@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_malloc
Lloh6:
	adrp	x22, _cmc_state@GOTPAGE
Lloh7:
	ldr	x22, [x22, _cmc_state@GOTPAGEOFF]
	str	x0, [x22]
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	mov	x23, #0
Lloh8:
	adrp	x24, _mca_banks@GOTPAGE
Lloh9:
	ldr	x24, [x24, _mca_banks@GOTPAGEOFF]
Lloh10:
	adrp	x25, _M_ZERO@GOTPAGE
Lloh11:
	ldr	x25, [x25, _M_ZERO@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	lsl	w0, w8, #2
	ldr	w1, [x20]
	ldr	w8, [x21]
	ldr	w9, [x25]
	orr	w2, w9, w8
	bl	_malloc
	ldr	x8, [x22]
	str	x0, [x8, x23, lsl #3]
	add	x8, x23, #1
	ldrsw	x9, [x19]
	cmp	x23, x9
	mov	x23, x8
	b.lt	LBB0_2
LBB0_3:
Lloh12:
	adrp	x8, __hw_mca@GOTPAGE
Lloh13:
	ldr	x8, [x8, __hw_mca@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_SYSCTL_STATIC_CHILDREN
	mov	x1, x0
Lloh15:
	adrp	x8, _OID_AUTO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OID_AUTO@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _CTLTYPE_INT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CTLTYPE_INT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _CTLFLAG_RW@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CTLFLAG_RW@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _CTLFLAG_MPSAFE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _CTLFLAG_MPSAFE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh26:
	ldr	w9, [x10]
	orr	w4, w8, w9
Lloh27:
	adrp	x8, _sysctl_positive_int@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sysctl_positive_int@GOTPAGEOFF]
Lloh29:
	ldr	w7, [x8]
Lloh30:
	adrp	x8, l_.str.2@PAGE
Lloh31:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh32:
	adrp	x9, l_.str.1@PAGE
Lloh33:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x9, x8, [sp]
Lloh34:
	adrp	x3, l_.str@PAGE
Lloh35:
	add	x3, x3, l_.str@PAGEOFF
Lloh36:
	adrp	x5, _cmc_throttle@GOTPAGE
Lloh37:
	ldr	x5, [x5, _cmc_throttle@GOTPAGEOFF]
	mov	x0, #0
	mov	w6, #0
	bl	_SYSCTL_ADD_PROC
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_mp_maxid,4,2                   ; @mp_maxid
	.comm	_M_MCA,4,2                      ; @M_MCA
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_cmc_state,8,3                  ; @cmc_state
	.comm	_mca_banks,4,2                  ; @mca_banks
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	__hw_mca,4,2                    ; @_hw_mca
	.comm	_OID_AUTO,4,2                   ; @OID_AUTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmc_throttle"

	.comm	_CTLTYPE_INT,4,2                ; @CTLTYPE_INT
	.comm	_CTLFLAG_RW,4,2                 ; @CTLFLAG_RW
	.comm	_CTLFLAG_MPSAFE,4,2             ; @CTLFLAG_MPSAFE
	.comm	_cmc_throttle,4,2               ; @cmc_throttle
	.comm	_sysctl_positive_int,4,2        ; @sysctl_positive_int
l_.str.1:                               ; @.str.1
	.asciz	"I"

l_.str.2:                               ; @.str.2
	.asciz	"Interval in seconds to throttle corrected MC interrupts"

	.no_dead_strip	_cmci_setup
.subsections_via_symbols
