{"type": "func", "start": 4884132, "end": 4884348, "name": "GJMessagePopup::onBlock", "pseudocode": "// \n// GJMessagePopup::onBlock from 0x4a86a4 to 0x4a877c (216 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::onBlock(GJMessagePopup *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCString *v3; // r0\n  char *CString; // r0\n  FLAlertLayer *v5; // r5\n  char *v6; // [sp+20h] [bp+0h] BYREF\n  char *v7; // [sp+24h] [bp+4h] BYREF\n  _BYTE v8[4]; // [sp+28h] [bp+8h] BYREF\n\n  sub_775C20(&v6);\n  v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"Are you sure you want to block <cg>%s</c>?\\n\"\n                                                   \"<cg>%s</c> will no longer be able to:\\n\"\n                                                   \"- <cy>View your profile</c>\\n\"\n                                                   \"- <cl>Send messages</c>\\n\"\n                                                   \"- <cp>Send friend requests</c>\\n\"\n                                                   \"- <cr>Messages from this user will be removed</c>\",\n                              v6,\n                              v6);\n  CString = (char *)cocos2d::CCString::getCString(v3);\n  sub_776584((int)&v7, CString);\n  sub_776584((int)v8, v7);\n  v5 = FLAlertLayer::create(\n         (int)&a1->FLAlertLayerProtocol,\n         (int)\"Confirm Block\",\n         (int)v8,\n         (int)\"Back\",\n         (int)\"Block\",\n         380.0,\n         0,\n         0,\n         1.0);\n  sub_774008(v8);\n  ButtonSprite::updateBGImage(v5->m_button2, \"GJ_button_06.png\");\n  v5->setTag(v5, 1);\n  v5->show(v5);\n  sub_774008(&v7);\n  sub_774008(&v6);\n}", "assembly": "; \n; GJMessagePopup::onBlock from 0x4a86a4 to 0x4a877c (216 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, 0x4a86a4\nSUB             SP, SP, #0x30                                          ; +0x4, 0x4a86a8\nLDR             R6, =(__stack_chk_guard_ptr - 0x4A86B8)                ; +0x6, 0x4a86aa\nADD             R7, SP, #0x20                                          ; +0x8, 0x4a86ac\nLDR.W           R1, [R0,#0x208]                                        ; +0xa, 0x4a86ae\nMOV             R5, R0                                                 ; +0xe, 0x4a86b2\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x4a86b4\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x4a86b6\nMOV             R0, R7                                                 ; +0x14, 0x4a86b8\nADD.W           R1, R1, #0x11C                                         ; +0x16, 0x4a86ba\nLDR             R3, [R6]                                               ; +0x1a, 0x4a86be\nSTR             R3, [SP,#0x30+var_4]                                   ; +0x1c, 0x4a86c0\nBL              sub_775C20                                             ; +0x1e, 0x4a86c2\nLDR             R1, [SP,#0x30+var_10]; char *                          ; +0x22, 0x4a86c6\nLDR             R0, =(aAreYouSureYouW_14 - 0x4A86D0); \"Are you sure you want to block <cg>%s</\"... ; +0x24, 0x4a86c8\nMOV             R2, R1                                                 ; +0x26, 0x4a86ca\nADD             R0, PC; \"Are you sure you want to block <cg>%s</\"...   ; +0x28, 0x4a86cc\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x2a, 0x4a86ce\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x2e, 0x4a86d2\nADD.W           R8, SP, #0x30+var_C                                    ; +0x32, 0x4a86d6\nADD             R4, SP, #0x30+var_8                                    ; +0x36, 0x4a86da\nMOV             R1, R0; char *                                         ; +0x38, 0x4a86dc\nMOV             R2, R4                                                 ; +0x3a, 0x4a86de\nMOV             R0, R8; int                                            ; +0x3c, 0x4a86e0\nBL              sub_776584                                             ; +0x3e, 0x4a86e2\nMOV             R0, R4; int                                            ; +0x42, 0x4a86e6\nLDR             R1, [SP,#0x30+var_C]; char *                           ; +0x44, 0x4a86e8\nADD             R2, SP, #0x30+var_14                                   ; +0x46, 0x4a86ea\nADD.W           R5, R5, #0x1F8                                         ; +0x48, 0x4a86ec\nBL              sub_776584                                             ; +0x4c, 0x4a86f0\nLDR             R3, =(aBlock - 0x4A8700); \"Block\"                      ; +0x50, 0x4a86f4\nMOV             R0, R5; int                                            ; +0x52, 0x4a86f6\nLDR             R1, =(aConfirmBlock - 0x4A8706); \"Confirm Block\"       ; +0x54, 0x4a86f8\nMOV             R2, R4; int                                            ; +0x56, 0x4a86fa\nADD             R3, PC; \"Block\"                                        ; +0x58, 0x4a86fc\nSTR             R3, [SP,#0x30+var_30]; int                             ; +0x5a, 0x4a86fe\nLDR             R3, flt_4A877C                                         ; +0x5c, 0x4a8700\nADD             R1, PC; \"Confirm Block\"                                ; +0x5e, 0x4a8702\nSTR             R3, [SP,#0x30+var_2C]; float                           ; +0x60, 0x4a8704\nMOVS            R3, #0                                                 ; +0x62, 0x4a8706\nSTR             R3, [SP,#0x30+var_28]; char                            ; +0x64, 0x4a8708\nMOVS            R3, #0                                                 ; +0x66, 0x4a870a\nSTR             R3, [SP,#0x30+var_24]; int                             ; +0x68, 0x4a870c\nMOV.W           R3, #0x3F800000                                        ; +0x6a, 0x4a870e\nSTR             R3, [SP,#0x30+var_20]; float                           ; +0x6e, 0x4a8712\nLDR             R3, =(aBack - 0x4A871A); \"Back\"                        ; +0x70, 0x4a8714\nADD             R3, PC; \"Back\"                                         ; +0x72, 0x4a8716\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_fbff; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float,bool,float,float) ; +0x74, 0x4a8718\nMOV             R5, R0                                                 ; +0x78, 0x4a871c\nMOV             R0, R4                                                 ; +0x7a, 0x4a871e\nBL              sub_774008                                             ; +0x7c, 0x4a8720\nLDR             R1, =(aGjButton06Png - 0x4A872E); \"GJ_button_06.png\"   ; +0x80, 0x4a8724\nLDR.W           R0, [R5,#0x1D8]; this                                  ; +0x82, 0x4a8726\nADD             R1, PC; \"GJ_button_06.png\"                             ; +0x86, 0x4a872a\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x88, 0x4a872c\nLDR             R3, [R5]                                               ; +0x8c, 0x4a8730\nMOV             R0, R5                                                 ; +0x8e, 0x4a8732\nMOVS            R1, #1                                                 ; +0x90, 0x4a8734\nLDR             R3, [R3,#0x24]                                         ; +0x92, 0x4a8736\nBLX             R3                                                     ; +0x94, 0x4a8738\nLDR             R3, [R5]                                               ; +0x96, 0x4a873a\nMOV             R0, R5                                                 ; +0x98, 0x4a873c\nLDR.W           R3, [R3,#0x284]                                        ; +0x9a, 0x4a873e\nBLX             R3                                                     ; +0x9e, 0x4a8742\nMOV             R0, R8                                                 ; +0xa0, 0x4a8744\nBL              sub_774008                                             ; +0xa2, 0x4a8746\nMOV             R0, R7                                                 ; +0xa6, 0x4a874a\nBL              sub_774008                                             ; +0xa8, 0x4a874c\nLDR             R2, [SP,#0x30+var_4]                                   ; +0xac, 0x4a8750\nLDR             R3, [R6]                                               ; +0xae, 0x4a8752\nCMP             R2, R3                                                 ; +0xb0, 0x4a8754\nBEQ             loc_4A8776                                             ; +0xb2, 0x4a8756\nBLX             __stack_chk_fail                                       ; +0xb4, 0x4a8758\nMOV             R0, R4                                                 ; +0xb8, 0x4a875c\nBL              sub_774008                                             ; +0xba, 0x4a875e\nB               loc_4A8764                                             ; +0xbe, 0x4a8762\nMOV             R0, R8                                                 ; +0xc0, 0x4a8764\nBL              sub_774008                                             ; +0xc2, 0x4a8766\nB               loc_4A876C                                             ; +0xc6, 0x4a876a\nMOV             R0, R7                                                 ; +0xc8, 0x4a876c\nBL              sub_774008                                             ; +0xca, 0x4a876e\nBL              __cxa_end_cleanup                                      ; +0xce, 0x4a8772\nADD             SP, SP, #0x30 ; '0'                                    ; +0xd2, 0x4a8776\nPOP.W           {R4-R8,PC}                                             ; +0xd4, 0x4a8778", "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"}