{"type": "func", "start": 3988684, "end": 3988716, "name": "GJLevelList::orderForLevel", "pseudocode": "// \n// GJLevelList::orderForLevel from 0x3cdccc to 0x3cdcec (32 bytes)\n// \n// 2 xrefs:\n// > GJLevelList::reorderLevelStep @ 0x3d7ea0\n// > LevelListLayer::cellPerformedAction @ 0x592368\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint GJLevelList::orderForLevel(GJLevelList *a1, int a2)\n{\n  int *m_finish; // r2\n  int *m_start; // r3\n  int result; // r0\n  int v5; // r4\n\n  m_finish = a1->m_levels.m_finish;\n  m_start = a1->m_levels.m_start;\n  for ( result = 0; m_start != m_finish; ++result )\n  {\n    v5 = *m_start++;\n    if ( v5 == a2 )\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJLevelList::orderForLevel from 0x3cdccc to 0x3cdcec (32 bytes)\n; \n; 2 xrefs:\n; > GJLevelList::reorderLevelStep @ 0x3d7ea0\n; > LevelListLayer::cellPerformedAction @ 0x592368\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDR.W           R2, [R0,#0x10C]                                        ; +0x0, 0x3cdccc\nLDR.W           R3, [R0,#0x108]                                        ; +0x4, 0x3cdcd0\nMOVS            R0, #0                                                 ; +0x8, 0x3cdcd4\nPUSH            {R4,LR}                                                ; +0xa, 0x3cdcd6\nCMP             R3, R2                                                 ; +0xc, 0x3cdcd8\nMOV             R4, R3                                                 ; +0xe, 0x3cdcda\nBEQ             locret_3CDCEA                                          ; +0x10, 0x3cdcdc\nLDR             R4, [R4]                                               ; +0x12, 0x3cdcde\nADDS            R3, #4                                                 ; +0x14, 0x3cdce0\nCMP             R4, R1                                                 ; +0x16, 0x3cdce2\nBEQ             locret_3CDCEA                                          ; +0x18, 0x3cdce4\nADDS            R0, #1                                                 ; +0x1a, 0x3cdce6\nB               loc_3CDCD8                                             ; +0x1c, 0x3cdce8\nPOP             {R4,PC}                                                ; +0x1e, 0x3cdcea", "xrefs": ["GJLevelList::reorderLevelStep @ 0x3d7ea0", "LevelListLayer::cellPerformedAction @ 0x592368"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}