	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function umc_v6_1_query_correctable_error_count
_umc_v6_1_query_correctable_error_count: ## @umc_v6_1_query_correctable_error_count
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	_UMC@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_mmUMCCH0_0_EccErrCntSel@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%rax, %r12
	movl	(%r14), %edi
	movq	_mmUMCCH0_0_EccErrCnt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%rax, %rbx
	movl	(%r14), %edi
	movq	_mmMCA_UMC_UMC0_MCUMC_STATUST0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	%r15, %r12
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_RREG32
	movq	_UMCCH0_0_EccErrCntSel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_EccErrCntCsSel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_WREG32
	addq	%r15, %rbx
	movq	%rbx, %rdi
	callq	_RREG32
	movq	_UMCCH0_0_EccErrCnt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_EccErrCnt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_REG_GET_FIELD
	cltq
	movq	_UMC_V6_1_CE_CNT_INIT@GOTPCREL(%rip), %r15
	subq	(%r15), %rax
	addq	%rax, (%r13)
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_WREG32
	movq	_UMCCH0_0_EccErrCntSel@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EccErrCntCsSel@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_WREG32
	movq	%rbx, %rdi
	callq	_RREG32
	movq	_UMCCH0_0_EccErrCnt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_EccErrCnt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_REG_GET_FIELD
	cltq
	subq	(%r15), %rax
	addq	%rax, (%r13)
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_WREG32
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	-48(%rbp), %rdi                 ## 8-byte Folded Reload
	callq	_RREG64_UMC
	movq	%rax, %rbx
	movq	_MCA_UMC_UMC0_MCUMC_STATUST0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_ErrorCodeExt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_GET_FIELD
	cmpl	$6, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %esi
	movq	_Val@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_GET_FIELD
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%r14), %esi
	movq	_CECC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_GET_FIELD
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	incq	(%r13)
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UMC,4,2                        ## @UMC
	.comm	_mmUMCCH0_0_EccErrCntSel,4,2    ## @mmUMCCH0_0_EccErrCntSel
	.comm	_mmUMCCH0_0_EccErrCnt,4,2       ## @mmUMCCH0_0_EccErrCnt
	.comm	_mmMCA_UMC_UMC0_MCUMC_STATUST0,4,2 ## @mmMCA_UMC_UMC0_MCUMC_STATUST0
	.comm	_UMCCH0_0_EccErrCntSel,4,2      ## @UMCCH0_0_EccErrCntSel
	.comm	_EccErrCntCsSel,4,2             ## @EccErrCntCsSel
	.comm	_UMCCH0_0_EccErrCnt,4,2         ## @UMCCH0_0_EccErrCnt
	.comm	_EccErrCnt,4,2                  ## @EccErrCnt
	.comm	_UMC_V6_1_CE_CNT_INIT,8,3       ## @UMC_V6_1_CE_CNT_INIT
	.comm	_MCA_UMC_UMC0_MCUMC_STATUST0,4,2 ## @MCA_UMC_UMC0_MCUMC_STATUST0
	.comm	_ErrorCodeExt,4,2               ## @ErrorCodeExt
	.comm	_Val,4,2                        ## @Val
	.comm	_CECC,4,2                       ## @CECC
	.no_dead_strip	_umc_v6_1_query_correctable_error_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function umc_v6_1_query_correctable_error_count
_umc_v6_1_query_correctable_error_count: ; @umc_v6_1_query_correctable_error_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x21, _UMC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UMC@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _mmUMCCH0_0_EccErrCntSel@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmUMCCH0_0_EccErrCntSel@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x22, x0
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _mmUMCCH0_0_EccErrCnt@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmUMCCH0_0_EccErrCnt@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x24, x0
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _mmMCA_UMC_UMC0_MCUMC_STATUST0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmMCA_UMC_UMC0_MCUMC_STATUST0@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	add	x23, x22, x20
	mov	x0, x23
	bl	_RREG32
Lloh11:
	adrp	x26, _UMCCH0_0_EccErrCntSel@GOTPAGE
