	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function query_internal_format
LCPI0_0:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_4:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_5:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_query_internal_format:                 ## @query_internal_format
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_MULTISAMPLE_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	24(%r15), %rax
	movq	_ARB_INTERNALFORMAT_QUERY2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_11
## %bb.1:
	movq	(%rbx), %rdx
	movq	_GL_VERTEX_TEXTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_WINED3DFMT_FLAG_VTF@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %r9
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_query_format_flag
	movq	(%rbx), %rdx
	movq	_GL_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_WINED3DFMT_FLAG_FILTERING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %r9
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_query_format_flag
	movq	8(%rbx), %rdx
	testq	%r13, %r13
	jne	LBB0_3
## %bb.2:
	cmpq	(%rbx), %rdx
	je	LBB0_31
LBB0_3:
	movq	_GL_SRGB_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_WINED3DFMT_FLAG_SRGB_READ@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	leaq	L_.str.2(%rip), %r9
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_query_format_flag
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rdx
	movq	_GL_SRGB_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_WINED3DFMT_FLAG_SRGB_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %r9
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_query_format_flag
	jmp	LBB0_6
LBB0_11:
	movq	16(%r15), %rax
	movq	_WINED3D_SHADER_TYPE_VERTEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_13
## %bb.12:
	movq	_WINED3DFMT_FLAG_VTF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_format_clear_flag
LBB0_13:
	movq	_WINED3D_QUIRK_LIMITED_TEX_FILTERING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_14
## %bb.15:
	movq	24(%rbx), %rax
	movq	_WINED3DFMT_R32G32B32A32_FLOAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.16:
	movq	_WINED3DFMT_R32_FLOAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.17:
	movq	_WINED3DFMT_FLAG_VTF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_format_clear_flag
LBB0_18:
	testq	%r13, %r13
	jne	LBB0_20
	jmp	LBB0_19
LBB0_5:
	movq	_WINED3DFMT_FLAG_SRGB_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_format_clear_flag
LBB0_6:
	movq	16(%rbx), %rax
	movq	_WINED3D_GL_RES_TYPE_TEX_2D@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_WINED3DFMT_FLAG_SRGB_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%r13), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_7
## %bb.8:
	movq	_wined3d_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ORM_FBO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_31
## %bb.9:
	movq	24(%r15), %rax
	movq	_EXT_TEXTURE_SRGB_DECODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_31
## %bb.10:
	movq	8(%rbx), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_31
LBB0_7:
	movq	(%rbx), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_31
LBB0_14:
	movq	_WINED3DFMT_FLAG_FILTERING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_format_set_flag
	testq	%r13, %r13
	jne	LBB0_20
LBB0_19:
	movq	8(%rbx), %rax
	cmpq	(%rbx), %rax
	je	LBB0_25
LBB0_20:
	movq	24(%r15), %rax
	movq	_EXT_TEXTURE_SRGB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_21
## %bb.22:
	movq	_wined3d_settings@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ORM_FBO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_25
## %bb.23:
	movq	_EXT_TEXTURE_SRGB_DECODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_25
## %bb.24:
	movq	8(%rbx), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_25
LBB0_21:
	movq	(%rbx), %rax
	movq	%rax, 8(%rbx)
	movq	_WINED3DFMT_FLAG_SRGB_READ@GOTPCREL(%rip), %rax
	movq	_WINED3DFMT_FLAG_SRGB_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_format_clear_flag
LBB0_25:
	movq	_WINED3D_GL_RES_TYPE_TEX_2D@GOTPCREL(%rip), %r13
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_28
## %bb.26:
	movq	16(%rbx), %rax
	movq	(%r13), %rcx
	movq	_WINED3DFMT_FLAG_SRGB_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	(%rax,%rcx,4), %eax
	andl	%esi, %eax
	je	LBB0_28
## %bb.27:
	movq	%rbx, %rdi
	callq	_format_clear_flag
LBB0_28:
	movq	24(%r15), %rax
	movq	_ARB_DEPTH_TEXTURE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_31
## %bb.29:
	movq	_WINED3DFMT_FLAG_DEPTH@GOTPCREL(%rip), %rax
	movq	_WINED3DFMT_FLAG_STENCIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r12)
	je	LBB0_31
## %bb.30:
	movq	_WINED3DFMT_FLAG_TEXTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	movq	16(%rbx), %rdx
	movq	_WINED3D_GL_RES_TYPE_TEX_1D@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	andl	%ecx, (%rdx,%rsi,4)
	movl	(%rax), %ecx
	notl	%ecx
	movq	(%r13), %rsi
	andl	%ecx, (%rdx,%rsi,4)
	movl	(%rax), %ecx
	notl	%ecx
	movq	_WINED3D_GL_RES_TYPE_TEX_3D@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	andl	%ecx, (%rdx,%rsi,4)
	movl	(%rax), %ecx
	notl	%ecx
	movq	_WINED3D_GL_RES_TYPE_TEX_CUBE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	andl	%ecx, (%rdx,%rsi,4)
	movl	(%rax), %eax
	notl	%eax
	movq	_WINED3D_GL_RES_TYPE_TEX_RECT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andl	%eax, (%rdx,%rcx,4)
