{"type": "func", "start": 4298085436, "end": 4298085536, "name": "GameObject::getParentMode", "pseudocode": "// \n// GameObject::getParentMode from 0x1002f943c to 0x1002f94a0 (100 bytes)\n// \n// 6 xrefs:\n// > SetGroupIDLayer::init @ 0x10003f97c\n// > SetGroupIDLayer::init @ 0x10003f9cc\n// > sub_1002F352C @ 0x1002f3654\n// > GameObject::claimParticle @ 0x1002f9014\n// > GameObject::addMainSpriteToParent @ 0x1002f9fb4\n// > GameObject::playDestroyObjectAnim @ 0x1003e86f0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:03:01 +0000\n// \n\n__int64 __fastcall GameObject::getParentMode(__int64 a1)\n{\n  unsigned int v1; // w8\n\n  v1 = *(unsigned __int16 *)(a1 + 1018);\n  if ( v1 == 0xFFFF )\n  {\n    if ( (*(_BYTE *)(a1 + 772) & 1) != 0 )\n    {\n      LOWORD(v1) = 4;\n    }\n    else if ( (*(_BYTE *)(a1 + 1052) & 1) != 0 )\n    {\n      LOWORD(v1) = 1;\n    }\n    else\n    {\n      v1 = *(_DWORD *)(a1 + 1028) - 142;\n      if ( v1 >> 1 > 0x896 )\n        LOWORD(v1) = 0;\n      else\n        LOWORD(v1) = word_100769462[v1];\n    }\n    *(_WORD *)(a1 + 1018) = v1;\n  }\n  return (unsigned int)(__int16)v1;\n}", "assembly": "; \n; GameObject::getParentMode from 0x1002f943c to 0x1002f94a0 (100 bytes)\n; \n; 6 xrefs:\n; > SetGroupIDLayer::init @ 0x10003f97c\n; > SetGroupIDLayer::init @ 0x10003f9cc\n; > sub_1002F352C @ 0x1002f3654\n; > GameObject::claimParticle @ 0x1002f9014\n; > GameObject::addMainSpriteToParent @ 0x1002f9fb4\n; > GameObject::playDestroyObjectAnim @ 0x1003e86f0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:03:01 +0000\n; \nLDRH            W8, [X0,#0x3FA]                                        ; +0x0, 0x1002f943c\nMOV             W9, #0xFFFF                                            ; +0x4, 0x1002f9440\nCMP             W8, W9                                                 ; +0x8, 0x1002f9444\nB.NE            loc_1002F9498                                          ; +0xc, 0x1002f9448\nLDRB            W8, [X0,#0x304]                                        ; +0x10, 0x1002f944c\nTBZ             W8, #0, loc_1002F945C                                  ; +0x14, 0x1002f9450\nMOV             W8, #4                                                 ; +0x18, 0x1002f9454\nB               loc_1002F9494                                          ; +0x1c, 0x1002f9458\nLDRB            W8, [X0,#0x41C]                                        ; +0x20, 0x1002f945c\nTBZ             W8, #0, loc_1002F946C                                  ; +0x24, 0x1002f9460\nMOV             W8, #1                                                 ; +0x28, 0x1002f9464\nB               loc_1002F9494                                          ; +0x2c, 0x1002f9468\nLDR             W8, [X0,#0x404]                                        ; +0x30, 0x1002f946c\nSUB             W8, W8, #0x8E                                          ; +0x34, 0x1002f9470\nLSR             W9, W8, #1                                             ; +0x38, 0x1002f9474\nCMP             W9, #0x896                                             ; +0x3c, 0x1002f9478\nB.HI            loc_1002F9490                                          ; +0x40, 0x1002f947c\nADRL            X9, word_100769462                                     ; +0x44, 0x1002f9480\nLDRH            W8, [X9,W8,UXTW#1]                                     ; +0x4c, 0x1002f9488\nB               loc_1002F9494                                          ; +0x50, 0x1002f948c\nMOV             W8, #0                                                 ; +0x54, 0x1002f9490\nSTRH            W8, [X0,#0x3FA]                                        ; +0x58, 0x1002f9494\nSXTH            W0, W8                                                 ; +0x5c, 0x1002f9498\nRET                                                                    ; +0x60, 0x1002f949c", "xrefs": ["SetGroupIDLayer::init @ 0x10003f97c", "SetGroupIDLayer::init @ 0x10003f9cc", "sub_1002F352C @ 0x1002f3654", "GameObject::claimParticle @ 0x1002f9014", "GameObject::addMainSpriteToParent @ 0x1002f9fb4", "GameObject::playDestroyObjectAnim @ 0x1003e86f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}