{"type": "func", "start": 4298544220, "end": 4298544384, "name": "GameObjectCopy::init", "pseudocode": "// \n// GameObjectCopy::init from 0x10036945c to 0x100369500 (164 bytes)\n// \n// 1 xrefs:\n// > GameObjectCopy::create @ 0x10035c224\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\nbool __fastcall GameObjectCopy::init(GameObjectCopy *a1, GameObject *a2)\n{\n  double *v3; // x0\n  double v4; // d0\n\n  a1->m_object = a2;\n  cocos2d::CCObject::retain(a2);\n  v3 = (double *)((__int64 (__fastcall *)(GameObject *))a1->m_object->getPosition)(a1->m_object);\n  v4 = sub_1000229D0(&a1->m_position, v3);\n  a1->m_rotationX = ((float (__fastcall *)(GameObject *, double))a1->m_object->getRotationX)(a1->m_object, v4);\n  a1->m_rotationY = ((float (__fastcall *)(GameObject *))a1->m_object->getRotationY)(a1->m_object);\n  a1->m_isFlipX = ((__int64 (__fastcall *)(GameObject *))a1->m_object->isFlipX)(a1->m_object);\n  a1->m_isFlipY = ((__int64 (__fastcall *)(GameObject *))a1->m_object->isFlipY)(a1->m_object);\n  *(_QWORD *)&a1->m_customScaleX = *(_QWORD *)&a1->m_object->m_scaleX;\n  return 1;\n}", "assembly": "; \n; GameObjectCopy::init from 0x10036945c to 0x100369500 (164 bytes)\n; \n; 1 xrefs:\n; > GameObjectCopy::create @ 0x10035c224\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10036945c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100369460\nADD             X29, SP, #0x10                                         ; +0x8, 0x100369464\nMOV             X19, X0                                                ; +0xc, 0x100369468\nSTR             X1, [X0,#0x38]                                         ; +0x10, 0x10036946c\nMOV             X0, X1                                                 ; +0x14, 0x100369470\nBL              cocos2d__CCObject__retain                              ; +0x18, 0x100369474\nLDR             X0, [X19,#0x38]                                        ; +0x1c, 0x100369478\nLDR             X8, [X0]                                               ; +0x20, 0x10036947c\nLDR             X8, [X8,#0xC0]                                         ; +0x24, 0x100369480\nBLR             X8                                                     ; +0x28, 0x100369484\nMOV             X1, X0                                                 ; +0x2c, 0x100369488\nADD             X0, X19, #0x40 ; '@'                                   ; +0x30, 0x10036948c\nBL              sub_1000229D0                                          ; +0x34, 0x100369490\nLDR             X0, [X19,#0x38]                                        ; +0x38, 0x100369494\nLDR             X8, [X0]                                               ; +0x3c, 0x100369498\nLDR             X8, [X8,#0x170]                                        ; +0x40, 0x10036949c\nBLR             X8                                                     ; +0x44, 0x1003694a0\nSTR             S0, [X19,#0x48]                                        ; +0x48, 0x1003694a4\nLDR             X0, [X19,#0x38]                                        ; +0x4c, 0x1003694a8\nLDR             X8, [X0]                                               ; +0x50, 0x1003694ac\nLDR             X8, [X8,#0x180]                                        ; +0x54, 0x1003694b0\nBLR             X8                                                     ; +0x58, 0x1003694b4\nSTR             S0, [X19,#0x4C]                                        ; +0x5c, 0x1003694b8\nLDR             X0, [X19,#0x38]                                        ; +0x60, 0x1003694bc\nLDR             X8, [X0]                                               ; +0x64, 0x1003694c0\nLDR             X8, [X8,#0x580]                                        ; +0x68, 0x1003694c4\nBLR             X8                                                     ; +0x6c, 0x1003694c8\nSTRB            W0, [X19,#0x50]                                        ; +0x70, 0x1003694cc\nLDR             X0, [X19,#0x38]                                        ; +0x74, 0x1003694d0\nLDR             X8, [X0]                                               ; +0x78, 0x1003694d4\nLDR             X8, [X8,#0x588]                                        ; +0x7c, 0x1003694d8\nBLR             X8                                                     ; +0x80, 0x1003694dc\nSTRB            W0, [X19,#0x51]                                        ; +0x84, 0x1003694e0\nLDR             X8, [X19,#0x38]                                        ; +0x88, 0x1003694e4\nLDR             D0, [X8,#0x480]                                        ; +0x8c, 0x1003694e8\nSTUR            D0, [X19,#0x54]                                        ; +0x90, 0x1003694ec\nMOV             W0, #1                                                 ; +0x94, 0x1003694f0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x98, 0x1003694f4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x9c, 0x1003694f8\nRET                                                                    ; +0xa0, 0x1003694fc", "xrefs": ["GameObjectCopy::create @ 0x10035c224"], "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"}