{"type": "func", "start": 7907000, "end": 7907104, "name": "EndPortalObject::getSpawnPos", "pseudocode": "// \n// EndPortalObject::getSpawnPos from 0x78a6b8 to 0x78a720 (104 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::checkForEnd @ 0x5c91e0\n// > PlayLayer::checkForEnd @ 0x5c9254\n// > <???> @ 0x4f1a0\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(EndPortalObject *a1)\n{\n  cocos2d::CCPoint *v1; // x8\n  float x; // s8\n  cocos2d::CCPoint *v4; // x20\n  float v5; // s1\n  float v6; // s0\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  x = a1->m_startPosition.x;\n  v4 = v1;\n  v5 = 300.0 / GameManager::sharedState()->m_playLayer->m_gameState.m_cameraZoom;\n  if ( a1->m_flippedX )\n    v6 = -1.0;\n  else\n    v6 = 1.0;\n  cocos2d::CCPoint::CCPoint(v4, x - (float)(v5 * v6), a1->m_startPosition.y);\n  return result;\n}", "assembly": "; \n; EndPortalObject::getSpawnPos from 0x78a6b8 to 0x78a720 (104 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::checkForEnd @ 0x5c91e0\n; > PlayLayer::checkForEnd @ 0x5c9254\n; > <???> @ 0x4f1a0\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x78a6b8\nMOV             X29, SP                                                ; +0x4, 0x78a6bc\nSTR             D8, [SP,#0x30+var_10]                                  ; +0x8, 0x78a6c0\nLDR             S8, [X0,#0x3B0]                                        ; +0xc, 0x78a6c4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x78a6c8\nMOV             X19, X0                                                ; +0x14, 0x78a6cc\nMOV             X20, X8                                                ; +0x18, 0x78a6d0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0x78a6d4\nLDR             X1, [X0,#0x1D8]                                        ; +0x20, 0x78a6d8\nLDRB            W0, [X19,#0x540]                                       ; +0x24, 0x78a6dc\nLDR             S1, =0x43960000                                        ; +0x28, 0x78a6e0\nLDR             S0, [X1,#0x1A8]                                        ; +0x2c, 0x78a6e4\nFDIV            S1, S1, S0                                             ; +0x30, 0x78a6e8\nCBNZ            W0, loc_78A718                                         ; +0x34, 0x78a6ec\nFMOV            S0, #1.0                                               ; +0x38, 0x78a6f0\nFMSUB           S0, S1, S0, S8; float                                  ; +0x3c, 0x78a6f4\nMOV             X0, X20; this                                          ; +0x40, 0x78a6f8\nLDR             S1, [X19,#0x3B4]; float                                ; +0x44, 0x78a6fc\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x48, 0x78a700\nMOV             X0, X20                                                ; +0x4c, 0x78a704\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x50, 0x78a708\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x54, 0x78a70c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x58, 0x78a710\nRET                                                                    ; +0x5c, 0x78a714\nFMOV            S0, #-1.0                                              ; +0x60, 0x78a718\nB               loc_78A6F4                                             ; +0x64, 0x78a71c", "xrefs": ["PlayLayer::checkForEnd @ 0x5c91e0", "PlayLayer::checkForEnd @ 0x5c9254", "<???> @ 0x4f1a0"], "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"}