{"type": "func", "start": 5275556, "end": 5275636, "name": "EndPortalObject::getSpawnPos", "pseudocode": "// \n// EndPortalObject::getSpawnPos from 0x507fa4 to 0x507ff4 (80 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::checkForEnd @ 0x3ff5ba\n// > PlayLayer::checkForEnd @ 0x3ff5ec\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\nEndPortalObject *__fastcall EndPortalObject::getSpawnPos(EndPortalObject *this, int a2)\n{\n  float v4; // s16\n  int v5; // r3\n  float v6; // s15\n\n  v4 = *(float *)(a2 + 824);\n  v5 = *(_DWORD *)(GameManager::sharedState(this) + 404);\n  v6 = -1.0;\n  if ( !*(_BYTE *)(a2 + 1172) )\n    v6 = 1.0;\n  cocos2d::CCPoint::CCPoint(this, v4 - (float)((float)(300.0 / *(float *)(v5 + 328)) * v6), *(float *)(a2 + 828));\n  return this;\n}", "assembly": "; \n; EndPortalObject::getSpawnPos from 0x507fa4 to 0x507ff4 (80 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::checkForEnd @ 0x3ff5ba\n; > PlayLayer::checkForEnd @ 0x3ff5ec\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            {R3-R5,LR}                                             ; +0x0, 0x507fa4\nMOV             R4, R1                                                 ; +0x2, 0x507fa6\nVPUSH           {D8}                                                   ; +0x4, 0x507fa8\nMOV             R5, R0                                                 ; +0x8, 0x507fac\nVLDR            S16, [R1,#0x338]                                       ; +0xa, 0x507fae\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xe, 0x507fb2\nLDR.W           R2, [R4,#0x33C]; float                                 ; +0x12, 0x507fb6\nVLDR            S15, =300.0                                            ; +0x16, 0x507fba\nVMOV.F32        S13, #1.0                                              ; +0x1a, 0x507fbe\nLDR.W           R3, [R0,#0x194]                                        ; +0x1e, 0x507fc2\nMOV             R0, R5; this                                           ; +0x22, 0x507fc6\nVLDR            S14, [R3,#0x148]                                       ; +0x24, 0x507fc8\nLDRB.W          R3, [R4,#0x494]                                        ; +0x28, 0x507fcc\nCMP             R3, #0                                                 ; +0x2c, 0x507fd0\nVDIV.F32        S14, S15, S14                                          ; +0x2e, 0x507fd2\nVMOV.F32        S15, #-1.0                                             ; +0x32, 0x507fd6\nIT EQ                                                                  ; +0x36, 0x507fda\nVMOVEQ.F32      S15, S13                                               ; +0x38, 0x507fdc\nVMLS.F32        S16, S14, S15                                          ; +0x3c, 0x507fe0\nVMOV            R1, S16; float                                         ; +0x40, 0x507fe4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x44, 0x507fe8\nVPOP            {D8}                                                   ; +0x48, 0x507fec\nMOV             R0, R5                                                 ; +0x4c, 0x507ff0\nPOP             {R3-R5,PC}                                             ; +0x4e, 0x507ff2", "xrefs": ["PlayLayer::checkForEnd @ 0x3ff5ba", "PlayLayer::checkForEnd @ 0x3ff5ec"], "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"}