{"type": "func", "start": 9128112, "end": 9128432, "name": "EndPortalObject::setPosition", "pseudocode": "// \n// EndPortalObject::setPosition from 0x8b48b0 to 0x8b49f0 (320 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0xca738\n// > <???> @ 0x1458f88\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 12:56:24 +0000\n// \n\n__int64 __fastcall EndPortalObject::setPosition(cocos2d::CCArray **this, const cocos2d::CCPoint *a2)\n{\n  GameManager **v4; // x22\n  void (__fastcall *v5)(GameManager **, __int64 *); // x24\n  float v6; // s2\n  float v7; // s1\n  __int64 v8; // x21\n  void (__fastcall *v9)(__int64, __int64 *); // x22\n  __int64 v10; // x23\n  float v11; // s0\n  _BYTE v13[8]; // [xsp+58h] [xbp+58h] BYREF\n  __int64 v14; // [xsp+60h] [xbp+60h] BYREF\n\n  GameObject::setPosition(this, a2);\n  v4 = (GameManager **)*(this + 169);\n  if ( v4 )\n  {\n    v5 = *((void (__fastcall **)(GameManager **, __int64 *))*v4 + 23);\n    v6 = *(float *)(*(_QWORD *)(GameManager::sharedState(*v4) + 544) + 424LL);\n    if ( *((_BYTE *)this + 1360) )\n      v7 = -1.0;\n    else\n      v7 = 1.0;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (float)(-14.0 - (float)(15.0 / v6)) * v7, 0.0);\n    cocos2d::CCPoint::operator+(&v14, a2);\n    v5(v4, &v14);\n  }\n  v8 = (__int64)*(this + 97);\n  if ( v8 )\n  {\n    v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL);\n    v10 = (*((__int64 (__fastcall **)(cocos2d::CCArray **))*this + 24))(this);\n    if ( *((_BYTE *)this + 1360) )\n      v11 = -1.0;\n    else\n      v11 = 1.0;\n    cocos2d::CCPoint::operator*((char *)this + 812, v11);\n    cocos2d::CCPoint::operator+(&v14, v10);\n    v9(v8, &v14);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EndPortalObject::setPosition from 0x8b48b0 to 0x8b49f0 (320 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0xca738\n; > <???> @ 0x1458f88\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 12:56:24 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x8b48b0\nMOV             X29, SP                                                ; +0x4, 0x8b48b4\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x8b48b8\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x8b48bc\nMOV             X19, X0                                                ; +0x10, 0x8b48c0\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0x8b48c4\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x18, 0x8b48c8\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x8b48cc\nMOV             X23, X1                                                ; +0x20, 0x8b48d0\nLDR             X2, [X2]                                               ; +0x24, 0x8b48d4\nSTR             X2, [X29,#0x70+var_8]                                  ; +0x28, 0x8b48d8\nBL              _ZN10GameObject11setPositionERKN7cocos2d7CCPointE; GameObject::setPosition(cocos2d::CCPoint const&) ; +0x2c, 0x8b48dc\nLDR             X22, [X19,#0x548]                                      ; +0x30, 0x8b48e0\nCBZ             X22, loc_8B4950                                        ; +0x34, 0x8b48e4\nLDR             X0, [X22]; this                                        ; +0x38, 0x8b48e8\nLDR             X24, [X0,#0xB8]                                        ; +0x3c, 0x8b48ec\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x40, 0x8b48f0\nLDR             X1, [X0,#0x220]                                        ; +0x44, 0x8b48f4\nFMOV            S0, #15.0                                              ; +0x48, 0x8b48f8\nLDRB            W0, [X19,#0x550]                                       ; +0x4c, 0x8b48fc\nFMOV            S1, #-14.0                                             ; +0x50, 0x8b4900\nLDR             S2, [X1,#0x1A8]                                        ; +0x54, 0x8b4904\nFDIV            S0, S0, S2                                             ; +0x58, 0x8b4908\nFSUB            S0, S1, S0                                             ; +0x5c, 0x8b490c\nCBNZ            W0, loc_8B49E4                                         ; +0x60, 0x8b4910\nFMOV            S1, #1.0                                               ; +0x64, 0x8b4914\nFMUL            S0, S0, S1; float                                      ; +0x68, 0x8b4918\nADD             X1, X29, #0x70+var_18                                  ; +0x6c, 0x8b491c\nFMOV            S1, WZR; float                                         ; +0x70, 0x8b4920\nMOV             X0, X1; this                                           ; +0x74, 0x8b4924\nSTR             X1, [X29,#0x70+var_28]                                 ; +0x78, 0x8b4928\nADD             X21, X29, #0x70+var_10                                 ; +0x7c, 0x8b492c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x80, 0x8b4930\nLDR             X1, [X29,#0x70+var_28]                                 ; +0x84, 0x8b4934\nMOV             X0, X23                                                ; +0x88, 0x8b4938\nMOV             X8, X21                                                ; +0x8c, 0x8b493c\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x90, 0x8b4940\nMOV             X0, X22                                                ; +0x94, 0x8b4944\nMOV             X1, X21                                                ; +0x98, 0x8b4948\nBLR             X24                                                    ; +0x9c, 0x8b494c\nLDR             X21, [X19,#0x308]                                      ; +0xa0, 0x8b4950\nCBZ             X21, loc_8B49B4                                        ; +0xa4, 0x8b4954\nLDR             X1, [X19]                                              ; +0xa8, 0x8b4958\nMOV             X0, X19                                                ; +0xac, 0x8b495c\nLDR             X2, [X21]                                              ; +0xb0, 0x8b4960\nLDR             X1, [X1,#0xC0]                                         ; +0xb4, 0x8b4964\nLDR             X22, [X2,#0xB8]                                        ; +0xb8, 0x8b4968\nBLR             X1                                                     ; +0xbc, 0x8b496c\nMOV             X23, X0                                                ; +0xc0, 0x8b4970\nLDRB            W1, [X19,#0x550]                                       ; +0xc4, 0x8b4974\nADD             X0, X19, #0x32C                                        ; +0xc8, 0x8b4978\nCBNZ            W1, loc_8B49DC                                         ; +0xcc, 0x8b497c\nFMOV            S0, #1.0                                               ; +0xd0, 0x8b4980\nADD             X1, X29, #0x70+var_18                                  ; +0xd4, 0x8b4984\nSTR             X1, [X29,#0x70+var_28]                                 ; +0xd8, 0x8b4988\nMOV             X8, X1                                                 ; +0xdc, 0x8b498c\nADD             X19, X29, #0x70+var_10                                 ; +0xe0, 0x8b4990\nBL              _ZNK7cocos2d7CCPointmlEf; cocos2d::CCPoint::operator*(float) ; +0xe4, 0x8b4994\nLDR             X1, [X29,#0x70+var_28]                                 ; +0xe8, 0x8b4998\nMOV             X0, X23                                                ; +0xec, 0x8b499c\nMOV             X8, X19                                                ; +0xf0, 0x8b49a0\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xf4, 0x8b49a4\nMOV             X0, X21                                                ; +0xf8, 0x8b49a8\nMOV             X1, X19                                                ; +0xfc, 0x8b49ac\nBLR             X22                                                    ; +0x100, 0x8b49b0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x104, 0x8b49b4\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x108, 0x8b49b8\nLDR             X0, [X20]                                              ; +0x10c, 0x8b49bc\nCMP             X1, X0                                                 ; +0x110, 0x8b49c0\nB.NE            loc_8B49EC                                             ; +0x114, 0x8b49c4\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x118, 0x8b49c8\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x11c, 0x8b49cc\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0x120, 0x8b49d0\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x124, 0x8b49d4\nRET                                                                    ; +0x128, 0x8b49d8\nFMOV            S0, #-1.0                                              ; +0x12c, 0x8b49dc\nB               loc_8B4984                                             ; +0x130, 0x8b49e0\nFMOV            S1, #-1.0                                              ; +0x134, 0x8b49e4\nB               loc_8B4918                                             ; +0x138, 0x8b49e8\nBL              .__stack_chk_fail                                      ; +0x13c, 0x8b49ec", "xrefs": ["<???> @ 0xca738", "<???> @ 0x1458f88"], "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"}