LBB0_31:
	movq	%rbx, %rdi
	callq	_query_view_class
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_62
## %bb.32:
	movq	16(%rbx), %rax
	movq	_WINED3D_GL_RES_TYPE_RB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_WINED3DFMT_FLAG_RENDERTARGET@GOTPCREL(%rip), %rdx
	movq	_WINED3DFMT_FLAG_DEPTH@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rdx), %edi
	movq	_WINED3DFMT_FLAG_STENCIL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %edi
	testl	%edi, (%rax,%rcx,4)
	je	LBB0_62
## %bb.33:
	movq	24(%r15), %rax
	movq	_ARB_INTERNALFORMAT_QUERY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_49
## %bb.34:
	movq	_ARB_TEXTURE_MULTISAMPLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_35
## %bb.36:
	movq	_GL_RENDERBUFFER@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_49:
	movl	8(%r15), %edi
	movq	_CHAR_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	callq	_min
	movl	%eax, %edi
	callq	_wined3d_log2i
	testl	%eax, %eax
	je	LBB0_62
## %bb.50:
	movl	32(%rbx), %edx
	movl	$1, %ecx
	cmpl	$8, %eax
	jb	LBB0_59
## %bb.51:
	movl	%eax, %ecx
	andl	$-8, %ecx
	movd	%edx, %xmm0
	leal	-8(%rcx), %esi
	movl	%esi, %edx
	shrl	$3, %edx
	incl	%edx
	testl	%esi, %esi
	je	LBB0_52
## %bb.53:
	movl	%edx, %esi
	andl	$-2, %esi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [1,2,3,4]
	pxor	%xmm1, %xmm1
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	pcmpeqd	%xmm5, %xmm5
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm11           ## xmm11 = [16,16,16,16]
	.p2align	4, 0x90
LBB0_54:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm2, %xmm6
	paddd	%xmm8, %xmm6
	movdqa	%xmm2, %xmm7
	pslld	$23, %xmm7
	paddd	%xmm4, %xmm7
	cvttps2dq	%xmm7, %xmm7
	pxor	%xmm3, %xmm3
	psubd	%xmm7, %xmm3
	pslld	$23, %xmm6
	paddd	%xmm4, %xmm6
	cvttps2dq	%xmm6, %xmm6
	pxor	%xmm7, %xmm7
	psubd	%xmm6, %xmm7
	pxor	%xmm5, %xmm3
	pxor	%xmm5, %xmm7
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm6
	por	%xmm0, %xmm6
	pslld	$23, %xmm7
	paddd	%xmm4, %xmm7
	cvttps2dq	%xmm7, %xmm7
	por	%xmm1, %xmm7
	movdqa	%xmm2, %xmm0
	paddd	%xmm9, %xmm0
	movdqa	%xmm2, %xmm1
	paddd	%xmm10, %xmm1
	pslld	$23, %xmm0
	paddd	%xmm4, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pxor	%xmm3, %xmm3
	psubd	%xmm0, %xmm3
	pslld	$23, %xmm1
	paddd	%xmm4, %xmm1
	cvttps2dq	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	psubd	%xmm0, %xmm1
	pxor	%xmm5, %xmm3
	pxor	%xmm5, %xmm1
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm0
	por	%xmm6, %xmm0
	pslld	$23, %xmm1
	paddd	%xmm4, %xmm1
	cvttps2dq	%xmm1, %xmm1
	por	%xmm7, %xmm1
	paddd	%xmm11, %xmm2
	addl	$-2, %esi
	jne	LBB0_54
## %bb.55:
	testb	$1, %dl
	je	LBB0_57
LBB0_56:
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [4,4,4,4]
	paddd	%xmm2, %xmm3
	pslld	$23, %xmm2
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm4, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pxor	%xmm5, %xmm5
	pxor	%xmm6, %xmm6
	psubd	%xmm2, %xmm6
	pcmpeqd	%xmm2, %xmm2
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm3
	psubd	%xmm3, %xmm5
	pxor	%xmm2, %xmm6
	pxor	%xmm2, %xmm5
	pslld	$23, %xmm6
	paddd	%xmm4, %xmm6
	cvttps2dq	%xmm6, %xmm2
	por	%xmm2, %xmm0
	pslld	$23, %xmm5
	paddd	%xmm4, %xmm5
	cvttps2dq	%xmm5, %xmm2
	por	%xmm2, %xmm1
LBB0_57:
	por	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%ecx, %eax
	je	LBB0_61
## %bb.58:
	orl	$1, %ecx
LBB0_59:
	incl	%eax
	.p2align	4, 0x90
LBB0_60:                                ## =>This Inner Loop Header: Depth=1
	movl	$-1, %esi
	shll	%cl, %esi
	notb	%sil
	btsl	%esi, %edx
	incl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_60
