{"type": "func", "start": 5300736, "end": 5300910, "name": "GJMapObject::startMonsterJumpLoop", "pseudocode": "// \n// GJMapObject::startMonsterJumpLoop from 0x50e200 to 0x50e2ae (174 bytes)\n// \n// 0 xrefs:\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\nvoid GJMapObject::startMonsterJumpLoop(GJMapObject *a1)\n{\n  double v1; // d0\n  int v3; // r0\n  float v4; // r1\n  float v5; // r2\n  unsigned int v6; // r0\n  int v7; // r7\n  float v8; // s16\n  stl::StringData<char>::Internal *v9; // r2\n  stl::StringData<char>::Internal *v10; // r3\n  int v11; // [sp+0h] [bp-Ch] BYREF\n\n  GJMapObject::moveFinished(a1);\n  a1->m_monsterIdle = 0;\n  sub_50D7B0(v3, v4, v5, 0);\n  v6 = rand();\n  v7 = *(_DWORD *)(a1->m_mainNode[4].m_eGLServerState + 516);\n  v8 = v1 + 5.0 + (float)(vcvts_n_f32_s32(v6, 0x1Fu) * 10.0);\n  a1->m_jumpStopTime = v8;\n  sub_775C20(&v11);\n  SpriteAnimationManager::runAnimation(v7, (int)&v11, v9, v10);\n  sub_774008(&v11);\n  SpriteAnimationManager::updateAnimationSpeed(\n    *(SpriteAnimationManager **)(a1->m_mainNode[4].m_eGLServerState + 516),\n    0.9);\n  GJMapObject::monsterJump(a1);\n}", "assembly": "; \n; GJMapObject::startMonsterJumpLoop from 0x50e200 to 0x50e2ae (174 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x50e200\nMOV             R5, R0                                                 ; +0x2, 0x50e202\nLDR             R4, =(__stack_chk_guard_ptr - 0x50E20E)                ; +0x4, 0x50e204\nVPUSH           {D8}                                                   ; +0x6, 0x50e206\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x50e20a\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x50e20c\nLDR             R3, [R4]                                               ; +0xe, 0x50e20e\nSUB             SP, SP, #0xC                                           ; +0x10, 0x50e210\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x12, 0x50e212\nBL              _ZN11GJMapObject12moveFinishedEv; GJMapObject::moveFinished(void) ; +0x14, 0x50e214\nMOVS            R3, #0                                                 ; +0x18, 0x50e218\nSTRB.W          R3, [R5,#0x120]                                        ; +0x1a, 0x50e21a\nBL              sub_50D7B0                                             ; +0x1e, 0x50e21e\nMOV             R6, SP                                                 ; +0x22, 0x50e222\nVMOV.F64        D8, D0                                                 ; +0x24, 0x50e224\nBLX             rand                                                   ; +0x28, 0x50e228\nLDR.W           R3, [R5,#0x10C]                                        ; +0x2c, 0x50e22c\nVMOV.F64        D7, #5.0                                               ; +0x30, 0x50e230\nLDR.W           R1, [R3,#0x4F4]                                        ; +0x34, 0x50e234\nADD.W           R1, R1, #0x218                                         ; +0x38, 0x50e238\nLDR.W           R7, [R1,#-0x14]                                        ; +0x3c, 0x50e23c\nVADD.F64        D8, D8, D7                                             ; +0x40, 0x50e240\nVMOV.F32        S14, #10.0                                             ; +0x44, 0x50e244\nVMOV            S15, R0                                                ; +0x48, 0x50e248\nMOV             R0, SP                                                 ; +0x4c, 0x50e24c\nVCVT.F32.S32    S15, S15, #0x1F                                        ; +0x4e, 0x50e24e\nVMUL.F32        S14, S15, S14                                          ; +0x52, 0x50e252\nVCVT.F64.F32    D7, S14                                                ; +0x56, 0x50e256\nVADD.F64        D8, D8, D7                                             ; +0x5a, 0x50e25a\nVCVT.F32.F64    S16, D8                                                ; +0x5e, 0x50e25e\nVSTR            S16, [R5,#0x108]                                       ; +0x62, 0x50e262\nBL              sub_775C20                                             ; +0x66, 0x50e266\nMOV             R0, R7                                                 ; +0x6a, 0x50e26a\nMOV             R1, SP                                                 ; +0x6c, 0x50e26c\nBL              _ZN22SpriteAnimationManager12runAnimationESs; SpriteAnimationManager::runAnimation(std::string) ; +0x6e, 0x50e26e\nMOV             R0, SP                                                 ; +0x72, 0x50e272\nBL              sub_774008                                             ; +0x74, 0x50e274\nLDR.W           R3, [R5,#0x10C]                                        ; +0x78, 0x50e278\nLDR             R1, flt_50E2B0; float                                  ; +0x7c, 0x50e27c\nLDR.W           R3, [R3,#0x4F4]                                        ; +0x7e, 0x50e27e\nLDR.W           R0, [R3,#0x204]; this                                  ; +0x82, 0x50e282\nBL              _ZN22SpriteAnimationManager20updateAnimationSpeedEf; SpriteAnimationManager::updateAnimationSpeed(float) ; +0x86, 0x50e286\nMOV             R0, R5; this                                           ; +0x8a, 0x50e28a\nBL              _ZN11GJMapObject11monsterJumpEv; GJMapObject::monsterJump(void) ; +0x8c, 0x50e28c\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x90, 0x50e290\nLDR             R3, [R4]                                               ; +0x92, 0x50e292\nCMP             R2, R3                                                 ; +0x94, 0x50e294\nBEQ             loc_50E2A6                                             ; +0x96, 0x50e296\nBLX             __stack_chk_fail                                       ; +0x98, 0x50e298\nMOV             R0, R6                                                 ; +0x9c, 0x50e29c\nBL              sub_774008                                             ; +0x9e, 0x50e29e\nBL              __cxa_end_cleanup                                      ; +0xa2, 0x50e2a2\nADD             SP, SP, #0xC                                           ; +0xa6, 0x50e2a6\nVPOP            {D8}                                                   ; +0xa8, 0x50e2a8\nPOP             {R4-R7,PC}                                             ; +0xac, 0x50e2ac", "xrefs": [], "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"}