{"type": "func", "start": 4295694900, "end": 4295694968, "name": "GJLevelList::reorderLevelStep", "pseudocode": "// \n// GJLevelList::reorderLevelStep from 0x1000b1a34 to 0x1000b1a78 (68 bytes)\n// \n// 1 xrefs:\n// > LevelListLayer::cellPerformedAction @ 0x1002465bc\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\nvoid __fastcall GJLevelList::reorderLevelStep(GJLevelList *a1, int a2, bool a3)\n{\n  std::__vector_base<int>::pointer begin; // x9\n  std::__vector_base<int>::pointer end; // x10\n  int v5; // w8\n  int v6; // w2\n\n  begin = a1->m_levels.__begin_;\n  end = a1->m_levels.__end_;\n  if ( begin == end )\n  {\n    v5 = 0;\n  }\n  else\n  {\n    v5 = 0;\n    do\n    {\n      if ( *begin == a2 )\n        break;\n      ++v5;\n      ++begin;\n    }\n    while ( begin != end );\n  }\n  if ( a3 )\n    v6 = v5 - 1;\n  else\n    v6 = v5 + 1;\n  GJLevelList::reorderLevel(a1, a2, v6);\n}", "assembly": "; \n; GJLevelList::reorderLevelStep from 0x1000b1a34 to 0x1000b1a78 (68 bytes)\n; \n; 1 xrefs:\n; > LevelListLayer::cellPerformedAction @ 0x1002465bc\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             X9, X10, [X0,#0x140]                                   ; +0x0, 0x1000b1a34\nCMP             X9, X10                                                ; +0x4, 0x1000b1a38\nB.EQ            loc_1000B1A64                                          ; +0x8, 0x1000b1a3c\nMOV             W8, #0                                                 ; +0xc, 0x1000b1a40\nLDR             W11, [X9]                                              ; +0x10, 0x1000b1a44\nCMP             W11, W1                                                ; +0x14, 0x1000b1a48\nB.EQ            loc_1000B1A68                                          ; +0x18, 0x1000b1a4c\nADD             W8, W8, #1                                             ; +0x1c, 0x1000b1a50\nADD             X9, X9, #4                                             ; +0x20, 0x1000b1a54\nCMP             X9, X10                                                ; +0x24, 0x1000b1a58\nB.NE            loc_1000B1A44                                          ; +0x28, 0x1000b1a5c\nB               loc_1000B1A68                                          ; +0x2c, 0x1000b1a60\nMOV             W8, #0                                                 ; +0x30, 0x1000b1a64\nSUB             W9, W8, #1                                             ; +0x34, 0x1000b1a68\nCMP             W2, #0                                                 ; +0x38, 0x1000b1a6c\nCSINC           W2, W9, W8, NE                                         ; +0x3c, 0x1000b1a70\nB               GJLevelList__reorderLevel                              ; +0x40, 0x1000b1a74", "xrefs": ["LevelListLayer::cellPerformedAction @ 0x1002465bc"], "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"}