{"type": "func", "start": 5371375216, "end": 5371375816, "name": "GameObject::commonSetup", "pseudocode": "// \n// GameObject::commonSetup from 0x14028ae70 to 0x14028b0c8 (600 bytes)\n// \n// 33 xrefs:\n// > EditorUI::alignObjectsOnAxis @ 0x1402014aa\n// > EditorUI::alignObjects @ 0x140201947\n// > EndPortalObject::init @ 0x140208f44\n// > GameObject::createWithKey @ 0x1402892ec\n// > GameObject::createWithKey @ 0x1402895ab\n// > GameObject::createWithFrame @ 0x14028ade6\n// > GameObject::initWithTexture @ 0x14028ae5a\n// > EnhancedGameObject::init @ 0x1402a173d\n// > TextGameObject::create @ 0x1402a44df\n// > LevelPage::addSecretCoin @ 0x140445973\n// > PlayerObject::init @ 0x1404e4bc7\n// > PlayLayer::createCheckpoint @ 0x14051464b\n// > PlayLayer::loadPersistentCheckpoint @ 0x14051839e\n// > GradientTriggerObject::init @ 0x14063b064\n// > ParticleGameObject::init @ 0x140641994\n// > AnimatedGameObject::init @ 0x140644a8f\n// > EffectGameObject::init @ 0x14064766d\n// > KeyframeAnimTriggerObject::init @ 0x140652914\n// > StartPosObject::init @ 0x14065336c\n// > LabelGameObject::init @ 0x1406548f4\n// > KeyframeGameObject::init @ 0x140656804\n// > EventLinkTrigger::init @ 0x140659954\n// > SpawnTriggerGameObject::init @ 0x14065a0f4\n// > CheckpointGameObject::init @ 0x14065adb4\n// > EndTriggerGameObject::init @ 0x14065dbd4\n// > UISettingsGameObject::init @ 0x14065e184\n// > AudioLineGuideGameObject::init @ 0x140662084\n// > PlayerControlGameObject::init @ 0x140663414\n// > ObjectControlGameObject::init @ 0x140663944\n// > ProgressGameObject::init @ 0x140663b94\n// > SpawnParticleGameObject::init @ 0x140664554\n// > RotateGameplayGameObject::init @ 0x140664fa4\n// > <???> @ 0x14091d258\n// \n// This function is hookable on this platform (idp: pc, 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:29:04 +0000\n// \n\n// Hidden C++ exception states: #wind=5\n__int64 __fastcall GameObject::commonSetup(__int64 a1)\n{\n  int v2; // eax\n  __int64 v3; // rcx\n  __int64 v4; // rdx\n  char v5; // al\n  __int64 v6; // rax\n  _QWORD *v7; // rdx\n  __int64 result; // rax\n  _BYTE v9[24]; // [rsp+20h] [rbp-18h] BYREF\n  void *v10; // [rsp+40h] [rbp+8h] BYREF\n  void *v11; // [rsp+48h] [rbp+10h]\n\n  v2 = dword_1408FE470;\n  *(_DWORD *)(a1 + 924) = dword_1408FE470;\n  *(_DWORD *)(a1 + 52) = v2;\n  dword_1408FE470 = v2 + 1;\n  v3 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v10 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v3 = qword_14090BFD0;\n  }\n  v4 = *(_QWORD *)(v3 + 560);\n  if ( v4 )\n  {\n    LODWORD(v10) = *(_DWORD *)(a1 + 924);\n    *(_QWORD *)(*(_QWORD *)sub_1402A4E90(v4 + 14584, v9, &v10) + 24LL) = a1;\n    v3 = qword_14090BFD0;\n  }\n  if ( !v3 )\n  {\n    v11 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v3 = qword_14090BFD0;\n  }\n  v5 = *(_BYTE *)(v3 + 738);\n  *(_BYTE *)(a1 + 653) = v5;\n  if ( !v5 )\n  {\n    v6 = *(_QWORD *)(v3 + 560);\n    if ( v6 )\n      *(_QWORD *)(a1 + 1288) = *(_QWORD *)(v6 + 2408);\n  }\n  v7 = *(_QWORD **)(a1 + 1104);\n  if ( !v7 )\n  {\n    v7 = operator new(0x28u);\n    v10 = v7;\n    *v7 = 0;\n    *((_DWORD *)v7 + 2) = 1065353216;\n    *((_DWORD *)v7 + 3) = 1065353216;\n    *((_OWORD *)v7 + 1) = xmmword_1408FE460;\n    *((_WORD *)v7 + 16) = 0;\n    *((_WORD *)v7 + 17) = -1;\n    *((_BYTE *)v7 + 36) = -1;\n    *(_QWORD *)(a1 + 1104) = v7;\n  }\n  *((_DWORD *)v7 + 1) = 1004;\n  *(_DWORD *)v7 = 0;\n  *(_DWORD *)(a1 + 1084) = 1065353216;\n  *(_DWORD *)(a1 + 1056) = 2;\n  *(_DWORD *)(a1 + 1016) = -1;\n  *(_BYTE *)(a1 + 1024) = 1;\n  qword_14090BFD8 = 214013 * qword_14090BFD8 + 2531011;\n  *(_WORD *)(a1 + 1012) = (int)(float)((float)((float)(((unsigned __int64)qword_14090BFD8 >> 16) & 0x7FFF) / 32767.0)\n                                     * 1900.0);\n  *(_DWORD *)(a1 + 764) = *(_DWORD *)(a1 + 432);\n  *(_DWORD *)(a1 + 768) = *(_DWORD *)(a1 + 436);\n  *(_DWORD *)(a1 + 916) = 1065353216;\n  *(_DWORD *)(a1 + 920) = 1065353216;\n  *(_DWORD *)(a1 + 988) = 1065353216;\n  *(_DWORD *)(a1 + 992) = 1065353216;\n  *(_QWORD *)(a1 + 980) = 0;\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 120LL))(a1);\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 136LL))(a1);\n  *(_BYTE *)(a1 + 773) = 0;\n  *(_BYTE *)(a1 + 848) = 1;\n  *(_BYTE *)(a1 + 872) = 1;\n  return result;\n}", "assembly": "; \n; GameObject::commonSetup from 0x14028ae70 to 0x14028b0c8 (600 bytes)\n; \n; 33 xrefs:\n; > EditorUI::alignObjectsOnAxis @ 0x1402014aa\n; > EditorUI::alignObjects @ 0x140201947\n; > EndPortalObject::init @ 0x140208f44\n; > GameObject::createWithKey @ 0x1402892ec\n; > GameObject::createWithKey @ 0x1402895ab\n; > GameObject::createWithFrame @ 0x14028ade6\n; > GameObject::initWithTexture @ 0x14028ae5a\n; > EnhancedGameObject::init @ 0x1402a173d\n; > TextGameObject::create @ 0x1402a44df\n; > LevelPage::addSecretCoin @ 0x140445973\n; > PlayerObject::init @ 0x1404e4bc7\n; > PlayLayer::createCheckpoint @ 0x14051464b\n; > PlayLayer::loadPersistentCheckpoint @ 0x14051839e\n; > GradientTriggerObject::init @ 0x14063b064\n; > ParticleGameObject::init @ 0x140641994\n; > AnimatedGameObject::init @ 0x140644a8f\n; > EffectGameObject::init @ 0x14064766d\n; > KeyframeAnimTriggerObject::init @ 0x140652914\n; > StartPosObject::init @ 0x14065336c\n; > LabelGameObject::init @ 0x1406548f4\n; > KeyframeGameObject::init @ 0x140656804\n; > EventLinkTrigger::init @ 0x140659954\n; > SpawnTriggerGameObject::init @ 0x14065a0f4\n; > CheckpointGameObject::init @ 0x14065adb4\n; > EndTriggerGameObject::init @ 0x14065dbd4\n; > UISettingsGameObject::init @ 0x14065e184\n; > AudioLineGuideGameObject::init @ 0x140662084\n; > PlayerControlGameObject::init @ 0x140663414\n; > ObjectControlGameObject::init @ 0x140663944\n; > ProgressGameObject::init @ 0x140663b94\n; > SpawnParticleGameObject::init @ 0x140664554\n; > RotateGameplayGameObject::init @ 0x140664fa4\n; > <???> @ 0x14091d258\n; \n; This function is hookable on this platform (idp: pc, 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:29:04 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14028ae70\npush    rdi                                                            ; +0x5, 0x14028ae75\nsub     rsp, 30h                                                       ; +0x6, 0x14028ae76\nmov     rbx, rcx                                                       ; +0xa, 0x14028ae7a\nmov     eax, cs:dword_1408FE470                                        ; +0xd, 0x14028ae7d\nmov     [rcx+39Ch], eax                                                ; +0x13, 0x14028ae83\nmov     [rcx+34h], eax                                                 ; +0x19, 0x14028ae89\ninc     eax                                                            ; +0x1c, 0x14028ae8c\nmov     cs:dword_1408FE470, eax                                        ; +0x1e, 0x14028ae8e\nmov     rcx, cs:qword_14090BFD0                                        ; +0x24, 0x14028ae94\ntest    rcx, rcx                                                       ; +0x2b, 0x14028ae9b\njnz     short loc_14028AED2                                            ; +0x2e, 0x14028ae9e\nmov     ecx, 6E8h; Size                                                ; +0x30, 0x14028aea0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x14028aea5\nmov     [rsp+38h+arg_0], rax                                           ; +0x3a, 0x14028aeaa\nmov     rcx, rax                                                       ; +0x3f, 0x14028aeaf\ncall    GameManager__GameManager                                       ; +0x42, 0x14028aeb2\nnop                                                                    ; +0x47, 0x14028aeb7\nmov     cs:qword_14090BFD0, rax                                        ; +0x48, 0x14028aeb8\nmov     rcx, [rax]                                                     ; +0x4f, 0x14028aebf\nmov     rdx, [rcx+48h]                                                 ; +0x52, 0x14028aec2\nmov     rcx, rax                                                       ; +0x56, 0x14028aec6\ncall    rdx                                                            ; +0x59, 0x14028aec9\nmov     rcx, cs:qword_14090BFD0                                        ; +0x5b, 0x14028aecb\nmov     rdx, [rcx+230h]                                                ; +0x62, 0x14028aed2\ntest    rdx, rdx                                                       ; +0x69, 0x14028aed9\njz      short loc_14028AF0C                                            ; +0x6c, 0x14028aedc\nmov     eax, [rbx+39Ch]                                                ; +0x6e, 0x14028aede\nmov     dword ptr [rsp+38h+arg_0], eax                                 ; +0x74, 0x14028aee4\nlea     rcx, [rdx+38F8h]                                               ; +0x78, 0x14028aee8\nlea     r8, [rsp+38h+arg_0]                                            ; +0x7f, 0x14028aeef\nlea     rdx, [rsp+38h+var_18]                                          ; +0x84, 0x14028aef4\ncall    sub_1402A4E90                                                  ; +0x89, 0x14028aef9\nmov     rdx, [rax]                                                     ; +0x8e, 0x14028aefe\nmov     [rdx+18h], rbx                                                 ; +0x91, 0x14028af01\nmov     rcx, cs:qword_14090BFD0                                        ; +0x95, 0x14028af05\ntest    rcx, rcx                                                       ; +0x9c, 0x14028af0c\njnz     short loc_14028AF43                                            ; +0x9f, 0x14028af0f\nmov     ecx, 6E8h; Size                                                ; +0xa1, 0x14028af11\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa6, 0x14028af16\nmov     [rsp+38h+arg_8], rax                                           ; +0xab, 0x14028af1b\nmov     rcx, rax                                                       ; +0xb0, 0x14028af20\ncall    GameManager__GameManager                                       ; +0xb3, 0x14028af23\nnop                                                                    ; +0xb8, 0x14028af28\nmov     cs:qword_14090BFD0, rax                                        ; +0xb9, 0x14028af29\nmov     rcx, [rax]                                                     ; +0xc0, 0x14028af30\nmov     rdx, [rcx+48h]                                                 ; +0xc3, 0x14028af33\nmov     rcx, rax                                                       ; +0xc7, 0x14028af37\ncall    rdx                                                            ; +0xca, 0x14028af3a\nmov     rcx, cs:qword_14090BFD0                                        ; +0xcc, 0x14028af3c\nmovzx   eax, byte ptr [rcx+2E2h]                                       ; +0xd3, 0x14028af43\nmov     [rbx+28Dh], al                                                 ; +0xda, 0x14028af4a\ntest    al, al                                                         ; +0xe0, 0x14028af50\njnz     short loc_14028AF6E                                            ; +0xe2, 0x14028af52\nmov     rax, [rcx+230h]                                                ; +0xe4, 0x14028af54\ntest    rax, rax                                                       ; +0xeb, 0x14028af5b\njz      short loc_14028AF6E                                            ; +0xee, 0x14028af5e\nmov     rax, [rax+968h]                                                ; +0xf0, 0x14028af60\nmov     [rbx+508h], rax                                                ; +0xf7, 0x14028af67\nmov     rdx, [rbx+450h]                                                ; +0xfe, 0x14028af6e\nxor     edi, edi                                                       ; +0x105, 0x14028af75\ntest    rdx, rdx                                                       ; +0x107, 0x14028af77\njnz     short loc_14028AFCA                                            ; +0x10a, 0x14028af7a\nmov     ecx, 28h ; '('; Size                                           ; +0x10c, 0x14028af7c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x111, 0x14028af81\nmov     rdx, rax                                                       ; +0x116, 0x14028af86\nmov     [rsp+38h+arg_0], rax                                           ; +0x119, 0x14028af89\nmov     [rax], rdi                                                     ; +0x11e, 0x14028af8e\nmov     dword ptr [rax+8], 3F800000h                                   ; +0x121, 0x14028af91\nmov     dword ptr [rax+0Ch], 3F800000h                                 ; +0x128, 0x14028af98\nmovups  xmm0, cs:xmmword_1408FE460                                     ; +0x12f, 0x14028af9f\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x136, 0x14028afa6\nmov     [rax+20h], di                                                  ; +0x13a, 0x14028afaa\nmovzx   ecx, cs:word_14070341C                                         ; +0x13e, 0x14028afae\nmov     [rax+22h], cx                                                  ; +0x145, 0x14028afb5\nmovzx   eax, cs:byte_14070341E                                         ; +0x149, 0x14028afb9\nmov     [rdx+24h], al                                                  ; +0x150, 0x14028afc0\nmov     [rbx+450h], rdx                                                ; +0x153, 0x14028afc3\nmov     eax, 3ECh                                                      ; +0x15a, 0x14028afca\nmov     [rdx+4], eax                                                   ; +0x15f, 0x14028afcf\nmov     [rdx], edi                                                     ; +0x162, 0x14028afd2\nmov     dword ptr [rbx+43Ch], 3F800000h                                ; +0x164, 0x14028afd4\nmov     dword ptr [rbx+420h], 2                                        ; +0x16e, 0x14028afde\nmov     dword ptr [rbx+3F8h], 0FFFFFFFFh                               ; +0x178, 0x14028afe8\nmov     byte ptr [rbx+400h], 1                                         ; +0x182, 0x14028aff2\nimul    rax, cs:qword_14090BFD8, 343FDh                                ; +0x189, 0x14028aff9\nadd     rax, 269EC3h                                                   ; +0x194, 0x14028b004\nmov     cs:qword_14090BFD8, rax                                        ; +0x19a, 0x14028b00a\nshr     rax, 10h                                                       ; +0x1a1, 0x14028b011\nand     eax, 7FFFh                                                     ; +0x1a5, 0x14028b015\nmovd    xmm0, eax                                                      ; +0x1aa, 0x14028b01a\ncvtdq2ps xmm0, xmm0                                                    ; +0x1ae, 0x14028b01e\ndivss   xmm0, cs:dword_140835BDC                                       ; +0x1b1, 0x14028b021\nmulss   xmm0, cs:dword_140835B00                                       ; +0x1b9, 0x14028b029\ncvttss2si eax, xmm0                                                    ; +0x1c1, 0x14028b031\nmov     [rbx+3F4h], ax                                                 ; +0x1c5, 0x14028b035\nmov     eax, [rbx+1B0h]                                                ; +0x1cc, 0x14028b03c\nmov     [rbx+2FCh], eax                                                ; +0x1d2, 0x14028b042\nmov     eax, [rbx+1B4h]                                                ; +0x1d8, 0x14028b048\nmov     [rbx+300h], eax                                                ; +0x1de, 0x14028b04e\nmov     dword ptr [rbx+394h], 3F800000h                                ; +0x1e4, 0x14028b054\nmov     dword ptr [rbx+398h], 3F800000h                                ; +0x1ee, 0x14028b05e\nmov     dword ptr [rbx+3DCh], 3F800000h                                ; +0x1f8, 0x14028b068\nmov     dword ptr [rbx+3E0h], 3F800000h                                ; +0x202, 0x14028b072\nmov     [rbx+3D4h], rdi                                                ; +0x20c, 0x14028b07c\nmov     rax, [rbx]                                                     ; +0x213, 0x14028b083\nmovss   xmm1, cs:flt_140835080                                         ; +0x216, 0x14028b086\nmov     rcx, rbx                                                       ; +0x21e, 0x14028b08e\ncall    qword ptr [rax+78h]                                            ; +0x221, 0x14028b091\nmov     rax, [rbx]                                                     ; +0x224, 0x14028b094\nmovss   xmm1, cs:flt_140835080                                         ; +0x227, 0x14028b097\nmov     rcx, rbx                                                       ; +0x22f, 0x14028b09f\ncall    qword ptr [rax+88h]                                            ; +0x232, 0x14028b0a2\nmov     [rbx+305h], dil                                                ; +0x238, 0x14028b0a8\nmov     byte ptr [rbx+350h], 1                                         ; +0x23f, 0x14028b0af\nmov     byte ptr [rbx+368h], 1                                         ; +0x246, 0x14028b0b6\nmov     rbx, [rsp+38h+arg_10]                                          ; +0x24d, 0x14028b0bd\nadd     rsp, 30h                                                       ; +0x252, 0x14028b0c2\npop     rdi                                                            ; +0x256, 0x14028b0c6\nretn                                                                   ; +0x257, 0x14028b0c7", "xrefs": ["EditorUI::alignObjectsOnAxis @ 0x1402014aa", "EditorUI::alignObjects @ 0x140201947", "EndPortalObject::init @ 0x140208f44", "GameObject::createWithKey @ 0x1402892ec", "GameObject::createWithKey @ 0x1402895ab", "GameObject::createWithFrame @ 0x14028ade6", "GameObject::initWithTexture @ 0x14028ae5a", "EnhancedGameObject::init @ 0x1402a173d", "TextGameObject::create @ 0x1402a44df", "LevelPage::addSecretCoin @ 0x140445973", "PlayerObject::init @ 0x1404e4bc7", "PlayLayer::createCheckpoint @ 0x14051464b", "PlayLayer::loadPersistentCheckpoint @ 0x14051839e", "GradientTriggerObject::init @ 0x14063b064", "ParticleGameObject::init @ 0x140641994", "AnimatedGameObject::init @ 0x140644a8f", "EffectGameObject::init @ 0x14064766d", "KeyframeAnimTriggerObject::init @ 0x140652914", "StartPosObject::init @ 0x14065336c", "LabelGameObject::init @ 0x1406548f4", "KeyframeGameObject::init @ 0x140656804", "EventLinkTrigger::init @ 0x140659954", "SpawnTriggerGameObject::init @ 0x14065a0f4", "CheckpointGameObject::init @ 0x14065adb4", "EndTriggerGameObject::init @ 0x14065dbd4", "UISettingsGameObject::init @ 0x14065e184", "AudioLineGuideGameObject::init @ 0x140662084", "PlayerControlGameObject::init @ 0x140663414", "ObjectControlGameObject::init @ 0x140663944", "ProgressGameObject::init @ 0x140663b94", "SpawnParticleGameObject::init @ 0x140664554", "RotateGameplayGameObject::init @ 0x140664fa4", "<???> @ 0x14091d258"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}