{"type": "func", "start": 4296975624, "end": 4296975820, "name": "GJBaseGameLayer::getBumpMod", "pseudocode": "// \n// GJBaseGameLayer::getBumpMod from 0x1001ea508 to 0x1001ea5cc (196 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::bumpPlayer @ 0x1001e9024\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 GJBaseGameLayer::getBumpMod(GJBaseGameLayer *a1, PlayerObject *a2, int a3)\n{\n  float result; // s0\n  _BOOL4 v4; // w8\n  float *v5; // x9\n\n  if ( a3 == 34 )\n  {\n    if ( a2->m_isShip )\n    {\n      v4 = a2->m_vehicleSize < 1.0;\n      v5 = (float *)&unk_10063A540;\n    }\n    else\n    {\n      result = 1.25;\n      if ( !a2->m_isBird )\n        return result;\n      v4 = a2->m_vehicleSize < 1.0;\n      v5 = (float *)&unk_10063A538;\n    }\n    return v5[v4];\n  }\n  else\n  {\n    result = 1.0;\n    if ( a3 == 9 )\n    {\n      if ( a2->m_isShip )\n      {\n        return 0.35;\n      }\n      else if ( a2->m_isBird )\n      {\n        return 0.4;\n      }\n      else if ( a2->m_isBall )\n      {\n        return 0.7;\n      }\n      else\n      {\n        result = 0.65;\n        if ( a2->m_isSpider )\n          return 0.7;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getBumpMod from 0x1001ea508 to 0x1001ea5cc (196 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::bumpPlayer @ 0x1001e9024\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             W2, #0x22 ; '\"'                                        ; +0x0, 0x1001ea508\nB.EQ            loc_1001EA530                                          ; +0x4, 0x1001ea50c\nFMOV            S0, #1.0                                               ; +0x8, 0x1001ea510\nCMP             W2, #9                                                 ; +0xc, 0x1001ea514\nB.NE            locret_1001EA598                                       ; +0x10, 0x1001ea518\nLDRB            W8, [X1,#0x971]                                        ; +0x14, 0x1001ea51c\nTBZ             W8, #0, loc_1001EA558                                  ; +0x18, 0x1001ea520\nADRP            X8, #dword_1006353A4@PAGE                              ; +0x1c, 0x1001ea524\nLDR             S0, [X8,#dword_1006353A4@PAGEOFF]                      ; +0x20, 0x1001ea528\nRET                                                                    ; +0x24, 0x1001ea52c\nLDRB            W8, [X1,#0x971]                                        ; +0x28, 0x1001ea530\nCMP             W8, #1                                                 ; +0x2c, 0x1001ea534\nB.NE            loc_1001EA56C                                          ; +0x30, 0x1001ea538\nLDR             S0, [X1,#0x9A8]                                        ; +0x34, 0x1001ea53c\nFMOV            S1, #1.0                                               ; +0x38, 0x1001ea540\nFCMP            S0, S1                                                 ; +0x3c, 0x1001ea544\nCSET            W8, MI                                                 ; +0x40, 0x1001ea548\nADRL            X9, unk_10063A540                                      ; +0x44, 0x1001ea54c\nB               loc_1001EA594                                          ; +0x4c, 0x1001ea554\nLDRB            W8, [X1,#0x972]                                        ; +0x50, 0x1001ea558\nTBZ             W8, #0, loc_1001EA59C                                  ; +0x54, 0x1001ea55c\nADRP            X8, #dword_10063537C@PAGE                              ; +0x58, 0x1001ea560\nLDR             S0, [X8,#dword_10063537C@PAGEOFF]                      ; +0x5c, 0x1001ea564\nRET                                                                    ; +0x60, 0x1001ea568\nLDRB            W8, [X1,#0x972]                                        ; +0x64, 0x1001ea56c\nFMOV            S0, #1.25                                              ; +0x68, 0x1001ea570\nCMP             W8, #1                                                 ; +0x6c, 0x1001ea574\nB.NE            locret_1001EA598                                       ; +0x70, 0x1001ea578\nLDR             S0, [X1,#0x9A8]                                        ; +0x74, 0x1001ea57c\nFMOV            S1, #1.0                                               ; +0x78, 0x1001ea580\nFCMP            S0, S1                                                 ; +0x7c, 0x1001ea584\nCSET            W8, MI                                                 ; +0x80, 0x1001ea588\nADRL            X9, unk_10063A538                                      ; +0x84, 0x1001ea58c\nLDR             S0, [X9,W8,UXTW#2]                                     ; +0x8c, 0x1001ea594\nRET                                                                    ; +0x90, 0x1001ea598\nLDRB            W9, [X1,#0x973]                                        ; +0x94, 0x1001ea59c\nADRP            X8, #dword_100635380@PAGE                              ; +0x98, 0x1001ea5a0\nTBZ             W9, #0, loc_1001EA5B0                                  ; +0x9c, 0x1001ea5a4\nLDR             S0, [X8,#dword_100635380@PAGEOFF]                      ; +0xa0, 0x1001ea5a8\nRET                                                                    ; +0xa4, 0x1001ea5ac\nLDRB            W9, [X1,#0x976]                                        ; +0xa8, 0x1001ea5b0\nCMP             W9, #0                                                 ; +0xac, 0x1001ea5b4\nADRP            X9, #dword_1006357EC@PAGE                              ; +0xb0, 0x1001ea5b8\nLDR             S0, [X9,#dword_1006357EC@PAGEOFF]                      ; +0xb4, 0x1001ea5bc\nLDR             S1, [X8,#dword_100635380@PAGEOFF]                      ; +0xb8, 0x1001ea5c0\nFCSEL           S0, S1, S0, NE                                         ; +0xbc, 0x1001ea5c4\nRET                                                                    ; +0xc0, 0x1001ea5c8", "xrefs": ["GJBaseGameLayer::bumpPlayer @ 0x1001e9024"], "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"}