{"type": "func", "start": 4911940, "end": 4912176, "name": "GJMessagePopup::onReply", "pseudocode": "// \n// GJMessagePopup::onReply from 0x4af344 to 0x4af430 (236 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 GJMessagePopup::onReply(GJMessagePopup *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // r0\n  GJUserMessage *v4; // r8\n  GameLevelManager *v5; // r0\n  GJWriteMessagePopup *v6; // r0\n  GJWriteMessagePopup_vtbl *v7; // r3\n  int v8; // r1\n  cocos2d::CCObject *v9; // [sp+4h] [bp-Ch] BYREF\n  _BYTE v10[4]; // [sp+8h] [bp-8h] BYREF\n\n  v9 = a2;\n  v3 = GameLevelManager::sharedState();\n  if ( !GameLevelManager::getStoredUserMessageReply(v3, a1->m_message->m_messageID) )\n  {\n    v4 = GJUserMessage::create(nullptr);\n    sub_775C20(&v9);\n    if ( sub_7748A0((int)&v9, \"Re: \") == -1 )\n    {\n      sub_776584((int)v10, \"Re: \");\n      sub_77441C(v10, &v9);\n      sub_775D40(&v9, v10);\n      sub_774008(v10);\n    }\n    sub_775C20(v10);\n    sub_775D40(&v4->m_title, v10);\n    sub_774008(v10);\n    v5 = GameLevelManager::sharedState();\n    GameLevelManager::storeUserMessageReply(v5, a1->m_message->m_messageID, v4);\n    sub_774008(&v9);\n  }\n  v6 = GJWriteMessagePopup::create(a1->m_message->m_accountID, a1->m_message->m_messageID);\n  v7 = v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v6->m_noElasticity = 1;\n  ((void (__fastcall *)(GJWriteMessagePopup *, int, int, void (__fastcall *)(FLAlertLayer *__hidden)))v7->show)(\n    v6,\n    v8,\n    1,\n    v7->show);\n  GJMessagePopup::onClose(a1, nullptr);\n}", "assembly": "; \n; GJMessagePopup::onReply from 0x4af344 to 0x4af430 (236 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          {R0-R8,LR}                                             ; +0x0, 0x4af344\nMOV             R7, R0                                                 ; +0x4, 0x4af348\nLDR             R6, =(__stack_chk_guard_ptr - 0x4AF350)                ; +0x6, 0x4af34a\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x8, 0x4af34c\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xa, 0x4af34e\nLDR             R3, [R6]                                               ; +0xc, 0x4af350\nSTR             R3, [SP,#0x10+var_4]                                   ; +0xe, 0x4af352\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x10, 0x4af354\nLDR.W           R3, [R7,#0x208]                                        ; +0x14, 0x4af358\nLDR.W           R1, [R3,#0x108]; int                                   ; +0x18, 0x4af35c\nBL              _ZN16GameLevelManager25getStoredUserMessageReplyEi; GameLevelManager::getStoredUserMessageReply(int) ; +0x1c, 0x4af360\nMOV             R4, R0                                                 ; +0x20, 0x4af364\nCMP             R0, #0                                                 ; +0x22, 0x4af366\nBNE             loc_4AF3E4                                             ; +0x24, 0x4af368\nBL              _ZN13GJUserMessage6createEv; GJUserMessage::create(void) ; +0x26, 0x4af36a\nADD             R5, SP, #0x10+var_C                                    ; +0x2a, 0x4af36e\nLDR.W           R1, [R7,#0x208]                                        ; +0x2c, 0x4af370\nADD.W           R1, R1, #0x114                                         ; +0x30, 0x4af374\nMOV             R8, R0                                                 ; +0x34, 0x4af378\nMOV             R0, R5                                                 ; +0x36, 0x4af37a\nBL              sub_775C20                                             ; +0x38, 0x4af37c\nLDR             R1, =(aRe - 0x4AF38A); \"Re: \"                          ; +0x3c, 0x4af380\nMOV             R0, R5; int                                            ; +0x3e, 0x4af382\nMOV             R2, R4                                                 ; +0x40, 0x4af384\nADD             R1, PC; \"Re: \"                                         ; +0x42, 0x4af386\nBL              sub_7748A0                                             ; +0x44, 0x4af388\nADDS            R0, #1                                                 ; +0x48, 0x4af38c\nADD             R4, SP, #0x10+var_8                                    ; +0x4a, 0x4af38e\nBNE             loc_4AF3B4                                             ; +0x4c, 0x4af390\nLDR             R1, =(aRe - 0x4AF39C); \"Re: \"                          ; +0x4e, 0x4af392\nMOV             R0, R4; int                                            ; +0x50, 0x4af394\nMOV             R2, SP                                                 ; +0x52, 0x4af396\nADD             R1, PC; \"Re: \"                                         ; +0x54, 0x4af398\nBL              sub_776584                                             ; +0x56, 0x4af39a\nMOV             R0, R4                                                 ; +0x5a, 0x4af39e\nMOV             R1, R5                                                 ; +0x5c, 0x4af3a0\nBL              sub_77441C                                             ; +0x5e, 0x4af3a2\nMOV             R0, R5                                                 ; +0x62, 0x4af3a6\nMOV             R1, R4                                                 ; +0x64, 0x4af3a8\nBL              sub_775D40                                             ; +0x66, 0x4af3aa\nMOV             R0, R4                                                 ; +0x6a, 0x4af3ae\nBL              sub_774008                                             ; +0x6c, 0x4af3b0\nMOV             R0, R4                                                 ; +0x70, 0x4af3b4\nMOV             R1, R5                                                 ; +0x72, 0x4af3b6\nBL              sub_775C20                                             ; +0x74, 0x4af3b8\nADD.W           R0, R8, #0x114                                         ; +0x78, 0x4af3bc\nMOV             R1, R4                                                 ; +0x7c, 0x4af3c0\nBL              sub_775D40                                             ; +0x7e, 0x4af3c2\nMOV             R0, R4                                                 ; +0x82, 0x4af3c6\nBL              sub_774008                                             ; +0x84, 0x4af3c8\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x88, 0x4af3cc\nLDR.W           R3, [R7,#0x208]                                        ; +0x8c, 0x4af3d0\nMOV             R2, R8; GJUserMessage *                                ; +0x90, 0x4af3d4\nLDR.W           R1, [R3,#0x108]; int                                   ; +0x92, 0x4af3d6\nBL              _ZN16GameLevelManager21storeUserMessageReplyEiP13GJUserMessage; GameLevelManager::storeUserMessageReply(int,GJUserMessage *) ; +0x96, 0x4af3da\nMOV             R0, R5                                                 ; +0x9a, 0x4af3de\nBL              sub_774008                                             ; +0x9c, 0x4af3e0\nLDR.W           R3, [R7,#0x208]                                        ; +0xa0, 0x4af3e4\nLDR.W           R1, [R3,#0x108]; int                                   ; +0xa4, 0x4af3e8\nLDR.W           R0, [R3,#0x10C]; this                                  ; +0xa8, 0x4af3ec\nBL              _ZN19GJWriteMessagePopup6createEii; GJWriteMessagePopup::create(int,int) ; +0xac, 0x4af3f0\nMOVS            R2, #1                                                 ; +0xb0, 0x4af3f4\nLDR             R3, [R0]                                               ; +0xb2, 0x4af3f6\nSTRB.W          R2, [R0,#0x1D0]                                        ; +0xb4, 0x4af3f8\nLDR.W           R3, [R3,#0x284]                                        ; +0xb8, 0x4af3fc\nBLX             R3                                                     ; +0xbc, 0x4af400\nMOV             R0, R7; this                                           ; +0xbe, 0x4af402\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0xc0, 0x4af404\nBL              _ZN14GJMessagePopup7onCloseEPN7cocos2d8CCObjectE; GJMessagePopup::onClose(cocos2d::CCObject *) ; +0xc2, 0x4af406\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xc6, 0x4af40a\nLDR             R3, [R6]                                               ; +0xc8, 0x4af40c\nCMP             R2, R3                                                 ; +0xca, 0x4af40e\nBEQ             loc_4AF42A                                             ; +0xcc, 0x4af410\nBLX             __stack_chk_fail                                       ; +0xce, 0x4af412\nB               loc_4AF418                                             ; +0xd2, 0x4af416\nMOV             R0, R4                                                 ; +0xd4, 0x4af418\nBL              sub_774008                                             ; +0xd6, 0x4af41a\nB               loc_4AF420                                             ; +0xda, 0x4af41e\nMOV             R0, R5                                                 ; +0xdc, 0x4af420\nBL              sub_774008                                             ; +0xde, 0x4af422\nBL              __cxa_end_cleanup                                      ; +0xe2, 0x4af426\nADD             SP, SP, #0x10                                          ; +0xe6, 0x4af42a\nPOP.W           {R4-R8,PC}                                             ; +0xe8, 0x4af42c", "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"}