{"type": "func", "start": 4187268, "end": 4187484, "name": "EndPortalObject::setPosition", "pseudocode": "// \n// EndPortalObject::setPosition from 0x3fe484 to 0x3fe55c (216 bytes)\n// \n// 0 xrefs:\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 EndPortalObject::setPosition(EndPortalObject *a1, const cocos2d::CCPoint *a2)\n{\n  cocos2d::CCSprite *m_gradientBar; // r6\n  void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9\n  PlayLayer *m_playLayer; // r3\n  float v7; // s15\n  cocos2d::CCParticleSystemQuad *m_particle; // r6\n  void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8\n  const cocos2d::CCPoint *v10; // r0\n  float v11; // r2\n  const cocos2d::CCPoint *v12; // r9\n  cocos2d::CCPoint v13; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCPoint v14; // [sp+Ch] [bp-Ch] BYREF\n\n  GameObject::setPosition(a1, a2);\n  m_gradientBar = a1->m_gradientBar;\n  if ( m_gradientBar )\n  {\n    setPosition = m_gradientBar->setPosition;\n    m_playLayer = GameManager::sharedState()->m_playLayer;\n    v7 = -1.0;\n    if ( !a1->m_flippedX )\n      v7 = 1.0;\n    cocos2d::CCPoint::CCPoint(&v13, (float)(-14.0 - (float)(15.0 / m_playLayer->m_gameState.m_cameraZoom)) * v7, 0.0);\n    cocos2d::CCPoint::operator+(&v14, a2, &v13);\n    setPosition(m_gradientBar, &v14);\n  }\n  m_particle = a1->m_particle;\n  if ( m_particle )\n  {\n    v9 = m_particle->setPosition;\n    v10 = a1->getPosition(a1);\n    if ( a1->m_flippedX )\n      v11 = -1.0;\n    else\n      v11 = 1.0;\n    v12 = v10;\n    cocos2d::CCPoint::operator*(&v13, &a1->m_particleOffset, LODWORD(v11));\n    cocos2d::CCPoint::operator+(&v14, v12, &v13);\n    v9(m_particle, &v14);\n  }\n}", "assembly": "; \n; EndPortalObject::setPosition from 0x3fe484 to 0x3fe55c (216 bytes)\n; \n; 0 xrefs:\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\nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x3fe484\nSUB             SP, SP, #0x18                                          ; +0x4, 0x3fe488\nLDR             R5, =(__stack_chk_guard_ptr - 0x3FE494)                ; +0x6, 0x3fe48a\nMOV             R4, R0                                                 ; +0x8, 0x3fe48c\nMOV             R10, R1                                                ; +0xa, 0x3fe48e\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3fe490\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x3fe492\nLDR             R3, [R5]                                               ; +0x10, 0x3fe494\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x12, 0x3fe496\nBL              _ZN10GameObject11setPositionERKN7cocos2d7CCPointE; GameObject::setPosition(cocos2d::CCPoint const&) ; +0x14, 0x3fe498\nLDR.W           R6, [R4,#0x488]                                        ; +0x18, 0x3fe49c\nCBZ             R6, loc_3FE4FE                                         ; +0x1c, 0x3fe4a0\nLDR             R3, [R6]                                               ; +0x1e, 0x3fe4a2\nADD.W           R8, SP, #0x18+var_14                                   ; +0x20, 0x3fe4a4\nADD             R7, SP, #0x18+var_C                                    ; +0x24, 0x3fe4a8\nLDR.W           R9, [R3,#0x5C]                                         ; +0x26, 0x3fe4aa\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2a, 0x3fe4ae\nVMOV.F32        S15, #15.0                                             ; +0x2e, 0x3fe4b2\nMOVS            R2, #0; float                                          ; +0x32, 0x3fe4b6\nVMOV.F32        S13, #1.0                                              ; +0x34, 0x3fe4b8\nLDR.W           R3, [R0,#0x16C]                                        ; +0x38, 0x3fe4bc\nMOV             R0, R8; this                                           ; +0x3c, 0x3fe4c0\nVLDR            S14, [R3,#0x148]                                       ; +0x3e, 0x3fe4c2\nLDRB.W          R3, [R4,#0x48C]                                        ; +0x42, 0x3fe4c6\nCMP             R3, #0                                                 ; +0x46, 0x3fe4ca\nVDIV.F32        S14, S15, S14                                          ; +0x48, 0x3fe4cc\nVMOV.F32        S15, #-14.0                                            ; +0x4c, 0x3fe4d0\nVSUB.F32        S14, S15, S14                                          ; +0x50, 0x3fe4d4\nVMOV.F32        S15, #-1.0                                             ; +0x54, 0x3fe4d8\nIT EQ                                                                  ; +0x58, 0x3fe4dc\nVMOVEQ.F32      S15, S13                                               ; +0x5a, 0x3fe4de\nVMUL.F32        S15, S14, S15                                          ; +0x5e, 0x3fe4e2\nVMOV            R1, S15; float                                         ; +0x62, 0x3fe4e6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x66, 0x3fe4ea\nMOV             R0, R7                                                 ; +0x6a, 0x3fe4ee\nMOV             R1, R10                                                ; +0x6c, 0x3fe4f0\nMOV             R2, R8                                                 ; +0x6e, 0x3fe4f2\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x70, 0x3fe4f4\nMOV             R0, R6                                                 ; +0x74, 0x3fe4f8\nMOV             R1, R7                                                 ; +0x76, 0x3fe4fa\nBLX             R9                                                     ; +0x78, 0x3fe4fc\nLDR.W           R6, [R4,#0x294]                                        ; +0x7a, 0x3fe4fe\nCBZ             R6, loc_3FE54A                                         ; +0x7e, 0x3fe502\nLDR             R3, [R6]                                               ; +0x80, 0x3fe504\nMOV             R0, R4                                                 ; +0x82, 0x3fe506\nADD             R7, SP, #0x18+var_14                                   ; +0x84, 0x3fe508\nLDR.W           R8, [R3,#0x5C]                                         ; +0x86, 0x3fe50a\nLDR             R3, [R4]                                               ; +0x8a, 0x3fe50e\nLDR             R3, [R3,#0x60]                                         ; +0x8c, 0x3fe510\nBLX             R3                                                     ; +0x8e, 0x3fe512\nVMOV.F32        S15, #1.0                                              ; +0x90, 0x3fe514\nLDRB.W          R3, [R4,#0x48C]                                        ; +0x94, 0x3fe518\nADD.W           R1, R4, #0x2A0                                         ; +0x98, 0x3fe51c\nADD             R4, SP, #0x18+var_C                                    ; +0x9c, 0x3fe520\nCMP             R3, #0                                                 ; +0x9e, 0x3fe522\nVMOV.F32        S14, #-1.0                                             ; +0xa0, 0x3fe524\nITE EQ                                                                 ; +0xa4, 0x3fe528\nVMOVEQ          R2, S15                                                ; +0xa6, 0x3fe52a\nVMOVNE          R2, S14                                                ; +0xaa, 0x3fe52e\nMOV             R9, R0                                                 ; +0xae, 0x3fe532\nMOV             R0, R7                                                 ; +0xb0, 0x3fe534\nBL              _ZNK7cocos2d7CCPointmlEf; cocos2d::CCPoint::operator*(float) ; +0xb2, 0x3fe536\nMOV             R0, R4                                                 ; +0xb6, 0x3fe53a\nMOV             R1, R9                                                 ; +0xb8, 0x3fe53c\nMOV             R2, R7                                                 ; +0xba, 0x3fe53e\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xbc, 0x3fe540\nMOV             R0, R6                                                 ; +0xc0, 0x3fe544\nMOV             R1, R4                                                 ; +0xc2, 0x3fe546\nBLX             R8                                                     ; +0xc4, 0x3fe548\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xc6, 0x3fe54a\nLDR             R3, [R5]                                               ; +0xc8, 0x3fe54c\nCMP             R2, R3                                                 ; +0xca, 0x3fe54e\nBEQ             loc_3FE556                                             ; +0xcc, 0x3fe550\nBLX             __stack_chk_fail                                       ; +0xce, 0x3fe552\nADD             SP, SP, #0x18                                          ; +0xd2, 0x3fe556\nPOP.W           {R4-R10,PC}                                            ; +0xd4, 0x3fe558", "xrefs": [], "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"}