// // GJBaseGameLayer::registerSpawnRemap from 0x100135c20 to 0x100135d3f (287 bytes) // // 1 xrefs: // > GJBaseGameLayer::generateSpawnRemap @ 0x10011754b // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall GJBaseGameLayer::registerSpawnRemap(GJBaseGameLayer *a1, std::vector *a2) { std::__vector_base>::pointer end; // rax std::unordered_map *v4; // rax _QWORD *v5; // rdi _QWORD *v6; // r15 void *v7; // rdi std::__vector_base::pointer begin; // r15 ChanceObject *v9; // r14 int m_chance; // r12d float *v11; // rdi void *v13[2]; // [rsp+0h] [rbp-60h] BYREF void *__p[2]; // [rsp+10h] [rbp-50h] int v15; // [rsp+20h] [rbp-40h] *(_OWORD *)__p = 0; *(_OWORD *)v13 = 0; v15 = 1065353216; end = a1->m_spawnRemapTriggers.__end_; if ( end >= a1->m_spawnRemapTriggers.__end_cap_.__value_ ) { v4 = (std::unordered_map *)sub_1001688B0(&a1->m_spawnRemapTriggers, v13); v5 = __p[0]; a1->m_spawnRemapTriggers.__end_ = v4; if ( v5 ) { do { v6 = (_QWORD *)*v5; operator delete(v5); v5 = v6; } while ( v6 ); } } else { end->__table_.__bucket_list_ = 0; v13[1] = nullptr; *(_OWORD *)&end->__table_.__p1_.__value_.__next_ = 0; end->__table_.__p3_.__value_ = 1.0; a1->m_spawnRemapTriggers.__end_ = end + 1; } v7 = v13[0]; v13[0] = nullptr; if ( v7 ) operator delete(v7); begin = a2->__begin_; v9 = a2->__end_; if ( a2->__begin_ != v9 ) { do { m_chance = begin->m_chance; v11 = (float *)&a1->m_spawnRemapTriggers.__end_[-1]; v13[0] = begin; *((_DWORD *)sub_100055BA0(v11, &begin->m_groupID, (__m128)0LL, (__int64)&unk_100816AE0, (_DWORD **)v13) + 5) = m_chance; ++begin; } while ( begin != v9 ); } return -858993459 * ((unsigned __int64)((char *)a1->m_spawnRemapTriggers.__end_ - (char *)a1->m_spawnRemapTriggers.__begin_) >> 3) - 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source