	.file	"extr_preshader.c_merge_const_set_entries.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Merging %u child parameters for %s, not merging %u, direct_copy %#x.\n"
	.align 8
.LC1:
	.string	"Not merging %u child parameters for %s, direct_copy %#x.\n"
	.text
	.p2align 4
	.type	merge_const_set_entries, @function
merge_const_set_entries:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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	eax, DWORD PTR [rdi]
	mov	r8d, DWORD PTR D3D_OK[rip]
	mov	QWORD PTR 16[rsp], rsi
	mov	DWORD PTR 28[rsp], edx
	test	eax, eax
	je	.L1
	sub	eax, 1
	mov	DWORD PTR 24[rsp], edx
	mov	r15, rdi
	cmp	edx, eax
	jnb	.L18
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r9d, DWORD PTR 24[rsp]
	mov	rbx, r9
	sal	r9, 5
	add	r9, QWORD PTR 8[r15]
	mov	rax, QWORD PTR 24[r9]
	mov	esi, DWORD PTR 4[r9]
	mov	r14, r9
	mov	rdx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [r9]
	mov	edi, eax
	mov	QWORD PTR [rsp], rdx
	mov	DWORD PTR 8[rsp], eax
	call	get_offset_reg@PLT
	mov	r13d, eax
	cmp	DWORD PTR [r15], ebx
	jbe	.L5
	mov	rdx, QWORD PTR [rsp]
	mov	rcx, r15
	mov	r13, r14
	mov	DWORD PTR 12[rsp], 0
	mov	r15d, eax
	mov	r14d, ebx
	mov	r12, rdx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, QWORD PTR 24[r13]
	mov	rax, QWORD PTR [rsi]
	cmp	QWORD PTR [rdi], rax
	jne	.L32
	mov	rax, QWORD PTR 8[rsi]
	cmp	QWORD PTR 8[rdi], rax
	jne	.L32
	mov	rax, QWORD PTR 16[rsi]
	cmp	QWORD PTR 16[rdi], rax
	jne	.L32
	mov	eax, DWORD PTR 8[rbx]
	cmp	DWORD PTR 8[r13], eax
	jne	.L32
	mov	eax, DWORD PTR [rcx]
	lea	r10d, -1[rax]
	cmp	r10d, r14d
	je	.L10
	mov	rdx, QWORD PTR 24[rsi]
	cmp	QWORD PTR 24[rdi], rdx
	jne	.L32
.L10:
	add	r15d, ebp
	mov	ebp, DWORD PTR 20[rsi]
	imul	ebp, DWORD PTR 16[rsi]
	add	r14d, 1
	mov	edi, DWORD PTR 12[rbx]
	add	DWORD PTR 12[rsp], edi
	imul	ebp, edi
	sal	rbp, 2
	add	r12, rbp
	cmp	eax, r14d
	jbe	.L32
.L11:
	mov	ebx, r14d
	mov	QWORD PTR [rsp], rcx
	sal	rbx, 5
	add	rbx, QWORD PTR 8[rcx]
	mov	esi, DWORD PTR 8[rbx]
	imul	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR [rbx]
	call	get_offset_reg@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR [rbx]
	mov	ebp, eax
	call	get_offset_reg@PLT
	mov	edx, DWORD PTR 8[rsp]
	cmp	DWORD PTR [rbx], edx
	mov	rcx, QWORD PTR [rsp]
	jne	.L22
	cmp	eax, r15d
	jne	.L22
	mov	r8, QWORD PTR 16[r13]
	cmp	QWORD PTR 16[rbx], r8
	jne	.L32
	mov	rsi, QWORD PTR 24[rbx]
	cmp	QWORD PTR 40[rsi], r12
	jne	.L32
	test	r8, r8
	je	.L35
	mov	eax, DWORD PTR [rcx]
	add	r15d, ebp
	add	r14d, 1
	sal	rbp, 2
	mov	edi, DWORD PTR 12[rbx]
	add	r12, rbp
	add	DWORD PTR 12[rsp], edi
	cmp	eax, r14d
	ja	.L11
	.p2align 4,,10
	.p2align 3
.L32:
	mov	r12d, r14d
	mov	r14, r13
	mov	r13d, r15d
	mov	r15, rcx
