{"type": "func", "start": 4296686544, "end": 4296686612, "name": "CCSpriteWithHue::setHueDegrees", "pseudocode": "// \n// CCSpriteWithHue::setHueDegrees from 0x1001a3bd0 to 0x1001a3c14 (68 bytes)\n// \n// 4 xrefs:\n// > SecretLayer5::updateTweenActionInt @ 0x100075c08\n// > GJShopLayer::init @ 0x10014aa1c\n// > GJShopLayer::init @ 0x10014ac68\n// > RewardUnlockLayer::init @ 0x1001c533c\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\nvoid __fastcall CCSpriteWithHue::setHueDegrees(CCSpriteWithHue *a1, float a2)\n{\n  float v2; // s0\n\n  for ( ; a2 < 0.0; a2 = a2 + 360.0 )\n    ;\n  v2 = (float)(a2 / 360.0) * 6.28318531;\n  a1->m_hue = v2;\n  CCSpriteWithHue::updateColorMatrix(a1);\n}", "assembly": "; \n; CCSpriteWithHue::setHueDegrees from 0x1001a3bd0 to 0x1001a3c14 (68 bytes)\n; \n; 4 xrefs:\n; > SecretLayer5::updateTweenActionInt @ 0x100075c08\n; > GJShopLayer::init @ 0x10014aa1c\n; > GJShopLayer::init @ 0x10014ac68\n; > RewardUnlockLayer::init @ 0x1001c533c\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\nFCMP            S0, #0.0                                               ; +0x0, 0x1001a3bd0\nB.PL            loc_1001A3BEC                                          ; +0x4, 0x1001a3bd4\nMOV             W8, #0x43B40000                                        ; +0x8, 0x1001a3bd8\nFMOV            S1, W8                                                 ; +0xc, 0x1001a3bdc\nFADD            S0, S0, S1                                             ; +0x10, 0x1001a3be0\nFCMP            S0, #0.0                                               ; +0x14, 0x1001a3be4\nB.MI            loc_1001A3BE0                                          ; +0x18, 0x1001a3be8\nMOV             W8, #0x43B40000                                        ; +0x1c, 0x1001a3bec\nFMOV            S1, W8                                                 ; +0x20, 0x1001a3bf0\nFDIV            S0, S0, S1                                             ; +0x24, 0x1001a3bf4\nFCVT            D0, S0                                                 ; +0x28, 0x1001a3bf8\nADRP            X8, #qword_1006359D8@PAGE                              ; +0x2c, 0x1001a3bfc\nLDR             D1, [X8,#qword_1006359D8@PAGEOFF]                      ; +0x30, 0x1001a3c00\nFMUL            D0, D0, D1                                             ; +0x34, 0x1001a3c04\nFCVT            S0, D0                                                 ; +0x38, 0x1001a3c08\nSTR             S0, [X0,#0x254]                                        ; +0x3c, 0x1001a3c0c\nB               CCSpriteWithHue__updateColorMatrix                     ; +0x40, 0x1001a3c10", "xrefs": ["SecretLayer5::updateTweenActionInt @ 0x100075c08", "GJShopLayer::init @ 0x10014aa1c", "GJShopLayer::init @ 0x10014ac68", "RewardUnlockLayer::init @ 0x1001c533c"], "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"}