{"type": "func", "start": 4297411488, "end": 4297411812, "name": "GameObject::commonSetup", "pseudocode": "// \n// GameObject::commonSetup from 0x100254ba0 to 0x100254ce4 (324 bytes)\n// \n// 5 xrefs:\n// > TextGameObject::create @ 0x100254a24\n// > GameObject::createWithFrame @ 0x100254b14\n// > GameObject::init @ 0x100254b84\n// > GameObject::initWithTexture @ 0x100254d04\n// > EnhancedGameObject::init @ 0x100262e40\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\nvoid __fastcall GameObject::commonSetup(GameObject *a1)\n{\n  float *p_m_width; // x20\n  bool m_editorEnabled; // w8\n  int v4; // w10\n  int v5; // w9\n\n  p_m_width = &a1->m_width;\n  m_editorEnabled = GameManager::sharedState()->m_editorEnabled;\n  a1->m_editorEnabled = m_editorEnabled;\n  if ( !m_editorEnabled && GameManager::sharedState()->m_playLayer )\n    a1->m_goEffectManager = GameManager::sharedState()->m_playLayer->m_effectManager;\n  GameObject::createSpriteColor(a1, 1);\n  *(_QWORD *)a1->m_baseColor = 0x3EC00000000LL;\n  a1->m_opacityMod = 1.0;\n  a1->m_defaultZOrder = 2;\n  *(_DWORD *)&a1->m_enterType = -1;\n  a1->m_unk3E8 = 1;\n  v4 = (int)(float)((float)((float)(((unsigned __int64)(214013 * qword_10086D518 + 2531011) >> 16) & 0x7FFF) / 32767.0)\n                  * 1900.0);\n  qword_10086D518 = 214013 * qword_10086D518 + 2531011;\n  a1->m_varianceIndex = v4;\n  *(cocos2d::CCSize *)p_m_width = a1->m_obRect.size;\n  *(_QWORD *)&a1->m_spriteWidthScale = 0x3F8000003F800000LL;\n  v5 = dword_10084C1E8;\n  a1->m_uniqueID = dword_10084C1E8;\n  a1->m_unknown5 = v5;\n  dword_10084C1E8 = v5 + 1;\n  *((_OWORD *)p_m_width + 13) = xmmword_100635DB0;\n  ((void (__fastcall *)(GameObject *, float))a1->setScaleX)(a1, 1.0);\n  ((void (__fastcall *)(GameObject *, float))a1->setScaleY)(a1, 1.0);\n  a1->m_isActivated = 0;\n  a1->m_isDirty = 1;\n  a1->m_isObjectRectDirty = 1;\n}", "assembly": "; \n; GameObject::commonSetup from 0x100254ba0 to 0x100254ce4 (324 bytes)\n; \n; 5 xrefs:\n; > TextGameObject::create @ 0x100254a24\n; > GameObject::createWithFrame @ 0x100254b14\n; > GameObject::init @ 0x100254b84\n; > GameObject::initWithTexture @ 0x100254d04\n; > EnhancedGameObject::init @ 0x100262e40\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100254ba0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100254ba4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100254ba8\nADD             X29, SP, #0x20                                         ; +0xc, 0x100254bac\nMOV             X19, X0                                                ; +0x10, 0x100254bb0\nADD             X20, X0, #0x2FC                                        ; +0x14, 0x100254bb4\nBL              GameManager__sharedState                               ; +0x18, 0x100254bb8\nLDRB            W8, [X0,#0x29A]                                        ; +0x1c, 0x100254bbc\nSTRB            W8, [X19,#0x289]                                       ; +0x20, 0x100254bc0\nTBNZ            W8, #0, loc_100254BE4                                  ; +0x24, 0x100254bc4\nBL              GameManager__sharedState                               ; +0x28, 0x100254bc8\nLDR             X8, [X0,#0x1F8]                                        ; +0x2c, 0x100254bcc\nCBZ             X8, loc_100254BE4                                      ; +0x30, 0x100254bd0\nBL              GameManager__sharedState                               ; +0x34, 0x100254bd4\nLDR             X8, [X0,#0x1F8]                                        ; +0x38, 0x100254bd8\nLDR             X8, [X8,#0x878]                                        ; +0x3c, 0x100254bdc\nSTR             X8, [X19,#0x500]                                       ; +0x40, 0x100254be0\nMOV             W21, #1                                                ; +0x44, 0x100254be4\nMOV             X0, X19                                                ; +0x48, 0x100254be8\nMOV             W1, #1                                                 ; +0x4c, 0x100254bec\nBL              GameObject__createSpriteColor                          ; +0x50, 0x100254bf0\nLDR             X8, [X19,#0x448]                                       ; +0x54, 0x100254bf4\nADRP            X9, #qword_100642748@PAGE                              ; +0x58, 0x100254bf8\nLDR             D0, [X9,#qword_100642748@PAGEOFF]                      ; +0x5c, 0x100254bfc\nSTR             D0, [X8]                                               ; +0x60, 0x100254c00\nMOV             W8, #0x3F800000                                        ; +0x64, 0x100254c04\nSTR             W8, [X19,#0x434]                                       ; +0x68, 0x100254c08\nMOV             W8, #2                                                 ; +0x6c, 0x100254c0c\nSTR             W8, [X19,#0x418]                                       ; +0x70, 0x100254c10\nMOV             W8, #0xFFFFFFFF                                        ; +0x74, 0x100254c14\nSTR             W8, [X19,#0x3F0]                                       ; +0x78, 0x100254c18\nSTRB            W21, [X19,#0x3F8]                                      ; +0x7c, 0x100254c1c\nADRP            X8, #qword_10086D518@PAGE                              ; +0x80, 0x100254c20\nLDR             X9, [X8,#qword_10086D518@PAGEOFF]                      ; +0x84, 0x100254c24\nMOV             W10, #0x343FD                                          ; +0x88, 0x100254c28\nMOV             W11, #0x269EC3                                         ; +0x90, 0x100254c30\nMADD            X9, X9, X10, X11                                       ; +0x98, 0x100254c38\nUBFX            X10, X9, #0x10, #0xF                                   ; +0x9c, 0x100254c3c\nUCVTF           S0, X10                                                ; +0xa0, 0x100254c40\nADRP            X10, #dword_100635A20@PAGE                             ; +0xa4, 0x100254c44\nLDR             S1, [X10,#dword_100635A20@PAGEOFF]                     ; +0xa8, 0x100254c48\nFDIV            S0, S0, S1                                             ; +0xac, 0x100254c4c\nADRP            X10, #dword_1006427B0@PAGE                             ; +0xb0, 0x100254c50\nLDR             S1, [X10,#dword_1006427B0@PAGEOFF]                     ; +0xb4, 0x100254c54\nFMUL            S0, S0, S1                                             ; +0xb8, 0x100254c58\nFCVTZS          W10, S0                                                ; +0xbc, 0x100254c5c\nSTR             X9, [X8,#qword_10086D518@PAGEOFF]                      ; +0xc0, 0x100254c60\nSTRH            W10, [X19,#0x3EC]                                      ; +0xc4, 0x100254c64\nLDR             D0, [X19,#0x1B0]                                       ; +0xc8, 0x100254c68\nSTR             D0, [X20]                                              ; +0xcc, 0x100254c6c\nADD             X8, X19, #0x38C                                        ; +0xd0, 0x100254c70\nMOV             X9, #0x3F8000003F800000                                ; +0xd4, 0x100254c74\nSTR             X9, [X8]                                               ; +0xd8, 0x100254c78\nADRP            X8, #dword_10084C1E8@PAGE                              ; +0xdc, 0x100254c7c\nLDR             W9, [X8,#dword_10084C1E8@PAGEOFF]                      ; +0xe0, 0x100254c80\nSTR             W9, [X19,#0x394]                                       ; +0xe4, 0x100254c84\nSTR             W9, [X19,#0x34]                                        ; +0xe8, 0x100254c88\nADD             W9, W9, #1                                             ; +0xec, 0x100254c8c\nSTR             W9, [X8,#dword_10084C1E8@PAGEOFF]                      ; +0xf0, 0x100254c90\nADRP            X8, #xmmword_100635DB0@PAGE                            ; +0xf4, 0x100254c94\nLDR             Q0, [X8,#xmmword_100635DB0@PAGEOFF]                    ; +0xf8, 0x100254c98\nSTR             Q0, [X20,#0xD0]                                        ; +0xfc, 0x100254c9c\nLDR             X8, [X19]                                              ; +0x100, 0x100254ca0\nLDR             X8, [X8,#0x80]                                         ; +0x104, 0x100254ca4\nFMOV            S0, #1.0                                               ; +0x108, 0x100254ca8\nMOV             X0, X19                                                ; +0x10c, 0x100254cac\nBLR             X8                                                     ; +0x110, 0x100254cb0\nLDR             X8, [X19]                                              ; +0x114, 0x100254cb4\nLDR             X8, [X8,#0x90]                                         ; +0x118, 0x100254cb8\nFMOV            S0, #1.0                                               ; +0x11c, 0x100254cbc\nMOV             X0, X19                                                ; +0x120, 0x100254cc0\nBLR             X8                                                     ; +0x124, 0x100254cc4\nSTRB            WZR, [X19,#0x305]                                      ; +0x128, 0x100254cc8\nSTRB            W21, [X19,#0x348]                                      ; +0x12c, 0x100254ccc\nSTRB            W21, [X19,#0x360]                                      ; +0x130, 0x100254cd0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x134, 0x100254cd4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x138, 0x100254cd8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x13c, 0x100254cdc\nRET                                                                    ; +0x140, 0x100254ce0", "xrefs": ["TextGameObject::create @ 0x100254a24", "GameObject::createWithFrame @ 0x100254b14", "GameObject::init @ 0x100254b84", "GameObject::initWithTexture @ 0x100254d04", "EnhancedGameObject::init @ 0x100262e40"], "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"}