{"type": "func", "start": 4296983544, "end": 4296983984, "name": "GJBaseGameLayer::spawnObject", "pseudocode": "// \n// GJBaseGameLayer::spawnObject from 0x1001ec3f8 to 0x1001ec5b0 (440 bytes)\n// \n// 4 xrefs:\n// > sub_1001EDB9C @ 0x1001edba0\n// > <???> @ 0x10078fd68\n// > <???> @ 0x1007c0b80\n// > <???> @ 0x1007f42e0\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::spawnObject(\n        GJBaseGameLayer *a1,\n        GameObject *a2,\n        double a3,\n        std::vector<int> *const a4)\n{\n  GJBaseGameLayer *v8; // x0\n  std::unordered_map<int, int> v9; // [xsp+0h] [xbp-60h] BYREF\n\n  if ( !a1->m_spawnAbuse )\n  {\n    if ( a2->m_classType == Effect )\n    {\n      if ( !a2->m_isGroupDisabled\n        && (a2[1].m_bUseChildIndex || (((__int64 (__fastcall *)(GameObject *))a2->hasBeenActivated)(a2) & 1) == 0)\n        && BYTE1(a2[1].m_sAdditionalTransform.b) == 1\n        && GameObject::isSpawnableTrigger(a2) )\n      {\n        if ( a4->__begin_ == a4->__end_ )\n        {\n          ((void (__fastcall *)(GameObject *, float))a2->triggerActivated)(a2, 0.0);\n          if ( a2->m_objectID == 1268 )\n          {\n            SpawnTriggerGameObject::updateRemapKeys((SpawnTriggerGameObject *)a2, a4);\n            *(double *)&a2[1].m_sQuad.br.colors.r = a3;\n          }\n          ((void (__fastcall *)(GameObject *, GJBaseGameLayer *, _QWORD, std::vector<int> *const))a2->triggerObject)(\n            a2,\n            a1,\n            0,\n            a4);\n        }\n        else\n        {\n          memset(&v9, 0, 32);\n          v9.__table_.__p3_.__value_ = 1.0;\n          GJBaseGameLayer::applyRemap(a1, (EffectGameObject *)a2, a4, &v9);\n          ((void (__fastcall *)(GameObject *, float))a2->triggerActivated)(a2, 0.0);\n          if ( a2->m_objectID == 1268 )\n          {\n            SpawnTriggerGameObject::updateRemapKeys((SpawnTriggerGameObject *)a2, a4);\n            *(double *)&a2[1].m_sQuad.br.colors.r = a3;\n          }\n          v8 = (GJBaseGameLayer *)((__int64 (__fastcall *)(GameObject *, GJBaseGameLayer *, _QWORD, std::vector<int> *const))a2->triggerObject)(\n                                    a2,\n                                    a1,\n                                    0,\n                                    a4);\n          if ( a4->__begin_ != a4->__end_ )\n            GJBaseGameLayer::restoreRemap(v8, (EffectGameObject *)a2, &v9);\n          sub_100017A98((__int64)&v9);\n        }\n      }\n    }\n    else\n    {\n      ((void (__fastcall *)(GameObject *, double))a2->animationTriggered)(a2, a3);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::spawnObject from 0x1001ec3f8 to 0x1001ec5b0 (440 bytes)\n; \n; 4 xrefs:\n; > sub_1001EDB9C @ 0x1001edba0\n; > <???> @ 0x10078fd68\n; > <???> @ 0x1007c0b80\n; > <???> @ 0x1007f42e0\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, #0x70                                          ; +0x0, 0x1001ec3f8\nSTP             D9, D8, [SP,#0x60+var_30]                              ; +0x4, 0x1001ec3fc\nSTP             X22, X21, [SP,#0x60+var_20]                            ; +0x8, 0x1001ec400\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0xc, 0x1001ec404\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x10, 0x1001ec408\nADD             X29, SP, #0x60                                         ; +0x14, 0x1001ec40c\nMOV             W8, #0x3298                                            ; +0x18, 0x1001ec410\nLDRB            W8, [X0,X8]                                            ; +0x1c, 0x1001ec414\nTBZ             W8, #0, loc_1001EC434                                  ; +0x20, 0x1001ec418\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0x24, 0x1001ec41c\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0x28, 0x1001ec420\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0x2c, 0x1001ec424\nLDP             D9, D8, [SP,#0x60+var_30]                              ; +0x30, 0x1001ec428\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x34, 0x1001ec42c\nRET                                                                    ; +0x38, 0x1001ec430\nMOV             X19, X1                                                ; +0x3c, 0x1001ec434\nLDR             W8, [X1,#0x4E0]                                        ; +0x40, 0x1001ec438\nCMP             W8, #1                                                 ; +0x44, 0x1001ec43c\nB.NE            loc_1001EC52C                                          ; +0x48, 0x1001ec440\nLDRB            W8, [X19,#0x28A]                                       ; +0x4c, 0x1001ec444\nTBNZ            W8, #0, loc_1001EC41C                                  ; +0x50, 0x1001ec448\nMOV             X20, X2                                                ; +0x54, 0x1001ec44c\nFMOV            D8, D0                                                 ; +0x58, 0x1001ec450\nMOV             X21, X0                                                ; +0x5c, 0x1001ec454\nLDRB            W8, [X19,#0x680]                                       ; +0x60, 0x1001ec458\nTBNZ            W8, #0, loc_1001EC474                                  ; +0x64, 0x1001ec45c\nLDR             X8, [X19]                                              ; +0x68, 0x1001ec460\nLDR             X8, [X8,#0x600]                                        ; +0x6c, 0x1001ec464\nMOV             X0, X19                                                ; +0x70, 0x1001ec468\nBLR             X8                                                     ; +0x74, 0x1001ec46c\nTBNZ            W0, #0, loc_1001EC41C                                  ; +0x78, 0x1001ec470\nLDRB            W8, [X19,#0x5C1]                                       ; +0x7c, 0x1001ec474\nCMP             W8, #1                                                 ; +0x80, 0x1001ec478\nB.NE            loc_1001EC41C                                          ; +0x84, 0x1001ec47c\nMOV             X0, X19                                                ; +0x88, 0x1001ec480\nBL              GameObject__isSpawnableTrigger                         ; +0x8c, 0x1001ec484\nCBZ             W0, loc_1001EC41C                                      ; +0x90, 0x1001ec488\nLDP             X8, X9, [X20]                                          ; +0x94, 0x1001ec48c\nCMP             X8, X9                                                 ; +0x98, 0x1001ec490\nB.EQ            loc_1001EC550                                          ; +0x9c, 0x1001ec494\nMOVI            V0.16B, #0                                             ; +0xa0, 0x1001ec498\nSTP             Q0, Q0, [SP,#0x60+var_60]                              ; +0xa4, 0x1001ec49c\nMOV             W8, #0x3F800000                                        ; +0xa8, 0x1001ec4a0\nSTR             W8, [SP,#0x60+var_40]                                  ; +0xac, 0x1001ec4a4\nMOV             X3, SP                                                 ; +0xb0, 0x1001ec4a8\nMOV             X0, X21                                                ; +0xb4, 0x1001ec4ac\nMOV             X1, X19                                                ; +0xb8, 0x1001ec4b0\nMOV             X2, X20                                                ; +0xbc, 0x1001ec4b4\nBL              GJBaseGameLayer__applyRemap                            ; +0xc0, 0x1001ec4b8\nLDR             X8, [X19]                                              ; +0xc4, 0x1001ec4bc\nLDR             X8, [X8,#0x5C0]                                        ; +0xc8, 0x1001ec4c0\nFMOV            S0, WZR                                                ; +0xcc, 0x1001ec4c4\nMOV             X0, X19                                                ; +0xd0, 0x1001ec4c8\nBLR             X8                                                     ; +0xd4, 0x1001ec4cc\nLDR             W8, [X19,#0x404]                                       ; +0xd8, 0x1001ec4d0\nCMP             W8, #0x4F4                                             ; +0xdc, 0x1001ec4d4\nB.NE            loc_1001EC4EC                                          ; +0xe0, 0x1001ec4d8\nMOV             X0, X19                                                ; +0xe4, 0x1001ec4dc\nMOV             X1, X20                                                ; +0xe8, 0x1001ec4e0\nBL              SpawnTriggerGameObject__updateRemapKeys                ; +0xec, 0x1001ec4e4\nSTR             D8, [X19,#0x768]                                       ; +0xf0, 0x1001ec4e8\nLDR             X8, [X19]                                              ; +0xf4, 0x1001ec4ec\nLDR             X8, [X8,#0x500]                                        ; +0xf8, 0x1001ec4f0\nMOV             X0, X19                                                ; +0xfc, 0x1001ec4f4\nMOV             X1, X21                                                ; +0x100, 0x1001ec4f8\nMOV             W2, #0                                                 ; +0x104, 0x1001ec4fc\nMOV             X3, X20                                                ; +0x108, 0x1001ec500\nBLR             X8                                                     ; +0x10c, 0x1001ec504\nLDP             X8, X9, [X20]                                          ; +0x110, 0x1001ec508\nCMP             X8, X9                                                 ; +0x114, 0x1001ec50c\nB.EQ            loc_1001EC520                                          ; +0x118, 0x1001ec510\nMOV             X2, SP                                                 ; +0x11c, 0x1001ec514\nMOV             X1, X19                                                ; +0x120, 0x1001ec518\nBL              GJBaseGameLayer__restoreRemap                          ; +0x124, 0x1001ec51c\nMOV             X0, SP                                                 ; +0x128, 0x1001ec520\nBL              sub_100017A98                                          ; +0x12c, 0x1001ec524\nB               loc_1001EC41C                                          ; +0x130, 0x1001ec528\nLDR             X8, [X19]                                              ; +0x134, 0x1001ec52c\nLDR             X1, [X8,#0x5E0]                                        ; +0x138, 0x1001ec530\nMOV             X0, X19                                                ; +0x13c, 0x1001ec534\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0x140, 0x1001ec538\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0x144, 0x1001ec53c\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0x148, 0x1001ec540\nLDP             D9, D8, [SP,#0x60+var_30]                              ; +0x14c, 0x1001ec544\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x150, 0x1001ec548\nBR              X1                                                     ; +0x154, 0x1001ec54c\nLDR             X8, [X19]                                              ; +0x158, 0x1001ec550\nLDR             X8, [X8,#0x5C0]                                        ; +0x15c, 0x1001ec554\nFMOV            S0, WZR                                                ; +0x160, 0x1001ec558\nMOV             X0, X19                                                ; +0x164, 0x1001ec55c\nBLR             X8                                                     ; +0x168, 0x1001ec560\nLDR             W8, [X19,#0x404]                                       ; +0x16c, 0x1001ec564\nCMP             W8, #0x4F4                                             ; +0x170, 0x1001ec568\nB.NE            loc_1001EC580                                          ; +0x174, 0x1001ec56c\nMOV             X0, X19                                                ; +0x178, 0x1001ec570\nMOV             X1, X20                                                ; +0x17c, 0x1001ec574\nBL              SpawnTriggerGameObject__updateRemapKeys                ; +0x180, 0x1001ec578\nSTR             D8, [X19,#0x768]                                       ; +0x184, 0x1001ec57c\nLDR             X8, [X19]                                              ; +0x188, 0x1001ec580\nLDR             X4, [X8,#0x500]                                        ; +0x18c, 0x1001ec584\nMOV             X0, X19                                                ; +0x190, 0x1001ec588\nMOV             X1, X21                                                ; +0x194, 0x1001ec58c\nMOV             W2, #0                                                 ; +0x198, 0x1001ec590\nMOV             X3, X20                                                ; +0x19c, 0x1001ec594\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0x1a0, 0x1001ec598\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0x1a4, 0x1001ec59c\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0x1a8, 0x1001ec5a0\nLDP             D9, D8, [SP,#0x60+var_30]                              ; +0x1ac, 0x1001ec5a4\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x1b0, 0x1001ec5a8\nBR              X4                                                     ; +0x1b4, 0x1001ec5ac", "xrefs": ["sub_1001EDB9C @ 0x1001edba0", "<???> @ 0x10078fd68", "<???> @ 0x1007c0b80", "<???> @ 0x1007f42e0"], "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"}