{"type": "func", "start": 4299156232, "end": 4299156332, "name": "EndPortalObject::getSpawnPos", "pseudocode": "// \n// EndPortalObject::getSpawnPos from 0x1003feb08 to 0x1003feb6c (100 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::checkForEnd @ 0x10011f758\n// > PlayLayer::checkForEnd @ 0x10011f784\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 __fastcall EndPortalObject::getSpawnPos(EndPortalObject *a1)\n{\n  _DWORD *v1; // x8\n  _DWORD *v3; // x20\n  float x; // s8\n  GameManager *v5; // x0\n  __n128 v6; // q0\n  __n128 v7; // q1\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  v3 = v1;\n  x = a1->m_startPosition.x;\n  v5 = GameManager::sharedState();\n  v7.n128_u32[0] = 1.0;\n  if ( a1->m_flippedX )\n    v7.n128_f32[0] = -1.0;\n  v6.n128_f32[0] = x + (float)((float)(-300.0 / v5->m_playLayer->m_gameState.m_cameraZoom) * v7.n128_f32[0]);\n  v7.n128_u32[0] = LODWORD(a1->m_startPosition.y);\n  sub_100022980(v6, v7, v3);\n  return result;\n}", "assembly": "; \n; EndPortalObject::getSpawnPos from 0x1003feb08 to 0x1003feb6c (100 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::checkForEnd @ 0x10011f758\n; > PlayLayer::checkForEnd @ 0x10011f784\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             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x1003feb08\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003feb0c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003feb10\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003feb14\nMOV             X19, X0                                                ; +0x10, 0x1003feb18\nMOV             X20, X8                                                ; +0x14, 0x1003feb1c\nLDR             S8, [X0,#0x3C0]                                        ; +0x18, 0x1003feb20\nBL              GameManager__sharedState                               ; +0x1c, 0x1003feb24\nLDR             X8, [X0,#0x1F8]                                        ; +0x20, 0x1003feb28\nLDR             S0, [X8,#0x1A8]                                        ; +0x24, 0x1003feb2c\nLDRB            W8, [X19,#0x550]                                       ; +0x28, 0x1003feb30\nCMP             W8, #0                                                 ; +0x2c, 0x1003feb34\nFMOV            S1, #1.0                                               ; +0x30, 0x1003feb38\nFMOV            S2, #-1.0                                              ; +0x34, 0x1003feb3c\nFCSEL           S1, S2, S1, NE                                         ; +0x38, 0x1003feb40\nMOV             W8, #0xC3960000                                        ; +0x3c, 0x1003feb44\nFMOV            S2, W8                                                 ; +0x40, 0x1003feb48\nFDIV            S0, S2, S0                                             ; +0x44, 0x1003feb4c\nFMADD           S0, S0, S1, S8                                         ; +0x48, 0x1003feb50\nLDR             S1, [X19,#0x3C4]                                       ; +0x4c, 0x1003feb54\nMOV             X0, X20                                                ; +0x50, 0x1003feb58\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x1003feb5c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x1003feb60\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x5c, 0x1003feb64\nB               sub_100022980                                          ; +0x60, 0x1003feb68", "xrefs": ["PlayLayer::checkForEnd @ 0x10011f758", "PlayLayer::checkForEnd @ 0x10011f784"], "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"}