{"type": "func", "start": 4298019088, "end": 4298019327, "name": "GJEffectManager::spawnObject", "pseudocode": "// \n// GJEffectManager::spawnObject from 0x1002e9110 to 0x1002e91ff (239 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::spawnGroup @ 0x10012cd27\n// > GJBaseGameLayer::spawnObjectsInOrder @ 0x10012ce2b\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 GJEffectManager::spawnObject(\n        GJEffectManager *a1,\n        GameObject *a2,\n        float a3,\n        std::vector<int> *const a4,\n        int a5,\n        int a6)\n{\n  std::__vector_base<SpawnTriggerAction>::pointer end; // r14\n  int v7; // r12d\n  int v8; // r13d\n  SpawnTriggerAction *v9; // r14\n  GameObject *v10; // [rsp+0h] [rbp-40h] BYREF\n  float v11; // [rsp+Ch] [rbp-34h] BYREF\n  int v12; // [rsp+10h] [rbp-30h] BYREF\n  int v13[11]; // [rsp+14h] [rbp-2Ch] BYREF\n\n  v10 = a2;\n  v11 = a3;\n  v12 = a5;\n  v13[0] = a6;\n  if ( a2 )\n  {\n    end = a1->m_spawnTriggerActions.__end_;\n    if ( end >= a1->m_spawnTriggerActions.__end_cap_.__value_ )\n    {\n      v9 = (SpawnTriggerAction *)((__int64 (__fastcall *)(std::vector<SpawnTriggerAction> *, GameObject **, float *, std::vector<int> *const, int *, int *))sub_1002F4AD0)(\n                                   &a1->m_spawnTriggerActions,\n                                   &v10,\n                                   &v11,\n                                   a4,\n                                   &v12,\n                                   v13);\n    }\n    else\n    {\n      *(_WORD *)&end->m_finished = 0;\n      *(_OWORD *)&end->m_deltaTime = 0;\n      *(_QWORD *)((char *)&end->m_triggerUniqueID + 1) = 0;\n      *(_OWORD *)&end->m_remapKeys.__begin_ = 0;\n      end->m_remapKeys.__end_cap_.__value_ = nullptr;\n      end->m_gameObject = a2;\n      end->m_duration = a3;\n      if ( &end->m_remapKeys != a4 )\n      {\n        v7 = a5;\n        v8 = a6;\n        sub_1000C51C0((char **)&end->m_remapKeys, (char *)a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);\n        a5 = v7;\n        a6 = v8;\n      }\n      end->m_triggerUniqueID = a5;\n      end->m_controlID = a6;\n      v9 = end + 1;\n      a1->m_spawnTriggerActions.__end_ = v9;\n    }\n    a1->m_spawnTriggerActions.__end_ = v9;\n  }\n}", "assembly": "; \n; GJEffectManager::spawnObject from 0x1002e9110 to 0x1002e91ff (239 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::spawnGroup @ 0x10012cd27\n; > GJBaseGameLayer::spawnObjectsInOrder @ 0x10012ce2b\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    rbp                                                            ; +0x0, 0x1002e9110\nmov     rbp, rsp                                                       ; +0x1, 0x1002e9111\npush    r15                                                            ; +0x4, 0x1002e9114\npush    r14                                                            ; +0x6, 0x1002e9116\npush    r13                                                            ; +0x8, 0x1002e9118\npush    r12                                                            ; +0xa, 0x1002e911a\npush    rbx                                                            ; +0xc, 0x1002e911c\nsub     rsp, 18h                                                       ; +0xd, 0x1002e911d\nmov     [rbp+var_40], rsi                                              ; +0x11, 0x1002e9121\nmovss   [rbp+var_34], xmm0                                             ; +0x15, 0x1002e9125\nmov     [rbp+var_30], ecx                                              ; +0x1a, 0x1002e912a\nmov     [rbp+var_2C], r8d                                              ; +0x1d, 0x1002e912d\ntest    rsi, rsi                                                       ; +0x21, 0x1002e9131\njz      loc_1002E91F0                                                  ; +0x24, 0x1002e9134\nmov     rbx, rdi                                                       ; +0x2a, 0x1002e913a\nmov     r14, [rdi+470h]                                                ; +0x2d, 0x1002e913d\ncmp     r14, [rdi+478h]                                                ; +0x34, 0x1002e9144\njnb     short loc_1002E91C4                                            ; +0x3b, 0x1002e914b\ncvtss2sd xmm0, xmm0                                                    ; +0x3d, 0x1002e914d\nmov     word ptr [r14], 0                                              ; +0x41, 0x1002e9151\nxorps   xmm1, xmm1                                                     ; +0x47, 0x1002e9157\nmovups  xmmword ptr [r14+10h], xmm1                                    ; +0x4a, 0x1002e915a\nmov     qword ptr [r14+1Dh], 0                                         ; +0x4f, 0x1002e915f\nlea     r15, [r14+30h]                                                 ; +0x57, 0x1002e9167\nmovups  xmmword ptr [r14+30h], xmm1                                    ; +0x5b, 0x1002e916b\nmov     qword ptr [r14+40h], 0                                         ; +0x60, 0x1002e9170\nmov     [r14+28h], rsi                                                 ; +0x68, 0x1002e9178\nmovsd   qword ptr [r14+8], xmm0                                        ; +0x6c, 0x1002e917c\ncmp     r15, rdx                                                       ; +0x72, 0x1002e9182\njz      short loc_1002E91AF                                            ; +0x75, 0x1002e9185\nmov     rsi, [rdx]                                                     ; +0x77, 0x1002e9187\nmov     rdx, [rdx+8]                                                   ; +0x7a, 0x1002e918a\nmov     rax, rdx                                                       ; +0x7e, 0x1002e918e\nsub     rax, rsi                                                       ; +0x81, 0x1002e9191\nsar     rax, 2                                                         ; +0x84, 0x1002e9194\nmov     rdi, r15                                                       ; +0x88, 0x1002e9198\nmov     r12d, ecx                                                      ; +0x8b, 0x1002e919b\nmov     rcx, rax                                                       ; +0x8e, 0x1002e919e\nmov     r13d, r8d                                                      ; +0x91, 0x1002e91a1\ncall    sub_1000C51C0                                                  ; +0x94, 0x1002e91a4\nmov     ecx, r12d                                                      ; +0x99, 0x1002e91a9\nmov     r8d, r13d                                                      ; +0x9c, 0x1002e91ac\nmov     [r14+1Ch], ecx                                                 ; +0x9f, 0x1002e91af\nmov     [r14+20h], r8d                                                 ; +0xa3, 0x1002e91b3\nadd     r14, 48h ; 'H'                                                 ; +0xa7, 0x1002e91b7\nmov     [rbx+470h], r14                                                ; +0xab, 0x1002e91bb\njmp     short loc_1002E91E9                                            ; +0xb2, 0x1002e91c2\nlea     rdi, [rbx+468h]                                                ; +0xb4, 0x1002e91c4\nlea     rsi, [rbp+var_40]                                              ; +0xbb, 0x1002e91cb\nlea     rax, [rbp+var_34]                                              ; +0xbf, 0x1002e91cf\nlea     r8, [rbp+var_30]                                               ; +0xc3, 0x1002e91d3\nlea     r9, [rbp+var_2C]                                               ; +0xc7, 0x1002e91d7\nmov     rcx, rdx                                                       ; +0xcb, 0x1002e91db\nmov     rdx, rax                                                       ; +0xce, 0x1002e91de\ncall    sub_1002F4AD0                                                  ; +0xd1, 0x1002e91e1\nmov     r14, rax                                                       ; +0xd6, 0x1002e91e6\nmov     [rbx+470h], r14                                                ; +0xd9, 0x1002e91e9\nadd     rsp, 18h                                                       ; +0xe0, 0x1002e91f0\npop     rbx                                                            ; +0xe4, 0x1002e91f4\npop     r12                                                            ; +0xe5, 0x1002e91f5\npop     r13                                                            ; +0xe7, 0x1002e91f7\npop     r14                                                            ; +0xe9, 0x1002e91f9\npop     r15                                                            ; +0xeb, 0x1002e91fb\npop     rbp                                                            ; +0xed, 0x1002e91fd\nretn                                                                   ; +0xee, 0x1002e91fe", "xrefs": ["GJBaseGameLayer::spawnGroup @ 0x10012cd27", "GJBaseGameLayer::spawnObjectsInOrder @ 0x10012ce2b"], "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"}