	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_max_compat_varyings    ## -- Begin function wined3d_max_compat_varyings
	.p2align	4, 0x90
_wined3d_max_compat_varyings:           ## @wined3d_max_compat_varyings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_WINED3D_GL_LEGACY_CONTEXT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_MAX_TEXTURES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	$0, (%rax,%rcx,8)
	leal	(,%rdx,4), %ecx
	leal	9(,%rdx,4), %eax
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_GL_LEGACY_CONTEXT,8,3  ## @WINED3D_GL_LEGACY_CONTEXT
	.comm	_MAX_TEXTURES,4,2               ## @MAX_TEXTURES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_max_compat_varyings    ; -- Begin function wined3d_max_compat_varyings
	.p2align	2
_wined3d_max_compat_varyings:           ; @wined3d_max_compat_varyings
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _WINED3D_GL_LEGACY_CONTEXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_GL_LEGACY_CONTEXT@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
Lloh3:
	adrp	x9, _MAX_TEXTURES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_TEXTURES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w9, #2
	add	w10, w9, #9
	cmp	x8, #0
	csel	w0, w10, w9, eq
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_GL_LEGACY_CONTEXT,8,3  ; @WINED3D_GL_LEGACY_CONTEXT
	.comm	_MAX_TEXTURES,4,2               ; @MAX_TEXTURES
.subsections_via_symbols
