{"type": "func", "start": 6327608, "end": 6327842, "name": "DailyLevelNode::onSkipLevel", "pseudocode": "// \n// DailyLevelNode::onSkipLevel from 0x608d38 to 0x608e22 (234 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:54:46 +0000\n// \n\nint __fastcall DailyLevelNode::onSkipLevel(int this, cocos2d::CCObject *a2)\n{\n  char *v2; // r5\n  int v3; // r7\n  int v4; // r3\n  int v5; // r3\n  int v6; // r7\n  cocos2d::CCString *v7; // r0\n  char *v8; // r1\n  const char *CString; // r8\n  size_t v10; // r0\n  int *v11; // r7\n  int v12[2]; // [sp+Ch] [bp-1Ch] BYREF\n  char *v13; // [sp+14h] [bp-14h]\n  int v14[3]; // [sp+18h] [bp-10h] BYREF\n\n  v2 = (char *)*(unsigned __int8 *)(this + 292);\n  v3 = this;\n  if ( !*(_BYTE *)(this + 292) )\n  {\n    v4 = *(_DWORD *)(this + 272);\n    v12[0] = *(unsigned __int8 *)(this + 292);\n    v12[1] = (int)v2;\n    v5 = *(_DWORD *)(v4 + 556);\n    v13 = v2;\n    if ( v5 == 1 )\n    {\n      v8 = \"weekly demon\";\n    }\n    else if ( v5 )\n    {\n      if ( v5 == 2 )\n        v8 = \"event level\";\n      else\n        v8 = \"NA\";\n    }\n    else\n    {\n      v8 = \"daily level\";\n    }\n    std::string::assign(v12, v8);\n    v6 = v3 + 264;\n    if ( (v12[0] & 1) != 0 )\n      v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                  (cocos2d::CCString *)\"There is a <cy>new</c> %s available.\\n\"\n                                                       \"Skip the current level and load the next?\",\n                                  v13);\n    else\n      v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                  (cocos2d::CCString *)\"There is a <cy>new</c> %s available.\\n\"\n                                                       \"Skip the current level and load the next?\",\n                                  (const char *)v12 + 1);\n    CString = (const char *)cocos2d::CCString::getCString(v7);\n    memset(v14, 0, sizeof(v14));\n    v10 = strlen(CString);\n    std::string::__init(v14, CString, v10);\n    v11 = FLAlertLayer::create(\n            v6,\n            (cocos2d::CCLabelBMFont *)\"Skip level\",\n            (int)v14,\n            (ButtonSprite *)\"Cancel\",\n            (ButtonSprite *)\"Skip\",\n            330.0);\n    std::string::~string((int)v14);\n    (*(void (__fastcall **)(int *))(*v11 + 656))(v11);\n    return std::string::~string((int)v12);\n  }\n  return this;\n}", "assembly": "; \n; DailyLevelNode::onSkipLevel from 0x608d38 to 0x608e22 (234 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:54:46 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x608D42)                ; +0x0, 0x608d38\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x608d3a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x608d3e\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x608d40\nLDRB.W          R5, [R0,#0x124]                                        ; +0xa, 0x608d42\nSUB             SP, SP, #0x28                                          ; +0xe, 0x608d46\nLDR             R2, [R3]                                               ; +0x10, 0x608d48\nMOV             R7, R0                                                 ; +0x12, 0x608d4a\nMOV             R6, R3                                                 ; +0x14, 0x608d4c\nSTR             R2, [SP,#0x28+var_4]                                   ; +0x16, 0x608d4e\nCMP             R5, #0                                                 ; +0x18, 0x608d50\nBNE             loc_608E10                                             ; +0x1a, 0x608d52\nLDR.W           R3, [R0,#0x110]                                        ; +0x1c, 0x608d54\nADD             R4, SP, #0x28+var_1C                                   ; +0x20, 0x608d58\nSTR             R5, [SP,#0x28+var_1C]                                  ; +0x22, 0x608d5a\nSTR             R5, [SP,#0x28+var_18]                                  ; +0x24, 0x608d5c\nLDR.W           R3, [R3,#0x22C]                                        ; +0x26, 0x608d5e\nSTR             R5, [SP,#0x28+var_14]                                  ; +0x2a, 0x608d62\nCMP             R3, #1                                                 ; +0x2c, 0x608d64\nBEQ             loc_608D76                                             ; +0x2e, 0x608d66\nBCC             loc_608D92                                             ; +0x30, 0x608d68\nCMP             R3, #2                                                 ; +0x32, 0x608d6a\nBNE             loc_608D9A                                             ; +0x34, 0x608d6c\nLDR             R1, =(aEventLevel_0 - 0x608D76); \"event level\"         ; +0x36, 0x608d6e\nMOV             R0, R4                                                 ; +0x38, 0x608d70\nADD             R1, PC; \"event level\"                                  ; +0x3a, 0x608d72\nB               loc_608D7C                                             ; +0x3c, 0x608d74\nLDR             R1, =(aWeeklyDemon_0 - 0x608D7E); \"weekly demon\"       ; +0x3e, 0x608d76\nMOV             R0, R4; int                                            ; +0x40, 0x608d78\nADD             R1, PC; \"weekly demon\"                                 ; +0x42, 0x608d7a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x44, 0x608d7c\nLDRB.W          R3, [SP,#0x28+var_1C]                                  ; +0x48, 0x608d80\nADD.W           R7, R7, #0x108                                         ; +0x4c, 0x608d84\nLSLS            R3, R3, #0x1F                                          ; +0x50, 0x608d88\nBMI             loc_608DA2                                             ; +0x52, 0x608d8a\nADD.W           R1, SP, #0x28+var_1C+1                                 ; +0x54, 0x608d8c\nB               loc_608DA4                                             ; +0x58, 0x608d90\nLDR             R1, =(aDailyLevel_0 - 0x608D9A); \"daily level\"         ; +0x5a, 0x608d92\nMOV             R0, R4                                                 ; +0x5c, 0x608d94\nADD             R1, PC; \"daily level\"                                  ; +0x5e, 0x608d96\nB               loc_608D7C                                             ; +0x60, 0x608d98\nLDR             R1, =(aNa - 0x608DA2); \"NA\"                            ; +0x62, 0x608d9a\nMOV             R0, R4                                                 ; +0x64, 0x608d9c\nADD             R1, PC; \"NA\"                                           ; +0x66, 0x608d9e\nB               loc_608D7C                                             ; +0x68, 0x608da0\nLDR             R1, [SP,#0x28+var_14]; char *                          ; +0x6a, 0x608da2\nLDR             R0, =(aThereIsACyNewC - 0x608DAA); \"There is a <cy>new</c> %s available.\\nS\"... ; +0x6c, 0x608da4\nADD             R0, PC; \"There is a <cy>new</c> %s available.\\nS\"...   ; +0x6e, 0x608da6\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x70, 0x608da8\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x74, 0x608dac\nMOVS            R3, #0                                                 ; +0x78, 0x608db0\nMOV             R8, R0                                                 ; +0x7a, 0x608db2\nSTR             R3, [SP,#0x28+var_10]                                  ; +0x7c, 0x608db4\nADD             R5, SP, #0x28+var_10                                   ; +0x7e, 0x608db6\nSTR             R3, [SP,#0x28+var_C]                                   ; +0x80, 0x608db8\nSTR             R3, [SP,#0x28+var_8]                                   ; +0x82, 0x608dba\nBLX             strlen                                                 ; +0x84, 0x608dbc\nMOV             R1, R8                                                 ; +0x88, 0x608dc0\nMOV             R2, R0                                                 ; +0x8a, 0x608dc2\nMOV             R0, R5                                                 ; +0x8c, 0x608dc4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x8e, 0x608dc6\nLDR             R3, =(aSkip - 0x608DD6); \"Skip\"                        ; +0x92, 0x608dca\nMOV             R0, R7; int                                            ; +0x94, 0x608dcc\nLDR             R1, =(aSkipLevel - 0x608DDC); \"Skip level\"             ; +0x96, 0x608dce\nMOV             R2, R5; int                                            ; +0x98, 0x608dd0\nADD             R3, PC; \"Skip\"                                         ; +0x9a, 0x608dd2\nSTR             R3, [SP,#0x28+var_28]; int                             ; +0x9c, 0x608dd4\nLDR             R3, flt_608E24                                         ; +0x9e, 0x608dd6\nADD             R1, PC; \"Skip level\"                                   ; +0xa0, 0x608dd8\nSTR             R3, [SP,#0x28+var_24]; float                           ; +0xa2, 0x608dda\nLDR             R3, =(aCancel - 0x608DE2); \"Cancel\"                    ; +0xa4, 0x608ddc\nADD             R3, PC; \"Cancel\"                                       ; +0xa6, 0x608dde\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xa8, 0x608de0\nMOV             R7, R0                                                 ; +0xac, 0x608de4\nMOV             R0, R5                                                 ; +0xae, 0x608de6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb0, 0x608de8\nLDR             R3, [R7]                                               ; +0xb4, 0x608dec\nMOV             R0, R7                                                 ; +0xb6, 0x608dee\nLDR.W           R3, [R3,#0x290]                                        ; +0xb8, 0x608df0\nBLX             R3                                                     ; +0xbc, 0x608df4\nMOV             R0, R4                                                 ; +0xbe, 0x608df6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc0, 0x608df8\nB               loc_608E10                                             ; +0xc4, 0x608dfc\nMOV             R0, R5                                                 ; +0xc6, 0x608dfe\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc8, 0x608e00\nB               loc_608E06                                             ; +0xcc, 0x608e04\nMOV             R0, R4                                                 ; +0xce, 0x608e06\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd0, 0x608e08\nBL              __cxa_end_cleanup                                      ; +0xd4, 0x608e0c\nLDR             R2, [SP,#0x28+var_4]                                   ; +0xd8, 0x608e10\nLDR             R3, [R6]                                               ; +0xda, 0x608e12\nCMP             R2, R3                                                 ; +0xdc, 0x608e14\nBEQ             loc_608E1C                                             ; +0xde, 0x608e16\nBLX             __stack_chk_fail                                       ; +0xe0, 0x608e18\nADD             SP, SP, #0x28 ; '('                                    ; +0xe4, 0x608e1c\nPOP.W           {R4-R8,PC}                                             ; +0xe6, 0x608e1e", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}