{"type": "func", "start": 4651724, "end": 4651884, "name": "GJBaseGameLayer::getBumpMod", "pseudocode": "// \n// GJBaseGameLayer::getBumpMod from 0x46facc to 0x46fb6c (160 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::bumpPlayer @ 0x492136\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 GJBaseGameLayer::getBumpMod(GJBaseGameLayer *a1, PlayerObject *a2, int a3)\n{\n  float v3; // s15\n  int v4; // s14\n  bool v5; // nf\n\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      v3 = 0.7;\n      if ( !a2->m_isSpider )\n        return 0.65;\n    }\n  }\n  else if ( a3 == 34 )\n  {\n    if ( a2->m_isShip )\n    {\n      v4 = 1059145646;\n      v5 = a2->m_vehicleSize < 1.0;\n      v3 = 0.95;\n    }\n    else\n    {\n      if ( !a2->m_isBird )\n        return 1.25;\n      v4 = 1058642330;\n      v3 = 0.98;\n      v5 = a2->m_vehicleSize < 1.0;\n    }\n    if ( !v5 )\n      return *(float *)&v4;\n  }\n  else\n  {\n    return 1.0;\n  }\n  return v3;\n}", "assembly": "; \n; GJBaseGameLayer::getBumpMod from 0x46facc to 0x46fb6c (160 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::bumpPlayer @ 0x492136\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             R2, #9                                                 ; +0x0, 0x46facc\nBNE             loc_46FAF8                                             ; +0x2, 0x46face\nLDRB.W          R3, [R1,#0x7B1]                                        ; +0x4, 0x46fad0\nCBNZ            R3, loc_46FB4A                                         ; +0x8, 0x46fad4\nLDRB.W          R3, [R1,#0x7B2]                                        ; +0xa, 0x46fad6\nCBNZ            R3, loc_46FB50                                         ; +0xe, 0x46fada\nLDRB.W          R3, [R1,#0x7B3]                                        ; +0x10, 0x46fadc\nCBNZ            R3, loc_46FB56                                         ; +0x14, 0x46fae0\nLDRB.W          R3, [R1,#0x7B6]                                        ; +0x16, 0x46fae2\nVLDR            S14, =0.65                                             ; +0x1a, 0x46fae6\nCMP             R3, #0                                                 ; +0x1e, 0x46faea\nVLDR            S15, =0.7                                              ; +0x20, 0x46faec\nIT EQ                                                                  ; +0x24, 0x46faf0\nVMOVEQ.F32      S15, S14                                               ; +0x26, 0x46faf2\nB               loc_46FB66                                             ; +0x2a, 0x46faf6\nCMP             R2, #0x22 ; '\"'                                        ; +0x2c, 0x46faf8\nBNE             loc_46FB5C                                             ; +0x2e, 0x46fafa\nLDRB.W          R3, [R1,#0x7B1]                                        ; +0x30, 0x46fafc\nCBZ             R3, loc_46FB20                                         ; +0x34, 0x46fb00\nVMOV.F32        S15, #1.0                                              ; +0x36, 0x46fb02\nADD.W           R1, R1, #0x7E8                                         ; +0x3a, 0x46fb06\nVLDR            S14, [R1]                                              ; +0x3e, 0x46fb0a\nVCMPE.F32       S14, S15                                               ; +0x42, 0x46fb0e\nVLDR            S14, =0.63                                             ; +0x46, 0x46fb12\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4a, 0x46fb16\nVLDR            S15, =0.95                                             ; +0x4e, 0x46fb1a\nB               loc_46FB42                                             ; +0x52, 0x46fb1e\nLDRB.W          R3, [R1,#0x7B2]                                        ; +0x54, 0x46fb20\nCBZ             R3, loc_46FB62                                         ; +0x58, 0x46fb24\nVMOV.F32        S15, #1.0                                              ; +0x5a, 0x46fb26\nADD.W           R1, R1, #0x7E8                                         ; +0x5e, 0x46fb2a\nVLDR            S14, [R1]                                              ; +0x62, 0x46fb2e\nVCMPE.F32       S14, S15                                               ; +0x66, 0x46fb32\nVLDR            S14, =0.6                                              ; +0x6a, 0x46fb36\nVLDR            S15, =0.98                                             ; +0x6e, 0x46fb3a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x72, 0x46fb3e\nIT PL                                                                  ; +0x76, 0x46fb42\nVMOVPL.F32      S15, S14                                               ; +0x78, 0x46fb44\nB               loc_46FB66                                             ; +0x7c, 0x46fb48\nVLDR            S15, =0.35                                             ; +0x7e, 0x46fb4a\nB               loc_46FB66                                             ; +0x82, 0x46fb4e\nVLDR            S15, =0.4                                              ; +0x84, 0x46fb50\nB               loc_46FB66                                             ; +0x88, 0x46fb54\nVLDR            S15, =0.7                                              ; +0x8a, 0x46fb56\nB               loc_46FB66                                             ; +0x8e, 0x46fb5a\nVMOV.F32        S15, #1.0                                              ; +0x90, 0x46fb5c\nB               loc_46FB66                                             ; +0x94, 0x46fb60\nVMOV.F32        S15, #1.25                                             ; +0x96, 0x46fb62\nVMOV            R0, S15                                                ; +0x9a, 0x46fb66\nBX              LR                                                     ; +0x9e, 0x46fb6a", "xrefs": ["GJBaseGameLayer::bumpPlayer @ 0x492136"], "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"}