LBB0_61:
	movl	%edx, 32(%rbx)
	jmp	LBB0_62
LBB0_35:
	movq	_GL_TEXTURE_2D_MULTISAMPLE@GOTPCREL(%rip), %rax
LBB0_37:
	movl	(%rax), %r15d
	movl	$0, -52(%rbp)
	movq	_GL_NUM_SAMPLE_COUNTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %r8
	movl	%r15d, %edi
	movl	$1, %ecx
	callq	_glGetInternalformativ
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movl	-52(%rbp), %edi
	movq	_MAX_MULTISAMPLE_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movl	%eax, -52(%rbp)
	movq	(%rbx), %rsi
	movq	_GL_SAMPLES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r15d, %edi
	movl	%eax, %ecx
	movq	%r14, %r8
	callq	_glGetInternalformativ
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str.4(%rip), %rdi
	callq	_checkGLcall
	movl	-52(%rbp), %r8d
	testq	%r8, %r8
	je	LBB0_62
## %bb.38:
	movq	_CHAR_BIT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	shlq	$2, %rdx
	cmpl	$1, %r8d
	jne	LBB0_40
## %bb.39:
	xorl	%esi, %esi
LBB0_46:
	testb	$1, %r8b
	je	LBB0_62
## %bb.47:
	movl	(%r14,%rsi,4), %ecx
	cmpq	%rcx, %rdx
	jb	LBB0_62
## %bb.48:
	decb	%cl
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	orl	%eax, 32(%rbx)
LBB0_62:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_64
## %bb.63:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_41 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_46
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rsi,4), %ecx
	cmpq	%rcx, %rdx
	jb	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	decb	%cl
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	orl	%eax, 32(%rbx)
LBB0_43:                                ##   in Loop: Header=BB0_41 Depth=1
	movl	4(%r14,%rsi,4), %ecx
	cmpq	%rcx, %rdx
	jb	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_41 Depth=1
	decb	%cl
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	orl	%eax, 32(%rbx)
	jmp	LBB0_45
LBB0_52:
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [1,2,3,4]
	pxor	%xmm1, %xmm1
	testb	$1, %dl
	jne	LBB0_56
	jmp	LBB0_57
LBB0_64:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MULTISAMPLE_TYPES,4,2      ## @MAX_MULTISAMPLE_TYPES
	.comm	_ARB_INTERNALFORMAT_QUERY2,8,3  ## @ARB_INTERNALFORMAT_QUERY2
	.comm	_GL_VERTEX_TEXTURE,4,2          ## @GL_VERTEX_TEXTURE
	.comm	_WINED3DFMT_FLAG_VTF,4,2        ## @WINED3DFMT_FLAG_VTF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vertex texture usage"

	.comm	_GL_FILTER,4,2                  ## @GL_FILTER
	.comm	_WINED3DFMT_FLAG_FILTERING,4,2  ## @WINED3DFMT_FLAG_FILTERING
L_.str.1:                               ## @.str.1
	.asciz	"filtering"

	.comm	_GL_SRGB_READ,4,2               ## @GL_SRGB_READ
	.comm	_WINED3DFMT_FLAG_SRGB_READ,4,2  ## @WINED3DFMT_FLAG_SRGB_READ
L_.str.2:                               ## @.str.2
	.asciz	"sRGB read"

	.comm	_GL_SRGB_WRITE,4,2              ## @GL_SRGB_WRITE
	.comm	_WINED3DFMT_FLAG_SRGB_WRITE,4,2 ## @WINED3DFMT_FLAG_SRGB_WRITE