.L8:
	mov	eax, DWORD PTR 24[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	mov	QWORD PTR [rsp], r8
	lea	ebx, 1[rax]
	mov	edi, DWORD PTR 32[rcx]
	cmp	ebx, r12d
	jnb	.L12
	mov	ebp, DWORD PTR [r15]
	call	debugstr_a@PLT
	mov	r8, QWORD PTR [rsp]
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	sub	ebp, r12d
	mov	edx, eax
	sub	esi, DWORD PTR 24[rsp]
	xor	eax, eax
	mov	ecx, ebp
	call	TRACE@PLT
	mov	edx, DWORD PTR 12[rsp]
	cmp	QWORD PTR 16[r14], 0
	mov	DWORD PTR 12[r14], edx
	je	.L13
	mov	DWORD PTR 12[r14], 1
	mov	eax, DWORD PTR 24[rsp]
	cmp	DWORD PTR 28[rsp], eax
	jne	.L14
	mov	rax, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR [rax]
	cmp	rdi, QWORD PTR D3DXPT_VOID[rip]
	jne	.L15
	mov	rcx, QWORD PTR D3DXPC_STRUCT[rip]
	cmp	QWORD PTR 8[rax], rcx
	je	.L14
.L15:
	call	table_type_from_param_type@PLT
	cmp	rax, QWORD PTR PRES_VT_COUNT[rip]
	je	.L36
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 24[r14], rax
.L14:
	mov	edi, DWORD PTR 8[rsp]
	mov	esi, r13d
	call	get_reg_offset@PLT
	sub	eax, DWORD PTR 4[r14]
	mov	DWORD PTR 8[r14], eax
.L13:
	mov	edx, DWORD PTR [r15]
	mov	rdi, QWORD PTR 8[r15]
	mov	esi, r12d
	sal	rbx, 5
	sal	rsi, 5
	sub	edx, r12d
	add	rsi, rdi
	add	rdi, rbx
	sal	edx, 5
	call	memmove@PLT
	mov	eax, DWORD PTR [r15]
	mov	ecx, DWORD PTR 24[rsp]
	lea	eax, 1[rcx+rax]
	sub	eax, r12d
	mov	DWORD PTR [r15], eax
	sub	eax, 1
	cmp	eax, r12d
	jbe	.L18
.L21:
	mov	DWORD PTR 24[rsp], r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	call	debugstr_a@PLT
	mov	esi, DWORD PTR [r15]
	mov	r8, QWORD PTR [rsp]
	lea	rdi, .LC1[rip]
	mov	edx, eax
	xor	eax, eax
	sub	esi, r12d
	mov	ecx, r8d
	call	TRACE@PLT
	mov	eax, DWORD PTR [r15]
	sub	eax, 1
	cmp	eax, r12d
	ja	.L21
.L18:
	mov	r8d, DWORD PTR D3D_OK[rip]
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L22:
	.cfi_restore_state
	mov	r12d, r14d
	mov	r14, r13
	mov	r13d, r15d
	mov	r15, rcx
	mov	r8, QWORD PTR 16[r14]
	jmp	.L8
.L5:
	mov	DWORD PTR 12[rsp], 0
	mov	r8, QWORD PTR 16[r14]
	mov	r12d, DWORD PTR 24[rsp]
	jmp	.L8
.L36:
	mov	r8d, DWORD PTR D3DERR_INVALIDCALL[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	merge_const_set_entries, .-merge_const_set_entries
	.comm	PRES_VT_COUNT,8,8
	.comm	D3D_OK,4,4
	.comm	D3DXPT_VOID,8,8
	.comm	D3DXPC_STRUCT,8,8
	.comm	D3DERR_INVALIDCALL,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_preshader.c_merge_const_set_entries.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Merging %u child parameters for %s, not merging %u,"
	.ascii	" direct_copy %#x.\012\000"
	.align	2
.LC1:
	.ascii	"Not merging %u child parameters for %s, direct_copy"
	.ascii	" %#x.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_const_set_entries, %function
merge_const_set_entries:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	sub	sp, sp, #44
	cmp	r3, #0
	str	r1, [sp, #32]
	str	r2, [sp, #36]
	beq	.L2
	sub	r3, r3, #1
	cmp	r2, r3
	bcs	.L2
	mov	fp, r0
	ldr	r3, [sp, #36]
	str	r3, [sp, #24]
.L3:
	ldr	r4, [sp, #24]
	ldr	r2, [fp, #4]
	add	r3, r4, r4, lsl #1
	add	r9, r2, r3, lsl #3
	ldr	r2, [r2, r3, lsl #3]
	ldr	r1, [r9, #4]
	mov	r0, r2
	str	r2, [sp, #20]
	ldr	r2, [r9, #20]
	lsl	r3, r3, #3
	str	r3, [sp, #28]
	ldr	r10, [r2, #24]
	bl	get_offset_reg
	ldr	r3, [fp]
	mov	r8, r0
	cmp	r3, r4
	bls	.L18
	mov	r3, #0
	mov	r5, r4
	str	r3, [sp, #16]
	mov	r3, fp
	mov	fp, r9
	mov	r9, r10
	b	.L8
.L34:
	ldr	ip, [fp, #20]
	ldr	r1, [r0]
	ldr	lr, [ip]
	cmp	lr, r1
	bne	.L31
	ldr	lr, [ip, #4]
	ldr	r1, [r0, #4]
	cmp	lr, r1
	bne	.L31
	ldr	r1, [r0, #8]
	ldr	lr, [ip, #8]
	cmp	lr, r1
	bne	.L31
	ldr	r6, [r0, #12]
	ldr	lr, [ip, #12]
	cmp	lr, r6
	bne	.L31
	ldr	r7, [fp, #8]
	ldr	lr, [r4, #8]
	cmp	r7, lr
	bne	.L31
	ldr	lr, [r3]
	sub	r7, lr, #1
	cmp	r7, r5
	beq	.L7
	ldr	ip, [ip, #16]
	ldr	r0, [r0, #16]
	cmp	ip, r0
	bne	.L31
.L7:
	mul	r1, r6, r1
	ldr	r0, [r4, #12]
	add	r8, r8, r10
	mul	r10, r0, r1
	lsl	r10, r10, #2
.L16:
	ldr	r2, [sp, #16]
	add	r5, r5, #1
	add	r2, r2, r0
	cmp	lr, r5
	add	r9, r9, r10
	str	r2, [sp, #16]
	bls	.L31
.L8:
	ldr	r6, [r3, #4]
	add	r7, r5, r5, lsl #1
	add	r4, r6, r7, lsl #3
	ldr	ip, [r4, #12]
	ldr	r1, [r4, #8]
	ldr	r0, [r6, r7, lsl #3]
	mul	r1, ip, r1
	str	r3, [sp, #12]
	bl	get_offset_reg
	ldr	r1, [r4, #4]
	mov	r10, r0
	ldr	r0, [r6, r7, lsl #3]
	bl	get_offset_reg
	ldr	r3, [sp, #20]
	ldr	r1, [r6, r7, lsl #3]
	cmp	r0, r8
	cmpeq	r1, r3
	ldr	r3, [sp, #12]
	bne	.L31
	ldr	r1, [r4, #16]
	ldr	r0, [fp, #16]
	cmp	r1, r0
	bne	.L31
	ldr	r0, [r4, #20]
	ldr	ip, [r0, #24]
	cmp	ip, r9
	bne	.L31
	cmp	r1, #0
	beq	.L34
	add	r8, r8, r10
	ldr	r0, [r4, #12]
	ldr	lr, [r3]
	lsl	r10, r10, #2
	b	.L16
.L31:
	mov	r9, fp
	mov	fp, r3
.L5:
	ldr	r4, [sp, #24]
	ldr	r6, [sp, #32]
	add	r3, r4, #1
	cmp	r3, r5
	ldr	r0, [r6, #20]
	bcs	.L9
	bl	debugstr_a
	ldr	r3, [fp]
	ldr	ip, [r9, #16]
	mov	r2, r0
	sub	r3, r3, r5
	ldr	r0, .L36
	sub	r1, r5, r4
	str	ip, [sp]
	bl	TRACE
	ldr	r3, [r9, #16]
	ldr	r2, [sp, #16]
	cmp	r3, #0
	str	r2, [r9, #12]
	beq	.L10
	ldr	r3, [sp, #36]
	cmp	r3, r4
	mov	r3, #1
	str	r3, [r9, #12]
	bne	.L11
	ldr	r3, .L36+4
	ldr	r0, [r6]
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L12
	ldr	r3, .L36+8
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L11
.L12:
	bl	table_type_from_param_type
	ldr	r3, .L36+12
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L35
	ldr	r3, [sp, #32]
	str	r3, [r9, #20]
.L11:
	mov	r1, r8
	ldr	r0, [sp, #20]
	bl	get_reg_offset
	ldr	r3, [r9, #4]
	sub	r0, r0, r3
	str	r0, [r9, #8]
.L10:
	ldr	r1, [sp, #28]
	ldm	fp, {r2, r3}
	sub	r2, r2, r5
	add	r0, r1, #24
	add	r2, r2, r2, lsl #1
	add	r1, r5, r5, lsl #1
	lsl	r2, r2, #3
	add	r0, r3, r0
	add	r1, r3, r1, lsl #3
	bl	memmove
	ldr	r3, [fp]
	ldr	r2, [sp, #24]
	add	r3, r3, #1
	add	r3, r3, r2
	sub	r3, r3, r5
	str	r3, [fp]
	sub	r3, r3, #1
	cmp	r3, r5
	bls	.L2
.L19:
	str	r5, [sp, #24]
	b	.L3
.L9:
	ldr	r4, [fp]
	bl	debugstr_a
	sub	r4, r4, r5
	mov	r2, r0
	ldr	r3, [r9, #16]
	mov	r1, r4
	ldr	r0, .L36+16
	bl	TRACE
	ldr	r3, [fp]
	sub	r3, r3, #1
	cmp	r3, r5
	bhi	.L19
.L2:
	ldr	r3, .L36+20
	ldr	r0, [r3]
.L1:
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r3, #0
	ldr	r5, [sp, #24]
	str	r3, [sp, #16]
	b	.L5
.L35:
	ldr	r3, .L36+24
	ldr	r0, [r3]
	b	.L1
.L37:
	.align	2
.L36:
	.word	.LC0
	.word	D3DXPT_VOID
	.word	D3DXPC_STRUCT
	.word	PRES_VT_COUNT
	.word	.LC1
	.word	D3D_OK
	.word	D3DERR_INVALIDCALL
	.size	merge_const_set_entries, .-merge_const_set_entries
	.comm	PRES_VT_COUNT,4,4
	.comm	D3D_OK,4,4
	.comm	D3DXPT_VOID,4,4
	.comm	D3DXPC_STRUCT,4,4
	.comm	D3DERR_INVALIDCALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
