{"type": "func", "start": 4303036528, "end": 4303036745, "name": "InfoLayer::FLAlert_Clicked", "pseudocode": "// \n// InfoLayer::FLAlert_Clicked from 0x1007b2070 to 0x1007b2149 (217 bytes)\n// \n// 2 xrefs:\n// > sub_1007B2150 @ 0x1007b215c\n// > <???> @ 0x100992a18\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 InfoLayer::FLAlert_Clicked(InfoLayer *a1, FLAlertLayer *a2, bool a3)\n{\n  int v4; // eax\n  GameLevelManager *v5; // rax\n  GJUserScore *m_score; // rcx\n  int m_userID; // esi\n  GJLevelList *m_levelList; // rcx\n  GJGameLevel *m_level; // rcx\n  __int64 v10; // rax\n  _WORD v11[10]; // [rsp+Ch] [rbp-14h] BYREF\n\n  v4 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2);\n  if ( v4 == 3 )\n  {\n    InfoLayer::onComment(a1, a2);\n  }\n  else if ( v4 == 2 && a3 )\n  {\n    v5 = GameLevelManager::sharedState();\n    m_score = a1->m_score;\n    if ( m_score )\n    {\n      m_userID = m_score->m_userID;\n    }\n    else\n    {\n      m_levelList = a1->m_levelList;\n      if ( m_levelList )\n      {\n        m_userID = -m_levelList->m_listID;\n      }\n      else\n      {\n        m_level = a1->m_level;\n        if ( m_level )\n          m_userID = m_level->m_levelID.random - m_level->m_levelID.seed;\n        else\n          m_userID = 0;\n      }\n    }\n    GameLevelManager::reportLevel(v5, m_userID);\n    v10 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_reportBtn->getNormalImage)(a1->m_reportBtn);\n    memset(v11, 75, 3);\n    (*(void (__fastcall **)(__int64, _WORD *))(*(_QWORD *)v10 + 944LL))(v10, v11);\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_reportBtn->setEnabled)(a1->m_reportBtn, 0);\n  }\n}", "assembly": "; \n; InfoLayer::FLAlert_Clicked from 0x1007b2070 to 0x1007b2149 (217 bytes)\n; \n; 2 xrefs:\n; > sub_1007B2150 @ 0x1007b215c\n; > <???> @ 0x100992a18\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, 0x1007b2070\nmov     rbp, rsp                                                       ; +0x1, 0x1007b2071\npush    r14                                                            ; +0x4, 0x1007b2074\npush    rbx                                                            ; +0x6, 0x1007b2076\nsub     rsp, 10h                                                       ; +0x7, 0x1007b2077\nmov     r14d, edx                                                      ; +0xb, 0x1007b207b\nmov     rbx, rdi                                                       ; +0xe, 0x1007b207e\nmov     rax, [rsi]                                                     ; +0x11, 0x1007b2081\nmov     rdi, rsi                                                       ; +0x14, 0x1007b2084\ncall    qword ptr [rax+40h]                                            ; +0x17, 0x1007b2087\ncmp     eax, 3                                                         ; +0x1a, 0x1007b208a\njz      short loc_1007B20BA                                            ; +0x1d, 0x1007b208d\ncmp     eax, 2                                                         ; +0x1f, 0x1007b208f\njnz     loc_1007B2140                                                  ; +0x22, 0x1007b2092\ntest    r14b, r14b                                                     ; +0x28, 0x1007b2098\njz      loc_1007B2140                                                  ; +0x2b, 0x1007b209b\ncall    GameLevelManager__sharedState                                  ; +0x31, 0x1007b20a1\nmov     rcx, [rbx+298h]                                                ; +0x36, 0x1007b20a6\ntest    rcx, rcx                                                       ; +0x3d, 0x1007b20ad\njz      short loc_1007B20CA                                            ; +0x40, 0x1007b20b0\nmov     esi, [rcx+174h]                                                ; +0x42, 0x1007b20b2\njmp     short loc_1007B20FC                                            ; +0x48, 0x1007b20b8\nmov     rdi, rbx                                                       ; +0x4a, 0x1007b20ba\nadd     rsp, 10h                                                       ; +0x4d, 0x1007b20bd\npop     rbx                                                            ; +0x51, 0x1007b20c1\npop     r14                                                            ; +0x52, 0x1007b20c2\npop     rbp                                                            ; +0x54, 0x1007b20c4\njmp     InfoLayer__onComment                                           ; +0x55, 0x1007b20c5\nmov     rcx, [rbx+2A0h]                                                ; +0x5a, 0x1007b20ca\ntest    rcx, rcx                                                       ; +0x61, 0x1007b20d1\njz      short loc_1007B20E0                                            ; +0x64, 0x1007b20d4\nxor     esi, esi                                                       ; +0x66, 0x1007b20d6\nsub     esi, [rcx+158h]                                                ; +0x68, 0x1007b20d8\njmp     short loc_1007B20FC                                            ; +0x6e, 0x1007b20de\nmov     rcx, [rbx+290h]                                                ; +0x70, 0x1007b20e0\ntest    rcx, rcx                                                       ; +0x77, 0x1007b20e7\njz      short loc_1007B20FA                                            ; +0x7a, 0x1007b20ea\nmov     esi, [rcx+148h]                                                ; +0x7c, 0x1007b20ec\nsub     esi, [rcx+14Ch]                                                ; +0x82, 0x1007b20f2\njmp     short loc_1007B20FC                                            ; +0x88, 0x1007b20f8\nxor     esi, esi                                                       ; +0x8a, 0x1007b20fa\nmov     rdi, rax                                                       ; +0x8c, 0x1007b20fc\ncall    GameLevelManager__reportLevel                                  ; +0x8f, 0x1007b20ff\nmov     rdi, [rbx+300h]                                                ; +0x94, 0x1007b2104\nmov     rax, [rdi]                                                     ; +0x9b, 0x1007b210b\ncall    qword ptr [rax+420h]                                           ; +0x9e, 0x1007b210e\nmov     [rbp+var_12], 4Bh ; 'K'                                        ; +0xa4, 0x1007b2114\nmov     [rbp+var_14], 4B4Bh                                            ; +0xa8, 0x1007b2118\nmov     rcx, [rax]                                                     ; +0xae, 0x1007b211e\nlea     rsi, [rbp+var_14]                                              ; +0xb1, 0x1007b2121\nmov     rdi, rax                                                       ; +0xb5, 0x1007b2125\ncall    qword ptr [rcx+3B0h]                                           ; +0xb8, 0x1007b2128\nmov     rdi, [rbx+300h]                                                ; +0xbe, 0x1007b212e\nmov     rax, [rdi]                                                     ; +0xc5, 0x1007b2135\nxor     esi, esi                                                       ; +0xc8, 0x1007b2138\ncall    qword ptr [rax+410h]                                           ; +0xca, 0x1007b213a\nadd     rsp, 10h                                                       ; +0xd0, 0x1007b2140\npop     rbx                                                            ; +0xd4, 0x1007b2144\npop     r14                                                            ; +0xd5, 0x1007b2145\npop     rbp                                                            ; +0xd7, 0x1007b2147\nretn                                                                   ; +0xd8, 0x1007b2148", "xrefs": ["sub_1007B2150 @ 0x1007b215c", "<???> @ 0x100992a18"], "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"}