// // GameObject::getParentMode from 0x645770 to 0x645a24 (692 bytes) // // 8 xrefs: // > GameObject::claimParticle @ 0x646100 // > GameObject::addMainSpriteToParent @ 0x646638 // > GameObject::addColorSpriteToParent @ 0x6467fc // > SetGroupIDLayer::init @ 0x978bf4 // > SetGroupIDLayer::init @ 0x9792c8 // > SetGroupIDLayer::init @ 0x979304 // > GameObject::playDestroyObjectAnim @ 0x9b2ef8 // > @ 0x55e30 // // 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 GameObject::getParentMode(GameObject *a1) { int m_parentMode; // w1 int m_objectID; // w1 m_parentMode = a1->m_parentMode; if ( m_parentMode != -1 ) return m_parentMode; if ( a1->m_addToNodeContainer ) goto LABEL_24; if ( a1->m_unk40C ) goto LABEL_23; m_objectID = a1->m_objectID; if ( m_objectID > 2770 ) { if ( m_objectID > 3097 ) { if ( m_objectID > 3799 ) { if ( m_objectID > 4399 ) { if ( (unsigned int)(m_objectID - 4401) > 0x8A ) goto LABEL_37; goto LABEL_31; } if ( m_objectID >= 4000 ) goto LABEL_31; if ( m_objectID < 3801 ) goto LABEL_37; } else { if ( m_objectID >= 3700 ) goto LABEL_31; if ( m_objectID > 3654 ) { if ( (unsigned int)(m_objectID - 3656) > 3 ) goto LABEL_37; } else if ( m_objectID < 3646 ) { if ( m_objectID < 3101 ) goto LABEL_37; if ( m_objectID > 3599 ) { if ( m_objectID != 3601 ) goto LABEL_37; goto LABEL_23; } goto LABEL_31; } } m_parentMode = 8; a1->m_parentMode = 8; return m_parentMode; } if ( m_objectID >= 3092 ) goto LABEL_31; if ( m_objectID > 2897 ) { if ( m_objectID > 3002 ) { if ( m_objectID < 3034 ) goto LABEL_37; } else { if ( m_objectID >= 3000 ) goto LABEL_41; if ( (unsigned int)(m_objectID - 2927) > 0x47 ) goto LABEL_37; } } else if ( m_objectID < 2895 ) { if ( m_objectID > 2865 ) { if ( m_objectID < 2867 ) goto LABEL_37; } else if ( m_objectID < 2864 ) { if ( m_objectID == 2773 || m_objectID >= 2776 ) goto LABEL_23; goto LABEL_37; } LABEL_41: m_parentMode = 3; a1->m_parentMode = 3; return m_parentMode; } LABEL_23: a1->m_parentMode = 1; return 1; } if ( m_objectID >= 2708 ) goto LABEL_23; if ( m_objectID > 1858 ) { if ( m_objectID == 2012 ) goto LABEL_41; if ( m_objectID > 2012 ) { if ( m_objectID > 2700 ) { if ( (unsigned int)(m_objectID - 2703) > 1 ) goto LABEL_37; goto LABEL_23; } if ( m_objectID < 2070 ) { if ( m_objectID < 2020 ) goto LABEL_37; if ( m_objectID <= 2055 ) goto LABEL_41; if ( m_objectID != 2063 ) goto LABEL_37; goto LABEL_23; } LABEL_31: m_parentMode = 6; a1->m_parentMode = 6; return m_parentMode; } if ( m_objectID > 1928 ) { if ( m_objectID < 1936 ) goto LABEL_37; if ( m_objectID <= 1939 ) goto LABEL_41; if ( m_objectID != 1964 ) goto LABEL_37; } else if ( m_objectID < 1919 ) { if ( m_objectID != 1860 ) goto LABEL_37; goto LABEL_41; } goto LABEL_23; } if ( m_objectID >= 1844 ) goto LABEL_41; if ( m_objectID <= 1328 ) { if ( m_objectID < 1327 ) { if ( m_objectID > 921 ) { if ( (unsigned int)(m_objectID - 923) > 1 ) goto LABEL_37; } else if ( m_objectID < 920 ) { if ( m_objectID == 914 ) { m_parentMode = 2; a1->m_parentMode = 2; return m_parentMode; } if ( m_objectID != 918 ) { if ( m_objectID == 142 ) goto LABEL_23; LABEL_37: a1->m_parentMode = 0; return 0; } } } goto LABEL_41; } if ( m_objectID == 1614 ) goto LABEL_41; if ( m_objectID <= 1614 ) { if ( m_objectID != 1329 ) { if ( m_objectID != 1584 ) goto LABEL_37; goto LABEL_41; } goto LABEL_23; } if ( m_objectID == 1618 || m_objectID == 1816 ) goto LABEL_41; if ( m_objectID != 1615 ) goto LABEL_37; LABEL_24: a1->m_parentMode = 4; return 4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source