Lloh12:
	ldr	x26, [x26, _UMCCH0_0_EccErrCntSel@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh13:
	adrp	x27, _EccErrCntCsSel@GOTPAGE
Lloh14:
	ldr	x27, [x27, _EccErrCntCsSel@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	w3, #0
	bl	_REG_SET_FIELD
	mov	x25, x0
	mov	x0, x23
	mov	x1, x25
	bl	_WREG32
	add	x22, x24, x20
	mov	x0, x22
	bl	_RREG32
Lloh15:
	adrp	x24, _UMCCH0_0_EccErrCnt@GOTPAGE
Lloh16:
	ldr	x24, [x24, _UMCCH0_0_EccErrCnt@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh17:
	adrp	x28, _EccErrCnt@GOTPAGE
Lloh18:
	ldr	x28, [x28, _EccErrCnt@GOTPAGEOFF]
	ldr	w2, [x28]
	bl	_REG_GET_FIELD
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
Lloh19:
	adrp	x21, _UMC_V6_1_CE_CNT_INIT@GOTPAGE
Lloh20:
	ldr	x21, [x21, _UMC_V6_1_CE_CNT_INIT@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x10, [x19]
	sub	x8, x8, x9
	add	x8, x8, x10
	str	x8, [x19]
	ldr	x1, [x21]
	mov	x0, x22
	bl	_WREG32
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x25
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x1, x0
	mov	x0, x23
	bl	_WREG32
	mov	x0, x22
	bl	_RREG32
	ldr	w1, [x24]
	ldr	w2, [x28]
	bl	_REG_GET_FIELD
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x21]
	ldr	x10, [x19]
	sub	x8, x8, x9
	add	x8, x8, x10
	str	x8, [x19]
	ldr	x1, [x21]
	mov	x0, x22
	bl	_WREG32
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x0, x8, x20
	bl	_RREG64_UMC
	mov	x20, x0
Lloh21:
	adrp	x21, _MCA_UMC_UMC0_MCUMC_STATUST0@GOTPAGE
Lloh22:
	ldr	x21, [x21, _MCA_UMC_UMC0_MCUMC_STATUST0@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh23:
	adrp	x8, _ErrorCodeExt@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ErrorCodeExt@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_REG_GET_FIELD
	cmp	w0, #6
	b.ne	LBB0_4
; %bb.1:
	ldr	w1, [x21]
Lloh26:
	adrp	x8, _Val@GOTPAGE
Lloh27:
	ldr	x8, [x8, _Val@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_GET_FIELD
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	w1, [x21]
Lloh29:
	adrp	x8, _CECC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CECC@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_GET_FIELD
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_UMC,4,2                        ; @UMC
	.comm	_mmUMCCH0_0_EccErrCntSel,4,2    ; @mmUMCCH0_0_EccErrCntSel
	.comm	_mmUMCCH0_0_EccErrCnt,4,2       ; @mmUMCCH0_0_EccErrCnt
	.comm	_mmMCA_UMC_UMC0_MCUMC_STATUST0,4,2 ; @mmMCA_UMC_UMC0_MCUMC_STATUST0
	.comm	_UMCCH0_0_EccErrCntSel,4,2      ; @UMCCH0_0_EccErrCntSel
	.comm	_EccErrCntCsSel,4,2             ; @EccErrCntCsSel
	.comm	_UMCCH0_0_EccErrCnt,4,2         ; @UMCCH0_0_EccErrCnt
	.comm	_EccErrCnt,4,2                  ; @EccErrCnt
	.comm	_UMC_V6_1_CE_CNT_INIT,8,3       ; @UMC_V6_1_CE_CNT_INIT
	.comm	_MCA_UMC_UMC0_MCUMC_STATUST0,4,2 ; @MCA_UMC_UMC0_MCUMC_STATUST0
	.comm	_ErrorCodeExt,4,2               ; @ErrorCodeExt
	.comm	_Val,4,2                        ; @Val
	.comm	_CECC,4,2                       ; @CECC
	.no_dead_strip	_umc_v6_1_query_correctable_error_count
.subsections_via_symbols
