{"type": "func", "start": 4300797584, "end": 4300797636, "name": "GJLevelList::orderForLevel", "pseudocode": "// \n// GJLevelList::orderForLevel from 0x10058f690 to 0x10058f6c4 (52 bytes)\n// \n// 1 xrefs:\n// > LevelListLayer::cellPerformedAction @ 0x10034accc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:32:26 +0000\n// \n\n__int64 __fastcall GJLevelList::orderForLevel(__int64 a1, int a2)\n{\n  _DWORD *v2; // rcx\n  _DWORD *v3; // rdx\n  __int64 result; // rax\n\n  v2 = *(_DWORD **)(a1 + 320);\n  v3 = *(_DWORD **)(a1 + 328);\n  if ( v2 == v3 )\n    return 0;\n  result = 0;\n  do\n  {\n    if ( *v2 == a2 )\n      break;\n    result = (unsigned int)(result + 1);\n    ++v2;\n  }\n  while ( v2 != v3 );\n  return result;\n}", "assembly": "; \n; GJLevelList::orderForLevel from 0x10058f690 to 0x10058f6c4 (52 bytes)\n; \n; 1 xrefs:\n; > LevelListLayer::cellPerformedAction @ 0x10034accc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:32:26 +0000\n; \nmov     rcx, [rdi+140h]                                                ; +0x0, 0x10058f690\nmov     rdx, [rdi+148h]                                                ; +0x7, 0x10058f697\ncmp     rcx, rdx                                                       ; +0xe, 0x10058f69e\njz      short loc_10058F6C1                                            ; +0x11, 0x10058f6a1\npush    rbp                                                            ; +0x13, 0x10058f6a3\nmov     rbp, rsp                                                       ; +0x14, 0x10058f6a4\nxor     eax, eax                                                       ; +0x17, 0x10058f6a7\nnop     dword ptr [rax+00000000h]                                      ; +0x19, 0x10058f6a9\ncmp     [rcx], esi                                                     ; +0x20, 0x10058f6b0\njz      short loc_10058F6BF                                            ; +0x22, 0x10058f6b2\ninc     eax                                                            ; +0x24, 0x10058f6b4\nadd     rcx, 4                                                         ; +0x26, 0x10058f6b6\ncmp     rcx, rdx                                                       ; +0x2a, 0x10058f6ba\njnz     short loc_10058F6B0                                            ; +0x2d, 0x10058f6bd\npop     rbp                                                            ; +0x2f, 0x10058f6bf\nretn                                                                   ; +0x30, 0x10058f6c0\nxor     eax, eax                                                       ; +0x31, 0x10058f6c1\nretn                                                                   ; +0x33, 0x10058f6c3", "xrefs": ["LevelListLayer::cellPerformedAction @ 0x10034accc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}