	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x86_taa_recalculate            ## -- Begin function x86_taa_recalculate
	.p2align	4, 0x90
_x86_taa_recalculate:                   ## @x86_taa_recalculate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cpu_stdext_feature@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CPUID_STDEXT_HLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_CPUID_STDEXT_RTM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	_cpu_ia32_arch_caps@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IA32_ARCH_CAP_TAA_NO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.4:
	movq	_TAA_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_x86_taa_state@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_28:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_IA32_ARCH_CAP_TSX_CTRL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_TAA_TSX_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movq	_x86_taa_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TAA_TSX_DISABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.14:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_28
## %bb.15:
	leaq	L_str.4(%rip), %rdi
	jmp	LBB0_16
LBB0_13:
	movq	_TAA_VERW@GOTPCREL(%rip), %rax
LBB0_5:
	movq	_x86_taa_enable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_TAA_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_7
## %bb.6:
	movl	(%rax), %ebx
LBB0_7:
	movq	_x86_taa_state@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jne	LBB0_17
## %bb.8:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_28
## %bb.9:
	leaq	L_str.3(%rip), %rdi
	jmp	LBB0_16
LBB0_17:
	movq	_TAA_TSX_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %edi
	cmpl	%ecx, %ebx
	je	LBB0_19
## %bb.18:
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	jne	LBB0_20
LBB0_19:
	movl	$1, %esi
	callq	_taa_set
LBB0_20:
	movq	_TAA_VERW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jne	LBB0_22
## %bb.21:
	movq	_hw_mds_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, _x86_taa_recalculate.taa_saved_mds_disable(%rip)
	movl	$1, %r15d
	jmp	LBB0_24
LBB0_22:
	cmpl	%eax, (%r14)
	jne	LBB0_27
## %bb.23:
	movl	_x86_taa_recalculate.taa_saved_mds_disable(%rip), %r15d
LBB0_24:
	movq	_hw_mds_disable@GOTPCREL(%rip), %r12
	movl	%r15d, (%r12)
	xorl	%eax, %eax
	callq	_hw_mds_recalculate
	cmpl	(%r12), %r15d
	jne	LBB0_25
LBB0_27:
	movl	%ebx, (%r14)
	jmp	LBB0_28
LBB0_25:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_28
## %bb.26:
	leaq	L_str(%rip), %rdi
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_puts                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_x86_taa_recalculate.taa_saved_mds_disable,4,2 ## @x86_taa_recalculate.taa_saved_mds_disable
	.comm	_cpu_stdext_feature,4,2         ## @cpu_stdext_feature
	.comm	_CPUID_STDEXT_HLE,4,2           ## @CPUID_STDEXT_HLE
	.comm	_CPUID_STDEXT_RTM,4,2           ## @CPUID_STDEXT_RTM
	.comm	_x86_taa_state,4,2              ## @x86_taa_state
	.comm	_cpu_ia32_arch_caps,4,2         ## @cpu_ia32_arch_caps
	.comm	_IA32_ARCH_CAP_TAA_NO,4,2       ## @IA32_ARCH_CAP_TAA_NO
	.comm	_TAA_NONE,4,2                   ## @TAA_NONE
	.comm	_TAA_TAA_NO,4,2                 ## @TAA_TAA_NO
	.comm	_IA32_ARCH_CAP_TSX_CTRL,4,2     ## @IA32_ARCH_CAP_TSX_CTRL
	.comm	_TAA_TSX_DISABLE,4,2            ## @TAA_TSX_DISABLE
	.comm	_x86_taa_enable,4,2             ## @x86_taa_enable
	.comm	_bootverbose,8,3                ## @bootverbose
	.comm	_TAA_VERW,4,2                   ## @TAA_VERW
	.comm	_TAA_AUTO,4,2                   ## @TAA_AUTO
	.comm	_hw_mds_disable,4,2             ## @hw_mds_disable
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Cannot change MDS state for TAA"

L_str.3:                                ## @str.3
	.asciz	"No TSX change made"

L_str.4:                                ## @str.4
	.asciz	"TSX control not available"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x86_taa_recalculate            ; -- Begin function x86_taa_recalculate
	.p2align	2
_x86_taa_recalculate:                   ; @x86_taa_recalculate
	.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
Lloh0:
	adrp	x8, _cpu_stdext_feature@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_stdext_feature@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CPUID_STDEXT_HLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CPUID_STDEXT_HLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x9, _CPUID_STDEXT_RTM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CPUID_STDEXT_RTM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _cpu_ia32_arch_caps@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cpu_ia32_arch_caps@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x8]
Lloh12:
	adrp	x8, _IA32_ARCH_CAP_TAA_NO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IA32_ARCH_CAP_TAA_NO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x8]
Lloh15:
	adrp	x8, _x86_taa_enable@GOTPAGE
Lloh16:
	ldr	x8, [x8, _x86_taa_enable@GOTPAGEOFF]
	tst	w9, w10
	b.eq	LBB0_6
; %bb.3:
Lloh17:
	adrp	x9, _TAA_NONE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TAA_NONE@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
Lloh19:
	adrp	x8, _x86_taa_state@GOTPAGE
Lloh20:
	ldr	x8, [x8, _x86_taa_state@GOTPAGEOFF]
Lloh21:
	str	wzr, [x8]
LBB0_5:
	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
