{"type": "func", "start": 4298451512, "end": 4298451748, "name": "InfoLayer::FLAlert_Clicked", "pseudocode": "// \n// InfoLayer::FLAlert_Clicked from 0x100352a38 to 0x100352b24 (236 bytes)\n// \n// 2 xrefs:\n// > sub_100352B24 @ 0x100352b28\n// > <???> @ 0x1007f3480\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  _BOOL4 v3; // w20\n  int v5; // w0\n  cocos2d::CCObject *v6; // x1\n  GameLevelManager *v8; // x0\n  GJUserScore *m_score; // x8\n  int m_userID; // w1\n  GJLevelList *m_levelList; // x8\n  GJGameLevel *m_level; // x8\n  __int64 v13; // x0\n  _WORD v14[2]; // [xsp+Ch] [xbp-14h] BYREF\n\n  v3 = a3;\n  v5 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2);\n  if ( v5 == 3 )\n  {\n    InfoLayer::onComment(a1, v6);\n  }\n  else if ( v5 == 2 && v3 )\n  {\n    v8 = 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(v8, m_userID);\n    v13 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_reportBtn->getNormalImage)(a1->m_reportBtn);\n    memset(v14, 75, 3);\n    (*(void (__fastcall **)(__int64, _WORD *))(*(_QWORD *)v13 + 944LL))(v13, v14);\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_reportBtn->setEnabled)(a1->m_reportBtn, 0);\n  }\n}", "assembly": "; \n; InfoLayer::FLAlert_Clicked from 0x100352a38 to 0x100352b24 (236 bytes)\n; \n; 2 xrefs:\n; > sub_100352B24 @ 0x100352b28\n; > <???> @ 0x1007f3480\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x100352a38\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100352a3c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100352a40\nADD             X29, SP, #0x20                                         ; +0xc, 0x100352a44\nMOV             X20, X2                                                ; +0x10, 0x100352a48\nMOV             X19, X0                                                ; +0x14, 0x100352a4c\nLDR             X8, [X1]                                               ; +0x18, 0x100352a50\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x100352a54\nMOV             X0, X1                                                 ; +0x20, 0x100352a58\nBLR             X8                                                     ; +0x24, 0x100352a5c\nCMP             W0, #3                                                 ; +0x28, 0x100352a60\nB.EQ            loc_100352A88                                          ; +0x2c, 0x100352a64\nCMP             W0, #2                                                 ; +0x30, 0x100352a68\nCCMP            W20, #0, #4, EQ                                        ; +0x34, 0x100352a6c\nB.EQ            loc_100352B14                                          ; +0x38, 0x100352a70\nBL              GameLevelManager__sharedState                          ; +0x3c, 0x100352a74\nLDR             X8, [X19,#0x298]                                       ; +0x40, 0x100352a78\nCBZ             X8, loc_100352A9C                                      ; +0x44, 0x100352a7c\nLDR             W1, [X8,#0x174]                                        ; +0x48, 0x100352a80\nB               loc_100352ACC                                          ; +0x4c, 0x100352a84\nMOV             X0, X19                                                ; +0x50, 0x100352a88\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x100352a8c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x100352a90\nADD             SP, SP, #0x30 ; '0'                                    ; +0x5c, 0x100352a94\nB               InfoLayer__onComment                                   ; +0x60, 0x100352a98\nLDR             X8, [X19,#0x2A0]                                       ; +0x64, 0x100352a9c\nCBZ             X8, loc_100352AB0                                      ; +0x68, 0x100352aa0\nLDR             W8, [X8,#0x158]                                        ; +0x6c, 0x100352aa4\nNEG             W1, W8                                                 ; +0x70, 0x100352aa8\nB               loc_100352ACC                                          ; +0x74, 0x100352aac\nLDR             X8, [X19,#0x290]                                       ; +0x78, 0x100352ab0\nCBZ             X8, loc_100352AC8                                      ; +0x7c, 0x100352ab4\nLDR             W9, [X8,#0x148]                                        ; +0x80, 0x100352ab8\nLDR             W8, [X8,#0x14C]                                        ; +0x84, 0x100352abc\nSUB             W1, W9, W8                                             ; +0x88, 0x100352ac0\nB               loc_100352ACC                                          ; +0x8c, 0x100352ac4\nMOV             W1, #0                                                 ; +0x90, 0x100352ac8\nBL              GameLevelManager__reportLevel                          ; +0x94, 0x100352acc\nLDR             X0, [X19,#0x300]                                       ; +0x98, 0x100352ad0\nLDR             X8, [X0]                                               ; +0x9c, 0x100352ad4\nLDR             X8, [X8,#0x420]                                        ; +0xa0, 0x100352ad8\nBLR             X8                                                     ; +0xa4, 0x100352adc\nMOV             W8, #0x4B ; 'K'                                        ; +0xa8, 0x100352ae0\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0xac, 0x100352ae4\nMOV             W8, #0x4B4B                                            ; +0xb0, 0x100352ae8\nSTRH            W8, [SP,#0x20+var_14]                                  ; +0xb4, 0x100352aec\nLDR             X8, [X0]                                               ; +0xb8, 0x100352af0\nLDR             X8, [X8,#0x3B0]                                        ; +0xbc, 0x100352af4\nADD             X1, SP, #0x20+var_14                                   ; +0xc0, 0x100352af8\nBLR             X8                                                     ; +0xc4, 0x100352afc\nLDR             X0, [X19,#0x300]                                       ; +0xc8, 0x100352b00\nLDR             X8, [X0]                                               ; +0xcc, 0x100352b04\nLDR             X8, [X8,#0x410]                                        ; +0xd0, 0x100352b08\nMOV             W1, #0                                                 ; +0xd4, 0x100352b0c\nBLR             X8                                                     ; +0xd8, 0x100352b10\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xdc, 0x100352b14\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xe0, 0x100352b18\nADD             SP, SP, #0x30 ; '0'                                    ; +0xe4, 0x100352b1c\nRET                                                                    ; +0xe8, 0x100352b20", "xrefs": ["sub_100352B24 @ 0x100352b28", "<???> @ 0x1007f3480"], "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"}