{"type": "func", "start": 4768868, "end": 4769186, "name": "GJBaseGameLayer::spawnObject", "pseudocode": "// \n// GJBaseGameLayer::spawnObject from 0x48c464 to 0x48c5a2 (318 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'GJBaseGameLayer::spawnObject @ 0x48c5ac\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 GJBaseGameLayer::spawnObject(GJBaseGameLayer *a1, GameObject *a2, double a3, std::vector<int> *const a4)\n{\n  _BYTE v7[4]; // [sp+14h] [bp-24h] BYREF\n  std::unordered_map<int, int> v8; // [sp+18h] [bp-20h] BYREF\n\n  if ( !a1->m_spawnAbuse )\n  {\n    if ( a2->m_classType == Effect )\n    {\n      if ( !a2->m_isGroupDisabled\n        && (LOBYTE(a2[1].m_transformToBatch.tx) || !((int (__fastcall *)(GameObject *))a2->hasBeenActivated)(a2))\n        && BYTE1(a2[1].m_sAdditionalTransform.d)\n        && GameObject::isSpawnableTrigger(a2) )\n      {\n        if ( a4->m_start == a4->m_finish )\n        {\n          ((void (__fastcall *)(GameObject *, _DWORD))a2->triggerActivated)(a2, 0);\n          if ( a2->m_objectID == 1268 )\n          {\n            SpawnTriggerGameObject::updateRemapKeys((SpawnTriggerGameObject *)a2, a4);\n            *(double *)&a2[1].m_fTextureTop = a3;\n          }\n          a2->triggerObject(a2, a1, 0, a4);\n        }\n        else\n        {\n          std::_Hashtable<int,std::pair<int const,int>,std::allocator<std::pair<int const,int>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::_Hashtable(\n            &v8,\n            10);\n          GJBaseGameLayer::applyRemap(a1, (EffectGameObject *)a2, a4, &v8);\n          ((void (__fastcall *)(GameObject *, _DWORD))a2->triggerActivated)(a2, 0);\n          if ( a2->m_objectID == 1268 )\n          {\n            SpawnTriggerGameObject::updateRemapKeys((SpawnTriggerGameObject *)a2, a4);\n            *(double *)&a2[1].m_fTextureTop = a3;\n          }\n          ((void (__fastcall *)(GameObject *, GJBaseGameLayer *, _DWORD, std::vector<int> *const, _BYTE *))a2->triggerObject)(\n            a2,\n            a1,\n            0,\n            a4,\n            v7);\n          if ( a4->m_start != a4->m_finish )\n            GJBaseGameLayer::restoreRemap(a1, (EffectGameObject *)a2, &v8);\n          std::_Hashtable<int,std::pair<int const,int>,std::allocator<std::pair<int const,int>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable((int)&v8);\n        }\n      }\n    }\n    else\n    {\n      a2->animationTriggered(a2);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::spawnObject from 0x48c464 to 0x48c5a2 (318 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'GJBaseGameLayer::spawnObject @ 0x48c5ac\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, 0x48c464\nMOV             R9, R3                                                 ; +0x4, 0x48c468\nLDR             R3, =(__stack_chk_guard_ptr - 0x48C476)                ; +0x6, 0x48c46a\nMOV             R8, R2                                                 ; +0x8, 0x48c46c\nSUB             SP, SP, #0x38                                          ; +0xa, 0x48c46e\nMOV             R6, R0                                                 ; +0xc, 0x48c470\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xe, 0x48c472\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x10, 0x48c474\nMOV             R4, R1                                                 ; +0x12, 0x48c476\nLDR             R5, [SP,#0x38+arg_0]                                   ; +0x14, 0x48c478\nLDR             R2, [R3]                                               ; +0x16, 0x48c47a\nMOV             R10, R3                                                ; +0x18, 0x48c47c\nSTR             R2, [SP,#0x38+var_4]                                   ; +0x1a, 0x48c47e\nMOVW            R2, #0x2C0C                                            ; +0x1c, 0x48c480\nLDRB            R2, [R0,R2]                                            ; +0x20, 0x48c484\nCMP             R2, #0                                                 ; +0x22, 0x48c486\nBNE.W           loc_48C58E                                             ; +0x24, 0x48c488\nLDR.W           R3, [R1,#0x434]                                        ; +0x28, 0x48c48c\nCMP             R3, #1                                                 ; +0x2c, 0x48c490\nBNE             loc_48C4BA                                             ; +0x2e, 0x48c492\nLDRB.W          R3, [R1,#0x226]                                        ; +0x30, 0x48c494\nCMP             R3, #0                                                 ; +0x34, 0x48c498\nBNE             loc_48C58E                                             ; +0x36, 0x48c49a\nLDRB.W          R3, [R1,#0x5C4]                                        ; +0x38, 0x48c49c\nCBZ             R3, loc_48C4AA                                         ; +0x3c, 0x48c4a0\nLDRB.W          R3, [R4,#0x505]                                        ; +0x3e, 0x48c4a2\nCBNZ            R3, loc_48C4C6                                         ; +0x42, 0x48c4a6\nB               loc_48C58E                                             ; +0x44, 0x48c4a8\nLDR             R3, [R1]                                               ; +0x46, 0x48c4aa\nMOV             R0, R1                                                 ; +0x48, 0x48c4ac\nLDR.W           R3, [R3,#0x300]                                        ; +0x4a, 0x48c4ae\nBLX             R3                                                     ; +0x4e, 0x48c4b2\nCMP             R0, #0                                                 ; +0x50, 0x48c4b4\nBNE             loc_48C58E                                             ; +0x52, 0x48c4b6\nB               loc_48C4A2                                             ; +0x54, 0x48c4b8\nLDR             R3, [R1]                                               ; +0x56, 0x48c4ba\nMOV             R0, R1                                                 ; +0x58, 0x48c4bc\nLDR.W           R3, [R3,#0x2F0]                                        ; +0x5a, 0x48c4be\nBLX             R3                                                     ; +0x5e, 0x48c4c2\nB               loc_48C58E                                             ; +0x60, 0x48c4c4\nMOV             R0, R4; this                                           ; +0x62, 0x48c4c6\nBL              _ZN10GameObject18isSpawnableTriggerEv; GameObject::isSpawnableTrigger(void) ; +0x64, 0x48c4c8\nCMP             R0, #0                                                 ; +0x68, 0x48c4cc\nBEQ             loc_48C58E                                             ; +0x6a, 0x48c4ce\nLDM.W           R5, {R2,R3}                                            ; +0x6c, 0x48c4d0\nCMP             R2, R3                                                 ; +0x70, 0x48c4d4\nBEQ             loc_48C54A                                             ; +0x72, 0x48c4d6\nADD             R7, SP, #0x38+var_20                                   ; +0x74, 0x48c4d8\nADD             R3, SP, #0x38+var_24                                   ; +0x76, 0x48c4da\nMOVS            R1, #0xA                                               ; +0x78, 0x48c4dc\nSTR             R3, [SP,#0x38+var_38]                                  ; +0x7a, 0x48c4de\nADD             R2, SP, #0x38+var_2C                                   ; +0x7c, 0x48c4e0\nADD             R3, SP, #0x38+var_28                                   ; +0x7e, 0x48c4e2\nMOV             R0, R7                                                 ; +0x80, 0x48c4e4\nBL              _ZNSt10_HashtableIiSt4pairIKiiESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEEC2EjRKS9_RKS7_RKS3_; std::_Hashtable<int,std::pair<int const,int>,std::allocator<std::pair<int const,int>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::_Hashtable(uint,std::hash<int> const&,std::equal_to<int> const&,std::allocator<std::pair<int const,int>> const&) ; +0x82, 0x48c4e6\nMOV             R0, R6                                                 ; +0x86, 0x48c4ea\nMOV             R1, R4                                                 ; +0x88, 0x48c4ec\nMOV             R2, R5                                                 ; +0x8a, 0x48c4ee\nMOV             R3, R7                                                 ; +0x8c, 0x48c4f0\nBL              _ZN15GJBaseGameLayer10applyRemapEP16EffectGameObjectRKSt6vectorIiSaIiEERSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE; GJBaseGameLayer::applyRemap(EffectGameObject *,std::vector<int> const&,std::unordered_map<int,int> &) ; +0x8e, 0x48c4f2\nLDR             R3, [R4]                                               ; +0x92, 0x48c4f6\nMOV             R0, R4                                                 ; +0x94, 0x48c4f8\nMOVS            R1, #0                                                 ; +0x96, 0x48c4fa\nLDR.W           R3, [R3,#0x2E0]                                        ; +0x98, 0x48c4fc\nBLX             R3                                                     ; +0x9c, 0x48c500\nLDR.W           R2, [R4,#0x374]                                        ; +0x9e, 0x48c502\nMOVW            R3, #0x4F4                                             ; +0xa2, 0x48c506\nCMP             R2, R3                                                 ; +0xa6, 0x48c50a\nBNE             loc_48C51E                                             ; +0xa8, 0x48c50c\nMOV             R0, R4                                                 ; +0xaa, 0x48c50e\nMOV             R1, R5                                                 ; +0xac, 0x48c510\nBL              _ZN22SpawnTriggerGameObject15updateRemapKeysERKSt6vectorIiSaIiEE; SpawnTriggerGameObject::updateRemapKeys(std::vector<int> const&) ; +0xae, 0x48c512\nADD.W           R3, R4, #0x680                                         ; +0xb2, 0x48c516\nSTRD.W          R8, R9, [R3]                                           ; +0xb6, 0x48c51a\nLDR             R3, [R4]                                               ; +0xba, 0x48c51e\nMOV             R0, R4                                                 ; +0xbc, 0x48c520\nMOV             R1, R6                                                 ; +0xbe, 0x48c522\nMOVS            R2, #0                                                 ; +0xc0, 0x48c524\nLDR.W           R12, [R3,#0x280]                                       ; +0xc2, 0x48c526\nMOV             R3, R5                                                 ; +0xc6, 0x48c52a\nBLX             R12                                                    ; +0xc8, 0x48c52c\nLDM.W           R5, {R2,R3}                                            ; +0xca, 0x48c52e\nCMP             R2, R3                                                 ; +0xce, 0x48c532\nBNE             loc_48C53E                                             ; +0xd0, 0x48c534\nMOV             R0, R7                                                 ; +0xd2, 0x48c536\nBL              _ZNSt10_HashtableIiSt4pairIKiiESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<int,std::pair<int const,int>,std::allocator<std::pair<int const,int>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable() ; +0xd4, 0x48c538\nB               loc_48C58E                                             ; +0xd8, 0x48c53c\nMOV             R0, R6                                                 ; +0xda, 0x48c53e\nMOV             R1, R4                                                 ; +0xdc, 0x48c540\nMOV             R2, R7                                                 ; +0xde, 0x48c542\nBL              _ZN15GJBaseGameLayer12restoreRemapEP16EffectGameObjectRSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE; GJBaseGameLayer::restoreRemap(EffectGameObject *,std::unordered_map<int,int> &) ; +0xe0, 0x48c544\nB               loc_48C536                                             ; +0xe4, 0x48c548\nLDR             R3, [R4]                                               ; +0xe6, 0x48c54a\nMOV             R0, R4                                                 ; +0xe8, 0x48c54c\nMOVS            R1, #0                                                 ; +0xea, 0x48c54e\nLDR.W           R3, [R3,#0x2E0]                                        ; +0xec, 0x48c550\nBLX             R3                                                     ; +0xf0, 0x48c554\nLDR.W           R2, [R4,#0x374]                                        ; +0xf2, 0x48c556\nMOVW            R3, #0x4F4                                             ; +0xf6, 0x48c55a\nCMP             R2, R3                                                 ; +0xfa, 0x48c55e\nBNE             loc_48C572                                             ; +0xfc, 0x48c560\nMOV             R0, R4                                                 ; +0xfe, 0x48c562\nMOV             R1, R5                                                 ; +0x100, 0x48c564\nBL              _ZN22SpawnTriggerGameObject15updateRemapKeysERKSt6vectorIiSaIiEE; SpawnTriggerGameObject::updateRemapKeys(std::vector<int> const&) ; +0x102, 0x48c566\nADD.W           R3, R4, #0x680                                         ; +0x106, 0x48c56a\nSTRD.W          R8, R9, [R3]                                           ; +0x10a, 0x48c56e\nLDR             R3, [R4]                                               ; +0x10e, 0x48c572\nMOV             R0, R4                                                 ; +0x110, 0x48c574\nMOV             R1, R6                                                 ; +0x112, 0x48c576\nMOVS            R2, #0                                                 ; +0x114, 0x48c578\nLDR.W           R7, [R3,#0x280]                                        ; +0x116, 0x48c57a\nMOV             R3, R5                                                 ; +0x11a, 0x48c57e\nBLX             R7                                                     ; +0x11c, 0x48c580\nB               loc_48C58E                                             ; +0x11e, 0x48c582\nMOV             R0, R7                                                 ; +0x120, 0x48c584\nBL              _ZNSt10_HashtableIiSt4pairIKiiESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<int,std::pair<int const,int>,std::allocator<std::pair<int const,int>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable() ; +0x122, 0x48c586\nBL              __cxa_end_cleanup                                      ; +0x126, 0x48c58a\nLDR             R2, [SP,#0x38+var_4]                                   ; +0x12a, 0x48c58e\nLDR.W           R3, [R10]                                              ; +0x12c, 0x48c590\nCMP             R2, R3                                                 ; +0x130, 0x48c594\nBEQ             loc_48C59C                                             ; +0x132, 0x48c596\nBLX             __stack_chk_fail                                       ; +0x134, 0x48c598\nADD             SP, SP, #0x38 ; '8'                                    ; +0x138, 0x48c59c\nPOP.W           {R4-R10,PC}                                            ; +0x13a, 0x48c59e", "xrefs": ["`non-virtual thunk to'GJBaseGameLayer::spawnObject @ 0x48c5ac"], "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"}