extern int Math_Sqrt(int,int,int);extern int FreeIfFlagSet(int,int);extern int Object_FreeIfFlag(int,int);extern int Mem_FreeAndChildren(int);
void Sub_0800F608(void) __attribute__((naked));
void Sub_0800F608(void)
{
  __asm__ volatile(
  ".syntax unified\n"
  ".thumb\n"
  "push {r4, r5, lr}\n"
  "adds r4, r0, #0\n"
  "adds r5, r1, #0\n"
  "ldr r0, .Lp0\n"
  "str r0, [r4, #24]\n"
  "ldr r1, .Lp1\n"
  "adds r0, r4, r1\n"
  "ldr r2, [r0, #0]\n"
  "cmp r2, #0\n"
  "beq L1_%=\n"
  "ldr r1, [r2, #4]\n"
  "movs r3, #8\n"
  "ldrsh r0, [r1, r3]\n"
  "adds r0, r2, r0\n"
  "ldr r2, [r1, #12]\n"
  "movs r1, #3\n"
  "bl Math_Sqrt\n"
  "L1_%=:\n"
  "ldr r1, .Lp2\n"
  "adds r0, r4, r1\n"
  "ldr r2, [r0, #0]\n"
  "cmp r2, #0\n"
  "beq L2_%=\n"
  "ldr r1, [r2, #4]\n"
  "movs r3, #8\n"
  "ldrsh r0, [r1, r3]\n"
  "adds r0, r2, r0\n"
  "ldr r2, [r1, #12]\n"
  "movs r1, #3\n"
  "bl Math_Sqrt\n"
  "L2_%=:\n"
  "ldr r1, .Lp3\n"
  "adds r0, r4, r1\n"
  "ldr r2, [r0, #0]\n"
  "cmp r2, #0\n"
  "beq L3_%=\n"
  "ldr r1, [r2, #4]\n"
  "movs r3, #8\n"
  "ldrsh r0, [r1, r3]\n"
  "adds r0, r2, r0\n"
  "ldr r2, [r1, #12]\n"
  "movs r1, #3\n"
  "bl Math_Sqrt\n"
  "L3_%=:\n"
  "movs r1, #153\n"
  "lsls r1, r1, #4\n"
  "adds r0, r4, r1\n"
  "ldr r2, [r0, #0]\n"
  "cmp r2, #0\n"
  "beq L4_%=\n"
  "ldr r1, [r2, #4]\n"
  "movs r3, #8\n"
  "ldrsh r0, [r1, r3]\n"
  "adds r0, r2, r0\n"
  "ldr r2, [r1, #12]\n"
  "movs r1, #3\n"
  "bl Math_Sqrt\n"
  "L4_%=:\n"
  "ldr r1, .Lp4\n"
  "adds r0, r4, r1\n"
  "ldr r2, [r0, #0]\n"
  "cmp r2, #0\n"
  "beq L5_%=\n"
  "ldr r1, [r2, #4]\n"
  "movs r3, #8\n"
  "ldrsh r0, [r1, r3]\n"
  "adds r0, r2, r0\n"
  "ldr r2, [r1, #12]\n"
  "movs r1, #3\n"
  "bl Math_Sqrt\n"
  "L5_%=:\n"
  "ldr r0, .Lp5\n"
  "adds r1, r4, r0\n"
  "ldr r0, .Lp6\n"
  "str r0, [r1, #0]\n"
  "ldr r1, .Lp7\n"
  "adds r0, r4, r1\n"
  "movs r1, #2\n"
  "bl FreeIfFlagSet\n"
  "movs r3, #154\n"
  "lsls r3, r3, #4\n"
  "adds r0, r4, r3\n"
  "movs r1, #2\n"
  "bl Object_FreeIfFlag\n"
  "ldr r0, .Lp8\n"
  "str r0, [r4, #24]\n"
  "movs r0, #1\n"
  "ands r0, r5\n"
  "cmp r0, #0\n"
  "beq Lepi_%=\n"
  "adds r0, r4, #0\n"
  "bl Mem_FreeAndChildren\n"
  "Lepi_%=:\n"
  "pop {r4, r5}\n"
  "pop {r0}\n"
  "bx r0\n"
  ".Lp0: .word 0x02000AA0\n"
  ".Lp1: .word 0x00000984\n"
  ".Lp2: .word 0x00000988\n"
  ".Lp3: .word 0x0000098C\n"
  ".Lp4: .word 0x00000994\n"
  ".Lp5: .word 0x0000141C\n"
  ".Lp6: .word 0x02000B10\n"
  ".Lp7: .word 0x00000A34\n"
  ".Lp8: .word 0x02000AD8\n"
  ::: "r0","r1","r2","r3","memory");
}
