	.file	"extr_preshader.c_set_constants.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_constants, @function
set_constants:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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, 168
	.cfi_def_cfa_offset 224
	mov	QWORD PTR 64[rsp], rcx
	or	rcx, r8
	mov	QWORD PTR 16[rsp], rdi
	mov	DWORD PTR 92[rsp], edx
	mov	QWORD PTR 72[rsp], r8
	mov	DWORD PTR 88[rsp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR PRES_REGTAB_COUNT[rip]
	mov	QWORD PTR 80[rsp], rcx
	mov	DWORD PTR 104[rsp], eax
	mov	eax, DWORD PTR D3D_OK[rip]
	mov	DWORD PTR 56[rsp], eax
	mov	eax, DWORD PTR 16[rsi]
	mov	DWORD PTR 28[rsp], eax
	lea	rax, 112[rsp]
	mov	QWORD PTR 96[rsp], rax
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	je	.L27
	mov	QWORD PTR 8[rsp], rsi
	xor	ebx, ebx
	jmp	.L2
.L6:
	mov	edi, DWORD PTR 16[r15]
	call	table_type_from_param_type@PLT
	mov	DWORD PTR 60[rsp], eax
	mov	rax, QWORD PTR 16[rbp]
	cmp	rax, QWORD PTR D3DXPC_SCALAR[rip]
	je	.L8
	cmp	rax, QWORD PTR D3DXPC_VECTOR[rip]
	jne	.L9
.L8:
	mov	edi, DWORD PTR 8[r15]
	mov	esi, DWORD PTR 12[r15]
	call	max@PLT
	mov	edi, r14d
	mov	r15d, eax
	call	get_reg_components@PLT
	cmp	eax, r15d
	ja	.L83
	mov	r8d, DWORD PTR 24[rbp]
	mov	r9d, DWORD PTR 60[rsp]
	mov	rcx, r12
	mov	edx, r13d
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, r14d
	imul	r8d, r15d
	call	regstore_set_data@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[rsp]
	add	ebx, 1
	cmp	DWORD PTR [rax], ebx
	jbe	.L84
.L2:
	mov	eax, ebx
	lea	rbp, [rax+rax*2]
	mov	rax, QWORD PTR 8[rsp]
	sal	rbp, 4
	add	rbp, QWORD PTR 8[rax]
	mov	r15, QWORD PTR 32[rbp]
	test	r15, r15
	je	.L7
	mov	esi, DWORD PTR 28[rsp]
	mov	rdi, r15
	mov	r14d, DWORD PTR 0[rbp]
	call	is_param_dirty@PLT
	test	eax, eax
	je	.L7
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, r14d
	mov	r12, QWORD PTR [r15]
	call	get_offset_reg@PLT
	cmp	QWORD PTR 40[rbp], 0
	mov	r13d, eax
	je	.L6
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, r14d
	add	ebx, 1
	call	get_offset_reg@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	ecx, r13d
	mov	rdx, r12
	mov	r8d, eax
	mov	esi, r14d
	call	regstore_set_values@PLT
	mov	rax, QWORD PTR 8[rsp]
	cmp	DWORD PTR [rax], ebx
	ja	.L2
.L84:
	mov	r15, rax
.L27:
	mov	eax, DWORD PTR 92[rsp]
	cmp	QWORD PTR 80[rsp], 0
	mov	DWORD PTR 16[r15], eax
	je	.L85
	mov	r9d, DWORD PTR [r15]
	test	r9d, r9d
	je	.L1
	xor	r9d, r9d
	mov	r10, r15
	mov	r13d, DWORD PTR 104[rsp]
	xor	r14d, r14d
	mov	r11d, DWORD PTR 224[rsp]
	xor	ebp, ebp
	mov	r15d, r9d
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L32:
	test	r14d, r14d
	jne	.L86
.L36:
	mov	edx, DWORD PTR 8[rbx]
	imul	edx, DWORD PTR 24[rbx]
	mov	r13d, r12d
	mov	r15d, DWORD PTR 4[rbx]
	mov	r14d, edx
.L35:
	add	ebp, 1
	cmp	DWORD PTR [r10], ebp
	jbe	.L87
.L37:
	mov	eax, ebp
	lea	rbx, [rax+rax*2]
	sal	rbx, 4
	add	rbx, QWORD PTR 8[r10]
	test	r11d, r11d
	jne	.L34
	mov	rdi, QWORD PTR 32[rbx]
	test	rdi, rdi
	je	.L33
	mov	esi, DWORD PTR 28[rsp]
	mov	DWORD PTR 224[rsp], r11d
	mov	QWORD PTR 8[rsp], r10
	call	is_param_dirty@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	r11d, DWORD PTR 224[rsp]
	test	eax, eax
	je	.L35
	.p2align 4,,10
	.p2align 3
.L34:
	mov	r12d, DWORD PTR [rbx]
	cmp	r12d, r13d
	jne	.L32
	lea	eax, [r15+r14]
	cmp	eax, DWORD PTR 4[rbx]
	jne	.L32
	mov	eax, DWORD PTR 8[rbx]
	imul	eax, DWORD PTR 24[rbx]
	add	ebp, 1
	add	r14d, eax
	cmp	DWORD PTR [r10], ebp
	ja	.L37
.L87:
	test	r14d, r14d
	jne	.L88
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L89
	mov	eax, DWORD PTR 56[rsp]
	add	rsp, 168
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L33:
	.cfi_restore_state
	mov	r8d, DWORD PTR 232[rsp]
	test	r8d, r8d
	jne	.L34
	jmp	.L35
.L86:
	mov	edi, r13d
	mov	esi, r15d
	mov	QWORD PTR 8[rsp], r10
	mov	DWORD PTR 224[rsp], r11d
	call	get_offset_reg@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, r13d
	mov	ecx, r13d
	sub	rsp, 8
	.cfi_def_cfa_offset 232
	cdqe
	mov	r9d, r15d
	mov	rsi, QWORD PTR [rsi]
	mov	rsi, QWORD PTR [rsi+rdi*8]
	push	r14
	.cfi_def_cfa_offset 240
	mov	edx, DWORD PTR 104[rsp]
	mov	rdi, QWORD PTR 80[rsp]
	lea	r8, [rsi+rax*4]
	mov	rsi, QWORD PTR 88[rsp]
	call	set_constants_device@PLT
	mov	edi, eax
	mov	r13d, eax
	call	FAILED@PLT
	pop	rsi
	.cfi_def_cfa_offset 232
	pop	rdi
	.cfi_def_cfa_offset 224
	test	rax, rax
	cmove	r13d, DWORD PTR 56[rsp]
	mov	r11d, DWORD PTR 224[rsp]
	mov	r10, QWORD PTR 8[rsp]
	mov	DWORD PTR 56[rsp], r13d
	jmp	.L36
.L9:
	mov	rsi, QWORD PTR 96[rsp]
	mov	rdi, rbp
	call	get_const_upload_info@PLT
	mov	eax, r14d
	xor	ecx, ecx
	mov	QWORD PTR 40[rsp], rax
	sal	rax, 3
	mov	QWORD PTR 32[rsp], rax
	mov	eax, DWORD PTR 24[rbp]
	test	eax, eax
	je	.L26
	mov	rax, r12
	mov	DWORD PTR 48[rsp], ebx
	mov	r12, r15
	mov	rbx, rbp
	mov	r15, rax
	mov	ebp, r13d
	mov	r13d, ecx
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rax, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	cmp	QWORD PTR 136[rsp], 0
	mov	rdx, QWORD PTR [rax]
	mov	eax, ebp
	mov	rdx, QWORD PTR [rdx+rsi]
	lea	rsi, [rdx+rax*4]
	mov	edx, DWORD PTR 112[rsp]
	jne	.L15
	mov	eax, DWORD PTR 116[rsp]
	xor	edi, edi
	test	edx, edx
	je	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	xor	edx, edx
	test	eax, eax
	je	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	imul	eax, edi
	add	eax, edx
	mov	ecx, DWORD PTR [r15+rax*4]
	mov	eax, DWORD PTR 120[rsp]
	imul	eax, edi
	add	eax, edx
	add	edx, 1
	mov	DWORD PTR [rsi+rax*4], ecx
	mov	eax, DWORD PTR 116[rsp]
	cmp	eax, edx
	ja	.L23
.L24:
	add	edi, 1
	cmp	DWORD PTR 112[rsp], edi
	ja	.L16
.L17:
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, r14d
	add	r13d, 1
	call	get_offset_reg@PLT
	add	ebp, eax
	mov	eax, DWORD PTR 8[r12]
	imul	eax, DWORD PTR 12[r12]
	cdqe
	lea	r15, [r15+rax*4]
	cmp	DWORD PTR 24[rbx], r13d
	ja	.L25
	mov	rbp, rbx
	mov	ebx, DWORD PTR 48[rsp]
.L26:
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, r14d
	call	get_offset_reg@PLT
	mov	rsi, QWORD PTR 40[rsp]
	mov	edi, DWORD PTR 60[rsp]
	mov	r12d, eax
	mov	rax, QWORD PTR table_info[rip]
	cmp	edi, DWORD PTR [rax+rsi*4]
	je	.L7
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, r14d
	call	get_offset_reg@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 40[rsp]
	mov	ecx, r12d
	imul	eax, DWORD PTR 24[rbp]
	mov	r9d, DWORD PTR 60[rsp]
	mov	rdx, QWORD PTR [rdi]
	mov	rdx, QWORD PTR [rdx+rsi*8]
	mov	r8d, eax
	mov	esi, r14d
	lea	rcx, [rdx+rcx*4]
	mov	edx, r12d
	call	regstore_set_data@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	test	edx, edx
	je	.L19
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r11d, DWORD PTR 116[rsp]
	xor	eax, eax
	test	r11d, r11d
	je	.L21
	.p2align 4,,10
	.p2align 3
.L20:
	mov	ecx, DWORD PTR 124[rsp]
	imul	ecx, eax
	add	ecx, edx
	mov	edi, DWORD PTR [r15+rcx*4]
	mov	ecx, DWORD PTR 120[rsp]
	imul	ecx, edx
	add	ecx, eax
	add	eax, 1
	mov	DWORD PTR [rsi+rcx*4], edi
	cmp	DWORD PTR 116[rsp], eax
	ja	.L20
.L21:
	add	edx, 1
	cmp	DWORD PTR 112[rsp], edx
	ja	.L18
.L19:
	mov	r10d, DWORD PTR 128[rsp]
	test	r10d, r10d
	je	.L17
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L22:
	mov	ecx, DWORD PTR 124[rsp]
	imul	ecx, eax
	add	ecx, edx
	mov	edi, DWORD PTR [r15+rcx*4]
	mov	ecx, DWORD PTR 120[rsp]
	imul	ecx, edx
	add	ecx, eax
	add	eax, 1
	mov	DWORD PTR [rsi+rcx*4], edi
	cmp	DWORD PTR 128[rsp], eax
	ja	.L22
	jmp	.L17
.L83:
	mov	eax, DWORD PTR 24[rbp]
	xor	r11d, r11d
	xor	r10d, r10d
	test	eax, eax
	je	.L7
	mov	DWORD PTR 40[rsp], r13d
	mov	DWORD PTR 108[rsp], ebx
	mov	ebx, DWORD PTR 60[rsp]
	mov	QWORD PTR 32[rsp], rbp
	mov	ebp, r10d
	mov	QWORD PTR 48[rsp], r12
	mov	r12d, r11d
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, QWORD PTR 48[rsp]
	mov	eax, r12d
	mov	edi, r14d
	add	r12d, r15d
	lea	r13, [rsi+rax*4]
	mov	esi, ebp
	add	ebp, 1
	call	get_offset_reg@PLT
	mov	esi, DWORD PTR 40[rsp]
	mov	r9d, ebx
	mov	r8d, r15d
	mov	rdi, QWORD PTR 16[rsp]
	mov	rcx, r13
	lea	edx, [rax+rsi]
	mov	esi, r14d
	call	regstore_set_data@PLT
	mov	rax, QWORD PTR 32[rsp]
	cmp	DWORD PTR 24[rax], ebp
	ja	.L12
	mov	ebx, DWORD PTR 108[rsp]
	jmp	.L7
.L88:
	mov	esi, r15d
	mov	edi, r13d
	mov	DWORD PTR 8[rsp], r15d
	call	get_offset_reg@PLT
	mov	rbx, QWORD PTR 16[rsp]
	mov	ecx, r13d
	sub	rsp, 8
	.cfi_def_cfa_offset 232
	cdqe
	mov	rdx, QWORD PTR [rbx]
	mov	rdx, QWORD PTR [rdx+rcx*8]
	push	r14
	.cfi_def_cfa_offset 240
	mov	ecx, r13d
	mov	r9d, DWORD PTR 24[rsp]
	mov	rsi, QWORD PTR 88[rsp]
	mov	rdi, QWORD PTR 80[rsp]
	lea	r8, [rdx+rax*4]
	mov	edx, DWORD PTR 104[rsp]
	call	set_constants_device@PLT
	mov	edi, eax
	mov	ebx, eax
	call	FAILED@PLT
	pop	rdx
	.cfi_def_cfa_offset 232
	pop	rcx
	.cfi_def_cfa_offset 224
	test	rax, rax
	cmove	ebx, DWORD PTR 56[rsp]
	mov	DWORD PTR 56[rsp], ebx
	jmp	.L1
.L85:
	mov	eax, DWORD PTR D3D_OK[rip]
	mov	DWORD PTR 56[rsp], eax
	jmp	.L1
.L89:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_constants, .-set_constants
	.comm	table_info,8,8
	.comm	PRES_REGTAB_COUNT,4,4
	.comm	D3D_OK,4,4
	.comm	D3DXPC_VECTOR,8,8
	.comm	D3DXPC_SCALAR,8,8
	.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_set_constants.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_constants, %function
set_constants:
	@ args = 16, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	lr, r3
	mov	r9, r1
	sub	sp, sp, #100
	ldr	ip, [sp, #136]
	str	r2, [sp, #52]
	ldr	r2, .L85
	str	r3, [sp, #40]
	str	ip, [sp, #44]
	str	r0, [sp, #36]
	ldr	r2, [r2]
	str	r2, [sp, #92]
	mov	r2,#0
	orr	r2, lr, ip
	ldr	r3, [r1]
	str	r2, [sp, #48]
	ldr	r1, .L85+4
	ldr	r2, [r9, #8]
	cmp	r3, #0
	str	r2, [sp, #20]
	ldr	r2, [r1]
	str	r2, [sp, #56]
	ldr	r2, .L85+8
	ldr	r2, [r2]
	str	r2, [sp, #28]
	beq	.L26
	str	r9, [sp, #16]
	mov	r6, #0
	ldr	r9, [sp, #36]
	b	.L2
.L77:
	ldr	r3, [r5]
.L7:
	add	r6, r6, #1
	cmp	r3, r6
	bls	.L76
.L2:
	ldr	r5, [sp, #16]
	rsb	ip, r6, r6, lsl #3
	ldr	r2, [r5, #4]
	add	r4, r2, ip, lsl #2
	ldr	r10, [r4, #20]
	cmp	r10, #0
	beq	.L7
	mov	r0, r10
	ldr	r1, [sp, #20]
	ldr	r7, [r2, ip, lsl #2]
	bl	is_param_dirty
	cmp	r0, #0
	beq	.L77
	mov	r0, r7
	ldr	r1, [r4, #4]
	ldr	r8, [r10]
	bl	get_offset_reg
	ldr	fp, [r4, #24]
	mov	r5, r0
	cmp	fp, #0
	bne	.L78
	ldr	r0, [r10, #12]
	bl	table_type_from_param_type
	ldr	r2, .L85+12
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	str	r0, [sp, #32]
	cmp	r3, r2
	beq	.L8
	ldr	r2, .L85+16
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L9
.L8:
	ldmib	r10, {r0, r1}
	bl	max
	mov	r10, r0
	mov	r0, r7
	bl	get_reg_components
	cmp	r0, r10
	bhi	.L79
	ldr	r3, [sp, #32]
	str	r3, [sp, #4]
	ldr	r2, [r4, #16]
	mov	r3, r8
	mul	r10, r2, r10
	mov	r2, r5
	str	r10, [sp]
.L73:
	mov	r1, r7
	mov	r0, r9
	bl	regstore_set_data
.L72:
	ldr	r3, [sp, #16]
	add	r6, r6, #1
	ldr	r3, [r3]
	cmp	r3, r6
	bhi	.L2
.L76:
	ldr	r9, [sp, #16]
.L26:
	ldr	r2, [sp, #48]
	cmp	r2, #0
	ldr	r2, [sp, #52]
	str	r2, [r9, #8]
	beq	.L80
	cmp	r3, #0
	beq	.L1
	ldr	r8, [sp, #56]
	mov	r6, #0
	mov	r2, r8
	mov	r4, r6
	mov	r8, r6
	mov	r1, r3
	mov	fp, r2
	ldr	r10, [sp, #144]
	b	.L36
.L31:
	cmp	r6, #0
	bne	.L81
.L35:
	mov	fp, r7
	ldr	r6, [r5, #8]
	ldr	r3, [r5, #16]
	ldr	r8, [r5, #4]
	mul	r6, r3, r6
.L74:
	ldr	r1, [r9]
.L34:
	add	r4, r4, #1
	cmp	r1, r4
	bls	.L82
.L36:
	ldr	r3, [r9, #4]
	rsb	r7, r4, r4, lsl #3
	cmp	r10, #0
	add	r5, r3, r7, lsl #2
	bne	.L33
	ldr	r0, [r5, #20]
	cmp	r0, #0
	beq	.L32
	ldr	r1, [sp, #20]
	str	r3, [sp, #16]
	bl	is_param_dirty
	cmp	r0, #0
	ldr	r3, [sp, #16]
	beq	.L74
.L33:
	ldr	r7, [r3, r7, lsl #2]
	cmp	r7, fp
	bne	.L31
	ldr	r3, [r5, #4]
	add	r1, r8, r6
	cmp	r1, r3
	bne	.L31
	ldr	r1, [r9]
	ldr	r3, [r5, #8]
	ldr	r0, [r5, #16]
	add	r4, r4, #1
	cmp	r1, r4
	mla	r6, r0, r3, r6
	bhi	.L36
.L82:
	mov	r3, fp
	cmp	r6, #0
	mov	fp, r8
	mov	r8, r3
	bne	.L83
.L1:
	ldr	r3, .L85
	ldr	r2, [r3]
	ldr	r3, [sp, #92]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L84
	ldr	r0, [sp, #28]
	add	sp, sp, #100
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L32:
	ldr	r2, [sp, #148]
	cmp	r2, #0
	bne	.L33
	b	.L34
.L81:
	mov	r1, r8
	mov	r0, fp
	bl	get_offset_reg
	ldr	r3, [sp, #36]
	ldr	r1, [sp, #44]
	ldr	r3, [r3]
	str	r6, [sp, #8]
	str	r8, [sp, #4]
	ldr	r2, [r3, fp, lsl #2]
	mov	r3, fp
	add	r2, r2, r0, lsl #2
	str	r2, [sp]
	ldr	r0, [sp, #40]
	ldr	r2, [sp, #140]
	bl	set_constants_device
	mov	r6, r0
	bl	FAILED
	cmp	r0, #0
	ldr	r3, [sp, #28]
	movne	r3, r6
	str	r3, [sp, #28]
	b	.L35
.L78:
	ldr	r1, [r4, #8]
	mov	r0, r7
	bl	get_offset_reg
	mov	r3, r5
	str	r0, [sp]
	mov	r2, r8
	mov	r1, r7
	mov	r0, r9
	bl	regstore_set_values
	ldr	r3, [sp, #16]
	ldr	r3, [r3]
	b	.L7
.L9:
	mov	r0, r4
	add	r1, sp, #68
	bl	get_const_upload_info
	ldr	r3, [r4, #16]
	lsl	r2, r7, #2
	cmp	r3, #0
	beq	.L25
	mov	r3, r9
	str	r6, [sp, #24]
	mov	r9, r7
	mov	r6, r2
	mov	r7, r3
.L13:
	ldr	r3, [r7]
	ldr	ip, [sp, #88]
	ldr	r0, [r3, r6]
	ldr	r1, [sp, #68]
	cmp	ip, #0
	mov	lr, r1
	add	r0, r0, r5, lsl #2
	bne	.L15
	cmp	r1, #0
	ldrne	r3, [sp, #72]
	beq	.L17
.L16:
	cmp	r3, #0
	movne	r2, #0
	beq	.L24
.L23:
	mla	r3, ip, r3, r2
	ldr	r1, [sp, #76]
	ldr	lr, [r8, r3, lsl #2]
	mla	r3, r1, ip, r2
	str	lr, [r0, r3, lsl #2]
	ldr	r3, [sp, #72]
	add	r2, r2, #1
	cmp	r3, r2
	bhi	.L23
	ldr	r1, [sp, #68]
.L24:
	add	ip, ip, #1
	cmp	r1, ip
	bhi	.L16
.L17:
	ldr	r1, [r4, #8]
	mov	r0, r9
	bl	get_offset_reg
	ldr	r1, [r10, #8]
	ldr	r3, [r10, #4]
	add	fp, fp, #1
	mul	r3, r1, r3
	ldr	r1, [r4, #16]
	add	r5, r5, r0
	cmp	r1, fp
	add	r8, r8, r3, lsl #2
	bhi	.L13
	mov	r3, r7
	mov	r7, r9
	mov	r9, r3
	ldr	r6, [sp, #24]
.L25:
	mov	r0, r7
	ldr	r1, [r4, #4]
	bl	get_offset_reg
	ldr	r3, .L85+20
	ldr	r2, [sp, #32]
	ldr	r3, [r3]
	mov	r5, r0
	ldr	r3, [r3, r7, lsl #2]
	cmp	r2, r3
	beq	.L72
	ldr	r3, [r9]
	ldr	r1, [r4, #8]
	mov	r0, r7
	ldr	r8, [r3, r7, lsl #2]
	bl	get_offset_reg
	ldr	r3, [sp, #32]
	add	r8, r8, r5, lsl #2
	str	r3, [sp, #4]
	ldr	r1, [r4, #16]
	mov	r3, r8
	mul	r1, r0, r1
	mov	r2, r5
	str	r1, [sp]
	b	.L73
.L15:
	cmp	r1, #0
	movne	lr, #0
	ldrne	r3, [sp, #72]
	beq	.L19
.L18:
	cmp	r3, #0
	movne	r2, #0
	beq	.L21
.L20:
	ldr	r1, [sp, #80]
	ldr	r3, [sp, #76]
	mla	r1, r2, r1, lr
	mla	r3, lr, r3, r2
	ldr	r1, [r8, r1, lsl #2]
	add	r2, r2, #1
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [sp, #72]
	cmp	r3, r2
	bhi	.L20
	ldr	r1, [sp, #68]
.L21:
	add	lr, lr, #1
	cmp	r1, lr
	bhi	.L18
.L19:
	ldr	r3, [sp, #84]
	cmp	r3, #0
	beq	.L17
	mov	r3, #0
.L22:
	ldr	r1, [sp, #80]
	ldr	r2, [sp, #76]
	mla	r1, r3, r1, lr
	mla	r2, lr, r2, r3
	ldr	r1, [r8, r1, lsl #2]
	add	r3, r3, #1
	str	r1, [r0, r2, lsl #2]
	ldr	r2, [sp, #84]
	cmp	r2, r3
	bhi	.L22
	b	.L17
.L79:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L72
	mov	fp, r8
	lsl	r3, r10, #2
	str	r3, [sp, #24]
	mov	r3, fp
	mov	r8, #0
	mov	fp, r10
	mov	r10, r5
	mov	r5, r4
	mov	r4, r3
	str	r6, [sp, #60]
	ldr	r6, [sp, #32]
.L12:
	mov	r1, r8
	mov	r0, r7
	bl	get_offset_reg
	mov	r3, r4
	add	r2, r0, r10
	mov	r1, r7
	mov	r0, r9
	str	r6, [sp, #4]
	str	fp, [sp]
	bl	regstore_set_data
	ldr	r2, [r5, #16]
	ldr	r3, [sp, #24]
	add	r8, r8, #1
	cmp	r2, r8
	add	r4, r4, r3
	bhi	.L12
	ldr	r3, [sp, #16]
	ldr	r6, [sp, #60]
	ldr	r3, [r3]
	b	.L7
.L83:
	mov	r1, fp
	mov	r0, r3
	bl	get_offset_reg
	ldr	r3, [sp, #36]
	ldr	r1, [sp, #44]
	ldr	r3, [r3]
	str	r6, [sp, #8]
	str	fp, [sp, #4]
	ldr	r2, [r3, r8, lsl #2]
	mov	r3, r8
	add	r2, r2, r0, lsl #2
	str	r2, [sp]
	ldr	r0, [sp, #40]
	ldr	r2, [sp, #140]
	bl	set_constants_device
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	ldr	r3, [sp, #28]
	movne	r3, r4
	str	r3, [sp, #28]
	b	.L1
.L80:
	ldr	r3, .L85+8
	ldr	r3, [r3]
	str	r3, [sp, #28]
	b	.L1
.L84:
	bl	__stack_chk_fail
.L86:
	.align	2
.L85:
	.word	.LC0
	.word	PRES_REGTAB_COUNT
	.word	D3D_OK
	.word	D3DXPC_SCALAR
	.word	D3DXPC_VECTOR
	.word	table_info
	.size	set_constants, .-set_constants
	.comm	table_info,4,4
	.comm	PRES_REGTAB_COUNT,4,4
	.comm	D3D_OK,4,4
	.comm	D3DXPC_VECTOR,4,4
	.comm	D3DXPC_SCALAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
