{"type": "func", "start": 4299682948, "end": 4299683048, "name": "EndPortalObject::getSpawnPos", "pseudocode": "// \n// EndPortalObject::getSpawnPos from 0x10047f484 to 0x10047f4e8 (100 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::checkForEnd @ 0x100148adc\n// > PlayLayer::checkForEnd @ 0x100148b08\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 11:05:45 +0000\n// \n\nfloat *__usercall EndPortalObject::getSpawnPos@<X0>(__int64 a1@<X0>, float *a2@<X8>)\n{\n  float v4; // s8\n  __int64 v5; // x0\n  float v6; // s1\n\n  v4 = *(float *)(a1 + 960);\n  v5 = GameManager::sharedState();\n  v6 = 1.0;\n  if ( *(_BYTE *)(a1 + 1360) )\n    v6 = -1.0;\n  return sub_1000262BC(\n           a2,\n           v4 + (float)((float)(-300.0 / *(float *)(*(_QWORD *)(v5 + 544) + 424LL)) * v6),\n           *(float *)(a1 + 964));\n}", "assembly": "; \n; EndPortalObject::getSpawnPos from 0x10047f484 to 0x10047f4e8 (100 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::checkForEnd @ 0x100148adc\n; > PlayLayer::checkForEnd @ 0x100148b08\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 11:05:45 +0000\n; \nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x10047f484\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10047f488\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10047f48c\nADD             X29, SP, #0x20                                         ; +0xc, 0x10047f490\nMOV             X19, X0                                                ; +0x10, 0x10047f494\nMOV             X20, X8                                                ; +0x14, 0x10047f498\nLDR             S8, [X0,#0x3C0]                                        ; +0x18, 0x10047f49c\nBL              GameManager__sharedState                               ; +0x1c, 0x10047f4a0\nLDR             X8, [X0,#0x220]                                        ; +0x20, 0x10047f4a4\nLDR             S0, [X8,#0x1A8]                                        ; +0x24, 0x10047f4a8\nLDRB            W8, [X19,#0x550]                                       ; +0x28, 0x10047f4ac\nCMP             W8, #0                                                 ; +0x2c, 0x10047f4b0\nFMOV            S1, #1.0                                               ; +0x30, 0x10047f4b4\nFMOV            S2, #-1.0                                              ; +0x34, 0x10047f4b8\nFCSEL           S1, S2, S1, NE                                         ; +0x38, 0x10047f4bc\nMOV             W8, #0xC3960000                                        ; +0x3c, 0x10047f4c0\nFMOV            S2, W8                                                 ; +0x40, 0x10047f4c4\nFDIV            S0, S2, S0                                             ; +0x44, 0x10047f4c8\nFMADD           S0, S0, S1, S8                                         ; +0x48, 0x10047f4cc\nLDR             S1, [X19,#0x3C4]                                       ; +0x4c, 0x10047f4d0\nMOV             X0, X20                                                ; +0x50, 0x10047f4d4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x10047f4d8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x10047f4dc\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x5c, 0x10047f4e0\nB               sub_1000262BC                                          ; +0x60, 0x10047f4e4", "xrefs": ["PlayLayer::checkForEnd @ 0x100148adc", "PlayLayer::checkForEnd @ 0x100148b08"], "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"}