{"type": "func", "start": 3843460, "end": 3843908, "name": "CreatorLayer::onMultiplayer", "pseudocode": "// \n// CreatorLayer::onMultiplayer from 0x3aa584 to 0x3aa744 (448 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 CreatorLayer::onMultiplayer(CreatorLayer *a1, cocos2d::CCObject *a2)\n{\n  char *v3; // r1\n  std::string v4; // r6\n  DialogObject *v5; // r0\n  DialogLayer *v6; // r6\n  int v7; // r3\n  _BYTE v8[4]; // [sp+Ch] [bp-Ch] BYREF\n  _BYTE v9[4]; // [sp+10h] [bp-8h] BYREF\n  char v10; // [sp+14h] [bp-4h] BYREF\n  int v11; // [sp+18h] [bp+0h] BYREF\n\n  sub_776584((int)v8, \"Versus mode has been <co>delayed</c>,\\nbut it's in the works!\");\n  sub_776584((int)v9, \"The Keymaster\");\n  switch ( a1->m_versusDialogIndex )\n  {\n    case 1:\n      v3 = \"Yea<d010>.<d010>.<d010>. It's still <cl>delayed</c>.\";\n      goto LABEL_3;\n    case 2:\n      sub_7753D4((int)v8, \"I blame <cg>RobTop</c>.\");\n      goto LABEL_5;\n    case 3:\n      v3 = \"Who else could we <cr>blame</c>?\\nWe're not even real.\";\n      goto LABEL_3;\n    case 4:\n      sub_7753D4((int)v8, \"Speak for yourself <co>I'm real!</c>\");\n      sub_7753D4((int)v9, \"Scratch\");\n      v4.m_data.m_data = (stl::StringData<char>::Internal *)(byte_9 + 5);\n      goto LABEL_16;\n    case 5:\n      v3 = \"<cl>Yea, a real pain in the<d010>.<d010>.<d010>.</c>\";\n      goto LABEL_3;\n    case 6:\n      sub_7753D4((int)v8, \"You're just <cr>mad</c> because you don't have a <cy>shop</c>.\");\n      sub_7753D4((int)v9, \"Scratch\");\n      v4.m_data.m_data = (stl::StringData<char>::Internal *)(&dword_18 + 2);\n      goto LABEL_16;\n    case 7:\n      sub_7753D4((int)v8, \"You have a <cy>shop</c>?\");\n      v4.m_data.m_data = (stl::StringData<char>::Internal *)byte_4;\n      goto LABEL_16;\n    case 8:\n      sub_7753D4((int)v8, \"<co>I HAVE SAID TOO MUCH!\\nQUICKLY TO THE <i050><s260>CHOPPER!</s></i></c>\");\nLABEL_5:\n      sub_7753D4((int)v9, \"Scratch\");\n      v4.m_data.m_data = (stl::StringData<char>::Internal *)(byte_9 + 1);\n      goto LABEL_16;\n    case 9:\n      v3 = \"You don't have a chop<d010>.<d010>.<d010>.\";\nLABEL_3:\n      sub_7753D4((int)v8, v3);\n      goto LABEL_15;\n    case 0xA:\n      sub_7753D4((int)v8, \".<d010>.<d010>.\");\n      sub_7753D4((int)v9, \"Scratch\");\n      v4.m_data.m_data = (stl::StringData<char>::Internal *)&dword_34;\n      goto LABEL_16;\n    case 0xB:\n      sub_7753D4((int)v8, \".<d010>.<d010>.<d010>.<d010>.\");\n      v4.m_data.m_data = (stl::StringData<char>::Internal *)(&word_10 + 1);\n      goto LABEL_16;\n    default:\nLABEL_15:\n      v4.m_data.m_data = (stl::StringData<char>::Internal *)(&dword_0 + 2);\nLABEL_16:\n      sub_775C20(&v10, v9);\n      sub_775C20(&v11, v8);\n      v5 = (DialogObject *)DialogObject::create((DialogObject *)&v10, (std::string)&v11, v4, 1065353216, 0.0, 255);\n      v6 = DialogLayer::create(v5, (int)&dword_0 + 2);\n      sub_774008(&v11);\n      sub_774008(&v10);\n      a1->addChild_0(a1, v6, 100);\n      DialogLayer::updateChatPlacement(v6, Center);\n      DialogLayer::animateInRandomSide(v6);\n      v7 = a1->m_versusDialogIndex + 1;\n      if ( v7 > 11 )\n        v7 = 0;\n      a1->m_versusDialogIndex = v7;\n      sub_774008(v9);\n      sub_774008(v8);\n      return;\n  }\n}", "assembly": "; \n; CreatorLayer::onMultiplayer from 0x3aa584 to 0x3aa744 (448 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-R10,LR}                                            ; +0x0, 0x3aa584\nSUB             SP, SP, #0x20                                          ; +0x4, 0x3aa588\nLDR.W           R8, =(__stack_chk_guard_ptr - 0x3AA598)                ; +0x6, 0x3aa58a\nADD             R7, SP, #0x18                                          ; +0xa, 0x3aa58e\nADD             R4, SP, #0x20+var_14                                   ; +0xc, 0x3aa590\nLDR             R1, =(aVersusModeHasB - 0x3AA5A0); \"Versus mode has been <co>delayed</c>,\\n\"... ; +0xe, 0x3aa592\nADD             R8, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3aa594\nLDR.W           R8, [R8]; __stack_chk_guard                            ; +0x12, 0x3aa596\nMOV             R2, R7                                                 ; +0x16, 0x3aa59a\nADD             R1, PC; \"Versus mode has been <co>delayed</c>,\\n\"...   ; +0x18, 0x3aa59c\nMOV             R9, R0                                                 ; +0x1a, 0x3aa59e\nLDR.W           R3, [R8]                                               ; +0x1c, 0x3aa5a0\nMOV             R0, R4; int                                            ; +0x20, 0x3aa5a4\nADD             R5, SP, #0x20+var_10                                   ; +0x22, 0x3aa5a6\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x24, 0x3aa5a8\nBL              sub_776584                                             ; +0x26, 0x3aa5aa\nLDR             R1, =(aTheKeymaster - 0x3AA5B8); \"The Keymaster\"       ; +0x2a, 0x3aa5ae\nMOV             R0, R5; int                                            ; +0x2c, 0x3aa5b0\nMOV             R2, R7                                                 ; +0x2e, 0x3aa5b2\nADD             R1, PC; \"The Keymaster\"                                ; +0x30, 0x3aa5b4\nBL              sub_776584                                             ; +0x32, 0x3aa5b6\nLDR.W           R3, [R9,#0x150]                                        ; +0x36, 0x3aa5ba\nSUBS            R3, #1; switch 11 cases                                ; +0x3a, 0x3aa5be\nCMP             R3, #0xA                                               ; +0x3c, 0x3aa5c0\nBHI             def_3AA5C4; jumptable 003AA5C4 default case            ; +0x3e, 0x3aa5c2\nTBB.W           [PC,R3]; switch jump                                   ; +0x40, 0x3aa5c4\nDCB 6; jump table for switch statement                                 ; +0x44, 0x3aa5c8\nDCB 0xC                                                                ; +0x45, 0x3aa5c9\nDCB 0x18                                                               ; +0x46, 0x3aa5ca\nDCB 0x1C                                                               ; +0x47, 0x3aa5cb\nDCB 0x28                                                               ; +0x48, 0x3aa5cc\nDCB 0x2C                                                               ; +0x49, 0x3aa5cd\nDCB 0x38                                                               ; +0x4a, 0x3aa5ce\nDCB 0x3F                                                               ; +0x4b, 0x3aa5cf\nDCB 0x48                                                               ; +0x4c, 0x3aa5d0\nDCB 0x4C                                                               ; +0x4d, 0x3aa5d1\nDCB 0x58                                                               ; +0x4e, 0x3aa5d2\nALIGN 2                                                                ; +0x4f, 0x3aa5d3\nLDR             R1, =(aYeaD010D010D01 - 0x3AA5DC); jumptable 003AA5C4 case 1 ; +0x50, 0x3aa5d4\nMOV             R0, R4; int                                            ; +0x52, 0x3aa5d6\nADD             R1, PC; \"Yea<d010>.<d010>.<d010>. It's still <cl\"...   ; +0x54, 0x3aa5d8\nBL              sub_7753D4                                             ; +0x56, 0x3aa5da\nB               def_3AA5C4; jumptable 003AA5C4 default case            ; +0x5a, 0x3aa5de\nLDR             R1, =(aIBlameCgRobtop - 0x3AA5E8); jumptable 003AA5C4 case 2 ; +0x5c, 0x3aa5e0\nMOV             R0, R4; int                                            ; +0x5e, 0x3aa5e2\nADD             R1, PC; \"I blame <cg>RobTop</c>.\"                      ; +0x60, 0x3aa5e4\nBL              sub_7753D4                                             ; +0x62, 0x3aa5e6\nLDR             R1, =(aScratch - 0x3AA5F2); \"Scratch\"                  ; +0x66, 0x3aa5ea\nMOV             R0, R5; int                                            ; +0x68, 0x3aa5ec\nADD             R1, PC; \"Scratch\"                                      ; +0x6a, 0x3aa5ee\nBL              sub_7753D4                                             ; +0x6c, 0x3aa5f0\nMOVS            R6, #0xA                                               ; +0x70, 0x3aa5f4\nB               loc_3AA688                                             ; +0x72, 0x3aa5f6\nLDR             R1, =(aWhoElseCouldWe - 0x3AA600); jumptable 003AA5C4 case 3 ; +0x74, 0x3aa5f8\nMOV             R0, R4                                                 ; +0x76, 0x3aa5fa\nADD             R1, PC; \"Who else could we <cr>blame</c>?\\nWe're\"...   ; +0x78, 0x3aa5fc\nB               loc_3AA5DA                                             ; +0x7a, 0x3aa5fe\nLDR             R1, =(aSpeakForYourse - 0x3AA608); jumptable 003AA5C4 case 4 ; +0x7c, 0x3aa600\nMOV             R0, R4; int                                            ; +0x7e, 0x3aa602\nADD             R1, PC; \"Speak for yourself <co>I'm real!</c>\"         ; +0x80, 0x3aa604\nBL              sub_7753D4                                             ; +0x82, 0x3aa606\nLDR             R1, =(aScratch - 0x3AA612); \"Scratch\"                  ; +0x86, 0x3aa60a\nMOV             R0, R5; int                                            ; +0x88, 0x3aa60c\nADD             R1, PC; \"Scratch\"                                      ; +0x8a, 0x3aa60e\nBL              sub_7753D4                                             ; +0x8c, 0x3aa610\nMOVS            R6, #0xE                                               ; +0x90, 0x3aa614\nB               loc_3AA688                                             ; +0x92, 0x3aa616\nLDR             R1, =(aClYeaARealPain - 0x3AA620); jumptable 003AA5C4 case 5 ; +0x94, 0x3aa618\nMOV             R0, R4                                                 ; +0x96, 0x3aa61a\nADD             R1, PC; \"<cl>Yea, a real pain in the<d010>.<d010\"...   ; +0x98, 0x3aa61c\nB               loc_3AA5DA                                             ; +0x9a, 0x3aa61e\nLDR             R1, =(aYouReJustCrMad - 0x3AA628); jumptable 003AA5C4 case 6 ; +0x9c, 0x3aa620\nMOV             R0, R4; int                                            ; +0x9e, 0x3aa622\nADD             R1, PC; \"You're just <cr>mad</c> because you don\"...   ; +0xa0, 0x3aa624\nBL              sub_7753D4                                             ; +0xa2, 0x3aa626\nLDR             R1, =(aScratch - 0x3AA632); \"Scratch\"                  ; +0xa6, 0x3aa62a\nMOV             R0, R5; int                                            ; +0xa8, 0x3aa62c\nADD             R1, PC; \"Scratch\"                                      ; +0xaa, 0x3aa62e\nBL              sub_7753D4                                             ; +0xac, 0x3aa630\nMOVS            R6, #0x1A                                              ; +0xb0, 0x3aa634\nB               loc_3AA688                                             ; +0xb2, 0x3aa636\nLDR             R1, =(aYouHaveACyShop - 0x3AA640); jumptable 003AA5C4 case 7 ; +0xb4, 0x3aa638\nMOV             R0, R4; int                                            ; +0xb6, 0x3aa63a\nADD             R1, PC; \"You have a <cy>shop</c>?\"                     ; +0xb8, 0x3aa63c\nBL              sub_7753D4                                             ; +0xba, 0x3aa63e\nMOVS            R6, #4                                                 ; +0xbe, 0x3aa642\nB               loc_3AA688                                             ; +0xc0, 0x3aa644\nLDR             R1, =(aCoIHaveSaidToo - 0x3AA64E); jumptable 003AA5C4 case 8 ; +0xc2, 0x3aa646\nMOV             R0, R4; int                                            ; +0xc4, 0x3aa648\nADD             R1, PC; \"<co>I HAVE SAID TOO MUCH!\\nQUICKLY TO T\"...   ; +0xc6, 0x3aa64a\nBL              sub_7753D4                                             ; +0xc8, 0x3aa64c\nLDR             R1, =(aScratch - 0x3AA658); \"Scratch\"                  ; +0xcc, 0x3aa650\nMOV             R0, R5                                                 ; +0xce, 0x3aa652\nADD             R1, PC; \"Scratch\"                                      ; +0xd0, 0x3aa654\nB               loc_3AA5F0                                             ; +0xd2, 0x3aa656\nLDR             R1, =(aYouDonTHaveACh - 0x3AA660); jumptable 003AA5C4 case 9 ; +0xd4, 0x3aa658\nMOV             R0, R4                                                 ; +0xd6, 0x3aa65a\nADD             R1, PC; \"You don't have a chop<d010>.<d010>.<d01\"...   ; +0xd8, 0x3aa65c\nB               loc_3AA5DA                                             ; +0xda, 0x3aa65e\nLDR             R1, =(aD010D010 - 0x3AA668); jumptable 003AA5C4 case 10 ; +0xdc, 0x3aa660\nMOV             R0, R4; int                                            ; +0xde, 0x3aa662\nADD             R1, PC; \".<d010>.<d010>.\"                              ; +0xe0, 0x3aa664\nBL              sub_7753D4                                             ; +0xe2, 0x3aa666\nLDR             R1, =(aScratch - 0x3AA672); \"Scratch\"                  ; +0xe6, 0x3aa66a\nMOV             R0, R5; int                                            ; +0xe8, 0x3aa66c\nADD             R1, PC; \"Scratch\"                                      ; +0xea, 0x3aa66e\nBL              sub_7753D4                                             ; +0xec, 0x3aa670\nMOVS            R6, #0x34 ; '4'                                        ; +0xf0, 0x3aa674\nB               loc_3AA688                                             ; +0xf2, 0x3aa676\nLDR             R1, =(aD010D010D010D0 - 0x3AA680); jumptable 003AA5C4 case 11 ; +0xf4, 0x3aa678\nMOV             R0, R4; int                                            ; +0xf6, 0x3aa67a\nADD             R1, PC; \".<d010>.<d010>.<d010>.<d010>.\"                ; +0xf8, 0x3aa67c\nBL              sub_7753D4                                             ; +0xfa, 0x3aa67e\nMOVS            R6, #0x11                                              ; +0xfe, 0x3aa682\nB               loc_3AA688                                             ; +0x100, 0x3aa684\nMOVS            R6, #2; jumptable 003AA5C4 default case                ; +0x102, 0x3aa686\nADD.W           R10, SP, #0x20+var_C                                   ; +0x104, 0x3aa688\nMOV             R1, R5                                                 ; +0x108, 0x3aa68c\nMOV             R0, R10                                                ; +0x10a, 0x3aa68e\nBL              sub_775C20                                             ; +0x10c, 0x3aa690\nMOV             R0, R7                                                 ; +0x110, 0x3aa694\nMOV             R1, R4                                                 ; +0x112, 0x3aa696\nBL              sub_775C20                                             ; +0x114, 0x3aa698\nMOV             R3, SP                                                 ; +0x118, 0x3aa69c\nMOVS            R2, #0                                                 ; +0x11a, 0x3aa69e\nSTR.W           R2, [R3+0x20+var_20],#4                                ; +0x11c, 0x3aa6a0\nMOV             R0, R10                                                ; +0x120, 0x3aa6a4\nLDR             R2, =(word_9AA930 - 0x3AA6AC)                          ; +0x122, 0x3aa6a6\nADD             R2, PC; word_9AA930                                    ; +0x124, 0x3aa6a8\nLDRH            R1, [R2]                                               ; +0x126, 0x3aa6aa\nLDRB            R2, [R2,#(byte_9AA932 - 0x9AA930)]                     ; +0x128, 0x3aa6ac\nSTRH.W          R1, [SP,#0x20+var_1C]                                  ; +0x12a, 0x3aa6ae\nMOV             R1, R7                                                 ; +0x12e, 0x3aa6b2\nSTRB            R2, [R3,#2]                                            ; +0x130, 0x3aa6b4\nMOV             R2, R6                                                 ; +0x132, 0x3aa6b6\nMOV.W           R3, #0x3F800000                                        ; +0x134, 0x3aa6b8\nBL              _ZN12DialogObject6createESsSsifbN7cocos2d10_ccColor3BE; DialogObject::create(std::string,std::string,int,float,bool,cocos2d::_ccColor3B) ; +0x138, 0x3aa6bc\nMOVS            R1, #(dword_0+2); DialogObject *                       ; +0x13c, 0x3aa6c0\nBL              _ZN11DialogLayer6createEP12DialogObjecti; DialogLayer::create(DialogObject *,int) ; +0x13e, 0x3aa6c2\nMOV             R6, R0                                                 ; +0x142, 0x3aa6c6\nMOV             R0, R7                                                 ; +0x144, 0x3aa6c8\nBL              sub_774008                                             ; +0x146, 0x3aa6ca\nMOV             R0, R10                                                ; +0x14a, 0x3aa6ce\nBL              sub_774008                                             ; +0x14c, 0x3aa6d0\nLDR.W           R3, [R9]                                               ; +0x150, 0x3aa6d4\nMOV             R0, R9                                                 ; +0x154, 0x3aa6d8\nMOV             R1, R6                                                 ; +0x156, 0x3aa6da\nMOVS            R2, #0x64 ; 'd'                                        ; +0x158, 0x3aa6dc\nLDR.W           R3, [R3,#0xE0]                                         ; +0x15a, 0x3aa6de\nBLX             R3                                                     ; +0x15e, 0x3aa6e2\nMOV             R0, R6                                                 ; +0x160, 0x3aa6e4\nMOVS            R1, #0                                                 ; +0x162, 0x3aa6e6\nBL              _ZN11DialogLayer19updateChatPlacementE19DialogChatPlacement; DialogLayer::updateChatPlacement(DialogChatPlacement) ; +0x164, 0x3aa6e8\nMOV             R0, R6; this                                           ; +0x168, 0x3aa6ec\nBL              _ZN11DialogLayer19animateInRandomSideEv; DialogLayer::animateInRandomSide(void) ; +0x16a, 0x3aa6ee\nLDR.W           R3, [R9,#0x150]                                        ; +0x16e, 0x3aa6f2\nMOV             R0, R5                                                 ; +0x172, 0x3aa6f6\nADDS            R3, #1                                                 ; +0x174, 0x3aa6f8\nCMP             R3, #0xB                                               ; +0x176, 0x3aa6fa\nIT GT                                                                  ; +0x178, 0x3aa6fc\nMOVGT           R3, #0                                                 ; +0x17a, 0x3aa6fe\nSTR.W           R3, [R9,#0x150]                                        ; +0x17c, 0x3aa700\nBL              sub_774008                                             ; +0x180, 0x3aa704\nMOV             R0, R4                                                 ; +0x184, 0x3aa708\nBL              sub_774008                                             ; +0x186, 0x3aa70a\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x18a, 0x3aa70e\nLDR.W           R3, [R8]                                               ; +0x18c, 0x3aa710\nCMP             R2, R3                                                 ; +0x190, 0x3aa714\nBEQ             loc_3AA73E                                             ; +0x192, 0x3aa716\nBLX             __stack_chk_fail                                       ; +0x194, 0x3aa718\nMOV             R0, R7                                                 ; +0x198, 0x3aa71c\nBL              sub_774008                                             ; +0x19a, 0x3aa71e\nB               loc_3AA724                                             ; +0x19e, 0x3aa722\nMOV             R0, R10                                                ; +0x1a0, 0x3aa724\nBL              sub_774008                                             ; +0x1a2, 0x3aa726\nB               loc_3AA72C                                             ; +0x1a6, 0x3aa72a\nMOV             R0, R5                                                 ; +0x1a8, 0x3aa72c\nBL              sub_774008                                             ; +0x1aa, 0x3aa72e\nB               loc_3AA734                                             ; +0x1ae, 0x3aa732\nMOV             R0, R4                                                 ; +0x1b0, 0x3aa734\nBL              sub_774008                                             ; +0x1b2, 0x3aa736\nBL              __cxa_end_cleanup                                      ; +0x1b6, 0x3aa73a\nADD             SP, SP, #0x20 ; ' '                                    ; +0x1ba, 0x3aa73e\nPOP.W           {R4-R10,PC}                                            ; +0x1bc, 0x3aa740", "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"}