{"type": "func", "start": 4303036048, "end": 4303036122, "name": "InfoLayer::getRealID", "pseudocode": "// \n// InfoLayer::getRealID from 0x1007b1e90 to 0x1007b1eda (74 bytes)\n// \n// 0 xrefs:\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 InfoLayer::getRealID(InfoLayer *a1)\n{\n  GJUserScore *m_score; // rax\n  GJLevelList *m_levelList; // rax\n  GJGameLevel *m_level; // rcx\n\n  m_score = a1->m_score;\n  if ( m_score )\n    return m_score->m_userID;\n  m_levelList = a1->m_levelList;\n  if ( m_levelList )\n    return m_levelList->m_listID;\n  m_level = a1->m_level;\n  if ( m_level )\n    return m_level->m_levelID.random - m_level->m_levelID.seed;\n  else\n    return 0;\n}", "assembly": "; \n; InfoLayer::getRealID from 0x1007b1e90 to 0x1007b1eda (74 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x1007b1e90\nmov     rbp, rsp                                                       ; +0x1, 0x1007b1e91\nmov     rax, [rdi+298h]                                                ; +0x4, 0x1007b1e94\ntest    rax, rax                                                       ; +0xb, 0x1007b1e9b\njz      short loc_1007B1EA8                                            ; +0xe, 0x1007b1e9e\nmov     eax, [rax+174h]                                                ; +0x10, 0x1007b1ea0\npop     rbp                                                            ; +0x16, 0x1007b1ea6\nretn                                                                   ; +0x17, 0x1007b1ea7\nmov     rax, [rdi+2A0h]                                                ; +0x18, 0x1007b1ea8\ntest    rax, rax                                                       ; +0x1f, 0x1007b1eaf\njz      short loc_1007B1EBC                                            ; +0x22, 0x1007b1eb2\nmov     eax, [rax+158h]                                                ; +0x24, 0x1007b1eb4\npop     rbp                                                            ; +0x2a, 0x1007b1eba\nretn                                                                   ; +0x2b, 0x1007b1ebb\nmov     rcx, [rdi+290h]                                                ; +0x2c, 0x1007b1ebc\ntest    rcx, rcx                                                       ; +0x33, 0x1007b1ec3\njz      short loc_1007B1ED6                                            ; +0x36, 0x1007b1ec6\nmov     eax, [rcx+148h]                                                ; +0x38, 0x1007b1ec8\nsub     eax, [rcx+14Ch]                                                ; +0x3e, 0x1007b1ece\npop     rbp                                                            ; +0x44, 0x1007b1ed4\nretn                                                                   ; +0x45, 0x1007b1ed5\nxor     eax, eax                                                       ; +0x46, 0x1007b1ed6\npop     rbp                                                            ; +0x48, 0x1007b1ed8\nretn                                                                   ; +0x49, 0x1007b1ed9", "xrefs": [], "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"}