	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd_thresholding_resume
_amd_thresholding_resume:               ## @amd_thresholding_resume
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_mca_banks@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%edi, (%rax)
	setg	%bl
	movq	_cpuid@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_PCPU_GET
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_KASSERT
	movq	_cmci_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movslq	%edx, %rcx
	testq	%rcx, %rax
	je	LBB0_1
## %bb.2:
	movq	_amd_et_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%r15), %edi
	callq	_PCPU_GET
	movq	(%rbx,%rax,8), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdi
	movq	$0, 8(%rax,%rcx)
	movl	$1, (%rax,%rcx)
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_amd_thresholding_start         ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mca_banks,4,2                  ## @mca_banks
	.comm	_cpuid,4,2                      ## @cpuid
	.comm	_cmci_mask,4,2                  ## @cmci_mask
	.comm	_amd_et_state,8,3               ## @amd_et_state
	.no_dead_strip	_amd_thresholding_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd_thresholding_resume
_amd_thresholding_resume:               ; @amd_thresholding_resume
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _mca_banks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mca_banks@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	cset	w20, gt
Lloh3:
	adrp	x21, _cpuid@GOTPAGE
Lloh4:
	ldr	x21, [x21, _cpuid@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_PCPU_GET
	mov	x1, x0
	mov	x0, x20
	bl	_KASSERT
Lloh5:
	adrp	x8, _cmci_mask@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cmci_mask@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_PCPU_GET
	mov	w20, #1
	lsl	w8, w20, w19
	sxtw	x8, w8
	tst	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _amd_et_state@GOTPAGE
Lloh9:
	ldr	x8, [x8, _amd_et_state@GOTPAGEOFF]
Lloh10:
	ldr	x22, [x8]
	ldr	w0, [x21]
	bl	_PCPU_GET
	ldr	x8, [x22, x0, lsl #3]
	add	x0, x8, w19, sxtw #4
	str	xzr, [x0, #8]
	str	w20, [x0]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_amd_thresholding_start
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_mca_banks,4,2                  ; @mca_banks
	.comm	_cpuid,4,2                      ; @cpuid
	.comm	_cmci_mask,4,2                  ; @cmci_mask
	.comm	_amd_et_state,8,3               ; @amd_et_state
	.no_dead_strip	_amd_thresholding_resume
.subsections_via_symbols