L_.str.3:                               ## @.str.3
	.asciz	"sRGB write"

	.comm	_WINED3D_GL_RES_TYPE_TEX_2D,8,3 ## @WINED3D_GL_RES_TYPE_TEX_2D
	.comm	_wined3d_settings,8,3           ## @wined3d_settings
	.comm	_ORM_FBO,8,3                    ## @ORM_FBO
	.comm	_EXT_TEXTURE_SRGB_DECODE,8,3    ## @EXT_TEXTURE_SRGB_DECODE
	.comm	_WINED3D_SHADER_TYPE_VERTEX,8,3 ## @WINED3D_SHADER_TYPE_VERTEX
	.comm	_WINED3D_QUIRK_LIMITED_TEX_FILTERING,4,2 ## @WINED3D_QUIRK_LIMITED_TEX_FILTERING
	.comm	_WINED3DFMT_R32G32B32A32_FLOAT,8,3 ## @WINED3DFMT_R32G32B32A32_FLOAT
	.comm	_WINED3DFMT_R32_FLOAT,8,3       ## @WINED3DFMT_R32_FLOAT
	.comm	_EXT_TEXTURE_SRGB,8,3           ## @EXT_TEXTURE_SRGB
	.comm	_ARB_DEPTH_TEXTURE,8,3          ## @ARB_DEPTH_TEXTURE
	.comm	_WINED3DFMT_FLAG_DEPTH,4,2      ## @WINED3DFMT_FLAG_DEPTH
	.comm	_WINED3DFMT_FLAG_STENCIL,4,2    ## @WINED3DFMT_FLAG_STENCIL
	.comm	_WINED3DFMT_FLAG_TEXTURE,4,2    ## @WINED3DFMT_FLAG_TEXTURE
	.comm	_WINED3D_GL_RES_TYPE_TEX_1D,8,3 ## @WINED3D_GL_RES_TYPE_TEX_1D
	.comm	_WINED3D_GL_RES_TYPE_TEX_3D,8,3 ## @WINED3D_GL_RES_TYPE_TEX_3D
	.comm	_WINED3D_GL_RES_TYPE_TEX_CUBE,8,3 ## @WINED3D_GL_RES_TYPE_TEX_CUBE
	.comm	_WINED3D_GL_RES_TYPE_TEX_RECT,8,3 ## @WINED3D_GL_RES_TYPE_TEX_RECT
	.comm	_WINED3D_GL_RES_TYPE_RB,8,3     ## @WINED3D_GL_RES_TYPE_RB
	.comm	_WINED3DFMT_FLAG_RENDERTARGET,4,2 ## @WINED3DFMT_FLAG_RENDERTARGET
	.comm	_ARB_INTERNALFORMAT_QUERY,8,3   ## @ARB_INTERNALFORMAT_QUERY
	.comm	_ARB_TEXTURE_MULTISAMPLE,8,3    ## @ARB_TEXTURE_MULTISAMPLE
	.comm	_GL_TEXTURE_2D_MULTISAMPLE,4,2  ## @GL_TEXTURE_2D_MULTISAMPLE
	.comm	_GL_RENDERBUFFER,4,2            ## @GL_RENDERBUFFER
	.comm	_GL_NUM_SAMPLE_COUNTS,4,2       ## @GL_NUM_SAMPLE_COUNTS
	.comm	_GL_SAMPLES,4,2                 ## @GL_SAMPLES
L_.str.4:                               ## @.str.4
	.asciz	"query sample counts"

	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
	.no_dead_strip	_query_internal_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function query_internal_format
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_query_internal_format:                 ; @query_internal_format
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x24, x5
	mov	x22, x4
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x26, _MAX_MULTISAMPLE_TYPES@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAX_MULTISAMPLE_TYPES@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x3, #24]
Lloh7:
	adrp	x9, _ARB_INTERNALFORMAT_QUERY2@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ARB_INTERNALFORMAT_QUERY2@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x2, [x19]
Lloh10:
	adrp	x8, _GL_VERTEX_TEXTURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_VERTEX_TEXTURE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _WINED3DFMT_FLAG_VTF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WINED3DFMT_FLAG_VTF@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
Lloh16:
	adrp	x5, l_.str@PAGE
Lloh17:
	add	x5, x5, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_query_format_flag
	ldr	x2, [x19]
Lloh18:
	adrp	x8, _GL_FILTER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GL_FILTER@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _WINED3DFMT_FLAG_FILTERING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WINED3DFMT_FLAG_FILTERING@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
Lloh24:
	adrp	x5, l_.str.1@PAGE
