{"type": "func", "start": 4300750544, "end": 4300750597, "name": "GJGameLevel::getLengthKey", "pseudocode": "// \n// GJGameLevel::getLengthKey from 0x100583ed0 to 0x100583f05 (53 bytes)\n// \n// 2 xrefs:\n// > sub_1000C6520 @ 0x1000c6681\n// > EditorPauseLayer::init @ 0x10027cf78\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:21 +0000\n// \n\nunsigned __int64 __fastcall GJGameLevel::getLengthKey(unsigned int a1, int a2)\n{\n  unsigned __int64 result; // rax\n\n  result = 5;\n  if ( !a2 )\n  {\n    result = 0;\n    if ( (int)a1 >= 10 )\n    {\n      result = 1;\n      if ( a1 >= 0x1E )\n      {\n        result = 2;\n        if ( a1 >= 0x3C )\n          return ((a1 | 0x400000000uLL) - 120) >> 32;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJGameLevel::getLengthKey from 0x100583ed0 to 0x100583f05 (53 bytes)\n; \n; 2 xrefs:\n; > sub_1000C6520 @ 0x1000c6681\n; > EditorPauseLayer::init @ 0x10027cf78\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:21 +0000\n; \npush    rbp                                                            ; +0x0, 0x100583ed0\nmov     rbp, rsp                                                       ; +0x1, 0x100583ed1\nmov     eax, 5                                                         ; +0x4, 0x100583ed4\ntest    esi, esi                                                       ; +0x9, 0x100583ed9\njnz     short loc_100583F03                                            ; +0xb, 0x100583edb\nxor     eax, eax                                                       ; +0xd, 0x100583edd\ncmp     edi, 0Ah                                                       ; +0xf, 0x100583edf\njl      short loc_100583F03                                            ; +0x12, 0x100583ee2\nmov     eax, 1                                                         ; +0x14, 0x100583ee4\ncmp     edi, 1Eh                                                       ; +0x19, 0x100583ee9\njb      short loc_100583F03                                            ; +0x1c, 0x100583eec\nmov     eax, 2                                                         ; +0x1e, 0x100583eee\ncmp     edi, 3Ch ; '<'                                                 ; +0x23, 0x100583ef3\njb      short loc_100583F03                                            ; +0x26, 0x100583ef6\ncmp     edi, 78h ; 'x'                                                 ; +0x28, 0x100583ef8\nmov     eax, 4                                                         ; +0x2b, 0x100583efb\nsbb     eax, 0                                                         ; +0x30, 0x100583f00\npop     rbp                                                            ; +0x33, 0x100583f03\nretn                                                                   ; +0x34, 0x100583f04", "xrefs": ["sub_1000C6520 @ 0x1000c6681", "EditorPauseLayer::init @ 0x10027cf78"], "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"}