{"type": "func", "start": 4298054980, "end": 4298055384, "name": "GameObject::commonSetup", "pseudocode": "// \n// GameObject::commonSetup from 0x1002f1d44 to 0x1002f1ed8 (404 bytes)\n// \n// 5 xrefs:\n// > TextGameObject::create @ 0x1002f1bc8\n// > GameObject::createWithFrame @ 0x1002f1cb8\n// > GameObject::init @ 0x1002f1d28\n// > GameObject::initWithTexture @ 0x1002f1ef8\n// > EnhancedGameObject::init @ 0x1003000fc\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:02:56 +0000\n// \n\n__int64 __fastcall GameObject::commonSetup(__int64 a1)\n{\n  int v2; // w9\n  _QWORD *v3; // x0\n  __int64 v4; // x8\n  __int64 v5; // x0\n  char v6; // w8\n  __int64 v7; // x0\n  int v8; // w10\n  __int64 result; // x0\n  int v10; // [xsp+0h] [xbp-30h] BYREF\n  int *v11; // [xsp+8h] [xbp-28h] BYREF\n\n  v2 = dword_1009D4298;\n  *(_DWORD *)(a1 + 916) = dword_1009D4298;\n  *(_DWORD *)(a1 + 52) = v2;\n  dword_1009D4298 = v2 + 1;\n  v3 = (_QWORD *)GameManager::sharedState(a1);\n  if ( v3[68] )\n  {\n    v4 = *(_QWORD *)(GameManager::sharedState(v3) + 544);\n    v10 = *(_DWORD *)(a1 + 916);\n    v11 = &v10;\n    v3 = sub_10001A978(v4 + 13952, &v10, (__int64)&unk_100769461, &v11);\n    v3[3] = a1;\n  }\n  v5 = GameManager::sharedState(v3);\n  v6 = *(_BYTE *)(v5 + 706);\n  *(_BYTE *)(a1 + 649) = v6;\n  if ( (v6 & 1) == 0 )\n  {\n    v7 = GameManager::sharedState(v5);\n    if ( *(_QWORD *)(v7 + 544) )\n      *(_QWORD *)(a1 + 1280) = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v7) + 544) + 2152LL);\n  }\n  sub_1002F1F28(a1, 1);\n  **(_QWORD **)(a1 + 1096) = 0x3EC00000000LL;\n  *(_DWORD *)(a1 + 1076) = 1065353216;\n  *(_DWORD *)(a1 + 1048) = 2;\n  *(_DWORD *)(a1 + 1008) = -1;\n  *(_BYTE *)(a1 + 1016) = 1;\n  v8 = (int)(float)((float)((float)(((unsigned __int64)(214013 * qword_1009F63D8 + 2531011) >> 16) & 0x7FFF) / 32767.0)\n                  * 1900.0);\n  qword_1009F63D8 = 214013 * qword_1009F63D8 + 2531011;\n  *(_WORD *)(a1 + 1004) = v8;\n  *(_QWORD *)(a1 + 764) = *(_QWORD *)(a1 + 432);\n  *(_QWORD *)(a1 + 908) = 0x3F8000003F800000LL;\n  *(_OWORD *)(a1 + 972) = xmmword_10075CEB0;\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 128LL))(a1, 1.0);\n  result = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 144LL))(a1, 1.0);\n  *(_BYTE *)(a1 + 773) = 0;\n  *(_BYTE *)(a1 + 840) = 1;\n  *(_BYTE *)(a1 + 864) = 1;\n  return result;\n}", "assembly": "; \n; GameObject::commonSetup from 0x1002f1d44 to 0x1002f1ed8 (404 bytes)\n; \n; 5 xrefs:\n; > TextGameObject::create @ 0x1002f1bc8\n; > GameObject::createWithFrame @ 0x1002f1cb8\n; > GameObject::init @ 0x1002f1d28\n; > GameObject::initWithTexture @ 0x1002f1ef8\n; > EnhancedGameObject::init @ 0x1003000fc\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:02:56 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1002f1d44\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1002f1d48\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1002f1d4c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1002f1d50\nADD             X29, SP, #0x30                                         ; +0x10, 0x1002f1d54\nMOV             X19, X0                                                ; +0x14, 0x1002f1d58\nADRP            X8, #dword_1009D4298@PAGE                              ; +0x18, 0x1002f1d5c\nLDR             W9, [X8,#dword_1009D4298@PAGEOFF]                      ; +0x1c, 0x1002f1d60\nSTR             W9, [X0,#0x394]                                        ; +0x20, 0x1002f1d64\nSTR             W9, [X0,#0x34]                                         ; +0x24, 0x1002f1d68\nADD             W9, W9, #1                                             ; +0x28, 0x1002f1d6c\nSTR             W9, [X8,#dword_1009D4298@PAGEOFF]                      ; +0x2c, 0x1002f1d70\nBL              GameManager__sharedState                               ; +0x30, 0x1002f1d74\nLDR             X8, [X0,#0x220]                                        ; +0x34, 0x1002f1d78\nCBZ             X8, loc_1002F1DBC                                      ; +0x38, 0x1002f1d7c\nBL              GameManager__sharedState                               ; +0x3c, 0x1002f1d80\nLDR             X8, [X0,#0x220]                                        ; +0x40, 0x1002f1d84\nMOV             W9, #0x3680                                            ; +0x44, 0x1002f1d88\nLDR             W10, [X19,#0x394]                                      ; +0x48, 0x1002f1d8c\nSTR             W10, [SP,#0x30+var_30]                                 ; +0x4c, 0x1002f1d90\nMOV             X10, SP                                                ; +0x50, 0x1002f1d94\nSTR             X10, [SP,#0x30+var_28]                                 ; +0x54, 0x1002f1d98\nADRL            X2, unk_100769461                                      ; +0x58, 0x1002f1d9c\nADD             X0, X8, X9                                             ; +0x60, 0x1002f1da4\nMOV             X1, SP                                                 ; +0x64, 0x1002f1da8\nADD             X3, SP, #0x30+var_28                                   ; +0x68, 0x1002f1dac\nADD             X4, SP, #0x30+var_29                                   ; +0x6c, 0x1002f1db0\nBL              sub_10001A978                                          ; +0x70, 0x1002f1db4\nSTR             X19, [X0,#0x18]                                        ; +0x74, 0x1002f1db8\nADD             X20, X19, #0x2FC                                       ; +0x78, 0x1002f1dbc\nBL              GameManager__sharedState                               ; +0x7c, 0x1002f1dc0\nLDRB            W8, [X0,#0x2C2]                                        ; +0x80, 0x1002f1dc4\nSTRB            W8, [X19,#0x289]                                       ; +0x84, 0x1002f1dc8\nTBNZ            W8, #0, loc_1002F1DEC                                  ; +0x88, 0x1002f1dcc\nBL              GameManager__sharedState                               ; +0x8c, 0x1002f1dd0\nLDR             X8, [X0,#0x220]                                        ; +0x90, 0x1002f1dd4\nCBZ             X8, loc_1002F1DEC                                      ; +0x94, 0x1002f1dd8\nBL              GameManager__sharedState                               ; +0x98, 0x1002f1ddc\nLDR             X8, [X0,#0x220]                                        ; +0x9c, 0x1002f1de0\nLDR             X8, [X8,#0x868]                                        ; +0xa0, 0x1002f1de4\nSTR             X8, [X19,#0x500]                                       ; +0xa4, 0x1002f1de8\nMOV             W21, #1                                                ; +0xa8, 0x1002f1dec\nMOV             X0, X19                                                ; +0xac, 0x1002f1df0\nMOV             W1, #1                                                 ; +0xb0, 0x1002f1df4\nBL              sub_1002F1F28                                          ; +0xb4, 0x1002f1df8\nLDR             X8, [X19,#0x448]                                       ; +0xb8, 0x1002f1dfc\nADRP            X9, #qword_10076B6D8@PAGE                              ; +0xbc, 0x1002f1e00\nLDR             D0, [X9,#qword_10076B6D8@PAGEOFF]                      ; +0xc0, 0x1002f1e04\nSTR             D0, [X8]                                               ; +0xc4, 0x1002f1e08\nMOV             W8, #0x3F800000                                        ; +0xc8, 0x1002f1e0c\nSTR             W8, [X19,#0x434]                                       ; +0xcc, 0x1002f1e10\nMOV             W8, #2                                                 ; +0xd0, 0x1002f1e14\nSTR             W8, [X19,#0x418]                                       ; +0xd4, 0x1002f1e18\nMOV             W8, #0xFFFFFFFF                                        ; +0xd8, 0x1002f1e1c\nSTR             W8, [X19,#0x3F0]                                       ; +0xdc, 0x1002f1e20\nSTRB            W21, [X19,#0x3F8]                                      ; +0xe0, 0x1002f1e24\nADRP            X8, #qword_1009F63D8@PAGE                              ; +0xe4, 0x1002f1e28\nLDR             X9, [X8,#qword_1009F63D8@PAGEOFF]                      ; +0xe8, 0x1002f1e2c\nMOV             W10, #0x343FD                                          ; +0xec, 0x1002f1e30\nMOV             W11, #0x269EC3                                         ; +0xf4, 0x1002f1e38\nMADD            X9, X9, X10, X11                                       ; +0xfc, 0x1002f1e40\nUBFX            X10, X9, #0x10, #0xF                                   ; +0x100, 0x1002f1e44\nUCVTF           S0, X10                                                ; +0x104, 0x1002f1e48\nADRP            X10, #dword_10075CAAC@PAGE                             ; +0x108, 0x1002f1e4c\nLDR             S1, [X10,#dword_10075CAAC@PAGEOFF]                     ; +0x10c, 0x1002f1e50\nFDIV            S0, S0, S1                                             ; +0x110, 0x1002f1e54\nADRP            X10, #dword_10076B738@PAGE                             ; +0x114, 0x1002f1e58\nLDR             S1, [X10,#dword_10076B738@PAGEOFF]                     ; +0x118, 0x1002f1e5c\nFMUL            S0, S0, S1                                             ; +0x11c, 0x1002f1e60\nFCVTZS          W10, S0                                                ; +0x120, 0x1002f1e64\nSTR             X9, [X8,#qword_1009F63D8@PAGEOFF]                      ; +0x124, 0x1002f1e68\nSTRH            W10, [X19,#0x3EC]                                      ; +0x128, 0x1002f1e6c\nLDR             D0, [X19,#0x1B0]                                       ; +0x12c, 0x1002f1e70\nSTR             D0, [X20]                                              ; +0x130, 0x1002f1e74\nADD             X8, X19, #0x38C                                        ; +0x134, 0x1002f1e78\nMOV             X9, #0x3F8000003F800000                                ; +0x138, 0x1002f1e7c\nSTR             X9, [X8]                                               ; +0x13c, 0x1002f1e80\nADRP            X8, #xmmword_10075CEB0@PAGE                            ; +0x140, 0x1002f1e84\nLDR             Q0, [X8,#xmmword_10075CEB0@PAGEOFF]                    ; +0x144, 0x1002f1e88\nSTR             Q0, [X20,#0xD0]                                        ; +0x148, 0x1002f1e8c\nLDR             X8, [X19]                                              ; +0x14c, 0x1002f1e90\nLDR             X8, [X8,#0x80]                                         ; +0x150, 0x1002f1e94\nFMOV            S0, #1.0                                               ; +0x154, 0x1002f1e98\nMOV             X0, X19                                                ; +0x158, 0x1002f1e9c\nBLR             X8                                                     ; +0x15c, 0x1002f1ea0\nLDR             X8, [X19]                                              ; +0x160, 0x1002f1ea4\nLDR             X8, [X8,#0x90]                                         ; +0x164, 0x1002f1ea8\nFMOV            S0, #1.0                                               ; +0x168, 0x1002f1eac\nMOV             X0, X19                                                ; +0x16c, 0x1002f1eb0\nBLR             X8                                                     ; +0x170, 0x1002f1eb4\nSTRB            WZR, [X19,#0x305]                                      ; +0x174, 0x1002f1eb8\nSTRB            W21, [X19,#0x348]                                      ; +0x178, 0x1002f1ebc\nSTRB            W21, [X19,#0x360]                                      ; +0x17c, 0x1002f1ec0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x180, 0x1002f1ec4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x184, 0x1002f1ec8\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x188, 0x1002f1ecc\nADD             SP, SP, #0x40 ; '@'                                    ; +0x18c, 0x1002f1ed0\nRET                                                                    ; +0x190, 0x1002f1ed4", "xrefs": ["TextGameObject::create @ 0x1002f1bc8", "GameObject::createWithFrame @ 0x1002f1cb8", "GameObject::init @ 0x1002f1d28", "GameObject::initWithTexture @ 0x1002f1ef8", "EnhancedGameObject::init @ 0x1003000fc"], "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"}