	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_ReadGPMetric                ## -- Begin function GX_ReadGPMetric
	.p2align	4, 0x90
_GX_ReadGPMetric:                       ## @GX_ReadGPMetric
	.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
	movq	%rdi, %r14
	movq	__cpReg@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	132(%rax), %edi
	movl	$16, %esi
	movl	$16, %edx
	callq	__SHIFTL
	movq	(%r15), %rcx
	movzwl	128(%rcx), %ebx
	orl	%eax, %ebx
	movl	140(%rcx), %edi
	movl	$16, %esi
	movl	$16, %edx
	callq	__SHIFTL
	movq	(%r15), %rcx
	movzwl	136(%rcx), %edx
	movl	$0, (%r14)
	movq	___gx@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_GX_PERF0_CLIP_RATIO@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_2
## %bb.1:
	orl	%eax, %edx
	imull	$1000, %edx, %eax               ## imm = 0x3E8
	cltd
	idivl	%ebx
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_GX_PERF0_VERTICES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_5
## %bb.3:
	movq	_GX_PERF0_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_5
LBB0_4:
	movl	%ebx, (%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__cpReg,8,3                     ## @_cpReg
	.comm	___gx,8,3                       ## @__gx
	.comm	_GX_PERF0_CLIP_RATIO,8,3        ## @GX_PERF0_CLIP_RATIO
	.comm	_GX_PERF0_VERTICES,8,3          ## @GX_PERF0_VERTICES
	.comm	_GX_PERF0_NONE,8,3              ## @GX_PERF0_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_ReadGPMetric                ; -- Begin function GX_ReadGPMetric
	.p2align	2
_GX_ReadGPMetric:                       ; @GX_ReadGPMetric
	.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	x21, __cpReg@GOTPAGE
Lloh1:
	ldr	x21, [x21, __cpReg@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w0, [x8, #132]
	mov	w1, #16
	mov	w2, #16
	bl	__SHIFTL
	ldr	x8, [x21]
	ldrh	w9, [x8, #128]
	orr	w20, w9, w0
	ldr	w0, [x8, #140]
	mov	w1, #16
	mov	w2, #16
	bl	__SHIFTL
	ldr	x8, [x21]
	ldrh	w9, [x8, #136]
	str	wzr, [x19]
Lloh2:
	adrp	x8, ___gx@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___gx@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh5:
	adrp	x10, _GX_PERF0_CLIP_RATIO@GOTPAGE
Lloh6:
	ldr	x10, [x10, _GX_PERF0_CLIP_RATIO@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_2
; %bb.1:
	orr	w8, w9, w0
	mov	w9, #1000
	mul	w8, w8, w9
	sdiv	w20, w8, w20
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x9, _GX_PERF0_VERTICES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GX_PERF0_VERTICES@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _GX_PERF0_NONE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _GX_PERF0_NONE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.ge	LBB0_4
LBB0_3:
	str	w20, [x19]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	__cpReg,8,3                     ; @_cpReg
	.comm	___gx,8,3                       ; @__gx
	.comm	_GX_PERF0_CLIP_RATIO,8,3        ; @GX_PERF0_CLIP_RATIO
	.comm	_GX_PERF0_VERTICES,8,3          ; @GX_PERF0_VERTICES
	.comm	_GX_PERF0_NONE,8,3              ; @GX_PERF0_NONE
.subsections_via_symbols
