	.file	"extr_reflection.c_d3dcompiler_parse_variables.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to allocate variables memory.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Failed to copy name.\n"
.LC2:
	.string	"Variable name: %s.\n"
.LC3:
	.string	"Variable offset: %u\n"
.LC4:
	.string	"Variable size: %u\n"
.LC5:
	.string	"Variable flags: %u\n"
.LC6:
	.string	"Variable type offset: %x\n"
.LC7:
	.string	"Failed to get type.\n"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"Variable default value offset: %x\n"
	.text
	.p2align 4
	.type	d3dcompiler_parse_variables, @function
d3dcompiler_parse_variables:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	ebp, DWORD PTR HEAP_ZERO_MEMORY[rip]
	mov	QWORD PTR 8[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	lea	r13d, [rax+rax*4]
	xor	eax, eax
	call	GetProcessHeap@PLT
	sal	r13d, 3
	mov	esi, ebp
	mov	edi, eax
	mov	edx, r13d
	call	HeapAlloc@PLT
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L26
	mov	eax, DWORD PTR [r12]
	xor	r13d, r13d
	lea	r15, 20[rsp]
	lea	rbp, 8[rsp]
	test	eax, eax
	jne	.L10
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	add	r13d, 1
	cmp	DWORD PTR [r12], r13d
	jbe	.L13
.L10:
	mov	rcx, QWORD PTR [rsp]
	mov	eax, r13d
	mov	rsi, r15
	mov	rdi, rbp
	lea	rax, [rax+rax*4]
	lea	rbx, [rcx+rax*8]
	lea	rax, d3dcompiler_shader_reflection_variable_vtbl[rip]
	mov	QWORD PTR 32[rbx], rax
	mov	QWORD PTR 24[rbx], r12
	call	read_dword@PLT
	movsx	rdi, DWORD PTR 20[rsp]
	lea	rsi, 20[rbx]
	add	rdi, r14
	call	copy_name@PLT
	test	eax, eax
	je	.L24
	mov	edi, DWORD PTR 20[rbx]
	call	debugstr_a@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	call	TRACE@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	read_dword@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC3[rip]
	call	TRACE@PLT
	lea	rsi, 4[rbx]
	mov	rdi, rbp
	call	read_dword@PLT
	mov	esi, DWORD PTR 4[rbx]
	lea	rdi, .LC4[rip]
	call	TRACE@PLT
	lea	rsi, 8[rbx]
	mov	rdi, rbp
	call	read_dword@PLT
	mov	esi, DWORD PTR 8[rbx]
	lea	rdi, .LC5[rip]
	call	TRACE@PLT
	mov	rsi, r15
	mov	rdi, rbp
	call	read_dword@PLT
	mov	esi, DWORD PTR 20[rsp]
	lea	rdi, .LC6[rip]
	call	TRACE@PLT
	mov	rdi, QWORD PTR 16[r12]
	mov	edx, DWORD PTR 20[rsp]
	mov	rsi, r14
	call	get_reflection_type@PLT
	mov	DWORD PTR 16[rbx], eax
	test	eax, eax
	je	.L27
	mov	rsi, r15
	mov	rdi, rbp
	call	read_dword@PLT
	mov	esi, DWORD PTR 20[rsp]
	lea	rdi, .LC8[rip]
	call	TRACE@PLT
	movsx	rdi, DWORD PTR 20[rsp]
	xor	edx, edx
	test	edi, edi
	je	.L7
	mov	edx, DWORD PTR 4[rbx]
.L7:
	add	rdi, r14
	lea	rsi, 12[rbx]
	call	copy_value@PLT
	test	eax, eax
	je	.L24
	mov	rax, QWORD PTR 16[r12]
	mov	eax, DWORD PTR [rax]
	and	eax, DWORD PTR D3DCOMPILER_SHADER_TARGET_VERSION_MASK[rip]
	cmp	eax, 1279
	jle	.L9
	mov	esi, 4
	mov	rdi, rbp
	add	r13d, 1
	call	skip_dword_unknown@PLT
	cmp	DWORD PTR [r12], r13d
	ja	.L10
.L13:
	mov	rax, QWORD PTR [rsp]
	mov	r13d, DWORD PTR S_OK[rip]
	mov	QWORD PTR 8[r12], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, .LC1[rip]
	call	ERR@PLT
	mov	r13d, DWORD PTR E_OUTOFMEMORY[rip]
.L5:
	mov	edx, DWORD PTR [r12]
	xor	ebx, ebx
	test	edx, edx
	je	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rcx, QWORD PTR [rsp]
	mov	eax, ebx
	add	ebx, 1
	lea	rax, [rax+rax*4]
	lea	rdi, [rcx+rax*8]
	call	free_variable@PLT
	cmp	DWORD PTR [r12], ebx
	ja	.L11
.L12:
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, QWORD PTR [rsp]
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	lea	rdi, .LC7[rip]
	call	ERR@PLT
	mov	r13d, DWORD PTR E_FAIL[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC0[rip]
	call	ERR@PLT
	mov	r13d, DWORD PTR E_OUTOFMEMORY[rip]
	jmp	.L1
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	d3dcompiler_parse_variables, .-d3dcompiler_parse_variables
	.comm	d3dcompiler_shader_reflection_variable_vtbl,4,4
	.comm	S_OK,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	E_OUTOFMEMORY,4,4
	.comm	E_FAIL,4,4
	.comm	D3DCOMPILER_SHADER_TARGET_VERSION_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_reflection.c_d3dcompiler_parse_variables.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to allocate variables memory.\012\000"
	.align	2
.LC1:
	.ascii	"Failed to copy name.\012\000"
	.align	2
.LC2:
	.ascii	"Variable name: %s.\012\000"
	.align	2
.LC3:
	.ascii	"Variable offset: %u\012\000"
	.align	2
.LC4:
	.ascii	"Variable size: %u\012\000"
	.align	2
.LC5:
	.ascii	"Variable flags: %u\012\000"
	.align	2
.LC6:
	.ascii	"Variable type offset: %x\012\000"
	.align	2
.LC7:
	.ascii	"Failed to get type.\012\000"
	.align	2
.LC8:
	.ascii	"Variable default value offset: %x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	d3dcompiler_parse_variables, %function
d3dcompiler_parse_variables:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	sub	sp, sp, #20
	str	r3, [sp, #4]
	ldr	r3, .L28
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	GetProcessHeap
	ldr	r3, .L28+4
	ldr	r2, [r5]
	ldr	r1, [r3]
	lsl	r2, r2, #5
	bl	HeapAlloc
	subs	r3, r0, #0
	str	r3, [sp]
	beq	.L25
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [sp]
	mov	r7, #0
	ldr	fp, .L28+8
	ldr	r10, .L28+12
	ldr	r9, .L28+16
	ldr	r8, .L28+20
	add	r4, r3, #12
	b	.L10
.L9:
	ldr	r3, [r5]
	add	r7, r7, #1
	cmp	r3, r7
	add	r4, r4, #32
	bls	.L14
.L10:
	ldr	r3, .L28+24
	add	r1, sp, #8
	str	r3, [r4, #16]
	str	r5, [r4, #12]
	add	r0, sp, #4
	bl	read_dword
	ldr	r0, [sp, #8]
	add	r1, r4, #8
	add	r0, r6, r0
	bl	copy_name
	cmp	r0, #0
	beq	.L23
	ldr	r0, [r4, #8]
	bl	debugstr_a
	mov	r1, r0
	mov	r0, fp
	bl	TRACE
	sub	r1, r4, #12
	add	r0, sp, #4
	bl	read_dword
	ldr	r1, [r4, #-12]
	mov	r0, r10
	bl	TRACE
	sub	r1, r4, #8
	add	r0, sp, #4
	bl	read_dword
	ldr	r1, [r4, #-8]
	mov	r0, r9
	bl	TRACE
	sub	r1, r4, #4
	add	r0, sp, #4
	bl	read_dword
	ldr	r1, [r4, #-4]
	mov	r0, r8
	bl	TRACE
	add	r1, sp, #8
	add	r0, sp, #4
	bl	read_dword
	ldr	r1, [sp, #8]
	ldr	r0, .L28+28
	bl	TRACE
	mov	r1, r6
	ldr	r2, [sp, #8]
	ldr	r0, [r5, #8]
	bl	get_reflection_type
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L26
	add	r1, sp, #8
	add	r0, sp, #4
	bl	read_dword
	ldr	r1, [sp, #8]
	ldr	r0, .L28+32
	bl	TRACE
	ldr	r2, [sp, #8]
	mov	r1, r4
	cmp	r2, #0
	add	r0, r6, r2
	ldrne	r2, [r4, #-8]
	bl	copy_value
	cmp	r0, #0
	beq	.L23
	ldr	r3, [r5, #8]
	ldr	r2, .L28+36
	ldr	r3, [r3]
	ldr	r2, [r2]
	and	r3, r3, r2
	cmp	r3, #1280
	blt	.L9
	mov	r1, #4
	add	r0, sp, r1
	bl	skip_dword_unknown
	b	.L9
.L23:
	ldr	r0, .L28+40
	bl	ERR
	ldr	r3, .L28+44
	ldr	r7, [r3]
.L5:
	ldr	r3, [r5]
	cmp	r3, #0
	movne	r4, #0
	ldrne	r6, [sp]
	beq	.L12
.L15:
	mov	r0, r6
	bl	free_variable
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	add	r6, r6, #32
	bhi	.L15
.L12:
	bl	GetProcessHeap
	mov	r1, #0
	ldr	r2, [sp]
	bl	HeapFree
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r3, .L28+48
	ldr	r2, [sp]
	ldr	r7, [r3]
	str	r2, [r5, #4]
	b	.L1
.L26:
	ldr	r0, .L28+52
	bl	ERR
	ldr	r3, .L28+56
	ldr	r7, [r3]
	b	.L5
.L25:
	ldr	r0, .L28+60
	bl	ERR
	ldr	r3, .L28+44
	ldr	r7, [r3]
	b	.L1
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC9
	.word	HEAP_ZERO_MEMORY
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	d3dcompiler_shader_reflection_variable_vtbl
	.word	.LC6
	.word	.LC8
	.word	D3DCOMPILER_SHADER_TARGET_VERSION_MASK
	.word	.LC1
	.word	E_OUTOFMEMORY
	.word	S_OK
	.word	.LC7
	.word	E_FAIL
	.word	.LC0
	.size	d3dcompiler_parse_variables, .-d3dcompiler_parse_variables
	.comm	d3dcompiler_shader_reflection_variable_vtbl,4,4
	.comm	S_OK,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	E_OUTOFMEMORY,4,4
	.comm	E_FAIL,4,4
	.comm	D3DCOMPILER_SHADER_TARGET_VERSION_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
