{"type": "func", "start": 4613432, "end": 4613592, "name": "AccountHelpLayer::onUnlink", "pseudocode": "// \n// AccountHelpLayer::onUnlink from 0x466538 to 0x4665d8 (160 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 AccountHelpLayer::onUnlink(AccountHelpLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCString *v3; // r0\n  char *CString; // r7\n  FLAlertLayer *v5; // r5\n  char *v6; // [sp+10h] [bp-Ch] BYREF\n\n  GJAccountManager::sharedState();\n  sub_775C20(&v6);\n  v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"Are you sure you want to <cg>unlink</c> from the account <cl>%s</c>?\\n\"\n                                                   \"<cy>Unlinking will delete all data from this device.</c>\",\n                              v6);\n  CString = (char *)cocos2d::CCString::getCString(v3);\n  sub_774008(&v6);\n  sub_776584((int)&v6, CString);\n  v5 = FLAlertLayer::create(\n         (int)&a1->FLAlertLayerProtocol,\n         (int)\"Unlink Account\",\n         (int)&v6,\n         (int)\"Cancel\",\n         (int)\"Unlink\",\n         300.0);\n  sub_774008(&v6);\n  ButtonSprite::updateBGImage(v5->m_button2, \"GJ_button_05.png\");\n  v5->setTag(v5, 3);\n  v5->show(v5);\n}", "assembly": "; \n; AccountHelpLayer::onUnlink from 0x466538 to 0x4665d8 (160 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            {R4-R7,LR}                                             ; +0x0, 0x466538\nSUB             SP, SP, #0x1C                                          ; +0x2, 0x46653a\nLDR             R6, =(__stack_chk_guard_ptr - 0x466546)                ; +0x4, 0x46653c\nMOV             R5, R0                                                 ; +0x6, 0x46653e\nADD             R4, SP, #0x1C+var_C                                    ; +0x8, 0x466540\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xa, 0x466542\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xc, 0x466544\nLDR             R3, [R6]                                               ; +0xe, 0x466546\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x10, 0x466548\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x12, 0x46654a\nADD.W           R1, R0, #0x10C                                         ; +0x16, 0x46654e\nMOV             R0, R4                                                 ; +0x1a, 0x466552\nBL              sub_775C20                                             ; +0x1c, 0x466554\nLDR             R0, =(aAreYouSureYouW_12 - 0x466560); \"Are you sure you want to <cg>unlink</c>\"... ; +0x20, 0x466558\nLDR             R1, [SP,#0x1C+var_C]; char *                           ; +0x22, 0x46655a\nADD             R0, PC; \"Are you sure you want to <cg>unlink</c>\"...   ; +0x24, 0x46655c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x26, 0x46655e\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x2a, 0x466562\nMOV             R7, R0                                                 ; +0x2e, 0x466566\nMOV             R0, R4                                                 ; +0x30, 0x466568\nBL              sub_774008                                             ; +0x32, 0x46656a\nMOV             R1, R7; char *                                         ; +0x36, 0x46656e\nADD             R2, SP, #0x1C+var_10                                   ; +0x38, 0x466570\nMOV             R0, R4; int                                            ; +0x3a, 0x466572\nBL              sub_776584                                             ; +0x3c, 0x466574\nLDR             R3, =(aUnlink - 0x466584); \"Unlink\"                    ; +0x40, 0x466578\nLDR             R1, =(aUnlinkAccount - 0x46658A); \"Unlink Account\"     ; +0x42, 0x46657a\nADD.W           R0, R5, #0x1E4; int                                    ; +0x44, 0x46657c\nADD             R3, PC; \"Unlink\"                                       ; +0x48, 0x466580\nSTR             R3, [SP,#0x1C+var_1C]; int                             ; +0x4a, 0x466582\nLDR             R3, flt_4665D8                                         ; +0x4c, 0x466584\nADD             R1, PC; \"Unlink Account\"                               ; +0x4e, 0x466586\nMOV             R2, R4; int                                            ; +0x50, 0x466588\nSTR             R3, [SP,#0x1C+var_18]; float                           ; +0x52, 0x46658a\nLDR             R3, =(aCancel - 0x466592); \"Cancel\"                    ; +0x54, 0x46658c\nADD             R3, PC; \"Cancel\"                                       ; +0x56, 0x46658e\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x58, 0x466590\nMOV             R5, R0                                                 ; +0x5c, 0x466594\nMOV             R0, R4                                                 ; +0x5e, 0x466596\nBL              sub_774008                                             ; +0x60, 0x466598\nLDR             R1, =(aGjButton05Png - 0x4665A6); \"GJ_button_05.png\"   ; +0x64, 0x46659c\nLDR.W           R0, [R5,#0x1D8]; this                                  ; +0x66, 0x46659e\nADD             R1, PC; \"GJ_button_05.png\"                             ; +0x6a, 0x4665a2\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x6c, 0x4665a4\nLDR             R3, [R5]                                               ; +0x70, 0x4665a8\nMOV             R0, R5                                                 ; +0x72, 0x4665aa\nMOVS            R1, #3                                                 ; +0x74, 0x4665ac\nLDR             R3, [R3,#0x24]                                         ; +0x76, 0x4665ae\nBLX             R3                                                     ; +0x78, 0x4665b0\nLDR             R3, [R5]                                               ; +0x7a, 0x4665b2\nMOV             R0, R5                                                 ; +0x7c, 0x4665b4\nLDR.W           R3, [R3,#0x284]                                        ; +0x7e, 0x4665b6\nBLX             R3                                                     ; +0x82, 0x4665ba\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x84, 0x4665bc\nLDR             R3, [R6]                                               ; +0x86, 0x4665be\nCMP             R2, R3                                                 ; +0x88, 0x4665c0\nBEQ             loc_4665D4                                             ; +0x8a, 0x4665c2\nBLX             __stack_chk_fail                                       ; +0x8c, 0x4665c4\nB               loc_4665CA                                             ; +0x90, 0x4665c8\nMOV             R0, R4                                                 ; +0x92, 0x4665ca\nBL              sub_774008                                             ; +0x94, 0x4665cc\nBL              __cxa_end_cleanup                                      ; +0x98, 0x4665d0\nADD             SP, SP, #0x1C                                          ; +0x9c, 0x4665d4\nPOP             {R4-R7,PC}                                             ; +0x9e, 0x4665d6", "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"}