{"type": "func", "start": 4295261896, "end": 4295262072, "name": "GameToolbox::bounceTime", "pseudocode": "// \n// GameToolbox::bounceTime from 0x100047ec8 to 0x100047f78 (176 bytes)\n// \n// 4 xrefs:\n// > GameToolbox::getEasedValue @ 0x100048180\n// > GameToolbox::getEasedValue @ 0x100048220\n// > GameToolbox::getEasedValue @ 0x100048274\n// > GameToolbox::getEasedValue @ 0x100048340\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\nfloat __fastcall GameToolbox::bounceTime(float a1)\n{\n  double v1; // d1\n  float v3; // s0\n  float v4; // s1\n  float v5; // s2\n\n  v1 = a1;\n  if ( a1 < 0.363636364 )\n    return (float)(a1 * 7.5625) * a1;\n  if ( v1 >= 0.727272727 )\n  {\n    if ( v1 >= 0.909090909 )\n    {\n      v3 = a1 + -0.95455;\n      v4 = v3 * 7.5625;\n      v5 = 0.98438;\n    }\n    else\n    {\n      v3 = a1 + -0.81818;\n      v4 = v3 * 7.5625;\n      v5 = 0.9375;\n    }\n  }\n  else\n  {\n    v3 = a1 + -0.54545;\n    v4 = v3 * 7.5625;\n    v5 = 0.75;\n  }\n  return v5 + (float)(v4 * v3);\n}", "assembly": "; \n; GameToolbox::bounceTime from 0x100047ec8 to 0x100047f78 (176 bytes)\n; \n; 4 xrefs:\n; > GameToolbox::getEasedValue @ 0x100048180\n; > GameToolbox::getEasedValue @ 0x100048220\n; > GameToolbox::getEasedValue @ 0x100048274\n; > GameToolbox::getEasedValue @ 0x100048340\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\nFCVT            D1, S0                                                 ; +0x0, 0x100047ec8\nADRP            X8, #qword_100635A70@PAGE                              ; +0x4, 0x100047ecc\nLDR             D2, [X8,#qword_100635A70@PAGEOFF]                      ; +0x8, 0x100047ed0\nFCMP            D1, D2                                                 ; +0xc, 0x100047ed4\nB.PL            loc_100047EF0                                          ; +0x10, 0x100047ed8\nMOV             W8, #0x40F20000                                        ; +0x14, 0x100047edc\nFMOV            S1, W8                                                 ; +0x18, 0x100047ee0\nFMUL            S1, S0, S1                                             ; +0x1c, 0x100047ee4\nFMUL            S0, S1, S0                                             ; +0x20, 0x100047ee8\nRET                                                                    ; +0x24, 0x100047eec\nADRP            X8, #qword_100635A78@PAGE                              ; +0x28, 0x100047ef0\nLDR             D2, [X8,#qword_100635A78@PAGEOFF]                      ; +0x2c, 0x100047ef4\nFCMP            D1, D2                                                 ; +0x30, 0x100047ef8\nB.PL            loc_100047F20                                          ; +0x34, 0x100047efc\nADRP            X8, #dword_100635A2C@PAGE                              ; +0x38, 0x100047f00\nLDR             S1, [X8,#dword_100635A2C@PAGEOFF]                      ; +0x3c, 0x100047f04\nFADD            S0, S0, S1                                             ; +0x40, 0x100047f08\nMOV             W8, #0x40F20000                                        ; +0x44, 0x100047f0c\nFMOV            S1, W8                                                 ; +0x48, 0x100047f10\nFMUL            S1, S0, S1                                             ; +0x4c, 0x100047f14\nFMOV            S2, #0.75                                              ; +0x50, 0x100047f18\nB               loc_100047F70                                          ; +0x54, 0x100047f1c\nADRP            X8, #qword_100635A80@PAGE                              ; +0x58, 0x100047f20\nLDR             D2, [X8,#qword_100635A80@PAGEOFF]                      ; +0x5c, 0x100047f24\nFCMP            D1, D2                                                 ; +0x60, 0x100047f28\nB.PL            loc_100047F50                                          ; +0x64, 0x100047f2c\nADRP            X8, #dword_100635A28@PAGE                              ; +0x68, 0x100047f30\nLDR             S1, [X8,#dword_100635A28@PAGEOFF]                      ; +0x6c, 0x100047f34\nFADD            S0, S0, S1                                             ; +0x70, 0x100047f38\nMOV             W8, #0x40F20000                                        ; +0x74, 0x100047f3c\nFMOV            S1, W8                                                 ; +0x78, 0x100047f40\nFMUL            S1, S0, S1                                             ; +0x7c, 0x100047f44\nFMOV            S2, #0.9375                                            ; +0x80, 0x100047f48\nB               loc_100047F70                                          ; +0x84, 0x100047f4c\nADRP            X8, #dword_100635A24@PAGE                              ; +0x88, 0x100047f50\nLDR             S1, [X8,#dword_100635A24@PAGEOFF]                      ; +0x8c, 0x100047f54\nFADD            S0, S0, S1                                             ; +0x90, 0x100047f58\nMOV             W8, #0x40F20000                                        ; +0x94, 0x100047f5c\nFMOV            S1, W8                                                 ; +0x98, 0x100047f60\nFMUL            S1, S0, S1                                             ; +0x9c, 0x100047f64\nMOV             W8, #0x3F7C0000                                        ; +0xa0, 0x100047f68\nFMOV            S2, W8                                                 ; +0xa4, 0x100047f6c\nFMADD           S0, S1, S0, S2                                         ; +0xa8, 0x100047f70\nRET                                                                    ; +0xac, 0x100047f74", "xrefs": ["GameToolbox::getEasedValue @ 0x100048180", "GameToolbox::getEasedValue @ 0x100048220", "GameToolbox::getEasedValue @ 0x100048274", "GameToolbox::getEasedValue @ 0x100048340"], "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"}