{"type": "func", "start": 7443412, "end": 7443488, "name": "GJLevelList::orderForLevel", "pseudocode": "// \n// GJLevelList::orderForLevel from 0x7193d4 to 0x719420 (76 bytes)\n// \n// 3 xrefs:\n// > GJLevelList::reorderLevelStep @ 0x736854\n// > LevelListLayer::cellPerformedAction @ 0xa78b78\n// > <???> @ 0x81eb8\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_start; // x2\n  int *m_finish; // x4\n  int *v4; // x2\n  int result; // w0\n  int v6; // t1\n\n  m_start = a1->m_levels.m_start;\n  m_finish = a1->m_levels.m_finish;\n  if ( m_start == m_finish || *m_start == a2 )\n    return 0;\n  v4 = m_start + 1;\n  result = 0;\n  do\n  {\n    ++result;\n    if ( m_finish == v4 )\n      break;\n    v6 = *v4++;\n  }\n  while ( v6 != a2 );\n  return result;\n}", "assembly": "; \n; GJLevelList::orderForLevel from 0x7193d4 to 0x719420 (76 bytes)\n; \n; 3 xrefs:\n; > GJLevelList::reorderLevelStep @ 0x736854\n; > LevelListLayer::cellPerformedAction @ 0xa78b78\n; > <???> @ 0x81eb8\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             X2, [X0,#0x140]                                        ; +0x0, 0x7193d4\nLDR             X4, [X0,#0x148]                                        ; +0x4, 0x7193d8\nCMP             X2, X4                                                 ; +0x8, 0x7193dc\nB.EQ            loc_719418                                             ; +0xc, 0x7193e0\nLDR             W0, [X2]                                               ; +0x10, 0x7193e4\nCMP             W0, W1                                                 ; +0x14, 0x7193e8\nB.EQ            loc_719418                                             ; +0x18, 0x7193ec\nADD             X2, X2, #4                                             ; +0x1c, 0x7193f0\nMOV             W0, #0                                                 ; +0x20, 0x7193f4\nB               loc_719408                                             ; +0x24, 0x7193f8\nLDR             W3, [X2],#4                                            ; +0x28, 0x7193fc\nCMP             W3, W1                                                 ; +0x2c, 0x719400\nB.EQ            locret_719414                                          ; +0x30, 0x719404\nCMP             X4, X2                                                 ; +0x34, 0x719408\nADD             W0, W0, #1                                             ; +0x38, 0x71940c\nB.NE            loc_7193FC                                             ; +0x3c, 0x719410\nRET                                                                    ; +0x40, 0x719414\nMOV             W0, #0                                                 ; +0x44, 0x719418\nRET                                                                    ; +0x48, 0x71941c", "xrefs": ["GJLevelList::reorderLevelStep @ 0x736854", "LevelListLayer::cellPerformedAction @ 0xa78b78", "<???> @ 0x81eb8"], "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"}