{"type": "func", "start": 8750108, "end": 8750184, "name": "GJBaseGameLayer::getEnterEasingKey", "pseudocode": "// \n// GJBaseGameLayer::getEnterEasingKey from 0x85841c to 0x858468 (76 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::generateEnterEasingBuffer @ 0x8850fc\n// > <???> @ 0x68670\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\nint GJBaseGameLayer::getEnterEasingKey(GJBaseGameLayer *a1, int a2, float a3)\n{\n  int result; // w0\n\n  switch ( a2 )\n  {\n    case 0:\n      result = -1;\n      break;\n    case 3:\n    case 7:\n    case 8:\n    case 9:\n      result = -2;\n      break;\n    default:\n      result = (int)(float)((float)(10000 * a2) + (float)(a3 * 100.0));\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getEnterEasingKey from 0x85841c to 0x858468 (76 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::generateEnterEasingBuffer @ 0x8850fc\n; > <???> @ 0x68670\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\nCMP             W1, #9; switch 10 cases                                ; +0x0, 0x85841c\nB.LS            loc_858440                                             ; +0x4, 0x858420\nMOV             W0, #0x2710; jumptable 0000000000858454 default case, cases 1,2,4-6 ; +0x8, 0x858424\nLDR             S2, =0x42C80000                                        ; +0xc, 0x858428\nMUL             W1, W1, W0                                             ; +0x10, 0x85842c\nSCVTF           S1, W1                                                 ; +0x14, 0x858430\nFMADD           S0, S0, S2, S1                                         ; +0x18, 0x858434\nFCVTZS          W0, S0                                                 ; +0x1c, 0x858438\nRET                                                                    ; +0x20, 0x85843c\nADRL            X0, jpt_858454                                         ; +0x24, 0x858440\nLDRB            W0, [X0,W1,UXTW]                                       ; +0x2c, 0x858448\nADR             X2, loc_858458; jumptable 0000000000858454 case 0      ; +0x30, 0x85844c\nADD             X0, X2, W0,SXTB#2                                      ; +0x34, 0x858450\nBR              X0; switch jump                                        ; +0x38, 0x858454\nMOV             W0, #0xFFFFFFFF; jumptable 0000000000858454 case 0     ; +0x3c, 0x858458\nRET                                                                    ; +0x40, 0x85845c\nMOV             W0, #0xFFFFFFFE; jumptable 0000000000858454 cases 3,7-9 ; +0x44, 0x858460\nRET                                                                    ; +0x48, 0x858464", "xrefs": ["GJBaseGameLayer::generateEnterEasingBuffer @ 0x8850fc", "<???> @ 0x68670"], "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"}