{"type": "func", "start": 3890004, "end": 3890244, "name": "EditLevelLayer::onLevelInfo", "pseudocode": "// \n// EditLevelLayer::onLevelInfo from 0x3b5b54 to 0x3b5c44 (240 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\nvoid EditLevelLayer::onLevelInfo(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  GJGameLevel *m_level; // r1\n  cocos2d::CCString *v4; // r0\n  char *CString; // r0\n  FLAlertLayer *v6; // r7\n  char *v7; // [sp+Ch] [bp-Ch] BYREF\n  char *v8; // [sp+10h] [bp-8h] BYREF\n\n  sub_775C20(&v8, &a1->m_level->m_levelName);\n  m_level = a1->m_level;\n  v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"<cy>%s</c>\\n\"\n                                                   \"<cg>Total Attempts</c>: %i\\n\"\n                                                   \"<cl>Total Jumps</c>: %i\\n\"\n                                                   \"<cp>Objects</c>: %i\",\n                              v8,\n                              m_level->m_attempts.random - m_level->m_attempts.seed,\n                              m_level->m_jumps.random - m_level->m_jumps.seed,\n                              m_level->m_objectCount.random - m_level->m_objectCount.seed);\n  CString = (char *)cocos2d::CCString::getCString(v4);\n  sub_776584((int)&v7, CString);\n  sub_774008(&v8);\n  if ( a1->m_level->m_objectCount.random - a1->m_level->m_objectCount.seed > 40000 )\n    sub_774544((int)&v7, \" <cr>(high)</c>\");\n  sub_776584((int)&v8, v7);\n  v6 = FLAlertLayer::create(0, (int)\"Level Stats\", (int)&v8, (int)\"OK\", 0, 300.0);\n  sub_774008(&v8);\n  v6->show(v6);\n  sub_774008(&v7);\n}", "assembly": "; \n; EditLevelLayer::onLevelInfo from 0x3b5b54 to 0x3b5c44 (240 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.W          {R4-R8,LR}                                             ; +0x0, 0x3b5b54\nSUB             SP, SP, #0x18                                          ; +0x4, 0x3b5b58\nLDR             R6, =(__stack_chk_guard_ptr - 0x3B5B68)                ; +0x6, 0x3b5b5a\nADD             R4, SP, #0x18+var_8                                    ; +0x8, 0x3b5b5c\nLDR.W           R1, [R0,#0x154]                                        ; +0xa, 0x3b5b5e\nMOV             R7, R0                                                 ; +0xe, 0x3b5b62\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3b5b64\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x3b5b66\nMOV             R0, R4                                                 ; +0x14, 0x3b5b68\nADD.W           R1, R1, #0x118                                         ; +0x16, 0x3b5b6a\nLDR             R3, [R6]                                               ; +0x1a, 0x3b5b6e\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1c, 0x3b5b70\nBL              sub_775C20                                             ; +0x1e, 0x3b5b72\nLDR.W           R1, [R7,#0x154]                                        ; +0x22, 0x3b5b76\nLDR.W           R0, [R1,#0x170]                                        ; +0x26, 0x3b5b7a\nLDR.W           LR, [R1,#0x1B4]                                        ; +0x2a, 0x3b5b7e\nLDR.W           R2, [R1,#0x1B8]                                        ; +0x2e, 0x3b5b82\nLDR.W           R5, [R1,#0x1C0]                                        ; +0x32, 0x3b5b86\nLDR.W           R3, [R1,#0x1C4]                                        ; +0x36, 0x3b5b8a\nRSB.W           R2, R2, LR                                             ; +0x3a, 0x3b5b8e\nLDR.W           R1, [R1,#0x174]                                        ; +0x3e, 0x3b5b92\nSUBS            R3, R5, R3                                             ; +0x42, 0x3b5b96\nSUBS            R1, R0, R1                                             ; +0x44, 0x3b5b98\nLDR             R0, =(aCySCCgTotalAtt_0 - 0x3B5BA2); \"<cy>%s</c>\\n<cg>Total Attempts</c>: %i\"... ; +0x46, 0x3b5b9a\nSTR             R1, [SP,#0x18+var_18]                                  ; +0x48, 0x3b5b9c\nADD             R0, PC; \"<cy>%s</c>\\n<cg>Total Attempts</c>: %i\"...    ; +0x4a, 0x3b5b9e\nLDR             R1, [SP,#0x18+var_8]; char *                           ; +0x4c, 0x3b5ba0\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x4e, 0x3b5ba2\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x52, 0x3b5ba6\nADD             R5, SP, #0x18+var_C                                    ; +0x56, 0x3b5baa\nADD.W           R8, SP, #0x18+var_10                                   ; +0x58, 0x3b5bac\nMOV             R1, R0; char *                                         ; +0x5c, 0x3b5bb0\nMOV             R2, R8                                                 ; +0x5e, 0x3b5bb2\nMOV             R0, R5; int                                            ; +0x60, 0x3b5bb4\nBL              sub_776584                                             ; +0x62, 0x3b5bb6\nMOV             R0, R4                                                 ; +0x66, 0x3b5bba\nBL              sub_774008                                             ; +0x68, 0x3b5bbc\nLDR.W           R2, [R7,#0x154]                                        ; +0x6c, 0x3b5bc0\nLDR.W           R3, [R2,#0x170]                                        ; +0x70, 0x3b5bc4\nLDR.W           R2, [R2,#0x174]                                        ; +0x74, 0x3b5bc8\nSUBS            R3, R3, R2                                             ; +0x78, 0x3b5bcc\nMOVW            R2, #0x9C40                                            ; +0x7a, 0x3b5bce\nCMP             R3, R2                                                 ; +0x7e, 0x3b5bd2\nBGT             loc_3B5BE2                                             ; +0x80, 0x3b5bd4\nMOV             R0, R4; int                                            ; +0x82, 0x3b5bd6\nLDR             R1, [SP,#0x18+var_C]; char *                           ; +0x84, 0x3b5bd8\nMOV             R2, R8                                                 ; +0x86, 0x3b5bda\nBL              sub_776584                                             ; +0x88, 0x3b5bdc\nB               loc_3B5BEE                                             ; +0x8c, 0x3b5be0\nLDR             R1, =(aCrHighC - 0x3B5BEA); \" <cr>(high)</c>\"          ; +0x8e, 0x3b5be2\nMOV             R0, R5; int                                            ; +0x90, 0x3b5be4\nADD             R1, PC; \" <cr>(high)</c>\"                              ; +0x92, 0x3b5be6\nBL              sub_774544                                             ; +0x94, 0x3b5be8\nB               loc_3B5BD6                                             ; +0x98, 0x3b5bec\nLDR             R3, flt_3B5C44                                         ; +0x9a, 0x3b5bee\nMOVS            R0, #0; int                                            ; +0x9c, 0x3b5bf0\nLDR             R1, =(aLevelStats - 0x3B5BFE); \"Level Stats\"           ; +0x9e, 0x3b5bf2\nMOV             R2, R4; int                                            ; +0xa0, 0x3b5bf4\nSTR             R0, [SP,#0x18+var_18]; int                             ; +0xa2, 0x3b5bf6\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0xa4, 0x3b5bf8\nADD             R1, PC; \"Level Stats\"                                  ; +0xa6, 0x3b5bfa\nLDR             R3, =(aOk - 0x3B5C02); \"OK\"                            ; +0xa8, 0x3b5bfc\nADD             R3, PC; \"OK\"                                           ; +0xaa, 0x3b5bfe\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xac, 0x3b5c00\nMOV             R7, R0                                                 ; +0xb0, 0x3b5c04\nMOV             R0, R4                                                 ; +0xb2, 0x3b5c06\nBL              sub_774008                                             ; +0xb4, 0x3b5c08\nLDR             R3, [R7]                                               ; +0xb8, 0x3b5c0c\nMOV             R0, R7                                                 ; +0xba, 0x3b5c0e\nLDR.W           R3, [R3,#0x284]                                        ; +0xbc, 0x3b5c10\nBLX             R3                                                     ; +0xc0, 0x3b5c14\nMOV             R0, R5                                                 ; +0xc2, 0x3b5c16\nBL              sub_774008                                             ; +0xc4, 0x3b5c18\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xc8, 0x3b5c1c\nLDR             R3, [R6]                                               ; +0xca, 0x3b5c1e\nCMP             R2, R3                                                 ; +0xcc, 0x3b5c20\nBEQ             loc_3B5C3E                                             ; +0xce, 0x3b5c22\nBLX             __stack_chk_fail                                       ; +0xd0, 0x3b5c24\nMOV             R0, R4                                                 ; +0xd4, 0x3b5c28\nB               loc_3B5C36                                             ; +0xd6, 0x3b5c2a\nMOV             R0, R4                                                 ; +0xd8, 0x3b5c2c\nBL              sub_774008                                             ; +0xda, 0x3b5c2e\nB               loc_3B5C34                                             ; +0xde, 0x3b5c32\nMOV             R0, R5                                                 ; +0xe0, 0x3b5c34\nBL              sub_774008                                             ; +0xe2, 0x3b5c36\nBL              __cxa_end_cleanup                                      ; +0xe6, 0x3b5c3a\nADD             SP, SP, #0x18                                          ; +0xea, 0x3b5c3e\nPOP.W           {R4-R8,PC}                                             ; +0xec, 0x3b5c40", "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"}