	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_format_flag
_query_format_flag:                     ## @query_format_flag
	.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, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_TRACE
	movq	(%r13), %rdi
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	andl	%eax, (%rdi,%r15,4)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r15
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r12
	movl	%r15d, %edi
	callq	_wined3d_gl_type_to_enum
	movl	%eax, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	leaq	-80(%rbp), %r8
	callq	*%r12
	movq	-80(%rbp), %r12
	movq	_GL_FULL_SUPPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	8(%r13), %edi
	callq	_debug_d3dformat
	cmpq	%rbx, %r12
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_TRACE
	movq	(%r13), %rdi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	%eax, (%rdi,%r15,4)
	jmp	LBB0_5
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_FULL_SUPPORT,8,3            ## @GL_FULL_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Format %s supports %s, resource type %u.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Format %s doesn't support %s, resource type %u.\n"

	.no_dead_strip	_query_format_flag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_format_flag
_query_format_flag:                     ; @query_format_flag
	.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
	mov	x19, x5
	str	w4, [sp, #4]                    ; 4-byte Folded Spill
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x0, [x1]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_6
; %bb.1:
	mov	x25, #0
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	mvn	w28, w8
Lloh0:
	adrp	x26, _GL_FULL_SUPPORT@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GL_FULL_SUPPORT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x25
	bl	_TRACE
	ldr	x0, [x23]
	lsl	x8, x25, #2
	ldr	w9, [x0, x8]
	and	w9, w9, w28
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x0, x8]
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	cmp	x25, w0, uxtw
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x24]
	mov	x0, x25
	bl	_wined3d_gl_type_to_enum
	add	x4, sp, #8
	mov	x1, x22
	mov	x2, x21
	mov	w3, #1
	blr	x27
	ldr	x27, [sp, #8]
	ldr	x20, [x26]
	ldr	w0, [x23, #8]
	bl	_debug_d3dformat
	mov	x1, x0
	cmp	x27, x20
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x25
	bl	_TRACE
	ldr	x0, [x23]
	lsl	x8, x25, #2
	ldr	w9, [x0, x8]
	ldr	w10, [sp, #4]                   ; 4-byte Folded Reload
	orr	w9, w9, w10
	b	LBB0_3
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_FULL_SUPPORT,8,3            ; @GL_FULL_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Format %s supports %s, resource type %u.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Format %s doesn't support %s, resource type %u.\n"

	.no_dead_strip	_query_format_flag
.subsections_via_symbols
