	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_get_cagf                 ## -- Begin function intel_get_cagf
	.p2align	4, 0x90
_intel_get_cagf:                        ## @intel_get_cagf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_INTEL_GEN
	cmpl	$8, %eax
	jle	LBB0_2
## %bb.1:
	movq	_GEN9_CAGF_SHIFT@GOTPCREL(%rip), %rcx
	movq	_GEN9_CAGF_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%r14, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_HSW_CAGF_SHIFT@GOTPCREL(%rip), %rcx
	movq	_HSW_CAGF_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	movq	_HSW_CAGF_MASK@GOTPCREL(%rip), %rax
	cmoveq	_GEN6_CAGF_MASK@GOTPCREL(%rip), %rax
	movq	_HSW_CAGF_SHIFT@GOTPCREL(%rip), %rcx
	cmoveq	_GEN6_CAGF_SHIFT@GOTPCREL(%rip), %rcx
LBB0_5:
	andl	(%rax), %ebx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN9_CAGF_MASK,4,2             ## @GEN9_CAGF_MASK
	.comm	_GEN9_CAGF_SHIFT,4,2            ## @GEN9_CAGF_SHIFT
	.comm	_HSW_CAGF_MASK,4,2              ## @HSW_CAGF_MASK
	.comm	_HSW_CAGF_SHIFT,4,2             ## @HSW_CAGF_SHIFT
	.comm	_GEN6_CAGF_MASK,4,2             ## @GEN6_CAGF_MASK
	.comm	_GEN6_CAGF_SHIFT,4,2            ## @GEN6_CAGF_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_get_cagf                 ; -- Begin function intel_get_cagf
	.p2align	2
_intel_get_cagf:                        ; @intel_get_cagf
	.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, x1
	mov	x20, x0
	bl	_INTEL_GEN
	cmp	w0, #8
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _GEN9_CAGF_SHIFT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GEN9_CAGF_SHIFT@GOTPAGEOFF]
Lloh2:
	adrp	x22, _GEN9_CAGF_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GEN9_CAGF_MASK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_IS_HASWELL
Lloh4:
	adrp	x21, _HSW_CAGF_SHIFT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _HSW_CAGF_SHIFT@GOTPAGEOFF]
Lloh6:
	adrp	x22, _HSW_CAGF_MASK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HSW_CAGF_MASK@GOTPAGEOFF]
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_IS_BROADWELL
Lloh8:
	adrp	x8, _GEN6_CAGF_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GEN6_CAGF_MASK@GOTPAGEOFF]
	cmp	x0, #0
	csel	x22, x8, x22, eq
Lloh10:
	adrp	x8, _GEN6_CAGF_SHIFT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GEN6_CAGF_SHIFT@GOTPAGEOFF]
	csel	x21, x8, x21, eq
LBB0_4:
	ldr	w8, [x22]
	and	w8, w8, w19
	ldr	w9, [x21]
	asr	w0, w8, w9
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN9_CAGF_MASK,4,2             ; @GEN9_CAGF_MASK
	.comm	_GEN9_CAGF_SHIFT,4,2            ; @GEN9_CAGF_SHIFT
	.comm	_HSW_CAGF_MASK,4,2              ; @HSW_CAGF_MASK
	.comm	_HSW_CAGF_SHIFT,4,2             ; @HSW_CAGF_SHIFT
	.comm	_GEN6_CAGF_MASK,4,2             ; @GEN6_CAGF_MASK
	.comm	_GEN6_CAGF_SHIFT,4,2            ; @GEN6_CAGF_SHIFT
.subsections_via_symbols
