{"type": "func", "start": 9130228, "end": 9130332, "name": "EndPortalObject::getSpawnPos", "pseudocode": "// \n// EndPortalObject::getSpawnPos from 0x8b50f4 to 0x8b515c (104 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::checkForEnd @ 0x6f2cb0\n// > PlayLayer::checkForEnd @ 0x6f2d24\n// > <???> @ 0x6e9c8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:56:24 +0000\n// \n\ncocos2d::CCPoint *__usercall EndPortalObject::getSpawnPos@<X0>(\n        cocos2d::CCPoint *__return_ptr a1@<X8>,\n        EndPortalObject *this@<X0>)\n{\n  float v3; // s8\n  float v5; // s1\n  float v6; // s0\n\n  v3 = *((float *)this + 240);\n  v5 = 300.0 / *(float *)(*(_QWORD *)(GameManager::sharedState(this) + 544) + 424LL);\n  if ( *((_BYTE *)this + 1360) )\n    v6 = -1.0;\n  else\n    v6 = 1.0;\n  cocos2d::CCPoint::CCPoint(a1, v3 - (float)(v5 * v6), *((float *)this + 241));\n  return a1;\n}", "assembly": "; \n; EndPortalObject::getSpawnPos from 0x8b50f4 to 0x8b515c (104 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::checkForEnd @ 0x6f2cb0\n; > PlayLayer::checkForEnd @ 0x6f2d24\n; > <???> @ 0x6e9c8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:56:24 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x8b50f4\nMOV             X29, SP                                                ; +0x4, 0x8b50f8\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x8b50fc\nSTR             D8, [SP,#0x30+var_10]                                  ; +0xc, 0x8b5100\nMOV             X19, X0                                                ; +0x10, 0x8b5104\nLDR             S8, [X0,#0x3C0]                                        ; +0x14, 0x8b5108\nMOV             X20, X8                                                ; +0x18, 0x8b510c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0x8b5110\nLDR             X1, [X0,#0x220]                                        ; +0x20, 0x8b5114\nLDRB            W0, [X19,#0x550]                                       ; +0x24, 0x8b5118\nLDR             S1, =0x43960000                                        ; +0x28, 0x8b511c\nLDR             S0, [X1,#0x1A8]                                        ; +0x2c, 0x8b5120\nFDIV            S1, S1, S0                                             ; +0x30, 0x8b5124\nCBNZ            W0, loc_8B5154                                         ; +0x34, 0x8b5128\nFMOV            S0, #1.0                                               ; +0x38, 0x8b512c\nFMSUB           S0, S1, S0, S8; float                                  ; +0x3c, 0x8b5130\nMOV             X0, X20; this                                          ; +0x40, 0x8b5134\nLDR             S1, [X19,#0x3C4]; float                                ; +0x44, 0x8b5138\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x48, 0x8b513c\nMOV             X0, X20                                                ; +0x4c, 0x8b5140\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x50, 0x8b5144\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x54, 0x8b5148\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x58, 0x8b514c\nRET                                                                    ; +0x5c, 0x8b5150\nFMOV            S0, #-1.0                                              ; +0x60, 0x8b5154\nB               loc_8B5130                                             ; +0x64, 0x8b5158", "xrefs": ["PlayLayer::checkForEnd @ 0x6f2cb0", "PlayLayer::checkForEnd @ 0x6f2d24", "<???> @ 0x6e9c8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}