{"type": "func", "start": 4297613572, "end": 4297613768, "name": "GJBaseGameLayer::getBumpMod", "pseudocode": "// \n// GJBaseGameLayer::getBumpMod from 0x100286104 to 0x1002861c8 (196 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::bumpPlayer @ 0x10028486c\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:01:57 +0000\n// \n\nfloat __fastcall GJBaseGameLayer::getBumpMod(__int64 a1, __int64 a2, int a3)\n{\n  float result; // s0\n  _BOOL4 v4; // w8\n  float *v5; // x9\n\n  if ( a3 == 34 )\n  {\n    if ( *(_BYTE *)(a2 + 2417) == 1 )\n    {\n      v4 = *(float *)(a2 + 2472) < 1.0;\n      v5 = (float *)&unk_100763248;\n    }\n    else\n    {\n      result = 1.25;\n      if ( *(_BYTE *)(a2 + 2418) != 1 )\n        return result;\n      v4 = *(float *)(a2 + 2472) < 1.0;\n      v5 = (float *)&unk_100763240;\n    }\n    return v5[v4];\n  }\n  else\n  {\n    result = 1.0;\n    if ( a3 == 9 )\n    {\n      if ( (*(_BYTE *)(a2 + 2417) & 1) != 0 )\n      {\n        return 0.35;\n      }\n      else if ( (*(_BYTE *)(a2 + 2418) & 1) != 0 )\n      {\n        return 0.4;\n      }\n      else if ( (*(_BYTE *)(a2 + 2419) & 1) != 0 )\n      {\n        return 0.7;\n      }\n      else\n      {\n        result = 0.65;\n        if ( *(_BYTE *)(a2 + 2422) )\n          return 0.7;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getBumpMod from 0x100286104 to 0x1002861c8 (196 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::bumpPlayer @ 0x10028486c\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:01:57 +0000\n; \nCMP             W2, #0x22 ; '\"'                                        ; +0x0, 0x100286104\nB.EQ            loc_10028612C                                          ; +0x4, 0x100286108\nFMOV            S0, #1.0                                               ; +0x8, 0x10028610c\nCMP             W2, #9                                                 ; +0xc, 0x100286110\nB.NE            locret_100286194                                       ; +0x10, 0x100286114\nLDRB            W8, [X1,#0x971]                                        ; +0x14, 0x100286118\nTBZ             W8, #0, loc_100286154                                  ; +0x18, 0x10028611c\nADRP            X8, #dword_10075BD44@PAGE                              ; +0x1c, 0x100286120\nLDR             S0, [X8,#dword_10075BD44@PAGEOFF]                      ; +0x20, 0x100286124\nRET                                                                    ; +0x24, 0x100286128\nLDRB            W8, [X1,#0x971]                                        ; +0x28, 0x10028612c\nCMP             W8, #1                                                 ; +0x2c, 0x100286130\nB.NE            loc_100286168                                          ; +0x30, 0x100286134\nLDR             S0, [X1,#0x9A8]                                        ; +0x34, 0x100286138\nFMOV            S1, #1.0                                               ; +0x38, 0x10028613c\nFCMP            S0, S1                                                 ; +0x3c, 0x100286140\nCSET            W8, MI                                                 ; +0x40, 0x100286144\nADRL            X9, unk_100763248                                      ; +0x44, 0x100286148\nB               loc_100286190                                          ; +0x4c, 0x100286150\nLDRB            W8, [X1,#0x972]                                        ; +0x50, 0x100286154\nTBZ             W8, #0, loc_100286198                                  ; +0x54, 0x100286158\nADRP            X8, #dword_10075BD1C@PAGE                              ; +0x58, 0x10028615c\nLDR             S0, [X8,#dword_10075BD1C@PAGEOFF]                      ; +0x5c, 0x100286160\nRET                                                                    ; +0x60, 0x100286164\nLDRB            W8, [X1,#0x972]                                        ; +0x64, 0x100286168\nFMOV            S0, #1.25                                              ; +0x68, 0x10028616c\nCMP             W8, #1                                                 ; +0x6c, 0x100286170\nB.NE            locret_100286194                                       ; +0x70, 0x100286174\nLDR             S0, [X1,#0x9A8]                                        ; +0x74, 0x100286178\nFMOV            S1, #1.0                                               ; +0x78, 0x10028617c\nFCMP            S0, S1                                                 ; +0x7c, 0x100286180\nCSET            W8, MI                                                 ; +0x80, 0x100286184\nADRL            X9, unk_100763240                                      ; +0x84, 0x100286188\nLDR             S0, [X9,W8,UXTW#2]                                     ; +0x8c, 0x100286190\nRET                                                                    ; +0x90, 0x100286194\nLDRB            W9, [X1,#0x973]                                        ; +0x94, 0x100286198\nADRP            X8, #dword_10075BD20@PAGE                              ; +0x98, 0x10028619c\nTBZ             W9, #0, loc_1002861AC                                  ; +0x9c, 0x1002861a0\nLDR             S0, [X8,#dword_10075BD20@PAGEOFF]                      ; +0xa0, 0x1002861a4\nRET                                                                    ; +0xa4, 0x1002861a8\nLDRB            W9, [X1,#0x976]                                        ; +0xa8, 0x1002861ac\nCMP             W9, #0                                                 ; +0xac, 0x1002861b0\nADRP            X9, #dword_10075C86C@PAGE                              ; +0xb0, 0x1002861b4\nLDR             S0, [X9,#dword_10075C86C@PAGEOFF]                      ; +0xb4, 0x1002861b8\nLDR             S1, [X8,#dword_10075BD20@PAGEOFF]                      ; +0xb8, 0x1002861bc\nFCSEL           S0, S1, S0, NE                                         ; +0xbc, 0x1002861c0\nRET                                                                    ; +0xc0, 0x1002861c4", "xrefs": ["GJBaseGameLayer::bumpPlayer @ 0x10028486c"], "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"}