{"type": "func", "start": 5273116, "end": 5273332, "name": "EndPortalObject::setPosition", "pseudocode": "// \n// EndPortalObject::setPosition from 0x50761c to 0x5076f4 (216 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:25 +0000\n// \n\nGameManager *__fastcall EndPortalObject::setPosition(cocos2d::CCArray **this, const cocos2d::CCPoint *a2)\n{\n  GameManager *result; // r0\n  int v5; // r6\n  int (__fastcall *v6)(int, _BYTE *); // r9\n  int v7; // r3\n  float v8; // s15\n  int v9; // r6\n  int (__fastcall *v10)(int, _BYTE *); // r8\n  int v11; // r0\n  float v12; // r2\n  int v13; // r9\n  _BYTE v14[8]; // [sp+4h] [bp-14h] BYREF\n  _BYTE v15[8]; // [sp+Ch] [bp-Ch] BYREF\n\n  result = (GameManager *)GameObject::setPosition(this, a2);\n  v5 = (int)*(this + 292);\n  if ( v5 )\n  {\n    v6 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);\n    v7 = *(_DWORD *)(GameManager::sharedState(result) + 404);\n    v8 = -1.0;\n    if ( !*((_BYTE *)this + 1172) )\n      v8 = 1.0;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (float)(-14.0 - (float)(15.0 / *(float *)(v7 + 328))) * v8, 0.0);\n    cocos2d::CCPoint::operator+(v15, a2, v14);\n    result = (GameManager *)v6(v5, v15);\n  }\n  v9 = (int)*(this + 165);\n  if ( v9 )\n  {\n    v10 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92);\n    v11 = (*((int (__fastcall **)(cocos2d::CCArray **))*this + 24))(this);\n    if ( *((_BYTE *)this + 1172) )\n      v12 = -1.0;\n    else\n      v12 = 1.0;\n    v13 = v11;\n    cocos2d::CCPoint::operator*(v14, this + 170, LODWORD(v12));\n    cocos2d::CCPoint::operator+(v15, v13, v14);\n    return (GameManager *)v10(v9, v15);\n  }\n  return result;\n}", "assembly": "; \n; EndPortalObject::setPosition from 0x50761c to 0x5076f4 (216 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:25 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x50761c\nSUB             SP, SP, #0x18                                          ; +0x4, 0x507620\nLDR             R5, =(__stack_chk_guard_ptr - 0x50762C)                ; +0x6, 0x507622\nMOV             R4, R0                                                 ; +0x8, 0x507624\nMOV             R10, R1                                                ; +0xa, 0x507626\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x507628\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x50762a\nLDR             R3, [R5]                                               ; +0x10, 0x50762c\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x12, 0x50762e\nBL              _ZN10GameObject11setPositionERKN7cocos2d7CCPointE; GameObject::setPosition(cocos2d::CCPoint const&) ; +0x14, 0x507630\nLDR.W           R6, [R4,#0x490]                                        ; +0x18, 0x507634\nCBZ             R6, loc_507696                                         ; +0x1c, 0x507638\nLDR             R3, [R6]                                               ; +0x1e, 0x50763a\nADD.W           R8, SP, #0x18+var_14                                   ; +0x20, 0x50763c\nADD             R7, SP, #0x18+var_C                                    ; +0x24, 0x507640\nLDR.W           R9, [R3,#0x5C]                                         ; +0x26, 0x507642\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2a, 0x507646\nVMOV.F32        S15, #15.0                                             ; +0x2e, 0x50764a\nMOVS            R2, #0; float                                          ; +0x32, 0x50764e\nVMOV.F32        S13, #1.0                                              ; +0x34, 0x507650\nLDR.W           R3, [R0,#0x194]                                        ; +0x38, 0x507654\nMOV             R0, R8; this                                           ; +0x3c, 0x507658\nVLDR            S14, [R3,#0x148]                                       ; +0x3e, 0x50765a\nLDRB.W          R3, [R4,#0x494]                                        ; +0x42, 0x50765e\nCMP             R3, #0                                                 ; +0x46, 0x507662\nVDIV.F32        S14, S15, S14                                          ; +0x48, 0x507664\nVMOV.F32        S15, #-14.0                                            ; +0x4c, 0x507668\nVSUB.F32        S14, S15, S14                                          ; +0x50, 0x50766c\nVMOV.F32        S15, #-1.0                                             ; +0x54, 0x507670\nIT EQ                                                                  ; +0x58, 0x507674\nVMOVEQ.F32      S15, S13                                               ; +0x5a, 0x507676\nVMUL.F32        S15, S14, S15                                          ; +0x5e, 0x50767a\nVMOV            R1, S15; float                                         ; +0x62, 0x50767e\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x66, 0x507682\nMOV             R0, R7                                                 ; +0x6a, 0x507686\nMOV             R1, R10                                                ; +0x6c, 0x507688\nMOV             R2, R8                                                 ; +0x6e, 0x50768a\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x70, 0x50768c\nMOV             R0, R6                                                 ; +0x74, 0x507690\nMOV             R1, R7                                                 ; +0x76, 0x507692\nBLX             R9                                                     ; +0x78, 0x507694\nLDR.W           R6, [R4,#0x294]                                        ; +0x7a, 0x507696\nCBZ             R6, loc_5076E2                                         ; +0x7e, 0x50769a\nLDR             R3, [R6]                                               ; +0x80, 0x50769c\nMOV             R0, R4                                                 ; +0x82, 0x50769e\nADD             R7, SP, #0x18+var_14                                   ; +0x84, 0x5076a0\nLDR.W           R8, [R3,#0x5C]                                         ; +0x86, 0x5076a2\nLDR             R3, [R4]                                               ; +0x8a, 0x5076a6\nLDR             R3, [R3,#0x60]                                         ; +0x8c, 0x5076a8\nBLX             R3                                                     ; +0x8e, 0x5076aa\nVMOV.F32        S15, #1.0                                              ; +0x90, 0x5076ac\nLDRB.W          R3, [R4,#0x494]                                        ; +0x94, 0x5076b0\nADD.W           R1, R4, #0x2A8                                         ; +0x98, 0x5076b4\nADD             R4, SP, #0x18+var_C                                    ; +0x9c, 0x5076b8\nCMP             R3, #0                                                 ; +0x9e, 0x5076ba\nVMOV.F32        S14, #-1.0                                             ; +0xa0, 0x5076bc\nITE EQ                                                                 ; +0xa4, 0x5076c0\nVMOVEQ          R2, S15                                                ; +0xa6, 0x5076c2\nVMOVNE          R2, S14                                                ; +0xaa, 0x5076c6\nMOV             R9, R0                                                 ; +0xae, 0x5076ca\nMOV             R0, R7                                                 ; +0xb0, 0x5076cc\nBL              _ZNK7cocos2d7CCPointmlEf; cocos2d::CCPoint::operator*(float) ; +0xb2, 0x5076ce\nMOV             R0, R4                                                 ; +0xb6, 0x5076d2\nMOV             R1, R9                                                 ; +0xb8, 0x5076d4\nMOV             R2, R7                                                 ; +0xba, 0x5076d6\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xbc, 0x5076d8\nMOV             R0, R6                                                 ; +0xc0, 0x5076dc\nMOV             R1, R4                                                 ; +0xc2, 0x5076de\nBLX             R8                                                     ; +0xc4, 0x5076e0\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xc6, 0x5076e2\nLDR             R3, [R5]                                               ; +0xc8, 0x5076e4\nCMP             R2, R3                                                 ; +0xca, 0x5076e6\nBEQ             loc_5076EE                                             ; +0xcc, 0x5076e8\nBLX             __stack_chk_fail                                       ; +0xce, 0x5076ea\nADD             SP, SP, #0x18                                          ; +0xd2, 0x5076ee\nPOP.W           {R4-R10,PC}                                            ; +0xd4, 0x5076f0", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}