	.file	"extr_light.c_SetEntityOrigins.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"model"
.LC1:
	.string	"origin"
	.text
	.p2align 4
	.globl	SetEntityOrigins
	.type	SetEntityOrigins, @function
SetEntityOrigins:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR num_entities[rip]
	test	ecx, ecx
	jle	.L12
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	lea	rbx, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbp, 1
	cmp	DWORD PTR num_entities[rip], ebp
	jle	.L16
.L7:
	mov	rax, QWORD PTR entities[rip]
	mov	rsi, rbx
	lea	r13, [rax+rbp*4]
	mov	rdi, r13
	call	ValueForKey@PLT
	cmp	BYTE PTR [rax], 42
	jne	.L3
	lea	rdi, 1[rax]
	call	atoi@PLT
	mov	rdx, QWORD PTR dmodels[rip]
	cdqe
	lea	r12, [rdx+rax*8]
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jle	.L4
	mov	rsi, QWORD PTR entitySurface[rip]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR 4[r12]
	mov	ecx, DWORD PTR qtrue[rip]
	add	edx, eax
	add	eax, 1
	movsx	rdx, edx
	mov	DWORD PTR [rsi+rdx*4], ecx
	cmp	DWORD PTR [r12], eax
	jg	.L5
.L4:
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	ValueForKey@PLT
	cmp	BYTE PTR [rax], 0
	je	.L3
	xor	edi, edi
	lea	rsi, .LC1[rip]
	mov	edx, edi
	mov	rdi, r13
	call	GetVectorForKey@PLT
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jle	.L3
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 4[r12]
	mov	rdx, QWORD PTR surfaceOrigin[rip]
	xor	edi, edi
	add	eax, r13d
	add	r13d, 1
	cdqe
	mov	esi, DWORD PTR [rdx+rax*4]
	call	VectorCopy@PLT
	cmp	DWORD PTR [r12], r13d
	jg	.L6
	add	rbp, 1
	cmp	DWORD PTR num_entities[rip], ebp
	jg	.L7
.L16:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	SetEntityOrigins, .-SetEntityOrigins
	.comm	surfaceOrigin,8,8
	.comm	qtrue,4,4
	.comm	num_entities,4,4
	.comm	entitySurface,8,8
	.comm	entities,8,8
	.comm	dmodels,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_light.c_SetEntityOrigins.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"model\000"
	.align	2
.LC1:
	.ascii	"origin\000"
	.text
	.align	2
	.global	SetEntityOrigins
	.syntax unified
	.arm
	.fpu softvfp
	.type	SetEntityOrigins, %function
SetEntityOrigins:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L16
	sub	sp, sp, #12
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L1
	mov	r4, #0
	ldr	r9, .L16+4
	ldr	r8, .L16+8
	ldr	fp, .L16+12
	ldr	r6, .L16+16
	b	.L7
.L3:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L1
.L7:
	ldr	r2, [r9]
	mov	r1, r8
	add	r10, r2, r4, lsl #2
	mov	r0, r10
	bl	ValueForKey
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L3
	add	r0, r0, #1
	bl	atoi
	ldr	r3, .L16+20
	str	r0, [sp, #4]
	ldr	r3, [r3]
	ldr	r1, [r3, r0, lsl #3]
	add	r5, r3, r0, lsl #3
	cmp	r1, #0
	ble	.L4
	mov	r1, #0
	ldr	r2, .L16+24
	ldr	lr, [r2]
.L5:
	ldr	r2, [r5, #4]
	ldr	r0, [r6]
	add	r2, r1, r2
	str	r0, [lr, r2, lsl #2]
	ldr	r2, [r5]
	add	r1, r1, #1
	cmp	r2, r1
	bgt	.L5
.L4:
	ldr	r1, .L16+28
	mov	r0, r10
	str	r3, [sp]
	bl	ValueForKey
	ldrb	r1, [r0]	@ zero_extendqisi2
	cmp	r1, #0
	beq	.L3
	mov	r2, #0
	mov	r0, r10
	ldr	r1, .L16+28
	bl	GetVectorForKey
	ldr	r2, [sp, #4]
	ldr	r3, [sp]
	ldr	r3, [r3, r2, lsl #3]
	cmp	r3, #0
	ble	.L3
	mov	r10, #0
.L6:
	ldr	r3, [r5, #4]
	ldr	r2, [fp]
	add	r3, r10, r3
	ldr	r1, [r2, r3, lsl #2]
	mov	r0, #0
	bl	VectorCopy
	ldr	r3, [r5]
	add	r10, r10, #1
	cmp	r3, r10
	bgt	.L6
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L7
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	num_entities
	.word	entities
	.word	.LC0
	.word	surfaceOrigin
	.word	qtrue
	.word	dmodels
	.word	entitySurface
	.word	.LC1
	.size	SetEntityOrigins, .-SetEntityOrigins
	.comm	surfaceOrigin,4,4
	.comm	qtrue,4,4
	.comm	num_entities,4,4
	.comm	entitySurface,4,4
	.comm	entities,4,4
	.comm	dmodels,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
