{"type": "func", "start": 4297011328, "end": 4297011508, "name": "GJBaseGameLayer::reAddToStickyGroup", "pseudocode": "// \n// GJBaseGameLayer::reAddToStickyGroup from 0x1001f3080 to 0x1001f3134 (180 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x10035a088\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 GJBaseGameLayer::reAddToStickyGroup(GJBaseGameLayer *a1, GameObject *a2)\n{\n  int v4; // w22\n  cocos2d::CCObject *v5; // x0\n  int m_uniqueID; // [xsp+0h] [xbp-30h] BYREF\n  int *p_m_uniqueID; // [xsp+8h] [xbp-28h] BYREF\n\n  LODWORD(p_m_uniqueID) = a2->m_uniqueID;\n  if ( sub_100018814(&a1->m_stickyGroups.__table_.__bucket_list_.__ptr_.__value_, (int *)&p_m_uniqueID)\n    && !a2->m_linkedGroup )\n  {\n    m_uniqueID = a2->m_uniqueID;\n    p_m_uniqueID = &m_uniqueID;\n    v4 = *((_DWORD *)sub_10001D150(\n                       (unsigned __int64)&a1->m_stickyGroups,\n                       &m_uniqueID,\n                       (__int64)&unk_10063A31C,\n                       &p_m_uniqueID)\n         + 5);\n    v5 = cocos2d::CCDictionary::objectForKey(a1->m_linkedGroupDict, v4);\n    if ( v5 )\n    {\n      sub_10024A2D0(v5, a2);\n      a2->m_linkedGroup = v4;\n      LODWORD(p_m_uniqueID) = a2->m_uniqueID;\n      sub_10001B104(&a1->m_stickyGroups.__table_.__bucket_list_.__ptr_.__value_, (int *)&p_m_uniqueID);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::reAddToStickyGroup from 0x1001f3080 to 0x1001f3134 (180 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x10035a088\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, #0x40                                          ; +0x0, 0x1001f3080\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1001f3084\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1001f3088\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1001f308c\nADD             X29, SP, #0x30                                         ; +0x10, 0x1001f3090\nMOV             X20, X1                                                ; +0x14, 0x1001f3094\nMOV             X19, X0                                                ; +0x18, 0x1001f3098\nMOV             W21, #0x34C8                                           ; +0x1c, 0x1001f309c\nLDR             W8, [X1,#0x394]                                        ; +0x20, 0x1001f30a0\nSTR             W8, [SP,#0x30+var_28]                                  ; +0x24, 0x1001f30a4\nADD             X0, X0, X21                                            ; +0x28, 0x1001f30a8\nADD             X1, SP, #0x30+var_28                                   ; +0x2c, 0x1001f30ac\nBL              sub_100018814                                          ; +0x30, 0x1001f30b0\nCBZ             X0, loc_1001F3120                                      ; +0x34, 0x1001f30b4\nLDR             W8, [X20,#0x368]                                       ; +0x38, 0x1001f30b8\nCBNZ            W8, loc_1001F3120                                      ; +0x3c, 0x1001f30bc\nLDR             W8, [X20,#0x394]                                       ; +0x40, 0x1001f30c0\nSTR             W8, [SP,#0x30+var_30]                                  ; +0x44, 0x1001f30c4\nMOV             X8, SP                                                 ; +0x48, 0x1001f30c8\nSTR             X8, [SP,#0x30+var_28]                                  ; +0x4c, 0x1001f30cc\nADRL            X2, unk_10063A31C                                      ; +0x50, 0x1001f30d0\nADD             X0, X19, X21                                           ; +0x58, 0x1001f30d8\nMOV             X1, SP                                                 ; +0x5c, 0x1001f30dc\nADD             X3, SP, #0x30+var_28                                   ; +0x60, 0x1001f30e0\nADD             X4, SP, #0x30+var_29                                   ; +0x64, 0x1001f30e4\nBL              sub_10001D150                                          ; +0x68, 0x1001f30e8\nLDR             W22, [X0,#0x14]                                        ; +0x6c, 0x1001f30ec\nLDR             X0, [X19,#0xEB8]                                       ; +0x70, 0x1001f30f0\nSXTW            X1, W22                                                ; +0x74, 0x1001f30f4\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x78, 0x1001f30f8\nCBZ             X0, loc_1001F3120                                      ; +0x7c, 0x1001f30fc\nMOV             X1, X20                                                ; +0x80, 0x1001f3100\nBL              sub_10024A2D0                                          ; +0x84, 0x1001f3104\nSTR             W22, [X20,#0x368]                                      ; +0x88, 0x1001f3108\nLDR             W8, [X20,#0x394]                                       ; +0x8c, 0x1001f310c\nSTR             W8, [SP,#0x30+var_28]                                  ; +0x90, 0x1001f3110\nADD             X0, X19, X21                                           ; +0x94, 0x1001f3114\nADD             X1, SP, #0x30+var_28                                   ; +0x98, 0x1001f3118\nBL              sub_10001B104                                          ; +0x9c, 0x1001f311c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa0, 0x1001f3120\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa4, 0x1001f3124\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xa8, 0x1001f3128\nADD             SP, SP, #0x40 ; '@'                                    ; +0xac, 0x1001f312c\nRET                                                                    ; +0xb0, 0x1001f3130", "xrefs": ["LevelEditorLayer::addSpecial @ 0x10035a088"], "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"}