{"type": "func", "start": 4301731680, "end": 4301732152, "name": "GameObject::commonSetup", "pseudocode": "// \n// GameObject::commonSetup from 0x100673760 to 0x100673938 (472 bytes)\n// \n// 7 xrefs:\n// > TextGameObject::create @ 0x100673558\n// > EnhancedGameObject::create @ 0x10067366b\n// > GameObject::createWithFrame @ 0x1006736f1\n// > GameObject::init @ 0x100673749\n// > GameObject::initWithTexture @ 0x100673957\n// > EnhancedGameObject::init @ 0x10069d489\n// > TextGameObject::init @ 0x1006a2ef7\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 12:35:02 +0000\n// \n\n__int64 __fastcall GameObject::commonSetup(__int64 a1, __m128 a2)\n{\n  int v3; // eax\n  float *v4; // rdi\n  char v5; // al\n  _QWORD *v6; // rax\n  __int64 result; // rax\n  int *v8; // [rsp+8h] [rbp-18h] BYREF\n  int v9; // [rsp+10h] [rbp-10h] BYREF\n\n  v3 = dword_100BE0770;\n  *(_DWORD *)(a1 + 916) = dword_100BE0770;\n  *(_DWORD *)(a1 + 52) = v3;\n  dword_100BE0770 = v3 + 1;\n  if ( *(_QWORD *)(GameManager::sharedState() + 544) )\n  {\n    v4 = (float *)(*(_QWORD *)(GameManager::sharedState() + 544) + 13952LL);\n    v9 = *(_DWORD *)(a1 + 916);\n    v8 = &v9;\n    sub_100145D20(v4, &v9, a2, (__int64)&unk_100A0E391, &v8)[3] = a1;\n  }\n  v5 = *(_BYTE *)(GameManager::sharedState() + 706);\n  *(_BYTE *)(a1 + 649) = v5;\n  if ( !v5 && *(_QWORD *)(GameManager::sharedState() + 544) )\n    *(_QWORD *)(a1 + 1280) = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 2152LL);\n  v6 = *(_QWORD **)(a1 + 1096);\n  if ( !v6 )\n  {\n    v6 = operator new(0x28u);\n    *v6 = 0;\n    v6[1] = 0x3F8000003F800000LL;\n    *((_OWORD *)v6 + 1) = xmmword_100BE5C20;\n    *((_DWORD *)v6 + 8) = -65536;\n    *((_BYTE *)v6 + 36) = -1;\n    *(_QWORD *)(a1 + 1096) = v6;\n  }\n  *v6 = 0x3EC00000000LL;\n  *(_DWORD *)(a1 + 1076) = 1065353216;\n  *(_DWORD *)(a1 + 1048) = 2;\n  *(_DWORD *)(a1 + 1008) = -1;\n  *(_BYTE *)(a1 + 1016) = 1;\n  qword_100BE5C38 = 214013 * qword_100BE5C38 + 2531011;\n  *(_WORD *)(a1 + 1004) = (int)(float)((float)((float)(WORD1(qword_100BE5C38) & 0x7FFF) / 32767.0) * 1900.0);\n  *(_QWORD *)(a1 + 764) = *(_QWORD *)(a1 + 432);\n  *(_QWORD *)(a1 + 908) = 0x3F8000003F800000LL;\n  *(_OWORD *)(a1 + 972) = xmmword_100A05480;\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 0x100673760 to 0x100673938 (472 bytes)\n; \n; 7 xrefs:\n; > TextGameObject::create @ 0x100673558\n; > EnhancedGameObject::create @ 0x10067366b\n; > GameObject::createWithFrame @ 0x1006736f1\n; > GameObject::init @ 0x100673749\n; > GameObject::initWithTexture @ 0x100673957\n; > EnhancedGameObject::init @ 0x10069d489\n; > TextGameObject::init @ 0x1006a2ef7\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 12:35:02 +0000\n; \npush    rbp                                                            ; +0x0, 0x100673760\nmov     rbp, rsp                                                       ; +0x1, 0x100673761\npush    rbx                                                            ; +0x4, 0x100673764\nsub     rsp, 18h                                                       ; +0x5, 0x100673765\nmov     rbx, rdi                                                       ; +0x9, 0x100673769\nmov     eax, cs:dword_100BE0770                                        ; +0xc, 0x10067376c\nmov     [rdi+394h], eax                                                ; +0x12, 0x100673772\nmov     [rdi+34h], eax                                                 ; +0x18, 0x100673778\ninc     eax                                                            ; +0x1b, 0x10067377b\nmov     cs:dword_100BE0770, eax                                        ; +0x1d, 0x10067377d\ncall    GameManager__sharedState                                       ; +0x23, 0x100673783\ncmp     qword ptr [rax+220h], 0                                        ; +0x28, 0x100673788\njz      short loc_1006737CC                                            ; +0x30, 0x100673790\ncall    GameManager__sharedState                                       ; +0x32, 0x100673792\nmov     edi, 3680h                                                     ; +0x37, 0x100673797\nadd     rdi, [rax+220h]                                                ; +0x3c, 0x10067379c\nmov     eax, [rbx+394h]                                                ; +0x43, 0x1006737a3\nmov     [rbp+var_10], eax                                              ; +0x49, 0x1006737a9\nlea     rsi, [rbp+var_10]                                              ; +0x4c, 0x1006737ac\nmov     [rbp+var_18], rsi                                              ; +0x50, 0x1006737b0\nlea     rdx, unk_100A0E391                                             ; +0x54, 0x1006737b4\nlea     rcx, [rbp+var_18]                                              ; +0x5b, 0x1006737bb\nlea     r8, [rbp+var_9]                                                ; +0x5f, 0x1006737bf\ncall    sub_100145D20                                                  ; +0x63, 0x1006737c3\nmov     [rax+18h], rbx                                                 ; +0x68, 0x1006737c8\ncall    GameManager__sharedState                                       ; +0x6c, 0x1006737cc\nmovzx   eax, byte ptr [rax+2C2h]                                       ; +0x71, 0x1006737d1\nmov     [rbx+289h], al                                                 ; +0x78, 0x1006737d8\ntest    al, al                                                         ; +0x7e, 0x1006737de\njnz     short loc_10067380B                                            ; +0x80, 0x1006737e0\ncall    GameManager__sharedState                                       ; +0x82, 0x1006737e2\ncmp     qword ptr [rax+220h], 0                                        ; +0x87, 0x1006737e7\njz      short loc_10067380B                                            ; +0x8f, 0x1006737ef\ncall    GameManager__sharedState                                       ; +0x91, 0x1006737f1\nmov     rax, [rax+220h]                                                ; +0x96, 0x1006737f6\nmov     rax, [rax+868h]                                                ; +0x9d, 0x1006737fd\nmov     [rbx+500h], rax                                                ; +0xa4, 0x100673804\nmov     rax, [rbx+448h]                                                ; +0xab, 0x10067380b\ntest    rax, rax                                                       ; +0xb2, 0x100673812\njnz     short loc_100673852                                            ; +0xb5, 0x100673815\nmov     edi, 28h ; '('; __sz                                           ; +0xb7, 0x100673817\ncall    __Znwm; operator new(ulong)                                    ; +0xbc, 0x10067381c\nmov     qword ptr [rax], 0                                             ; +0xc1, 0x100673821\nmovsd   xmm0, qword ptr cs:xmmword_100A038B0                           ; +0xc8, 0x100673828\nmovsd   qword ptr [rax+8], xmm0                                        ; +0xd0, 0x100673830\nmovups  xmm0, cs:xmmword_100BE5C20                                     ; +0xd5, 0x100673835\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0xdc, 0x10067383c\nmov     dword ptr [rax+20h], 0FFFF0000h                                ; +0xe0, 0x100673840\nmov     byte ptr [rax+24h], 0FFh                                       ; +0xe7, 0x100673847\nmov     [rbx+448h], rax                                                ; +0xeb, 0x10067384b\nmov     rcx, 3EC00000000h                                              ; +0xf2, 0x100673852\nmov     [rax], rcx                                                     ; +0xfc, 0x10067385c\nmov     dword ptr [rbx+434h], 3F800000h                                ; +0xff, 0x10067385f\nmov     dword ptr [rbx+418h], 2                                        ; +0x109, 0x100673869\nmov     dword ptr [rbx+3F0h], 0FFFFFFFFh                               ; +0x113, 0x100673873\nmov     byte ptr [rbx+3F8h], 1                                         ; +0x11d, 0x10067387d\nimul    rax, cs:qword_100BE5C38, 343FDh                                ; +0x124, 0x100673884\nadd     rax, 269EC3h                                                   ; +0x12f, 0x10067388f\nmov     cs:qword_100BE5C38, rax                                        ; +0x135, 0x100673895\nshr     eax, 10h                                                       ; +0x13c, 0x10067389c\nand     eax, 7FFFh                                                     ; +0x13f, 0x10067389f\nxorps   xmm0, xmm0                                                     ; +0x144, 0x1006738a4\ncvtsi2ss xmm0, eax                                                     ; +0x147, 0x1006738a7\ndivss   xmm0, cs:dword_100A04C30                                       ; +0x14b, 0x1006738ab\nmulss   xmm0, cs:dword_100A0E320                                       ; +0x153, 0x1006738b3\ncvttss2si eax, xmm0                                                    ; +0x15b, 0x1006738bb\nmov     [rbx+3ECh], ax                                                 ; +0x15f, 0x1006738bf\nmovsd   xmm0, qword ptr [rbx+1B0h]                                     ; +0x166, 0x1006738c6\nmovsd   qword ptr [rbx+2FCh], xmm0                                     ; +0x16e, 0x1006738ce\nmovsd   xmm0, qword ptr cs:xmmword_100A038B0                           ; +0x176, 0x1006738d6\nmovsd   qword ptr [rbx+38Ch], xmm0                                     ; +0x17e, 0x1006738de\nmovaps  xmm0, cs:xmmword_100A05480                                     ; +0x186, 0x1006738e6\nmovups  xmmword ptr [rbx+3CCh], xmm0                                   ; +0x18d, 0x1006738ed\nmov     rax, [rbx]                                                     ; +0x194, 0x1006738f4\nmovss   xmm0, cs:alpha                                                 ; +0x197, 0x1006738f7\nmov     rdi, rbx                                                       ; +0x19f, 0x1006738ff\ncall    qword ptr [rax+80h]                                            ; +0x1a2, 0x100673902\nmov     rax, [rbx]                                                     ; +0x1a8, 0x100673908\nmov     rdi, rbx                                                       ; +0x1ab, 0x10067390b\nmovss   xmm0, cs:alpha                                                 ; +0x1ae, 0x10067390e\ncall    qword ptr [rax+90h]                                            ; +0x1b6, 0x100673916\nmov     byte ptr [rbx+305h], 0                                         ; +0x1bc, 0x10067391c\nmov     byte ptr [rbx+348h], 1                                         ; +0x1c3, 0x100673923\nmov     byte ptr [rbx+360h], 1                                         ; +0x1ca, 0x10067392a\nadd     rsp, 18h                                                       ; +0x1d1, 0x100673931\npop     rbx                                                            ; +0x1d5, 0x100673935\npop     rbp                                                            ; +0x1d6, 0x100673936\nretn                                                                   ; +0x1d7, 0x100673937", "xrefs": ["TextGameObject::create @ 0x100673558", "EnhancedGameObject::create @ 0x10067366b", "GameObject::createWithFrame @ 0x1006736f1", "GameObject::init @ 0x100673749", "GameObject::initWithTexture @ 0x100673957", "EnhancedGameObject::init @ 0x10069d489", "TextGameObject::init @ 0x1006a2ef7"], "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"}