{"type": "func", "start": 4297441848, "end": 4297441948, "name": "GameObject::getParentMode", "pseudocode": "// \n// GameObject::getParentMode from 0x10025c238 to 0x10025c29c (100 bytes)\n// \n// 6 xrefs:\n// > SetGroupIDLayer::init @ 0x10003bfc4\n// > SetGroupIDLayer::init @ 0x10003c014\n// > GameObject::addColorSpriteToParent @ 0x100256460\n// > GameObject::claimParticle @ 0x10025be10\n// > GameObject::addMainSpriteToParent @ 0x10025cdb0\n// > GameObject::playDestroyObjectAnim @ 0x10034a1cc\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\nint __fastcall GameObject::getParentMode(GameObject *a1)\n{\n  unsigned int m_parentMode; // w8\n\n  m_parentMode = (unsigned __int16)a1->m_parentMode;\n  if ( m_parentMode == 0xFFFF )\n  {\n    if ( a1->m_addToNodeContainer )\n    {\n      LOWORD(m_parentMode) = 4;\n    }\n    else if ( a1->m_unk40C )\n    {\n      LOWORD(m_parentMode) = 1;\n    }\n    else\n    {\n      m_parentMode = a1->m_objectID - 142;\n      if ( m_parentMode >> 1 > 0x896 )\n        LOWORD(m_parentMode) = 0;\n      else\n        LOWORD(m_parentMode) = word_1006404D0[m_parentMode];\n    }\n    a1->m_parentMode = m_parentMode;\n  }\n  return (__int16)m_parentMode;\n}", "assembly": "; \n; GameObject::getParentMode from 0x10025c238 to 0x10025c29c (100 bytes)\n; \n; 6 xrefs:\n; > SetGroupIDLayer::init @ 0x10003bfc4\n; > SetGroupIDLayer::init @ 0x10003c014\n; > GameObject::addColorSpriteToParent @ 0x100256460\n; > GameObject::claimParticle @ 0x10025be10\n; > GameObject::addMainSpriteToParent @ 0x10025cdb0\n; > GameObject::playDestroyObjectAnim @ 0x10034a1cc\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\nLDRH            W8, [X0,#0x3FA]                                        ; +0x0, 0x10025c238\nMOV             W9, #0xFFFF                                            ; +0x4, 0x10025c23c\nCMP             W8, W9                                                 ; +0x8, 0x10025c240\nB.NE            loc_10025C294                                          ; +0xc, 0x10025c244\nLDRB            W8, [X0,#0x304]                                        ; +0x10, 0x10025c248\nTBZ             W8, #0, loc_10025C258                                  ; +0x14, 0x10025c24c\nMOV             W8, #4                                                 ; +0x18, 0x10025c250\nB               loc_10025C290                                          ; +0x1c, 0x10025c254\nLDRB            W8, [X0,#0x41C]                                        ; +0x20, 0x10025c258\nTBZ             W8, #0, loc_10025C268                                  ; +0x24, 0x10025c25c\nMOV             W8, #1                                                 ; +0x28, 0x10025c260\nB               loc_10025C290                                          ; +0x2c, 0x10025c264\nLDR             W8, [X0,#0x404]                                        ; +0x30, 0x10025c268\nSUB             W8, W8, #0x8E                                          ; +0x34, 0x10025c26c\nLSR             W9, W8, #1                                             ; +0x38, 0x10025c270\nCMP             W9, #0x896                                             ; +0x3c, 0x10025c274\nB.HI            loc_10025C28C                                          ; +0x40, 0x10025c278\nADRL            X9, word_1006404D0                                     ; +0x44, 0x10025c27c\nLDRH            W8, [X9,W8,UXTW#1]                                     ; +0x4c, 0x10025c284\nB               loc_10025C290                                          ; +0x50, 0x10025c288\nMOV             W8, #0                                                 ; +0x54, 0x10025c28c\nSTRH            W8, [X0,#0x3FA]                                        ; +0x58, 0x10025c290\nSXTH            W0, W8                                                 ; +0x5c, 0x10025c294\nRET                                                                    ; +0x60, 0x10025c298", "xrefs": ["SetGroupIDLayer::init @ 0x10003bfc4", "SetGroupIDLayer::init @ 0x10003c014", "GameObject::addColorSpriteToParent @ 0x100256460", "GameObject::claimParticle @ 0x10025be10", "GameObject::addMainSpriteToParent @ 0x10025cdb0", "GameObject::playDestroyObjectAnim @ 0x10034a1cc"], "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"}