	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ibs_caps
_get_ibs_caps:                          ## @get_ibs_caps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_X86_FEATURE_IBS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_boot_cpu_has
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	$-2147483648, %edi              ## imm = 0x80000000
	callq	_cpuid_eax
	movq	_IBS_CPUID_FEATURES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%eax, %edi
	ja	LBB0_3
## %bb.2:
	callq	_cpuid_eax
	movq	_IBS_CAPS_AVAIL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
LBB0_3:
	movq	_IBS_CAPS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_FEATURE_IBS,4,2            ## @X86_FEATURE_IBS
	.comm	_IBS_CPUID_FEATURES,4,2         ## @IBS_CPUID_FEATURES
	.comm	_IBS_CAPS_DEFAULT,4,2           ## @IBS_CAPS_DEFAULT
	.comm	_IBS_CAPS_AVAIL,4,2             ## @IBS_CAPS_AVAIL
	.no_dead_strip	_get_ibs_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ibs_caps
_get_ibs_caps:                          ; @get_ibs_caps
	.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
Lloh0:
	adrp	x8, _X86_FEATURE_IBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X86_FEATURE_IBS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_boot_cpu_has
	cbz	w0, LBB0_4
; %bb.1:
	mov	w0, #-2147483648
	bl	_cpuid_eax
	mov	x8, x0
Lloh3:
	adrp	x9, _IBS_CPUID_FEATURES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IBS_CPUID_FEATURES@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	cmp	w0, w8
	b.ls	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _IBS_CAPS_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IBS_CAPS_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	bl	_cpuid_eax
Lloh9:
	adrp	x8, _IBS_CAPS_AVAIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IBS_CAPS_AVAIL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IBS_CAPS_DEFAULT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IBS_CAPS_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w0, w9, w0, eq
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_FEATURE_IBS,4,2            ; @X86_FEATURE_IBS
	.comm	_IBS_CPUID_FEATURES,4,2         ; @IBS_CPUID_FEATURES
	.comm	_IBS_CAPS_DEFAULT,4,2           ; @IBS_CAPS_DEFAULT
	.comm	_IBS_CAPS_AVAIL,4,2             ; @IBS_CAPS_AVAIL
	.no_dead_strip	_get_ibs_caps
.subsections_via_symbols
