{"type": "func", "start": 4295271312, "end": 4295271500, "name": "GameToolbox::multipliedColorValue", "pseudocode": "// \n// GameToolbox::multipliedColorValue from 0x10004a390 to 0x10004a44c (188 bytes)\n// \n// 13 xrefs:\n// > sub_10000D9C4 @ 0x10000da44\n// > sub_10000FC04 @ 0x10000fcb0\n// > sub_10000FE5C @ 0x10000ff44\n// > sub_10000FE5C @ 0x10000ff9c\n// > sub_1001460E4 @ 0x10014661c\n// > sub_1001460E4 @ 0x100146664\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x100292358\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1002923d0\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x100292454\n// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1002924cc\n// > PlayerObject::update @ 0x1002b6210\n// > PlayerObject::update @ 0x1002b6260\n// > SecretRewardsLayer::scrollLayerMoved @ 0x100385444\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 10:57:40 +0000\n// \n\n__int64 __fastcall GameToolbox::multipliedColorValue(unsigned __int64 a1, unsigned __int64 a2, float a3)\n{\n  int64x2_t v3; // q1\n  float v4; // s0\n  int8x8_t v5; // d0\n  int64x2_t v6; // q2\n  int32x2_t v7; // d1\n  int32x2_t v8; // d0\n\n  v3 = (int64x2_t)vshlq_u64((uint64x2_t)vdupq_n_s64(a1), (uint64x2_t)xmmword_10075CB40);\n  v4 = fmaxf(fminf(a3, 1.0), 0.0);\n  if ( v4 == 0.0 )\n  {\n    v5 = (int8x8_t)vmovn_s64(v3);\n  }\n  else\n  {\n    v6 = (int64x2_t)vshlq_u64((uint64x2_t)vdupq_n_s64(a2), (uint64x2_t)xmmword_10075CB40);\n    if ( v4 == 1.0 )\n    {\n      v5 = (int8x8_t)vmovn_s64(v6);\n      LOBYTE(a1) = a2;\n    }\n    else\n    {\n      LODWORD(a1) = (int)(float)((float)(unsigned __int8)a1\n                               + (float)((float)((unsigned __int8)a2 - (unsigned __int8)a1) * v4));\n      v7 = (int32x2_t)vand_s8((int8x8_t)vmovn_s64(v3), (int8x8_t)0xFF000000FFLL);\n      v5 = (int8x8_t)vcvt_s32_f32(\n                       vmla_n_f32(\n                         vcvt_f32_u32((uint32x2_t)v7),\n                         vcvt_f32_s32(vsub_s32((int32x2_t)vand_s8((int8x8_t)vmovn_s64(v6), (int8x8_t)0xFF000000FFLL), v7)),\n                         v4));\n    }\n  }\n  v8 = (int32x2_t)vshl_u32((uint32x2_t)vand_s8(v5, (int8x8_t)0xFF000000FFLL), (uint32x2_t)0x800000010LL);\n  return vorr_s8((int8x8_t)v8, (int8x8_t)vdup_lane_s32(v8, 1)).u32[0] | (unsigned __int8)a1;\n}", "assembly": "; \n; GameToolbox::multipliedColorValue from 0x10004a390 to 0x10004a44c (188 bytes)\n; \n; 13 xrefs:\n; > sub_10000D9C4 @ 0x10000da44\n; > sub_10000FC04 @ 0x10000fcb0\n; > sub_10000FE5C @ 0x10000ff44\n; > sub_10000FE5C @ 0x10000ff9c\n; > sub_1001460E4 @ 0x10014661c\n; > sub_1001460E4 @ 0x100146664\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x100292358\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x1002923d0\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x100292454\n; > GJBaseGameLayer::processAreaTintGroupAction @ 0x1002924cc\n; > PlayerObject::update @ 0x1002b6210\n; > PlayerObject::update @ 0x1002b6260\n; > SecretRewardsLayer::scrollLayerMoved @ 0x100385444\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 10:57:40 +0000\n; \nDUP             V1.2D, X0                                              ; +0x0, 0x10004a390\nADRP            X8, #xmmword_10075CB40@PAGE                            ; +0x4, 0x10004a394\nLDR             Q2, [X8,#xmmword_10075CB40@PAGEOFF]                    ; +0x8, 0x10004a398\nUSHL            V1.2D, V1.2D, V2.2D                                    ; +0xc, 0x10004a39c\nFMOV            S3, #1.0                                               ; +0x10, 0x10004a3a0\nFMINNM          S0, S0, S3                                             ; +0x14, 0x10004a3a4\nFMOV            S4, WZR                                                ; +0x18, 0x10004a3a8\nFMAXNM          S0, S0, S4                                             ; +0x1c, 0x10004a3ac\nFCMP            S0, #0.0                                               ; +0x20, 0x10004a3b0\nB.NE            loc_10004A3C0                                          ; +0x24, 0x10004a3b4\nXTN             V0.2S, V1.2D                                           ; +0x28, 0x10004a3b8\nB               loc_10004A420                                          ; +0x2c, 0x10004a3bc\nDUP             V4.2D, X1                                              ; +0x30, 0x10004a3c0\nUSHL            V2.2D, V4.2D, V2.2D                                    ; +0x34, 0x10004a3c4\nFCMP            S0, S3                                                 ; +0x38, 0x10004a3c8\nB.NE            loc_10004A3DC                                          ; +0x3c, 0x10004a3cc\nXTN             V0.2S, V2.2D                                           ; +0x40, 0x10004a3d0\nMOV             X0, X1                                                 ; +0x44, 0x10004a3d4\nB               loc_10004A420                                          ; +0x48, 0x10004a3d8\nAND             W8, W0, #0xFF                                          ; +0x4c, 0x10004a3dc\nUCVTF           S3, W8                                                 ; +0x50, 0x10004a3e0\nAND             W8, W1, #0xFF                                          ; +0x54, 0x10004a3e4\nSUB             W8, W8, W0,UXTB                                        ; +0x58, 0x10004a3e8\nSCVTF           S4, W8                                                 ; +0x5c, 0x10004a3ec\nFMADD           S3, S4, S0, S3                                         ; +0x60, 0x10004a3f0\nFCVTZS          W0, S3                                                 ; +0x64, 0x10004a3f4\nXTN             V1.2S, V1.2D                                           ; +0x68, 0x10004a3f8\nXTN             V2.2S, V2.2D                                           ; +0x6c, 0x10004a3fc\nMOVI            D3, #0xFF000000FF                                      ; +0x70, 0x10004a400\nAND             V1.8B, V1.8B, V3.8B                                    ; +0x74, 0x10004a404\nUCVTF           V4.2S, V1.2S                                           ; +0x78, 0x10004a408\nAND             V2.8B, V2.8B, V3.8B                                    ; +0x7c, 0x10004a40c\nSUB             V1.2S, V2.2S, V1.2S                                    ; +0x80, 0x10004a410\nSCVTF           V1.2S, V1.2S                                           ; +0x84, 0x10004a414\nFMLA            V4.2S, V1.2S, V0.S[0]                                  ; +0x88, 0x10004a418\nFCVTZS          V0.2S, V4.2S                                           ; +0x8c, 0x10004a41c\nMOVI            D1, #0xFF000000FF                                      ; +0x90, 0x10004a420\nAND             V0.8B, V0.8B, V1.8B                                    ; +0x94, 0x10004a424\nADRP            X8, #qword_10075BE60@PAGE                              ; +0x98, 0x10004a428\nLDR             D1, [X8,#qword_10075BE60@PAGEOFF]                      ; +0x9c, 0x10004a42c\nUSHL            V0.2S, V0.2S, V1.2S                                    ; +0xa0, 0x10004a430\nDUP             V1.2S, V0.S[1]                                         ; +0xa4, 0x10004a434\nORR             V0.8B, V0.8B, V1.8B                                    ; +0xa8, 0x10004a438\nFMOV            W8, S0                                                 ; +0xac, 0x10004a43c\nAND             W9, W0, #0xFF                                          ; +0xb0, 0x10004a440\nORR             W0, W8, W9                                             ; +0xb4, 0x10004a444\nRET                                                                    ; +0xb8, 0x10004a448", "xrefs": ["sub_10000D9C4 @ 0x10000da44", "sub_10000FC04 @ 0x10000fcb0", "sub_10000FE5C @ 0x10000ff44", "sub_10000FE5C @ 0x10000ff9c", "sub_1001460E4 @ 0x10014661c", "sub_1001460E4 @ 0x100146664", "GJBaseGameLayer::processAreaTintGroupAction @ 0x100292358", "GJBaseGameLayer::processAreaTintGroupAction @ 0x1002923d0", "GJBaseGameLayer::processAreaTintGroupAction @ 0x100292454", "GJBaseGameLayer::processAreaTintGroupAction @ 0x1002924cc", "PlayerObject::update @ 0x1002b6210", "PlayerObject::update @ 0x1002b6260", "SecretRewardsLayer::scrollLayerMoved @ 0x100385444"], "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"}