Lloh25:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_query_format_flag
	ldr	x2, [x19, #8]
	cbnz	x24, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	cmp	x2, x8
	b.eq	LBB0_30
LBB0_3:
Lloh26:
	adrp	x8, _GL_SRGB_READ@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GL_SRGB_READ@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x23, _WINED3DFMT_FLAG_SRGB_READ@GOTPAGE
Lloh30:
	ldr	x23, [x23, _WINED3DFMT_FLAG_SRGB_READ@GOTPAGEOFF]
	ldr	w4, [x23]
Lloh31:
	adrp	x5, l_.str.2@PAGE
Lloh32:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_query_format_flag
Lloh33:
	adrp	x24, _WINED3DFMT_FLAG_SRGB_WRITE@GOTPAGE
Lloh34:
	ldr	x24, [x24, _WINED3DFMT_FLAG_SRGB_WRITE@GOTPAGEOFF]
	cbz	x22, LBB0_11
; %bb.4:
	ldr	x2, [x19, #8]
Lloh35:
	adrp	x8, _GL_SRGB_WRITE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GL_SRGB_WRITE@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	ldr	w4, [x24]
Lloh38:
	adrp	x5, l_.str.3@PAGE
Lloh39:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_query_format_flag
	b	LBB0_12
LBB0_5:
	ldr	x8, [x21, #16]
Lloh40:
	adrp	x9, _WINED3D_SHADER_TYPE_VERTEX@GOTPAGE
Lloh41:
	ldr	x9, [x9, _WINED3D_SHADER_TYPE_VERTEX@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbnz	w8, LBB0_7
; %bb.6:
Lloh43:
	adrp	x8, _WINED3DFMT_FLAG_VTF@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WINED3DFMT_FLAG_VTF@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_format_clear_flag
LBB0_7:
	ldr	w8, [x21]
Lloh46:
	adrp	x9, _WINED3D_QUIRK_LIMITED_TEX_FILTERING@GOTPAGE
Lloh47:
	ldr	x9, [x9, _WINED3D_QUIRK_LIMITED_TEX_FILTERING@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.8:
	ldr	x8, [x19, #24]
Lloh49:
	adrp	x9, _WINED3DFMT_R32G32B32A32_FLOAT@GOTPAGE
Lloh50:
	ldr	x9, [x9, _WINED3DFMT_R32G32B32A32_FLOAT@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
Lloh52:
	adrp	x10, _WINED3DFMT_R32_FLOAT@GOTPAGE
Lloh53:
	ldr	x10, [x10, _WINED3DFMT_R32_FLOAT@GOTPAGEOFF]
Lloh54:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_10
; %bb.9:
Lloh55:
	adrp	x8, _WINED3DFMT_FLAG_VTF@GOTPAGE
Lloh56:
	ldr	x8, [x8, _WINED3DFMT_FLAG_VTF@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_format_clear_flag
LBB0_10:
	cbnz	x24, LBB0_19
	b	LBB0_18
LBB0_11:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_format_clear_flag
LBB0_12:
	ldr	x8, [x19, #16]
Lloh58:
	adrp	x9, _WINED3D_GL_RES_TYPE_TEX_2D@GOTPAGE
Lloh59:
	ldr	x9, [x9, _WINED3D_GL_RES_TYPE_TEX_2D@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_16
; %bb.13:
Lloh61:
	adrp	x8, _wined3d_settings@GOTPAGE
Lloh62:
	ldr	x8, [x8, _wined3d_settings@GOTPAGEOFF]
Lloh63:
	ldr	x8, [x8]
Lloh64:
	adrp	x9, _ORM_FBO@GOTPAGE
Lloh65:
	ldr	x9, [x9, _ORM_FBO@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_30
; %bb.14:
	ldr	x8, [x21, #24]
Lloh67:
	adrp	x9, _EXT_TEXTURE_SRGB_DECODE@GOTPAGE
Lloh68:
	ldr	x9, [x9, _EXT_TEXTURE_SRGB_DECODE@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_30
; %bb.15:
	ldr	x8, [x19, #8]
	str	x8, [x19]
	b	LBB0_30
LBB0_16:
	ldr	x8, [x19]
	str	x8, [x19, #8]
	b	LBB0_30
LBB0_17:
Lloh70:
	adrp	x8, _WINED3DFMT_FLAG_FILTERING@GOTPAGE
Lloh71:
	ldr	x8, [x8, _WINED3DFMT_FLAG_FILTERING@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_format_set_flag
	cbnz	x24, LBB0_19
LBB0_18:
	ldp	x9, x8, [x19]
	cmp	x8, x9
	b.eq	LBB0_24
LBB0_19:
	ldr	x8, [x21, #24]
Lloh73:
	adrp	x9, _EXT_TEXTURE_SRGB@GOTPAGE
Lloh74:
	ldr	x9, [x9, _EXT_TEXTURE_SRGB@GOTPAGEOFF]
Lloh75:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_23
; %bb.20:
Lloh76:
	adrp	x9, _wined3d_settings@GOTPAGE
Lloh77:
	ldr	x9, [x9, _wined3d_settings@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
Lloh79:
	adrp	x10, _ORM_FBO@GOTPAGE
Lloh80:
	ldr	x10, [x10, _ORM_FBO@GOTPAGEOFF]
Lloh81:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_24
; %bb.21:
Lloh82:
	adrp	x9, _EXT_TEXTURE_SRGB_DECODE@GOTPAGE
Lloh83:
	ldr	x9, [x9, _EXT_TEXTURE_SRGB_DECODE@GOTPAGEOFF]
Lloh84:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_24
; %bb.22:
	ldr	x8, [x19, #8]
	str	x8, [x19]
	b	LBB0_24
LBB0_23:
	ldr	x8, [x19]
Lloh85:
	adrp	x9, _WINED3DFMT_FLAG_SRGB_READ@GOTPAGE
Lloh86:
	ldr	x9, [x9, _WINED3DFMT_FLAG_SRGB_READ@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh87:
	ldr	w8, [x9]
Lloh88:
	adrp	x9, _WINED3DFMT_FLAG_SRGB_WRITE@GOTPAGE
Lloh89:
	ldr	x9, [x9, _WINED3DFMT_FLAG_SRGB_WRITE@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_format_clear_flag
LBB0_24:
Lloh91:
	adrp	x24, _WINED3D_GL_RES_TYPE_TEX_2D@GOTPAGE
Lloh92:
	ldr	x24, [x24, _WINED3D_GL_RES_TYPE_TEX_2D@GOTPAGEOFF]
	cbnz	x22, LBB0_27
; %bb.25:
	ldr	x8, [x19, #16]
	ldr	x9, [x24]
	ldr	w8, [x8, x9, lsl #2]
Lloh93:
	adrp	x9, _WINED3DFMT_FLAG_SRGB_WRITE@GOTPAGE
Lloh94:
	ldr	x9, [x9, _WINED3DFMT_FLAG_SRGB_WRITE@GOTPAGEOFF]
Lloh95:
	ldr	w1, [x9]
	and	w8, w1, w8
	cbz	w8, LBB0_27
; %bb.26:
	mov	x0, x19
	bl	_format_clear_flag
LBB0_27:
	ldr	x8, [x21, #24]
Lloh96:
	adrp	x9, _ARB_DEPTH_TEXTURE@GOTPAGE
Lloh97:
	ldr	x9, [x9, _ARB_DEPTH_TEXTURE@GOTPAGEOFF]
Lloh98:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbnz	x8, LBB0_30
; %bb.28:
	ldr	w8, [x23]
Lloh99:
	adrp	x9, _WINED3DFMT_FLAG_DEPTH@GOTPAGE
Lloh100:
	ldr	x9, [x9, _WINED3DFMT_FLAG_DEPTH@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
Lloh102:
	adrp	x10, _WINED3DFMT_FLAG_STENCIL@GOTPAGE
Lloh103:
	ldr	x10, [x10, _WINED3DFMT_FLAG_STENCIL@GOTPAGEOFF]
Lloh104:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_30
; %bb.29:
Lloh105:
	adrp	x8, _WINED3DFMT_FLAG_TEXTURE@GOTPAGE
Lloh106:
	ldr	x8, [x8, _WINED3DFMT_FLAG_TEXTURE@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh107:
	adrp	x10, _WINED3D_GL_RES_TYPE_TEX_1D@GOTPAGE
Lloh108:
	ldr	x10, [x10, _WINED3D_GL_RES_TYPE_TEX_1D@GOTPAGEOFF]
Lloh109:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	ldr	w12, [x8]
	bic	w11, w11, w12
	str	w11, [x9, x10]
	ldr	w10, [x8]
	ldr	x11, [x24]
	lsl	x11, x11, #2
	ldr	w12, [x9, x11]
	bic	w10, w12, w10
	str	w10, [x9, x11]
Lloh110:
	adrp	x10, _WINED3D_GL_RES_TYPE_TEX_3D@GOTPAGE
Lloh111:
	ldr	x10, [x10, _WINED3D_GL_RES_TYPE_TEX_3D@GOTPAGEOFF]
Lloh112:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	ldr	w12, [x8]
	bic	w11, w11, w12
	str	w11, [x9, x10]
Lloh113:
	adrp	x10, _WINED3D_GL_RES_TYPE_TEX_CUBE@GOTPAGE
Lloh114:
	ldr	x10, [x10, _WINED3D_GL_RES_TYPE_TEX_CUBE@GOTPAGEOFF]
	ldr	w11, [x8]
Lloh115:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w12, [x9, x10]
	bic	w11, w12, w11
	str	w11, [x9, x10]
	ldr	w8, [x8]
Lloh116:
	adrp	x10, _WINED3D_GL_RES_TYPE_TEX_RECT@GOTPAGE
Lloh117:
	ldr	x10, [x10, _WINED3D_GL_RES_TYPE_TEX_RECT@GOTPAGEOFF]
Lloh118:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
	str	w8, [x9, x10]
LBB0_30:
	mov	x0, x19
	bl	_query_view_class
	ldr	x1, [x19]
	cbz	x1, LBB0_47
; %bb.31:
	ldr	x8, [x19, #16]
Lloh119:
	adrp	x9, _WINED3D_GL_RES_TYPE_RB@GOTPAGE
Lloh120:
	ldr	x9, [x9, _WINED3D_GL_RES_TYPE_RB@GOTPAGEOFF]
Lloh121:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh122:
	adrp	x9, _WINED3DFMT_FLAG_RENDERTARGET@GOTPAGE
Lloh123:
	ldr	x9, [x9, _WINED3DFMT_FLAG_RENDERTARGET@GOTPAGEOFF]
Lloh124:
	ldr	w9, [x9]
Lloh125:
	adrp	x10, _WINED3DFMT_FLAG_DEPTH@GOTPAGE
Lloh126:
	ldr	x10, [x10, _WINED3DFMT_FLAG_DEPTH@GOTPAGEOFF]
Lloh127:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh128:
	adrp	x10, _WINED3DFMT_FLAG_STENCIL@GOTPAGE
Lloh129:
	ldr	x10, [x10, _WINED3DFMT_FLAG_STENCIL@GOTPAGEOFF]
Lloh130:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_47
; %bb.32:
	ldr	x8, [x21, #24]
Lloh131:
	adrp	x9, _ARB_INTERNALFORMAT_QUERY@GOTPAGE
Lloh132:
	ldr	x9, [x9, _ARB_INTERNALFORMAT_QUERY@GOTPAGEOFF]
Lloh133:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_38
; %bb.33:
Lloh134:
	adrp	x9, _ARB_TEXTURE_MULTISAMPLE@GOTPAGE
Lloh135:
	ldr	x9, [x9, _ARB_TEXTURE_MULTISAMPLE@GOTPAGEOFF]
Lloh136:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh137:
	adrp	x9, _GL_TEXTURE_2D_MULTISAMPLE@GOTPAGE
Lloh138:
	ldr	x9, [x9, _GL_TEXTURE_2D_MULTISAMPLE@GOTPAGEOFF]
Lloh139:
	adrp	x10, _GL_RENDERBUFFER@GOTPAGE
Lloh140:
	ldr	x10, [x10, _GL_RENDERBUFFER@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w21, [x8]
	stur	wzr, [x29, #-76]
Lloh141:
	adrp	x8, _GL_NUM_SAMPLE_COUNTS@GOTPAGE
Lloh142:
	ldr	x8, [x8, _GL_NUM_SAMPLE_COUNTS@GOTPAGEOFF]
Lloh143:
	ldr	w2, [x8]
	mov	w22, #1
	sub	x4, x29, #76
	mov	x0, x21
	mov	w3, #1
	bl	_glGetInternalformativ
	bl	_GL_EXTCALL
	ldur	w0, [x29, #-76]
	ldr	w1, [x26]
	bl	_min
	mov	x3, x0
	stur	w0, [x29, #-76]
	ldr	x1, [x19]
Lloh144:
	adrp	x8, _GL_SAMPLES@GOTPAGE
Lloh145:
	ldr	x8, [x8, _GL_SAMPLES@GOTPAGEOFF]
Lloh146:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x4, x20
	bl	_glGetInternalformativ
	bl	_GL_EXTCALL
Lloh147:
	adrp	x0, l_.str.4@PAGE
Lloh148:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_checkGLcall
	ldur	w8, [x29, #-76]
	cbz	w8, LBB0_47
; %bb.34:
Lloh149:
	adrp	x9, _CHAR_BIT@GOTPAGE
Lloh150:
	ldr	x9, [x9, _CHAR_BIT@GOTPAGEOFF]
Lloh151:
	ldrsw	x9, [x9]
	lsl	x9, x9, #2
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=1
	add	x20, x20, #4
	subs	x8, x8, #1
	b.eq	LBB0_47
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x20]
	cmp	x9, x10
	b.lo	LBB0_35
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	sub	w10, w10, #1
	lsl	w10, w22, w10
	ldr	w11, [x19, #32]
	orr	w10, w11, w10
	str	w10, [x19, #32]
	b	LBB0_35
LBB0_38:
	ldr	w0, [x21, #8]
Lloh152:
	adrp	x8, _CHAR_BIT@GOTPAGE
Lloh153:
	ldr	x8, [x8, _CHAR_BIT@GOTPAGEOFF]
Lloh154:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	bl	_min
	bl	_wined3d_log2i
	cbz	w0, LBB0_47
; %bb.39:
	ldr	w11, [x19, #32]
	mov	w8, #1
	cmp	w0, #16
	b.hs	LBB0_41
; %bb.40:
	mov	w9, #1
	b	LBB0_44
LBB0_41:
	and	w10, w0, #0xfffffff0
	orr	w9, w10, #0x1
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w11
	movi.2d	v1, #0000000000000000
	movi.4s	v2, #4
	movi.4s	v3, #8
Lloh155:
	adrp	x11, lCPI0_0@PAGE
Lloh156:
	ldr	q4, [x11, lCPI0_0@PAGEOFF]
	movi.4s	v5, #12
	movi.2d	v6, #0xffffffffffffffff
	movi.4s	v7, #1
	movi.4s	v16, #16
	mov	x11, x10
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v4, v2
	add.4s	v20, v4, v3
	add.4s	v21, v4, v5
	ushl.4s	v22, v6, v4
	ushl.4s	v19, v6, v19
	ushl.4s	v20, v6, v20
	ushl.4s	v21, v6, v21
	mvn.16b	v22, v22
	mvn.16b	v19, v19
	mvn.16b	v20, v20
	mvn.16b	v21, v21
	ushl.4s	v22, v7, v22
	ushl.4s	v19, v7, v19
	ushl.4s	v20, v7, v20
	ushl.4s	v21, v7, v21
	orr.16b	v0, v0, v22
	orr.16b	v1, v1, v19
	orr.16b	v17, v17, v20
	orr.16b	v18, v18, v21
	add.4s	v4, v4, v16
	subs	w11, w11, #16
	b.ne	LBB0_42
; %bb.43:
	orr.16b	v0, v1, v0
	orr.16b	v0, v17, v0
	orr.16b	v0, v18, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w11, w11, w12
	cmp	w0, w10
	b.eq	LBB0_46
LBB0_44:
	add	w10, w0, #1
	mov	w12, #-1
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	lsl	w13, w12, w9
	mvn	w13, w13
	lsl	w13, w8, w13
	orr	w11, w11, w13
	add	w9, w9, #1
	cmp	w10, w9
	b.ne	LBB0_45
LBB0_46:
	str	w11, [x19, #32]
LBB0_47:
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh157:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh158:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh159:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.48:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_49:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGot	Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpAdd	Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGot	Lloh139, Lloh140
	.loh AdrpLdrGot	Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdr	Lloh155, Lloh156
	.loh AdrpLdrGotLdr	Lloh157, Lloh158, Lloh159
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MULTISAMPLE_TYPES,4,2      ; @MAX_MULTISAMPLE_TYPES
	.comm	_ARB_INTERNALFORMAT_QUERY2,8,3  ; @ARB_INTERNALFORMAT_QUERY2
	.comm	_GL_VERTEX_TEXTURE,4,2          ; @GL_VERTEX_TEXTURE
	.comm	_WINED3DFMT_FLAG_VTF,4,2        ; @WINED3DFMT_FLAG_VTF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vertex texture usage"

	.comm	_GL_FILTER,4,2                  ; @GL_FILTER
	.comm	_WINED3DFMT_FLAG_FILTERING,4,2  ; @WINED3DFMT_FLAG_FILTERING
l_.str.1:                               ; @.str.1
	.asciz	"filtering"

	.comm	_GL_SRGB_READ,4,2               ; @GL_SRGB_READ
	.comm	_WINED3DFMT_FLAG_SRGB_READ,4,2  ; @WINED3DFMT_FLAG_SRGB_READ
l_.str.2:                               ; @.str.2
	.asciz	"sRGB read"

	.comm	_GL_SRGB_WRITE,4,2              ; @GL_SRGB_WRITE
	.comm	_WINED3DFMT_FLAG_SRGB_WRITE,4,2 ; @WINED3DFMT_FLAG_SRGB_WRITE
l_.str.3:                               ; @.str.3
	.asciz	"sRGB write"

	.comm	_WINED3D_GL_RES_TYPE_TEX_2D,8,3 ; @WINED3D_GL_RES_TYPE_TEX_2D
	.comm	_wined3d_settings,8,3           ; @wined3d_settings
	.comm	_ORM_FBO,8,3                    ; @ORM_FBO
	.comm	_EXT_TEXTURE_SRGB_DECODE,8,3    ; @EXT_TEXTURE_SRGB_DECODE
	.comm	_WINED3D_SHADER_TYPE_VERTEX,8,3 ; @WINED3D_SHADER_TYPE_VERTEX
	.comm	_WINED3D_QUIRK_LIMITED_TEX_FILTERING,4,2 ; @WINED3D_QUIRK_LIMITED_TEX_FILTERING
	.comm	_WINED3DFMT_R32G32B32A32_FLOAT,8,3 ; @WINED3DFMT_R32G32B32A32_FLOAT
	.comm	_WINED3DFMT_R32_FLOAT,8,3       ; @WINED3DFMT_R32_FLOAT
	.comm	_EXT_TEXTURE_SRGB,8,3           ; @EXT_TEXTURE_SRGB
	.comm	_ARB_DEPTH_TEXTURE,8,3          ; @ARB_DEPTH_TEXTURE
	.comm	_WINED3DFMT_FLAG_DEPTH,4,2      ; @WINED3DFMT_FLAG_DEPTH
	.comm	_WINED3DFMT_FLAG_STENCIL,4,2    ; @WINED3DFMT_FLAG_STENCIL
	.comm	_WINED3DFMT_FLAG_TEXTURE,4,2    ; @WINED3DFMT_FLAG_TEXTURE
	.comm	_WINED3D_GL_RES_TYPE_TEX_1D,8,3 ; @WINED3D_GL_RES_TYPE_TEX_1D
	.comm	_WINED3D_GL_RES_TYPE_TEX_3D,8,3 ; @WINED3D_GL_RES_TYPE_TEX_3D
	.comm	_WINED3D_GL_RES_TYPE_TEX_CUBE,8,3 ; @WINED3D_GL_RES_TYPE_TEX_CUBE
	.comm	_WINED3D_GL_RES_TYPE_TEX_RECT,8,3 ; @WINED3D_GL_RES_TYPE_TEX_RECT
	.comm	_WINED3D_GL_RES_TYPE_RB,8,3     ; @WINED3D_GL_RES_TYPE_RB
	.comm	_WINED3DFMT_FLAG_RENDERTARGET,4,2 ; @WINED3DFMT_FLAG_RENDERTARGET
	.comm	_ARB_INTERNALFORMAT_QUERY,8,3   ; @ARB_INTERNALFORMAT_QUERY
	.comm	_ARB_TEXTURE_MULTISAMPLE,8,3    ; @ARB_TEXTURE_MULTISAMPLE
	.comm	_GL_TEXTURE_2D_MULTISAMPLE,4,2  ; @GL_TEXTURE_2D_MULTISAMPLE
	.comm	_GL_RENDERBUFFER,4,2            ; @GL_RENDERBUFFER
	.comm	_GL_NUM_SAMPLE_COUNTS,4,2       ; @GL_NUM_SAMPLE_COUNTS
	.comm	_GL_SAMPLES,4,2                 ; @GL_SAMPLES
l_.str.4:                               ; @.str.4
	.asciz	"query sample counts"

	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
	.no_dead_strip	_query_internal_format
.subsections_via_symbols
