{"type": "func", "start": 4295712128, "end": 4295712832, "name": "CreatorLayer::onMultiplayer", "pseudocode": "// \n// CreatorLayer::onMultiplayer from 0x1000b5d80 to 0x1000b6040 (704 bytes)\n// \n// 1 xrefs:\n// > CreatorLayer::init @ 0x1000b53b4\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 __fastcall CreatorLayer::onMultiplayer(CreatorLayer *a1, cocos2d::CCObject *a2)\n{\n  int m_versusDialogIndex; // w8\n  int v4; // w20\n  const std::string::value_type *v5; // x1\n  const std::string::value_type *v6; // x1\n  char *v7; // x0\n  DialogLayer *v8; // x20\n  int v9; // w8\n  int v10; // w8\n  std::string __p; // [xsp+0h] [xbp-80h] BYREF\n  std::string __dst; // [xsp+20h] [xbp-60h] BYREF\n  std::string v13; // [xsp+40h] [xbp-40h] BYREF\n  std::string v14; // [xsp+58h] [xbp-28h] BYREF\n\n  sub_100009900(&v14, \"Versus mode has been <co>delayed</c>,\\nbut it's in the works!\");\n  sub_100009900(&v13, \"The Keymaster\");\n  m_versusDialogIndex = a1->m_versusDialogIndex;\n  v4 = 2;\n  if ( m_versusDialogIndex <= 5 )\n  {\n    if ( m_versusDialogIndex <= 2 )\n    {\n      if ( m_versusDialogIndex != 1 )\n      {\n        if ( m_versusDialogIndex != 2 )\n          goto LABEL_26;\n        v5 = \"I blame <cg>RobTop</c>.\";\n        goto LABEL_17;\n      }\n      v6 = \"Yea<d010>.<d010>.<d010>. It's still <cl>delayed</c>.\";\n    }\n    else if ( m_versusDialogIndex == 3 )\n    {\n      v6 = \"Who else could we <cr>blame</c>?\\nWe're not even real.\";\n    }\n    else\n    {\n      if ( m_versusDialogIndex == 4 )\n      {\n        std::string::assign(&v14, \"Speak for yourself <co>I'm real!</c>\");\n        std::string::assign(&v13, \"Scratch\");\n        v4 = 14;\n        goto LABEL_26;\n      }\n      v6 = \"<cl>Yea, a real pain in the<d010>.<d010>.<d010>.</c>\";\n    }\n    goto LABEL_25;\n  }\n  if ( m_versusDialogIndex > 8 )\n  {\n    if ( m_versusDialogIndex != 9 )\n    {\n      if ( m_versusDialogIndex == 10 )\n      {\n        std::string::assign(&v14, \".<d010>.<d010>.\");\n        std::string::assign(&v13, \"Scratch\");\n        v4 = 52;\n      }\n      else if ( m_versusDialogIndex == 11 )\n      {\n        std::string::assign(&v14, \".<d010>.<d010>.<d010>.<d010>.\");\n        v4 = 17;\n      }\n      goto LABEL_26;\n    }\n    v6 = \"You don't have a chop<d010>.<d010>.<d010>.\";\nLABEL_25:\n    std::string::assign(&v14, v6);\n    goto LABEL_26;\n  }\n  if ( m_versusDialogIndex == 6 )\n  {\n    std::string::assign(&v14, \"You're just <cr>mad</c> because you don't have a <cy>shop</c>.\");\n    std::string::assign(&v13, \"Scratch\");\n    v4 = 26;\n  }\n  else\n  {\n    if ( m_versusDialogIndex != 7 )\n    {\n      v5 = \"<co>I HAVE SAID TOO MUCH!\\nQUICKLY TO THE <i050><s260>CHOPPER!</s></i></c>\";\nLABEL_17:\n      std::string::assign(&v14, v5);\n      std::string::assign(&v13, \"Scratch\");\n      v4 = 10;\n      goto LABEL_26;\n    }\n    std::string::assign(&v14, \"You have a <cy>shop</c>?\");\n    v4 = 4;\n  }\nLABEL_26:\n  if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 )\n    sub_1000097D0(&__dst, v13.__r_.__value_.__l.__data_, v13.__r_.__value_.__l.__size_);\n  else\n    __dst = v13;\n  if ( SHIBYTE(v14.__r_.__value_.__r.__words[2]) < 0 )\n    sub_1000097D0(&__p, v14.__r_.__value_.__l.__data_, v14.__r_.__value_.__l.__size_);\n  else\n    __p = v14;\n  v7 = DialogObject::create((__int64)&__dst, (__int64)&__p, v4, 0, 0xFFFFFF, 1.0);\n  v8 = DialogLayer::create((DialogObject *)v7, 2);\n  if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(__p.__r_.__value_.__l.__data_);\n  if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(__dst.__r_.__value_.__l.__data_);\n  ((void (__fastcall *)(CreatorLayer *, DialogLayer *, __int64))a1->addChild_0)(a1, v8, 100);\n  DialogLayer::updateChatPlacement(v8, Center);\n  DialogLayer::animateInRandomSide(v8);\n  v9 = a1->m_versusDialogIndex;\n  if ( v9 <= 10 )\n    v10 = v9 + 1;\n  else\n    v10 = 0;\n  a1->m_versusDialogIndex = v10;\n  if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(v13.__r_.__value_.__l.__data_);\n  if ( SHIBYTE(v14.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(v14.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; CreatorLayer::onMultiplayer from 0x1000b5d80 to 0x1000b6040 (704 bytes)\n; \n; 1 xrefs:\n; > CreatorLayer::init @ 0x1000b53b4\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\nSUB             SP, SP, #0x90                                          ; +0x0, 0x1000b5d80\nSTP             X20, X19, [SP,#0x80+var_10]                            ; +0x4, 0x1000b5d84\nSTP             X29, X30, [SP,#0x80+var_s0]                            ; +0x8, 0x1000b5d88\nADD             X29, SP, #0x80                                         ; +0xc, 0x1000b5d8c\nMOV             X19, X0                                                ; +0x10, 0x1000b5d90\nADRL            X1, aVersusModeHasB; \"Versus mode has been <co>delayed</c>,\\n\"... ; +0x14, 0x1000b5d94\nSUB             X0, X29, #-var_28; int                                 ; +0x1c, 0x1000b5d9c\nBL              sub_100009900                                          ; +0x20, 0x1000b5da0\nADRL            X1, aTheKeymaster; \"The Keymaster\"                     ; +0x24, 0x1000b5da4\nADD             X0, SP, #0x80+var_40; int                              ; +0x2c, 0x1000b5dac\nBL              sub_100009900                                          ; +0x30, 0x1000b5db0\nLDR             W8, [X19,#0x1BC]                                       ; +0x34, 0x1000b5db4\nMOV             W20, #2                                                ; +0x38, 0x1000b5db8\nCMP             W8, #5                                                 ; +0x3c, 0x1000b5dbc\nB.LE            loc_1000B5DF0                                          ; +0x40, 0x1000b5dc0\nCMP             W8, #8                                                 ; +0x44, 0x1000b5dc4\nB.GT            loc_1000B5E1C                                          ; +0x48, 0x1000b5dc8\nCMP             W8, #6                                                 ; +0x4c, 0x1000b5dcc\nB.EQ            loc_1000B5F04                                          ; +0x50, 0x1000b5dd0\nCMP             W8, #7                                                 ; +0x54, 0x1000b5dd4\nB.EQ            loc_1000B5EB8                                          ; +0x58, 0x1000b5dd8\nCMP             W8, #8                                                 ; +0x5c, 0x1000b5ddc\nB.NE            loc_1000B5F3C                                          ; +0x60, 0x1000b5de0\nADRL            X1, aCoIHaveSaidToo; \"<co>I HAVE SAID TOO MUCH!\\nQUICKLY TO T\"... ; +0x64, 0x1000b5de4\nB               loc_1000B5E64                                          ; +0x6c, 0x1000b5dec\nCMP             W8, #2                                                 ; +0x70, 0x1000b5df0\nB.LE            loc_1000B5E4C                                          ; +0x74, 0x1000b5df4\nCMP             W8, #3                                                 ; +0x78, 0x1000b5df8\nB.EQ            loc_1000B5EF8                                          ; +0x7c, 0x1000b5dfc\nCMP             W8, #4                                                 ; +0x80, 0x1000b5e00\nB.EQ            loc_1000B5E90                                          ; +0x84, 0x1000b5e04\nCMP             W8, #5                                                 ; +0x88, 0x1000b5e08\nB.NE            loc_1000B5F3C                                          ; +0x8c, 0x1000b5e0c\nADRL            X1, aClYeaARealPain; \"<cl>Yea, a real pain in the<d010>.<d010\"... ; +0x90, 0x1000b5e10\nB               loc_1000B5F34                                          ; +0x98, 0x1000b5e18\nCMP             W8, #9                                                 ; +0x9c, 0x1000b5e1c\nB.EQ            loc_1000B5F2C                                          ; +0xa0, 0x1000b5e20\nCMP             W8, #0xA                                               ; +0xa4, 0x1000b5e24\nB.EQ            loc_1000B5ED0                                          ; +0xa8, 0x1000b5e28\nCMP             W8, #0xB                                               ; +0xac, 0x1000b5e2c\nB.NE            loc_1000B5F3C                                          ; +0xb0, 0x1000b5e30\nADRL            X1, aD010D010D010D0; \".<d010>.<d010>.<d010>.<d010>.\"   ; +0xb4, 0x1000b5e34\nSUB             X0, X29, #-var_28; this                                ; +0xbc, 0x1000b5e3c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xc0, 0x1000b5e40\nMOV             W20, #0x11                                             ; +0xc4, 0x1000b5e44\nB               loc_1000B5F3C                                          ; +0xc8, 0x1000b5e48\nCMP             W8, #1                                                 ; +0xcc, 0x1000b5e4c\nB.EQ            loc_1000B5E84                                          ; +0xd0, 0x1000b5e50\nCMP             W8, #2                                                 ; +0xd4, 0x1000b5e54\nB.NE            loc_1000B5F3C                                          ; +0xd8, 0x1000b5e58\nADRL            X1, aIBlameCgRobtop; \"I blame <cg>RobTop</c>.\"         ; +0xdc, 0x1000b5e5c\nSUB             X0, X29, #-var_28; this                                ; +0xe4, 0x1000b5e64\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xe8, 0x1000b5e68\nADRL            X1, aScratch; \"Scratch\"                                ; +0xec, 0x1000b5e6c\nADD             X0, SP, #0x80+var_40; this                             ; +0xf4, 0x1000b5e74\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xf8, 0x1000b5e78\nMOV             W20, #0xA                                              ; +0xfc, 0x1000b5e7c\nB               loc_1000B5F3C                                          ; +0x100, 0x1000b5e80\nADRL            X1, aYeaD010D010D01; \"Yea<d010>.<d010>.<d010>. It's still <cl\"... ; +0x104, 0x1000b5e84\nB               loc_1000B5F34                                          ; +0x10c, 0x1000b5e8c\nADRL            X1, aSpeakForYourse; \"Speak for yourself <co>I'm real!</c>\" ; +0x110, 0x1000b5e90\nSUB             X0, X29, #-var_28; this                                ; +0x118, 0x1000b5e98\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x11c, 0x1000b5e9c\nADRL            X1, aScratch; \"Scratch\"                                ; +0x120, 0x1000b5ea0\nADD             X0, SP, #0x80+var_40; this                             ; +0x128, 0x1000b5ea8\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x12c, 0x1000b5eac\nMOV             W20, #0xE                                              ; +0x130, 0x1000b5eb0\nB               loc_1000B5F3C                                          ; +0x134, 0x1000b5eb4\nADRL            X1, aYouHaveACyShop; \"You have a <cy>shop</c>?\"        ; +0x138, 0x1000b5eb8\nSUB             X0, X29, #-var_28; this                                ; +0x140, 0x1000b5ec0\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x144, 0x1000b5ec4\nMOV             W20, #4                                                ; +0x148, 0x1000b5ec8\nB               loc_1000B5F3C                                          ; +0x14c, 0x1000b5ecc\nADRL            X1, aD010D010; \".<d010>.<d010>.\"                       ; +0x150, 0x1000b5ed0\nSUB             X0, X29, #-var_28; this                                ; +0x158, 0x1000b5ed8\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x15c, 0x1000b5edc\nADRL            X1, aScratch; \"Scratch\"                                ; +0x160, 0x1000b5ee0\nADD             X0, SP, #0x80+var_40; this                             ; +0x168, 0x1000b5ee8\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x16c, 0x1000b5eec\nMOV             W20, #0x34 ; '4'                                       ; +0x170, 0x1000b5ef0\nB               loc_1000B5F3C                                          ; +0x174, 0x1000b5ef4\nADRL            X1, aWhoElseCouldWe; \"Who else could we <cr>blame</c>?\\nWe're\"... ; +0x178, 0x1000b5ef8\nB               loc_1000B5F34                                          ; +0x180, 0x1000b5f00\nADRL            X1, aYouReJustCrMad; \"You're just <cr>mad</c> because you don\"... ; +0x184, 0x1000b5f04\nSUB             X0, X29, #-var_28; this                                ; +0x18c, 0x1000b5f0c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x190, 0x1000b5f10\nADRL            X1, aScratch; \"Scratch\"                                ; +0x194, 0x1000b5f14\nADD             X0, SP, #0x80+var_40; this                             ; +0x19c, 0x1000b5f1c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x1a0, 0x1000b5f20\nMOV             W20, #0x1A                                             ; +0x1a4, 0x1000b5f24\nB               loc_1000B5F3C                                          ; +0x1a8, 0x1000b5f28\nADRL            X1, aYouDonTHaveACh; \"You don't have a chop<d010>.<d010>.<d01\"... ; +0x1ac, 0x1000b5f2c\nSUB             X0, X29, #-var_28; this                                ; +0x1b4, 0x1000b5f34\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x1b8, 0x1000b5f38\nLDRSB           W8, [SP,#0x80+var_40.__r_.__value_+0x17]               ; +0x1bc, 0x1000b5f3c\nTBNZ            W8, #0x1F, loc_1000B5F58                               ; +0x1c0, 0x1000b5f40\nLDR             Q0, [SP,#0x80+var_40]                                  ; +0x1c4, 0x1000b5f44\nSTR             Q0, [SP,#0x80+__dst]                                   ; +0x1c8, 0x1000b5f48\nLDR             X8, [SP,#0x50]                                         ; +0x1cc, 0x1000b5f4c\nSTR             X8, [SP,#0x80+var_50]                                  ; +0x1d0, 0x1000b5f50\nB               loc_1000B5F64                                          ; +0x1d4, 0x1000b5f54\nLDP             X1, X2, [SP,#0x80+var_40]; __src                       ; +0x1d8, 0x1000b5f58\nADD             X0, SP, #0x80+__dst; __dst                             ; +0x1dc, 0x1000b5f5c\nBL              sub_1000097D0                                          ; +0x1e0, 0x1000b5f60\nLDURSB          W8, [X29,#var_28.__r_.__value_+0x17]                   ; +0x1e4, 0x1000b5f64\nTBNZ            W8, #0x1F, loc_1000B5F80                               ; +0x1e8, 0x1000b5f68\nLDUR            Q0, [X29,#var_28]                                      ; +0x1ec, 0x1000b5f6c\nSTR             Q0, [SP,#0x80+__p]                                     ; +0x1f0, 0x1000b5f70\nLDUR            X8, [X29,#-0x18]                                       ; +0x1f4, 0x1000b5f74\nSTR             X8, [SP,#0x80+var_70]                                  ; +0x1f8, 0x1000b5f78\nB               loc_1000B5F8C                                          ; +0x1fc, 0x1000b5f7c\nLDP             X1, X2, [X29,#var_28]; __src                           ; +0x200, 0x1000b5f80\nMOV             X0, SP; __dst                                          ; +0x204, 0x1000b5f84\nBL              sub_1000097D0                                          ; +0x208, 0x1000b5f88\nADD             X0, SP, #0x80+__dst                                    ; +0x20c, 0x1000b5f8c\nMOV             X1, SP                                                 ; +0x210, 0x1000b5f90\nFMOV            S0, #1.0                                               ; +0x214, 0x1000b5f94\nMOV             X2, X20                                                ; +0x218, 0x1000b5f98\nMOV             W3, #0                                                 ; +0x21c, 0x1000b5f9c\nMOV             W4, #0xFFFFFF                                          ; +0x220, 0x1000b5fa0\nBL              DialogObject__create                                   ; +0x224, 0x1000b5fa4\nMOV             W1, #2                                                 ; +0x228, 0x1000b5fa8\nBL              DialogLayer__create                                    ; +0x22c, 0x1000b5fac\nMOV             X20, X0                                                ; +0x230, 0x1000b5fb0\nLDRSB           W8, [SP,#0x80+var_70+7]                                ; +0x234, 0x1000b5fb4\nTBZ             W8, #0x1F, loc_1000B5FC4                               ; +0x238, 0x1000b5fb8\nLDR             X0, [SP,#0x80+__p]; __p                                ; +0x23c, 0x1000b5fbc\nBL              __ZdlPv; operator delete(void *)                       ; +0x240, 0x1000b5fc0\nLDRSB           W8, [SP,#0x80+var_50+7]                                ; +0x244, 0x1000b5fc4\nTBZ             W8, #0x1F, loc_1000B5FD4                               ; +0x248, 0x1000b5fc8\nLDR             X0, [SP,#0x80+__dst]; __p                              ; +0x24c, 0x1000b5fcc\nBL              __ZdlPv; operator delete(void *)                       ; +0x250, 0x1000b5fd0\nLDR             X8, [X19]                                              ; +0x254, 0x1000b5fd4\nLDR             X8, [X8,#0x1C0]                                        ; +0x258, 0x1000b5fd8\nMOV             X0, X19                                                ; +0x25c, 0x1000b5fdc\nMOV             X1, X20                                                ; +0x260, 0x1000b5fe0\nMOV             W2, #0x64 ; 'd'                                        ; +0x264, 0x1000b5fe4\nBLR             X8                                                     ; +0x268, 0x1000b5fe8\nMOV             X0, X20                                                ; +0x26c, 0x1000b5fec\nMOV             W1, #0                                                 ; +0x270, 0x1000b5ff0\nBL              DialogLayer__updateChatPlacement                       ; +0x274, 0x1000b5ff4\nMOV             X0, X20                                                ; +0x278, 0x1000b5ff8\nBL              DialogLayer__animateInRandomSide                       ; +0x27c, 0x1000b5ffc\nLDR             W8, [X19,#0x1BC]                                       ; +0x280, 0x1000b6000\nCMP             W8, #0xA                                               ; +0x284, 0x1000b6004\nCSINC           W8, WZR, W8, GT                                        ; +0x288, 0x1000b6008\nSTR             W8, [X19,#0x1BC]                                       ; +0x28c, 0x1000b600c\nLDRSB           W8, [SP,#0x80+var_40.__r_.__value_+0x17]               ; +0x290, 0x1000b6010\nTBZ             W8, #0x1F, loc_1000B6020                               ; +0x294, 0x1000b6014\nLDR             X0, [SP,#0x80+var_40]; __p                             ; +0x298, 0x1000b6018\nBL              __ZdlPv; operator delete(void *)                       ; +0x29c, 0x1000b601c\nLDURSB          W8, [X29,#var_28.__r_.__value_+0x17]                   ; +0x2a0, 0x1000b6020\nTBZ             W8, #0x1F, loc_1000B6030                               ; +0x2a4, 0x1000b6024\nLDUR            X0, [X29,#var_28]; __p                                 ; +0x2a8, 0x1000b6028\nBL              __ZdlPv; operator delete(void *)                       ; +0x2ac, 0x1000b602c\nLDP             X29, X30, [SP,#0x80+var_s0]                            ; +0x2b0, 0x1000b6030\nLDP             X20, X19, [SP,#0x80+var_10]                            ; +0x2b4, 0x1000b6034\nADD             SP, SP, #0x90                                          ; +0x2b8, 0x1000b6038\nRET                                                                    ; +0x2bc, 0x1000b603c", "xrefs": ["CreatorLayer::init @ 0x1000b53b4"], "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"}