	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_resinfo
_shader_glsl_resinfo:                   ## @shader_glsl_resinfo
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %rax
	movq	(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	movq	16(%rax), %rcx
	movq	(%rdi), %rsi
	movq	_WINED3DSI_RESINFO_UINT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	_WINED3D_DATA_UINT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_2:
	movq	16(%r15), %rax
	movl	(%rax), %r14d
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_4:
	movq	8(%r15), %rsi
	movl	16(%rsi), %ebx
	movq	24(%rsi), %rax
	movl	(%rax), %r13d
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rcx
	movq	%r15, %rdi
	callq	_shader_glsl_add_src_param
	movq	_WINED3DSPR_RESOURCE@GOTPCREL(%rip), %rcx
	movq	24(%r15), %rax
	movq	(%rax), %rdi
	cmpl	(%rcx), %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_6
## %bb.5:
	movq	16(%rdi), %rax
	movl	(%rax,%r13,4), %ebx
	addq	$8, %rdi
	movq	_WINED3D_SAMPLER_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %esi
	callq	_shader_glsl_find_sampler
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_6:
	movq	(%rdi), %rax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax,%r13,4), %ebx
LBB0_7:
	movq	_resource_type_info@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jae	LBB0_8
## %bb.9:
	movq	16(%r15), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	callq	_shader_glsl_append_dst_ext
	movq	8(%r15), %rdi
	addq	$16, %rdi
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-70(%rbp), %rcx
	movl	%eax, %edx
	callq	_shader_glsl_get_swizzle
	movq	_WINED3D_DATA_UINT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_WINED3DSPR_RESOURCE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	leaq	L_.str.4(%rip), %rax
	movl	%ebx, %r15d
	leaq	L_.str.5(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	callq	_shader_glsl_get_prefix
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %ebx
	movl	%eax, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_shader_addline
	movl	%r15d, %edi
	callq	_is_mipmapped
	testq	%rax, %rax
	setne	%al
	movq	_WINED3DSPR_UAV@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	setne	%cl
	andb	%al, %cl
	movb	%cl, -44(%rbp)                  ## 1-byte Spill
	cmpb	$1, %cl
	jne	LBB0_11
## %bb.10:
	movq	-88(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_11:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movl	%ebx, %ebx
	movq	(%r13), %rax
	cmpl	$3, (%rax,%rbx,4)
	je	LBB0_14
## %bb.12:
	leaq	L_.str.8(%rip), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_shader_addline
	incl	%r14d
	movq	(%r13), %rax
	movl	$3, %ecx
	subl	(%rax,%rbx,4), %ecx
	cmpl	%ecx, %r14d
	jb	LBB0_13
LBB0_14:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
## %bb.15:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_ARB_TEXTURE_QUERY_LEVELS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_17
## %bb.16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	callq	_shader_glsl_get_prefix
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_shader_addline
	jmp	LBB0_19
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_ERR
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_18:
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_19:
	leaq	L_.str.12(%rip), %rsi
	leaq	-70(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3DSI_RESINFO_UINT,8,3     ## @WINED3DSI_RESINFO_UINT
	.comm	_WINED3D_DATA_UINT,4,2          ## @WINED3D_DATA_UINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled flags %#x.\n"

	.comm	_WINED3DSP_WRITEMASK_0,4,2      ## @WINED3DSP_WRITEMASK_0
	.comm	_WINED3DSPR_RESOURCE,4,2        ## @WINED3DSPR_RESOURCE
	.comm	_WINED3D_SAMPLER_DEFAULT,4,2    ## @WINED3D_SAMPLER_DEFAULT
	.comm	_resource_type_info,8,3         ## @resource_type_info
L_.str.1:                               ## @.str.1
	.asciz	"Unexpected resource type %#x.\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"uvec4("

L_.str.3:                               ## @.str.3
	.asciz	"vec4("

L_.str.4:                               ## @.str.4
	.asciz	"textureSize(%s_sampler%u"

L_.str.5:                               ## @.str.5
	.asciz	"imageSize(%s_image%u"

	.comm	_WINED3DSPR_UAV,4,2             ## @WINED3DSPR_UAV
L_.str.6:                               ## @.str.6
	.asciz	", %s"

L_.str.7:                               ## @.str.7
	.asciz	"), "

L_.str.8:                               ## @.str.8
	.asciz	"0, "

	.comm	_ARB_TEXTURE_QUERY_LEVELS,8,3   ## @ARB_TEXTURE_QUERY_LEVELS
L_.str.9:                               ## @.str.9
	.asciz	"textureQueryLevels(%s_sampler%u)"

L_.str.10:                              ## @.str.10
	.asciz	"textureQueryLevels is not supported, returning 1 level.\n"

L_.str.11:                              ## @.str.11
	.asciz	"1"

L_.str.12:                              ## @.str.12
	.asciz	")%s);\n"

	.no_dead_strip	_shader_glsl_resinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_resinfo
_shader_glsl_resinfo:                   ; @shader_glsl_resinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x0
	ldr	x8, [x0, #24]
	ldp	x19, x25, [x8, #8]
	ldr	x24, [x8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WINED3DSI_RESINFO_UINT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3DSI_RESINFO_UINT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _WINED3D_DATA_UINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3D_DATA_UINT@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_4
LBB0_2:
	ldr	x9, [x23, #16]
	ldr	w22, [x9]
	cbz	x8, LBB0_4
; %bb.3:
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
LBB0_4:
	ldr	x1, [x23, #8]
	ldr	w26, [x1, #16]
	ldr	x8, [x1, #24]
	ldr	w20, [x8]
Lloh8:
	adrp	x8, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, sp, #24
	mov	x0, x23
	bl	_shader_glsl_add_src_param
Lloh11:
	adrp	x28, _WINED3DSPR_RESOURCE@GOTPAGE
Lloh12:
	ldr	x28, [x28, _WINED3DSPR_RESOURCE@GOTPAGEOFF]
	ldr	w9, [x28]
	ldr	x8, [x23, #24]
	ldr	x8, [x8]
	cmp	w26, w9
	b.ne	LBB0_6
; %bb.5:
	ldr	x9, [x8, #16]
	ldr	w21, [x9, x20, lsl #2]
	add	x0, x8, #8
Lloh13:
	adrp	x8, _WINED3D_SAMPLER_DEFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WINED3D_SAMPLER_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_shader_glsl_find_sampler
	mov	x20, x0
	b	LBB0_7
LBB0_6:
	ldr	x8, [x8]
	ldr	w21, [x8, x20, lsl #2]
LBB0_7:
Lloh16:
	adrp	x27, _resource_type_info@GOTPAGE
Lloh17:
	ldr	x27, [x27, _resource_type_info@GOTPAGEOFF]
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.hs	LBB0_16
; %bb.8:
	ldr	x2, [x23, #16]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x22
	bl	_shader_glsl_append_dst_ext
	mov	x2, x0
	ldr	x8, [x23, #8]
	add	x0, x8, #16
Lloh18:
	adrp	x8, _FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x3, sp, #18
	bl	_shader_glsl_get_swizzle
Lloh21:
	adrp	x8, _WINED3D_DATA_UINT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WINED3D_DATA_UINT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, l_.str.3@PAGE
Lloh25:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh26:
	adrp	x10, l_.str.2@PAGE
Lloh27:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w22, w8
	csel	x1, x10, x9, eq
	mov	x0, x19
	bl	_shader_addline
Lloh28:
	adrp	x8, l_.str.5@PAGE
Lloh29:
	add	x8, x8, l_.str.5@PAGEOFF
	ldr	w9, [x28]
Lloh30:
	adrp	x10, l_.str.4@PAGE
Lloh31:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w26, w9
	csel	x22, x10, x8, eq
	ldr	w0, [x24, #24]
	bl	_shader_glsl_get_prefix
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x8, x20
	stp	x0, x8, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_shader_addline
	mov	x0, x21
	bl	_is_mipmapped
	cmp	x0, #0
Lloh32:
	adrp	x8, _WINED3DSPR_UAV@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WINED3DSPR_UAV@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ccmp	w26, w8, #4, ne
	cset	w22, ne
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
LBB0_10:
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	ldr	x8, [x27]
	ldr	w8, [x8, w21, uxtw #2]
	cmp	w8, #3
	b.eq	LBB0_13
; %bb.11:
	mov	w23, #0
	mov	w26, w21
	mov	w28, #3
Lloh39:
	adrp	x21, l_.str.8@PAGE
Lloh40:
	add	x21, x21, l_.str.8@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_shader_addline
	add	w23, w23, #1
	ldr	x8, [x27]
	ldr	w8, [x8, x26, lsl #2]
	sub	w8, w28, w8
	cmp	w23, w8
	b.lo	LBB0_12
LBB0_13:
	cbz	w22, LBB0_18
; %bb.14:
	ldr	x8, [x25]
Lloh41:
	adrp	x9, _ARB_TEXTURE_QUERY_LEVELS@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ARB_TEXTURE_QUERY_LEVELS@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_17
; %bb.15:
	ldr	w0, [x24, #24]
	bl	_shader_glsl_get_prefix
                                        ; kill: def $w0 killed $w0 def $x0
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x0, x20, [sp]
Lloh44:
	adrp	x1, l_.str.9@PAGE
Lloh45:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_19
LBB0_16:
Lloh46:
	adrp	x0, l_.str.1@PAGE
Lloh47:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_ERR
	b	LBB0_20
LBB0_17:
Lloh48:
	adrp	x0, l_.str.10@PAGE
Lloh49:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_FIXME
LBB0_18:
Lloh50:
	adrp	x1, l_.str.11@PAGE
Lloh51:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_shader_addline
	add	x8, sp, #18
	str	x8, [sp]
Lloh52:
	adrp	x1, l_.str.12@PAGE
Lloh53:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DSI_RESINFO_UINT,8,3     ; @WINED3DSI_RESINFO_UINT
	.comm	_WINED3D_DATA_UINT,4,2          ; @WINED3D_DATA_UINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled flags %#x.\n"

	.comm	_WINED3DSP_WRITEMASK_0,4,2      ; @WINED3DSP_WRITEMASK_0
	.comm	_WINED3DSPR_RESOURCE,4,2        ; @WINED3DSPR_RESOURCE
	.comm	_WINED3D_SAMPLER_DEFAULT,4,2    ; @WINED3D_SAMPLER_DEFAULT
	.comm	_resource_type_info,8,3         ; @resource_type_info
l_.str.1:                               ; @.str.1
	.asciz	"Unexpected resource type %#x.\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"uvec4("

l_.str.3:                               ; @.str.3
	.asciz	"vec4("

l_.str.4:                               ; @.str.4
	.asciz	"textureSize(%s_sampler%u"

l_.str.5:                               ; @.str.5
	.asciz	"imageSize(%s_image%u"

	.comm	_WINED3DSPR_UAV,4,2             ; @WINED3DSPR_UAV
l_.str.6:                               ; @.str.6
	.asciz	", %s"

l_.str.7:                               ; @.str.7
	.asciz	"), "

l_.str.8:                               ; @.str.8
	.asciz	"0, "

	.comm	_ARB_TEXTURE_QUERY_LEVELS,8,3   ; @ARB_TEXTURE_QUERY_LEVELS
l_.str.9:                               ; @.str.9
	.asciz	"textureQueryLevels(%s_sampler%u)"

l_.str.10:                              ; @.str.10
	.asciz	"textureQueryLevels is not supported, returning 1 level.\n"

l_.str.11:                              ; @.str.11
	.asciz	"1"

l_.str.12:                              ; @.str.12
	.asciz	")%s);\n"

	.no_dead_strip	_shader_glsl_resinfo
.subsections_via_symbols
