// // ChanceTriggerGameObject::remapChanceObjects from 0x1404b40d0 to 0x1404b41b4 (228 bytes) // // 4 xrefs: // > GJBaseGameLayer::applyRemap @ 0x14021b957 // > @ 0x1406a8644 // > @ 0x1406a8654 // > @ 0x1406dcb30 // // 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 // void ChanceTriggerGameObject::remapChanceObjects(ChanceTriggerGameObject *a1, std::unordered_map *const a2) { std::_Vector_val>::pointer Mylast; // rbx std::_Vector_val>::pointer Myfirst; // r9 std::_List_val>>::_Nodeptr Myhead; // rcx std::_List_val>>::_Nodeptr v5; // r8 std::_Simple_types>>>>::value_type *v6; // r10 std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr Ptr; // rax std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr v8; // r10 Mylast = a1->m_chanceObjects._Mypair._Myval2._Mylast; Myfirst = a1->m_chanceObjects._Mypair._Myval2._Myfirst; if ( Myfirst != Mylast ) { Myhead = a2->_List._Mypair._Myval2._Myhead; while ( 1 ) { v5 = Myhead; v6 = &a2->_Vec._Mypair._Myval2._Myfirst[2 * ((0x100000001B3LL * (HIBYTE(Myfirst->m_groupID) ^ (0x100000001B3LL * (BYTE2(Myfirst->m_groupID) ^ (0x100000001B3LL * (BYTE1(Myfirst->m_groupID) ^ (0x100000001B3LL * (LOBYTE(Myfirst->m_groupID) ^ 0xCBF29CE484222325uLL)))))))) & a2->_Mask)]; Ptr = v6[1]._Ptr; if ( Ptr == Myhead ) goto LABEL_9; v8 = v6->_Ptr; if ( Myfirst->m_groupID != *((_DWORD *)Ptr + 4) ) break; LABEL_10: if ( !Ptr ) Ptr = v5; if ( Ptr != v5 ) { Myfirst->m_groupID = *((_DWORD *)Ptr + 5); Myhead = a2->_List._Mypair._Myval2._Myhead; } if ( ++Myfirst == Mylast ) return; } while ( Ptr != v8 ) { Ptr = *((std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr *)Ptr + 1); if ( Myfirst->m_groupID == *((_DWORD *)Ptr + 4) ) { Myhead = a2->_List._Mypair._Myval2._Myhead; v5 = Myhead; goto LABEL_10; } } Myhead = a2->_List._Mypair._Myval2._Myhead; v5 = Myhead; LABEL_9: Ptr = nullptr; goto LABEL_10; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source