LBB0_6:
Lloh22:
	adrp	x9, _IA32_ARCH_CAP_TSX_CTRL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IA32_ARCH_CAP_TSX_CTRL@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x9]
Lloh25:
	adrp	x9, _TAA_TSX_DISABLE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TAA_TSX_DISABLE@GOTPAGEOFF]
	tst	w11, w10
	b.ne	LBB0_11
; %bb.7:
	ldr	w10, [x8]
	ldr	w9, [x9]
	cmp	w10, w9
	b.ne	LBB0_10
; %bb.8:
Lloh27:
	adrp	x8, _bootverbose@GOTPAGE
Lloh28:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.9:
Lloh30:
	adrp	x0, l_str.4@PAGE
Lloh31:
	add	x0, x0, l_str.4@PAGEOFF
	b	LBB0_29
LBB0_10:
Lloh32:
	adrp	x9, _TAA_VERW@GOTPAGE
Lloh33:
	ldr	x9, [x9, _TAA_VERW@GOTPAGEOFF]
LBB0_11:
	ldr	w19, [x8]
Lloh34:
	adrp	x8, _TAA_AUTO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TAA_AUTO@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_13
; %bb.12:
	ldr	w19, [x9]
LBB0_13:
Lloh37:
	adrp	x20, _x86_taa_state@GOTPAGE
Lloh38:
	ldr	x20, [x20, _x86_taa_state@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w19, w8
	b.ne	LBB0_16
; %bb.14:
Lloh39:
	adrp	x8, _bootverbose@GOTPAGE
Lloh40:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.15:
Lloh42:
	adrp	x0, l_str.3@PAGE
Lloh43:
	add	x0, x0, l_str.3@PAGEOFF
	b	LBB0_29
LBB0_16:
Lloh44:
	adrp	x9, _TAA_TSX_DISABLE@GOTPAGE
Lloh45:
	ldr	x9, [x9, _TAA_TSX_DISABLE@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	cmp	w19, w9
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #1
	b	LBB0_20
LBB0_18:
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.19:
	mov	w0, #0
LBB0_20:
	mov	w1, #1
	bl	_taa_set
LBB0_21:
Lloh47:
	adrp	x8, _TAA_VERW@GOTPAGE
Lloh48:
	ldr	x8, [x8, _TAA_VERW@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x21, _hw_mds_disable@GOTPAGE
Lloh51:
	ldr	x21, [x21, _hw_mds_disable@GOTPAGEOFF]
	cmp	w19, w8
	b.ne	LBB0_23
; %bb.22:
	ldr	w8, [x21]
	adrp	x9, _x86_taa_recalculate.taa_saved_mds_disable@PAGE
	str	w8, [x9, _x86_taa_recalculate.taa_saved_mds_disable@PAGEOFF]
	mov	w22, #1
	b	LBB0_25
LBB0_23:
	ldr	w9, [x20]
	cmp	w9, w8
	b.ne	LBB0_26
; %bb.24:
Lloh52:
	adrp	x8, _x86_taa_recalculate.taa_saved_mds_disable@PAGE
Lloh53:
	ldr	w22, [x8, _x86_taa_recalculate.taa_saved_mds_disable@PAGEOFF]
LBB0_25:
	str	w22, [x21]
	bl	_hw_mds_recalculate
	ldr	w8, [x21]
	cmp	w22, w8
	b.ne	LBB0_27
LBB0_26:
	str	w19, [x20]
	b	LBB0_5
LBB0_27:
Lloh54:
	adrp	x8, _bootverbose@GOTPAGE
Lloh55:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.28:
Lloh57:
	adrp	x0, l_str@PAGE
Lloh58:
	add	x0, x0, l_str@PAGEOFF
LBB0_29:
	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	_puts
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdr	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_x86_taa_recalculate.taa_saved_mds_disable,4,2 ; @x86_taa_recalculate.taa_saved_mds_disable
	.comm	_cpu_stdext_feature,4,2         ; @cpu_stdext_feature
	.comm	_CPUID_STDEXT_HLE,4,2           ; @CPUID_STDEXT_HLE
	.comm	_CPUID_STDEXT_RTM,4,2           ; @CPUID_STDEXT_RTM
	.comm	_x86_taa_state,4,2              ; @x86_taa_state
	.comm	_cpu_ia32_arch_caps,4,2         ; @cpu_ia32_arch_caps
	.comm	_IA32_ARCH_CAP_TAA_NO,4,2       ; @IA32_ARCH_CAP_TAA_NO
	.comm	_TAA_NONE,4,2                   ; @TAA_NONE
	.comm	_TAA_TAA_NO,4,2                 ; @TAA_TAA_NO
	.comm	_IA32_ARCH_CAP_TSX_CTRL,4,2     ; @IA32_ARCH_CAP_TSX_CTRL
	.comm	_TAA_TSX_DISABLE,4,2            ; @TAA_TSX_DISABLE
	.comm	_x86_taa_enable,4,2             ; @x86_taa_enable
	.comm	_bootverbose,8,3                ; @bootverbose
	.comm	_TAA_VERW,4,2                   ; @TAA_VERW
	.comm	_TAA_AUTO,4,2                   ; @TAA_AUTO
	.comm	_hw_mds_disable,4,2             ; @hw_mds_disable
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Cannot change MDS state for TAA"

l_str.3:                                ; @str.3
	.asciz	"No TSX change made"

l_str.4:                                ; @str.4
	.asciz	"TSX control not available"

.subsections_via_symbols
