	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_get_resource_info
_shader_glsl_get_resource_info:         ## @shader_glsl_get_resource_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rax
	movq	(%rdi), %rcx
	movq	(%rcx), %r14
	movq	(%rsi), %rsi
	movq	8(%rax), %rax
	movl	(%rax), %ebx
	movq	_WINED3DSPR_RESOURCE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_5
## %bb.1:
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jae	LBB0_2
## %bb.4:
	shlq	$2, %rbx
	addq	8(%r14), %rbx
	jmp	LBB0_11
LBB0_5:
	movq	_WINED3DSPR_UAV@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_9
## %bb.6:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jae	LBB0_7
## %bb.8:
	shlq	$2, %rbx
	addq	(%r14), %rbx
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	movl	%ebx, %esi
	callq	_ERR
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3DSPR_RESOURCE,8,3        ## @WINED3DSPR_RESOURCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid resource index %u.\n"

	.comm	_WINED3DSPR_UAV,8,3             ## @WINED3DSPR_UAV
L_.str.1:                               ## @.str.1
	.asciz	"Invalid UAV index %u.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unhandled register type %#x.\n"

	.no_dead_strip	_shader_glsl_get_resource_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_get_resource_info
_shader_glsl_get_resource_info:         ; @shader_glsl_get_resource_info
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldp	x1, x8, [x1]
	ldr	w19, [x8]
Lloh0:
	adrp	x8, _WINED3DSPR_RESOURCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3DSPR_RESOURCE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	w19, w0
	b.hs	LBB0_6
; %bb.2:
	ldr	x8, [x20, #8]
	add	x0, x8, x19, lsl #2
	b	LBB0_11
LBB0_3:
Lloh3:
	adrp	x8, _WINED3DSPR_UAV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3DSPR_UAV@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_7
; %bb.4:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w19, w0
	b.hs	LBB0_8
; %bb.5:
	ldr	x8, [x20]
	add	x0, x8, x19, lsl #2
	b	LBB0_11
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	mov	x1, x19
	bl	_ERR
LBB0_10:
	mov	x0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DSPR_RESOURCE,8,3        ; @WINED3DSPR_RESOURCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid resource index %u.\n"

	.comm	_WINED3DSPR_UAV,8,3             ; @WINED3DSPR_UAV
l_.str.1:                               ; @.str.1
	.asciz	"Invalid UAV index %u.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unhandled register type %#x.\n"

	.no_dead_strip	_shader_glsl_get_resource_info
.subsections_via_symbols
