{"type": "func", "start": 4298447412, "end": 4298447792, "name": "InfoLayer::confirmReport", "pseudocode": "// \n// InfoLayer::confirmReport from 0x100351a34 to 0x100351bb0 (380 bytes)\n// \n// 1 xrefs:\n// > InfoLayer::init @ 0x1003506e0\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::confirmReport(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // x0\n  GJUserScore *m_score; // x8\n  int m_userID; // w1\n  GJLevelList *m_levelList; // x8\n  GJGameLevel *m_level; // x8\n  const std::string::value_type *v8; // x1\n  int v9; // w21\n  std::string::size_type v10; // x20\n  std::string *v11; // x1\n  std::string *v12; // x1\n  FLAlertLayer *v13; // x19\n  void *__p[2]; // [xsp+8h] [xbp-68h] BYREF\n  char v15; // [xsp+1Fh] [xbp-51h]\n  std::string v16; // [xsp+20h] [xbp-50h] BYREF\n  std::string v17; // [xsp+38h] [xbp-38h] BYREF\n\n  v3 = 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  if ( !GameLevelManager::hasReportedLevel(v3, m_userID) )\n  {\n    memset(&v17, 0, sizeof(v17));\n    memset(&v16, 0, sizeof(v16));\n    if ( a1->m_mode == User )\n    {\n      std::string::assign(&v17, \"Report List\");\n      v8 = \"Do you want to <cr>report</c> this list for breaking the <cg>upload guidelines</c> found in the editor? Valid\"\n           \" reasons include hateful, abusive, or otherwise inappropriate content, as well as hacks, cheats, or exploits.\";\n    }\n    else\n    {\n      std::string::assign(&v17, \"Report Level\");\n      v8 = \"Do you want to <cr>report</c> this level for breaking the <cg>upload guidelines</c> found in the editor? Vali\"\n           \"d reasons include hateful, abusive, or otherwise inappropriate content, as well as hacks, cheats, or exploits.\";\n    }\n    std::string::assign(&v16, v8);\n    v9 = SHIBYTE(v17.__r_.__value_.__r.__words[2]);\n    v10 = v17.__r_.__value_.__r.__words[0];\n    if ( (v16.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )\n      v11 = &v16;\n    else\n      v11 = (std::string *)v16.__r_.__value_.__r.__words[0];\n    sub_100009900(__p, (char *)v11);\n    if ( v9 >= 0 )\n      v12 = &v17;\n    else\n      v12 = (std::string *)v10;\n    v13 = FLAlertLayer::create_1(\n            (__int64)&a1->FLAlertLayerProtocol,\n            (__int64)v12,\n            (__int64)__p,\n            (__int64)\"NO\",\n            (__int64)\"YES\",\n            380.0);\n    if ( v15 < 0 )\n      operator delete(__p[0]);\n    ((void (__fastcall *)(FLAlertLayer *, __int64))v13->setTag)(v13, 2);\n    ((void (__fastcall *)(FLAlertLayer *))v13->show)(v13);\n    if ( SHIBYTE(v16.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(v16.__r_.__value_.__l.__data_);\n    if ( SHIBYTE(v17.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(v17.__r_.__value_.__l.__data_);\n  }\n}", "assembly": "; \n; InfoLayer::confirmReport from 0x100351a34 to 0x100351bb0 (380 bytes)\n; \n; 1 xrefs:\n; > InfoLayer::init @ 0x1003506e0\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, #0x80                                          ; +0x0, 0x100351a34\nSTP             X22, X21, [SP,#0x70+var_20]                            ; +0x4, 0x100351a38\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x8, 0x100351a3c\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0xc, 0x100351a40\nADD             X29, SP, #0x70                                         ; +0x10, 0x100351a44\nMOV             X19, X0                                                ; +0x14, 0x100351a48\nBL              GameLevelManager__sharedState                          ; +0x18, 0x100351a4c\nLDR             X8, [X19,#0x298]                                       ; +0x1c, 0x100351a50\nCBZ             X8, loc_100351A60                                      ; +0x20, 0x100351a54\nLDR             W1, [X8,#0x174]                                        ; +0x24, 0x100351a58\nB               loc_100351A90                                          ; +0x28, 0x100351a5c\nLDR             X8, [X19,#0x2A0]                                       ; +0x2c, 0x100351a60\nCBZ             X8, loc_100351A74                                      ; +0x30, 0x100351a64\nLDR             W8, [X8,#0x158]                                        ; +0x34, 0x100351a68\nNEG             W1, W8                                                 ; +0x38, 0x100351a6c\nB               loc_100351A90                                          ; +0x3c, 0x100351a70\nLDR             X8, [X19,#0x290]                                       ; +0x40, 0x100351a74\nCBZ             X8, loc_100351A8C                                      ; +0x44, 0x100351a78\nLDR             W9, [X8,#0x148]                                        ; +0x48, 0x100351a7c\nLDR             W8, [X8,#0x14C]                                        ; +0x4c, 0x100351a80\nSUB             W1, W9, W8                                             ; +0x50, 0x100351a84\nB               loc_100351A90                                          ; +0x54, 0x100351a88\nMOV             W1, #0                                                 ; +0x58, 0x100351a8c\nBL              GameLevelManager__hasReportedLevel                     ; +0x5c, 0x100351a90\nTBNZ            W0, #0, loc_100351B9C                                  ; +0x60, 0x100351a94\nSTP             XZR, XZR, [SP,#0x70+var_38]                            ; +0x64, 0x100351a98\nSTR             XZR, [SP,#0x70+var_38.__r_.__value_+0x10]              ; +0x68, 0x100351a9c\nSTP             XZR, XZR, [SP,#0x70+var_50]                            ; +0x6c, 0x100351aa0\nSTR             XZR, [SP,#0x70+var_50.__r_.__value_+0x10]              ; +0x70, 0x100351aa4\nLDR             W8, [X19,#0x32C]                                       ; +0x74, 0x100351aa8\nCMP             W8, #2                                                 ; +0x78, 0x100351aac\nB.NE            loc_100351AD0                                          ; +0x7c, 0x100351ab0\nADRL            X1, aReportList; \"Report List\"                         ; +0x80, 0x100351ab4\nADD             X0, SP, #0x70+var_38; this                             ; +0x88, 0x100351abc\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x8c, 0x100351ac0\nADRL            X1, aDoYouWantToCrR_0; \"Do you want to <cr>report</c> this list\"... ; +0x90, 0x100351ac4\nB               loc_100351AE8                                          ; +0x98, 0x100351acc\nADRL            X1, aReportLevel; \"Report Level\"                       ; +0x9c, 0x100351ad0\nADD             X0, SP, #0x70+var_38; this                             ; +0xa4, 0x100351ad8\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xa8, 0x100351adc\nADRL            X1, aDoYouWantToCrR_1; \"Do you want to <cr>report</c> this leve\"... ; +0xac, 0x100351ae0\nADD             X22, SP, #0x70+var_50                                  ; +0xb4, 0x100351ae8\nADD             X0, SP, #0x70+var_50; this                             ; +0xb8, 0x100351aec\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xbc, 0x100351af0\nLDRSB           W21, [SP,#0x70+var_38.__r_.__value_+0x17]              ; +0xc0, 0x100351af4\nLDR             X20, [SP,#0x70+var_38]                                 ; +0xc4, 0x100351af8\nLDRSB           W8, [SP,#0x70+var_50.__r_.__value_+0x17]               ; +0xc8, 0x100351afc\nLDR             X9, [SP,#0x70+var_50]                                  ; +0xcc, 0x100351b00\nCMP             W8, #0                                                 ; +0xd0, 0x100351b04\nCSEL            X1, X9, X22, LT; __s                                   ; +0xd4, 0x100351b08\nADD             X0, SP, #0x70+__p; int                                 ; +0xd8, 0x100351b0c\nBL              sub_100009900                                          ; +0xdc, 0x100351b10\nCMP             W21, #0                                                ; +0xe0, 0x100351b14\nADD             X8, SP, #0x70+var_38                                   ; +0xe4, 0x100351b18\nCSEL            X1, X20, X8, LT                                        ; +0xe8, 0x100351b1c\nADRL            X3, aNo; \"NO\"                                          ; +0xec, 0x100351b20\nADRL            X4, aYes; \"YES\"                                        ; +0xf4, 0x100351b28\nMOV             W8, #0x43BE0000                                        ; +0xfc, 0x100351b30\nFMOV            S0, W8                                                 ; +0x100, 0x100351b34\nADD             X0, X19, #0x288                                        ; +0x104, 0x100351b38\nADD             X2, SP, #0x70+__p                                      ; +0x108, 0x100351b3c\nBL              FLAlertLayer__create_1                                 ; +0x10c, 0x100351b40\nMOV             X19, X0                                                ; +0x110, 0x100351b44\nLDRSB           W8, [SP,#0x70+var_51]                                  ; +0x114, 0x100351b48\nTBZ             W8, #0x1F, loc_100351B58                               ; +0x118, 0x100351b4c\nLDR             X0, [SP,#0x70+__p]; __p                                ; +0x11c, 0x100351b50\nBL              __ZdlPv; operator delete(void *)                       ; +0x120, 0x100351b54\nLDR             X8, [X19]                                              ; +0x124, 0x100351b58\nLDR             X8, [X8,#0x48]                                         ; +0x128, 0x100351b5c\nMOV             X0, X19                                                ; +0x12c, 0x100351b60\nMOV             W1, #2                                                 ; +0x130, 0x100351b64\nBLR             X8                                                     ; +0x134, 0x100351b68\nLDR             X8, [X19]                                              ; +0x138, 0x100351b6c\nLDR             X8, [X8,#0x508]                                        ; +0x13c, 0x100351b70\nMOV             X0, X19                                                ; +0x140, 0x100351b74\nBLR             X8                                                     ; +0x144, 0x100351b78\nLDRSB           W8, [SP,#0x70+var_50.__r_.__value_+0x17]               ; +0x148, 0x100351b7c\nTBZ             W8, #0x1F, loc_100351B8C                               ; +0x14c, 0x100351b80\nLDR             X0, [SP,#0x70+var_50]; __p                             ; +0x150, 0x100351b84\nBL              __ZdlPv; operator delete(void *)                       ; +0x154, 0x100351b88\nLDRSB           W8, [SP,#0x70+var_38.__r_.__value_+0x17]               ; +0x158, 0x100351b8c\nTBZ             W8, #0x1F, loc_100351B9C                               ; +0x15c, 0x100351b90\nLDR             X0, [SP,#0x70+var_38]; __p                             ; +0x160, 0x100351b94\nBL              __ZdlPv; operator delete(void *)                       ; +0x164, 0x100351b98\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0x168, 0x100351b9c\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0x16c, 0x100351ba0\nLDP             X22, X21, [SP,#0x70+var_20]                            ; +0x170, 0x100351ba4\nADD             SP, SP, #0x80                                          ; +0x174, 0x100351ba8\nRET                                                                    ; +0x178, 0x100351bac", "xrefs": ["InfoLayer::init @ 0x1003506e0"], "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"}