{"type": "func", "start": 4300984576, "end": 4300984675, "name": "GameObject::getParentMode", "pseudocode": "// \n// GameObject::getParentMode from 0x1005bd100 to 0x1005bd163 (99 bytes)\n// \n// 6 xrefs:\n// > GameObject::playDestroyObjectAnim @ 0x10025f32d\n// > SetGroupIDLayer::init @ 0x1003138b1\n// > SetGroupIDLayer::init @ 0x100313928\n// > GameObject::addColorSpriteToParent @ 0x1005aa175\n// > GameObject::claimParticle @ 0x1005bcb8a\n// > GameObject::addMainSpriteToParent @ 0x1005bde6d\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  __int64 v1; // rax\n\n  LOWORD(v1) = a1->m_parentMode;\n  if ( (_WORD)v1 == 0xFFFF )\n  {\n    LOWORD(v1) = 4;\n    if ( !a1->m_addToNodeContainer )\n    {\n      LOWORD(v1) = 1;\n      if ( !a1->m_unk40C )\n      {\n        LODWORD(v1) = a1->m_objectID - 142;\n        if ( (unsigned int)v1 > 0x112D )\n        {\n          a1->m_parentMode = 0;\n          return 0;\n        }\n        LOWORD(v1) = word_10081F4CC[(unsigned int)v1];\n      }\n    }\n    a1->m_parentMode = v1;\n    LODWORD(v1) = (__int16)v1;\n  }\n  else\n  {\n    LODWORD(v1) = (__int16)v1;\n  }\n  return v1;\n}", "assembly": "; \n; GameObject::getParentMode from 0x1005bd100 to 0x1005bd163 (99 bytes)\n; \n; 6 xrefs:\n; > GameObject::playDestroyObjectAnim @ 0x10025f32d\n; > SetGroupIDLayer::init @ 0x1003138b1\n; > SetGroupIDLayer::init @ 0x100313928\n; > GameObject::addColorSpriteToParent @ 0x1005aa175\n; > GameObject::claimParticle @ 0x1005bcb8a\n; > GameObject::addMainSpriteToParent @ 0x1005bde6d\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    rbp                                                            ; +0x0, 0x1005bd100\nmov     rbp, rsp                                                       ; +0x1, 0x1005bd101\nmovzx   eax, word ptr [rdi+3FAh]                                       ; +0x4, 0x1005bd104\ncmp     ax, 0FFFFh                                                     ; +0xb, 0x1005bd10b\njz      short loc_1005BD114                                            ; +0xf, 0x1005bd10f\ncwde                                                                   ; +0x11, 0x1005bd111\npop     rbp                                                            ; +0x12, 0x1005bd112\nretn                                                                   ; +0x13, 0x1005bd113\nmov     ax, 4                                                          ; +0x14, 0x1005bd114\ncmp     byte ptr [rdi+304h], 0                                         ; +0x18, 0x1005bd118\njnz     short loc_1005BD14D                                            ; +0x1f, 0x1005bd11f\nmov     ax, 1                                                          ; +0x21, 0x1005bd121\ncmp     byte ptr [rdi+41Ch], 0                                         ; +0x25, 0x1005bd125\njnz     short loc_1005BD14D                                            ; +0x2c, 0x1005bd12c\nmov     eax, 0FFFFFF72h                                                ; +0x2e, 0x1005bd12e\nadd     eax, [rdi+404h]                                                ; +0x33, 0x1005bd133\ncmp     eax, 112Dh                                                     ; +0x39, 0x1005bd139\nja      short loc_1005BD157                                            ; +0x3e, 0x1005bd13e\nmov     eax, eax                                                       ; +0x40, 0x1005bd140\nlea     rcx, word_10081F4CC                                            ; +0x42, 0x1005bd142\nmovzx   eax, word ptr [rcx+rax*2]                                      ; +0x49, 0x1005bd149\nmov     [rdi+3FAh], ax                                                 ; +0x4d, 0x1005bd14d\ncwde                                                                   ; +0x54, 0x1005bd154\npop     rbp                                                            ; +0x55, 0x1005bd155\nretn                                                                   ; +0x56, 0x1005bd156\nxor     eax, eax                                                       ; +0x57, 0x1005bd157\nmov     [rdi+3FAh], ax                                                 ; +0x59, 0x1005bd159\ncwde                                                                   ; +0x60, 0x1005bd160\npop     rbp                                                            ; +0x61, 0x1005bd161\nretn                                                                   ; +0x62, 0x1005bd162", "xrefs": ["GameObject::playDestroyObjectAnim @ 0x10025f32d", "SetGroupIDLayer::init @ 0x1003138b1", "SetGroupIDLayer::init @ 0x100313928", "GameObject::addColorSpriteToParent @ 0x1005aa175", "GameObject::claimParticle @ 0x1005bcb8a", "GameObject::addMainSpriteToParent @ 0x1005bde6d"], "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"}