{"type": "func", "start": 4300614512, "end": 4300614564, "name": "GJLevelList::orderForLevel", "pseudocode": "// \n// GJLevelList::orderForLevel from 0x100562b70 to 0x100562ba4 (52 bytes)\n// \n// 1 xrefs:\n// > LevelListLayer::cellPerformedAction @ 0x10035f6ac\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; // rcx\n  std::__vector_base<int>::pointer end; // rdx\n  int result; // eax\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 0x100562b70 to 0x100562ba4 (52 bytes)\n; \n; 1 xrefs:\n; > LevelListLayer::cellPerformedAction @ 0x10035f6ac\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\nmov     rcx, [rdi+140h]                                                ; +0x0, 0x100562b70\nmov     rdx, [rdi+148h]                                                ; +0x7, 0x100562b77\ncmp     rcx, rdx                                                       ; +0xe, 0x100562b7e\njz      short loc_100562BA1                                            ; +0x11, 0x100562b81\npush    rbp                                                            ; +0x13, 0x100562b83\nmov     rbp, rsp                                                       ; +0x14, 0x100562b84\nxor     eax, eax                                                       ; +0x17, 0x100562b87\nnop     dword ptr [rax+00000000h]                                      ; +0x19, 0x100562b89\ncmp     [rcx], esi                                                     ; +0x20, 0x100562b90\njz      short loc_100562B9F                                            ; +0x22, 0x100562b92\ninc     eax                                                            ; +0x24, 0x100562b94\nadd     rcx, 4                                                         ; +0x26, 0x100562b96\ncmp     rcx, rdx                                                       ; +0x2a, 0x100562b9a\njnz     short loc_100562B90                                            ; +0x2d, 0x100562b9d\npop     rbp                                                            ; +0x2f, 0x100562b9f\nretn                                                                   ; +0x30, 0x100562ba0\nxor     eax, eax                                                       ; +0x31, 0x100562ba1\nretn                                                                   ; +0x33, 0x100562ba3", "xrefs": ["LevelListLayer::cellPerformedAction @ 0x10035f6ac"], "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"}