{"type": "func", "start": 3383256, "end": 3383418, "name": "GJMessageCell::FLAlert_Clicked", "pseudocode": "// \n// GJMessageCell::FLAlert_Clicked from 0x339fd8 to 0x33a07a (162 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'GJMessageCell::FLAlert_Clicked @ 0x33a088\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 GJMessageCell::FLAlert_Clicked(GJMessageCell *a1, FLAlertLayer *a2, bool a3)\n{\n  GameLevelManager *v4; // r0\n  UploadActionPopup *m_popup; // r3\n  std::string v6; // r2\n  UploadPopupDelegate v7; // [sp+8h] [bp-8h] BYREF\n\n  v7.__vftable = (UploadPopupDelegate_vtbl *)a3;\n  if ( a3 && a2->getTag(a2) == 1 )\n  {\n    if ( a1->m_message )\n    {\n      GJMessageCell::markAsRead(a1);\n      v4 = GameLevelManager::sharedState();\n      if ( GameLevelManager::deleteUserMessages(v4, a1->m_message, nullptr, a1->m_message->m_outgoing) )\n      {\n        GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;\n        m_popup = a1->m_popup;\n        if ( m_popup )\n          m_popup->m_delegate = nullptr;\n        sub_776584((int)&v7, \"Deleting message...\");\n        a1->m_popup = (UploadActionPopup *)UploadActionPopup::create(\n                                             (UploadActionPopup *)&a1->UploadPopupDelegate,\n                                             &v7,\n                                             v6);\n        sub_774008(&v7);\n        a1->m_popup->show(a1->m_popup);\n      }\n    }\n  }\n}", "assembly": "; \n; GJMessageCell::FLAlert_Clicked from 0x339fd8 to 0x33a07a (162 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'GJMessageCell::FLAlert_Clicked @ 0x33a088\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            {R0-R6,LR}                                             ; +0x0, 0x339fd8\nMOV             R4, R0                                                 ; +0x2, 0x339fda\nLDR             R3, =(__stack_chk_guard_ptr - 0x339FE2)                ; +0x4, 0x339fdc\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x339fde\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x339fe0\nLDR             R0, [R3]                                               ; +0xa, 0x339fe2\nMOV             R6, R3                                                 ; +0xc, 0x339fe4\nSTR             R0, [SP,#0x10+var_4]                                   ; +0xe, 0x339fe6\nCMP             R2, #0                                                 ; +0x10, 0x339fe8\nBEQ             loc_33A06A                                             ; +0x12, 0x339fea\nLDR             R3, [R1]                                               ; +0x14, 0x339fec\nMOV             R0, R1                                                 ; +0x16, 0x339fee\nLDR             R3, [R3,#0x20]                                         ; +0x18, 0x339ff0\nBLX             R3                                                     ; +0x1a, 0x339ff2\nCMP             R0, #1                                                 ; +0x1c, 0x339ff4\nBNE             loc_33A06A                                             ; +0x1e, 0x339ff6\nLDR.W           R3, [R4,#0x1A8]                                        ; +0x20, 0x339ff8\nCBZ             R3, loc_33A06A                                         ; +0x24, 0x339ffc\nMOV             R0, R4; this                                           ; +0x26, 0x339ffe\nBL              _ZN13GJMessageCell10markAsReadEv; GJMessageCell::markAsRead(void) ; +0x28, 0x33a000\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x2c, 0x33a004\nLDR.W           R1, [R4,#0x1A8]; GJUserMessage *                       ; +0x30, 0x33a008\nMOVS            R2, #0; cocos2d::CCArray *                             ; +0x34, 0x33a00c\nLDRB.W          R3, [R1,#0x125]; bool                                  ; +0x36, 0x33a00e\nBL              _ZN16GameLevelManager18deleteUserMessagesEP13GJUserMessagePN7cocos2d7CCArrayEb; GameLevelManager::deleteUserMessages(GJUserMessage *,cocos2d::CCArray *,bool) ; +0x3a, 0x33a012\nCBZ             R0, loc_33A06A                                         ; +0x3e, 0x33a016\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x40, 0x33a018\nADD.W           R3, R4, #0x1A4                                         ; +0x44, 0x33a01c\nSTR.W           R3, [R0,#0x218]                                        ; +0x48, 0x33a020\nLDR.W           R3, [R4,#0x1AC]                                        ; +0x4c, 0x33a024\nCBZ             R3, loc_33A030                                         ; +0x50, 0x33a028\nMOVS            R2, #0                                                 ; +0x52, 0x33a02a\nSTR.W           R2, [R3,#0x1F0]                                        ; +0x54, 0x33a02c\nADD             R5, SP, #0x10+var_8                                    ; +0x58, 0x33a030\nLDR             R1, =(aDeletingMessag - 0x33A03A); \"Deleting message...\" ; +0x5a, 0x33a032\nADD             R2, SP, #0x10+var_C                                    ; +0x5c, 0x33a034\nADD             R1, PC; \"Deleting message...\"                          ; +0x5e, 0x33a036\nMOV             R0, R5; int                                            ; +0x60, 0x33a038\nBL              sub_776584                                             ; +0x62, 0x33a03a\nADD.W           R0, R4, #0x1A0                                         ; +0x66, 0x33a03e\nMOV             R1, R5                                                 ; +0x6a, 0x33a042\nBL              _ZN17UploadActionPopup6createEP19UploadPopupDelegateSs; UploadActionPopup::create(UploadPopupDelegate *,std::string) ; +0x6c, 0x33a044\nSTR.W           R0, [R4,#0x1AC]                                        ; +0x70, 0x33a048\nMOV             R0, R5                                                 ; +0x74, 0x33a04c\nBL              sub_774008                                             ; +0x76, 0x33a04e\nLDR.W           R0, [R4,#0x1AC]                                        ; +0x7a, 0x33a052\nLDR             R3, [R0]                                               ; +0x7e, 0x33a056\nLDR.W           R3, [R3,#0x284]                                        ; +0x80, 0x33a058\nBLX             R3                                                     ; +0x84, 0x33a05c\nB               loc_33A06A                                             ; +0x86, 0x33a05e\nMOV             R0, R5                                                 ; +0x88, 0x33a060\nBL              sub_774008                                             ; +0x8a, 0x33a062\nBL              __cxa_end_cleanup                                      ; +0x8e, 0x33a066\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x92, 0x33a06a\nLDR             R3, [R6]                                               ; +0x94, 0x33a06c\nCMP             R2, R3                                                 ; +0x96, 0x33a06e\nBEQ             loc_33A076                                             ; +0x98, 0x33a070\nBLX             __stack_chk_fail                                       ; +0x9a, 0x33a072\nADD             SP, SP, #0x10                                          ; +0x9e, 0x33a076\nPOP             {R4-R6,PC}                                             ; +0xa0, 0x33a078", "xrefs": ["`non-virtual thunk to'GJMessageCell::FLAlert_Clicked @ 0x33a088"], "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"}