	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd_read_ext_features
_amd_read_ext_features:                 ## @amd_read_ext_features
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_cpu_vendor_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CPU_VENDOR_AMD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_LAPIC_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_lapic_read32
	movq	_APIC_VER_AMD_EXT_SPACE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	_LAPIC_EXT_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_lapic_read32                   ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_vendor_id,8,3              ## @cpu_vendor_id
	.comm	_CPU_VENDOR_AMD,8,3             ## @CPU_VENDOR_AMD
	.comm	_LAPIC_VERSION,4,2              ## @LAPIC_VERSION
	.comm	_APIC_VER_AMD_EXT_SPACE,4,2     ## @APIC_VER_AMD_EXT_SPACE
	.comm	_LAPIC_EXT_FEATURES,4,2         ## @LAPIC_EXT_FEATURES
	.no_dead_strip	_amd_read_ext_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd_read_ext_features
_amd_read_ext_features:                 ; @amd_read_ext_features
	.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, _cpu_vendor_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_vendor_id@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CPU_VENDOR_AMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CPU_VENDOR_AMD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _LAPIC_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LAPIC_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_lapic_read32
Lloh9:
	adrp	x8, _APIC_VER_AMD_EXT_SPACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APIC_VER_AMD_EXT_SPACE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _LAPIC_EXT_FEATURES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LAPIC_EXT_FEATURES@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_lapic_read32
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_vendor_id,8,3              ; @cpu_vendor_id
	.comm	_CPU_VENDOR_AMD,8,3             ; @CPU_VENDOR_AMD
	.comm	_LAPIC_VERSION,4,2              ; @LAPIC_VERSION
	.comm	_APIC_VER_AMD_EXT_SPACE,4,2     ; @APIC_VER_AMD_EXT_SPACE
	.comm	_LAPIC_EXT_FEATURES,4,2         ; @LAPIC_EXT_FEATURES
	.no_dead_strip	_amd_read_ext_features
.subsections_via_symbols
