{"type": "func", "start": 4189704, "end": 4189784, "name": "EndPortalObject::getSpawnPos", "pseudocode": "// \n// EndPortalObject::getSpawnPos from 0x3fee08 to 0x3fee58 (80 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::checkForEnd @ 0x30ee66\n// > PlayLayer::checkForEnd @ 0x30ee98\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\ncocos2d::CCPoint *EndPortalObject::getSpawnPos(cocos2d::CCPoint *__return_ptr retstr, EndPortalObject *a2)\n{\n  float x; // s16\n  PlayLayer *m_playLayer; // r3\n  float v6; // s15\n\n  x = a2->m_startPosition.x;\n  m_playLayer = GameManager::sharedState()->m_playLayer;\n  v6 = -1.0;\n  if ( !a2->m_flippedX )\n    v6 = 1.0;\n  cocos2d::CCPoint::CCPoint(\n    retstr,\n    x - (float)((float)(300.0 / m_playLayer->m_gameState.m_cameraZoom) * v6),\n    a2->m_startPosition.y);\n  return retstr;\n}", "assembly": "; \n; EndPortalObject::getSpawnPos from 0x3fee08 to 0x3fee58 (80 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::checkForEnd @ 0x30ee66\n; > PlayLayer::checkForEnd @ 0x30ee98\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            {R3-R5,LR}                                             ; +0x0, 0x3fee08\nMOV             R4, R1                                                 ; +0x2, 0x3fee0a\nVPUSH           {D8}                                                   ; +0x4, 0x3fee0c\nMOV             R5, R0                                                 ; +0x8, 0x3fee10\nVLDR            S16, [R1,#0x330]                                       ; +0xa, 0x3fee12\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xe, 0x3fee16\nLDR.W           R2, [R4,#0x334]; float                                 ; +0x12, 0x3fee1a\nVLDR            S15, =300.0                                            ; +0x16, 0x3fee1e\nVMOV.F32        S13, #1.0                                              ; +0x1a, 0x3fee22\nLDR.W           R3, [R0,#0x16C]                                        ; +0x1e, 0x3fee26\nMOV             R0, R5; this                                           ; +0x22, 0x3fee2a\nVLDR            S14, [R3,#0x148]                                       ; +0x24, 0x3fee2c\nLDRB.W          R3, [R4,#0x48C]                                        ; +0x28, 0x3fee30\nCMP             R3, #0                                                 ; +0x2c, 0x3fee34\nVDIV.F32        S14, S15, S14                                          ; +0x2e, 0x3fee36\nVMOV.F32        S15, #-1.0                                             ; +0x32, 0x3fee3a\nIT EQ                                                                  ; +0x36, 0x3fee3e\nVMOVEQ.F32      S15, S13                                               ; +0x38, 0x3fee40\nVMLS.F32        S16, S14, S15                                          ; +0x3c, 0x3fee44\nVMOV            R1, S16; float                                         ; +0x40, 0x3fee48\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x44, 0x3fee4c\nVPOP            {D8}                                                   ; +0x48, 0x3fee50\nMOV             R0, R5                                                 ; +0x4c, 0x3fee54\nPOP             {R3-R5,PC}                                             ; +0x4e, 0x3fee56", "xrefs": ["PlayLayer::checkForEnd @ 0x30ee66", "PlayLayer::checkForEnd @ 0x30ee98"], "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"}