{"type": "func", "start": 4295694176, "end": 4295694232, "name": "GJLevelList::orderForLevel", "pseudocode": "// \n// GJLevelList::orderForLevel from 0x1000b1760 to 0x1000b1798 (56 bytes)\n// \n// 1 xrefs:\n// > LevelListLayer::cellPerformedAction @ 0x10024655c\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 __fastcall GJLevelList::orderForLevel(GJLevelList *a1, int a2)\n{\n  std::__vector_base<int>::pointer begin; // x8\n  std::__vector_base<int>::pointer end; // x9\n  int result; // w0\n\n  begin = a1->m_levels.__begin_;\n  end = a1->m_levels.__end_;\n  if ( begin == end )\n    return 0;\n  result = 0;\n  do\n  {\n    if ( *begin == a2 )\n      break;\n    ++result;\n    ++begin;\n  }\n  while ( begin != end );\n  return result;\n}", "assembly": "; \n; GJLevelList::orderForLevel from 0x1000b1760 to 0x1000b1798 (56 bytes)\n; \n; 1 xrefs:\n; > LevelListLayer::cellPerformedAction @ 0x10024655c\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\nLDP             X8, X9, [X0,#0x140]                                    ; +0x0, 0x1000b1760\nCMP             X8, X9                                                 ; +0x4, 0x1000b1764\nB.EQ            loc_1000B1790                                          ; +0x8, 0x1000b1768\nMOV             W0, #0                                                 ; +0xc, 0x1000b176c\nLDR             W10, [X8]                                              ; +0x10, 0x1000b1770\nCMP             W10, W1                                                ; +0x14, 0x1000b1774\nB.EQ            locret_1000B178C                                       ; +0x18, 0x1000b1778\nADD             W0, W0, #1                                             ; +0x1c, 0x1000b177c\nADD             X8, X8, #4                                             ; +0x20, 0x1000b1780\nCMP             X8, X9                                                 ; +0x24, 0x1000b1784\nB.NE            loc_1000B1770                                          ; +0x28, 0x1000b1788\nRET                                                                    ; +0x2c, 0x1000b178c\nMOV             W0, #0                                                 ; +0x30, 0x1000b1790\nRET                                                                    ; +0x34, 0x1000b1794", "xrefs": ["LevelListLayer::cellPerformedAction @ 0x10024655c"], "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"}