// File: /workspace/github_c_makefile_star2_O0/QwazyWabbitWOS[P]lmctf60/g_func.c
// Function: Think_SpawnDoorTrigger
void Think_SpawnDoorTrigger (edict_t *ent)
{
	edict_t		*other;
	vec3_t		mins, maxs;

	if (ent->flags & FL_TEAMSLAVE)
		return;		// only the team leader spawns a trigger

	VectorCopy (ent->absmin, mins);
	VectorCopy (ent->absmax, maxs);

	for (other = ent->teamchain ; other ; other=other->teamchain)
	{
		AddPointToBounds (other->absmin, mins, maxs);
		AddPointToBounds (other->absmax, mins, maxs);
	}

	// expand 
	mins[0] -= 60;
	mins[1] -= 60;
	maxs[0] += 60;
	maxs[1] += 60;

	other = G_Spawn ();
	VectorCopy (mins, other->mins);
	VectorCopy (maxs, other->maxs);
	other->owner = ent;
	other->solid = SOLID_TRIGGER;
	other->movetype = MOVETYPE_NONE;
	other->touch = Touch_DoorTrigger;
	gi.linkentity (other);

	if (ent->spawnflags & DOOR_START_OPEN)
		door_use_areaportals (ent, true);

	Think_CalcMoveSpeed (ent);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x11c(%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x362b5
jmp 0x364ab
movq -0x8(%rbp), %rax
movss 0xe4(%rax), %xmm0
movss %xmm0, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movss 0xe8(%rax), %xmm0
movss %xmm0, -0x18(%rbp)
movq -0x8(%rbp), %rax
movss 0xec(%rax), %xmm0
movss %xmm0, -0x14(%rbp)
movq -0x8(%rbp), %rax
movss 0xf0(%rax), %xmm0
movss %xmm0, -0x28(%rbp)
movq -0x8(%rbp), %rax
movss 0xf4(%rax), %xmm0
movss %xmm0, -0x24(%rbp)
movq -0x8(%rbp), %rax
movss 0xf8(%rax), %xmm0
movss %xmm0, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x2c8(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x36372
movq -0x10(%rbp), %rdi
addq $0xe4, %rdi
leaq -0x1c(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0x18d40
movq -0x10(%rbp), %rdi
addq $0xf0, %rdi
leaq -0x1c(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0x18d40
movq -0x10(%rbp), %rax
movq 0x2c8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x3632a
movss -0x1c(%rbp), %xmm0
movss 0x3c805(%rip), %xmm1    # 0x72b84
subss %xmm1, %xmm0
movss %xmm0, -0x1c(%rbp)
movss -0x18(%rbp), %xmm0
movss 0x3c7ef(%rip), %xmm1    # 0x72b84
subss %xmm1, %xmm0
movss %xmm0, -0x18(%rbp)
movss 0x3c7de(%rip), %xmm0    # 0x72b84
addss -0x28(%rbp), %xmm0
movss %xmm0, -0x28(%rbp)
movss 0x3c7cc(%rip), %xmm0    # 0x72b84
addss -0x24(%rbp), %xmm0
movss %xmm0, -0x24(%rbp)
callq 0x19950
movq %rax, -0x10(%rbp)
movss -0x1c(%rbp), %xmm0
movq -0x10(%rbp), %rax
movss %xmm0, 0xcc(%rax)
movss -0x18(%rbp), %xmm0
movq -0x10(%rbp), %rax
movss %xmm0, 0xd0(%rax)
movss -0x14(%rbp), %xmm0
movq -0x10(%rbp), %rax
movss %xmm0, 0xd4(%rax)
movss -0x28(%rbp), %xmm0
movq -0x10(%rbp), %rax
movss %xmm0, 0xd8(%rax)
movss -0x24(%rbp), %xmm0
movq -0x10(%rbp), %rax
movss %xmm0, 0xdc(%rax)
movss -0x20(%rbp), %xmm0
movq -0x10(%rbp), %rax
movss %xmm0, 0xe0(%rax)
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x110(%rax)
movq -0x10(%rbp), %rax
movl $0x1, 0x108(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x118(%rax)
movq -0x10(%rbp), %rax
movq 0x4ca79(%rip), %rcx     # 0x82ee0
movq %rcx, 0x220(%rax)
movq 0x4c18b(%rip), %rax     # 0x82600
movq 0x90(%rax), %rax
movq -0x10(%rbp), %rdi
callq *%rax
movq -0x8(%rbp), %rax
movl 0x140(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x364a2
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x18250
movq -0x8(%rbp), %rdi
callq 0x19dd0
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)