	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_format_filter_info
_init_format_filter_info:               ## @init_format_filter_info
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movq	_ARB_INTERNALFORMAT_QUERY2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_1
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_wined3d_settings@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ORM_FBO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.2:
	movq	_WINED3D_GL_LEGACY_CONTEXT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_8
## %bb.3:
	leaq	_init_format_filter_info.fmts16(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	leaq	_init_format_filter_info.fmts16(%rip), %r14
	xorl	%r12d, %r12d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	leaq	_init_format_filter_info.fmts16(%rip), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$4, %r14
	cmpq	%rax, %r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jae	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ebx
	movl	%ebx, %edi
	callq	_get_format_idx
	movq	(%r13), %r13
	movl	%eax, %r15d
	movl	(%r13,%r15,4), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_check_filter
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_debug_d3dformat
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(,%r15,4), %rbx
	addq	%r13, %rbx
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_WINED3DFMT_FLAG_FILTERING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_format_set_flag
	jmp	LBB0_17
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	_HW_VENDOR_NVIDIA@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	16(%r13), %rax
	movq	_ARB_TEXTURE_FLOAT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_11
## %bb.10:
	movq	_TRUE@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_11:
	cmpl	$45, 8(%r13)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdi
	cmovgeq	%rax, %rdi
	movq	_FALSE@GOTPCREL(%rip), %rbx
	cmovgeq	_TRUE@GOTPCREL(%rip), %rbx
LBB0_12:
	xorl	%eax, %eax
	callq	_TRACE
	cmpq	$0, (%rbx)
	je	LBB0_18
## %bb.13:
	leaq	_init_format_filter_info.fmts16(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:
	xorl	%r12d, %r12d
	movq	_WINED3DFMT_FLAG_FILTERING@GOTPCREL(%rip), %r15
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_get_format_idx
	movl	%eax, %edi
	shlq	$2, %rdi
	addq	(%r13), %rdi
	movl	(%r15), %esi
	callq	_format_set_flag
	incq	%r12
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jb	LBB0_15
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @init_format_filter_info.fmts16
_init_format_filter_info.fmts16:
	.long	128                             ## 0x80
	.long	129                             ## 0x81
	.long	130                             ## 0x82

	.comm	_ARB_INTERNALFORMAT_QUERY2,8,3  ## @ARB_INTERNALFORMAT_QUERY2
	.comm	_wined3d_settings,8,3           ## @wined3d_settings
	.comm	_ORM_FBO,8,3                    ## @ORM_FBO
	.comm	_WINED3D_GL_LEGACY_CONTEXT,8,3  ## @WINED3D_GL_LEGACY_CONTEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No FBO support, or no FBO ORM, guessing filter info from GL caps\n"

	.comm	_HW_VENDOR_NVIDIA,4,2           ## @HW_VENDOR_NVIDIA
	.comm	_ARB_TEXTURE_FLOAT,8,3          ## @ARB_TEXTURE_FLOAT
L_.str.1:                               ## @.str.1
	.asciz	"Nvidia card with texture_float support: Assuming float16 blending\n"

	.comm	_TRUE,8,3                       ## @TRUE
L_.str.2:                               ## @.str.2
	.asciz	"More than 44 GLSL varyings - assuming d3d10 card with float16 blending\n"

L_.str.3:                               ## @.str.3
	.asciz	"Assuming no float16 blending\n"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_WINED3DFMT_FLAG_FILTERING,4,2  ## @WINED3DFMT_FLAG_FILTERING
L_.str.4:                               ## @.str.4
	.asciz	"Format %s supports filtering\n"

L_.str.5:                               ## @.str.5
	.asciz	"Format %s does not support filtering\n"

	.no_dead_strip	_init_format_filter_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_format_filter_info
_init_format_filter_info:               ; @init_format_filter_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _ARB_INTERNALFORMAT_QUERY2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARB_INTERNALFORMAT_QUERY2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x9, _wined3d_settings@GOTPAGE
Lloh4:
	ldr	x9, [x9, _wined3d_settings@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _ORM_FBO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ORM_FBO@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.3:
Lloh9:
	adrp	x9, _WINED3D_GL_LEGACY_CONTEXT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WINED3D_GL_LEGACY_CONTEXT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_11
; %bb.4:
Lloh12:
	adrp	x20, _init_format_filter_info.fmts16@PAGE
Lloh13:
	add	x20, x20, _init_format_filter_info.fmts16@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_1
; %bb.5:
	mov	x26, #0
Lloh14:
	adrp	x21, l_.str.5@PAGE
Lloh15:
	add	x21, x21, l_.str.5@PAGEOFF
Lloh16:
	adrp	x27, _WINED3DFMT_FLAG_FILTERING@GOTPAGE
Lloh17:
	ldr	x27, [x27, _WINED3DFMT_FLAG_FILTERING@GOTPAGEOFF]
Lloh18:
	adrp	x22, l_.str.4@PAGE
Lloh19:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
	mov	x0, x21
	bl	_TRACE
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x26, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x26, w0, uxtw
	b.hs	LBB0_1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x20, x26, lsl #2]
	mov	x0, x24
	bl	_get_format_idx
	ldr	x8, [x19]
	add	x23, x8, w0, uxtw #2
	ldr	w1, [x23]
	cbz	w1, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_check_filter
	mov	x25, x0
	mov	x0, x24
	bl	_debug_d3dformat
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	x25, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	str	x0, [sp]
	mov	x0, x22
	bl	_TRACE
	ldr	w1, [x27]
	mov	x0, x23
	bl	_format_set_flag
	b	LBB0_7
LBB0_11:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh22:
	adrp	x8, _HW_VENDOR_NVIDIA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HW_VENDOR_NVIDIA@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x19, #16]
Lloh25:
	adrp	x9, _ARB_TEXTURE_FLOAT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ARB_TEXTURE_FLOAT@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_14
; %bb.13:
Lloh28:
	adrp	x20, _TRUE@GOTPAGE
Lloh29:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_14:
	ldr	w8, [x19, #8]
Lloh32:
	adrp	x9, l_.str.3@PAGE
Lloh33:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh34:
	adrp	x10, l_.str.2@PAGE
Lloh35:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #44
	csel	x0, x10, x9, gt
Lloh36:
	adrp	x8, _FALSE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh38:
	adrp	x9, _TRUE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
	csel	x20, x9, x8, gt
LBB0_15:
	bl	_TRACE
	ldr	x8, [x20]
	cbz	x8, LBB0_1
; %bb.16:
Lloh40:
	adrp	x20, _init_format_filter_info.fmts16@PAGE
Lloh41:
	add	x20, x20, _init_format_filter_info.fmts16@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_1
; %bb.17:
	mov	x21, #0
Lloh42:
	adrp	x22, _WINED3DFMT_FLAG_FILTERING@GOTPAGE
Lloh43:
	ldr	x22, [x22, _WINED3DFMT_FLAG_FILTERING@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, x21, lsl #2]
	bl	_get_format_idx
	ldr	x8, [x19]
	add	x0, x8, w0, uxtw #2
	ldr	w1, [x22]
	bl	_format_set_flag
	add	x21, x21, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x21, w0, uxtw
	b.lo	LBB0_18
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @init_format_filter_info.fmts16
_init_format_filter_info.fmts16:
	.long	128                             ; 0x80
	.long	129                             ; 0x81
	.long	130                             ; 0x82

	.comm	_ARB_INTERNALFORMAT_QUERY2,8,3  ; @ARB_INTERNALFORMAT_QUERY2
	.comm	_wined3d_settings,8,3           ; @wined3d_settings
	.comm	_ORM_FBO,8,3                    ; @ORM_FBO
	.comm	_WINED3D_GL_LEGACY_CONTEXT,8,3  ; @WINED3D_GL_LEGACY_CONTEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No FBO support, or no FBO ORM, guessing filter info from GL caps\n"

	.comm	_HW_VENDOR_NVIDIA,4,2           ; @HW_VENDOR_NVIDIA
	.comm	_ARB_TEXTURE_FLOAT,8,3          ; @ARB_TEXTURE_FLOAT
l_.str.1:                               ; @.str.1
	.asciz	"Nvidia card with texture_float support: Assuming float16 blending\n"

	.comm	_TRUE,8,3                       ; @TRUE
l_.str.2:                               ; @.str.2
	.asciz	"More than 44 GLSL varyings - assuming d3d10 card with float16 blending\n"

l_.str.3:                               ; @.str.3
	.asciz	"Assuming no float16 blending\n"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_WINED3DFMT_FLAG_FILTERING,4,2  ; @WINED3DFMT_FLAG_FILTERING
l_.str.4:                               ; @.str.4
	.asciz	"Format %s supports filtering\n"

l_.str.5:                               ; @.str.5
	.asciz	"Format %s does not support filtering\n"

	.no_dead_strip	_init_format_filter_info
.subsections_via_symbols
