{"type": "func", "start": 4300143152, "end": 4300143185, "name": "GameToolbox::transformColor", "pseudocode": "// \n// GameToolbox::transformColor from 0x1004efa30 to 0x1004efa51 (33 bytes)\n// \n// 9 xrefs:\n// > PlayLayer::updateVisibility @ 0x1000b70aa\n// > PlayLayer::updateVisibility @ 0x1000b70ff\n// > LevelEditorLayer::updateVisibility @ 0x1000eadba\n// > LevelEditorLayer::updateObjectColors @ 0x1000eb85d\n// > GJBaseGameLayer::preUpdateVisibility @ 0x10014f910\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100165004\n// > GJBaseGameLayer::visitWithColorFlash @ 0x10016503c\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100165064\n// > GJEffectManager::calculateLightBGColor @ 0x1002edbfa\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\n// local variable allocation has failed, the output may be wrong!\ncocos2d::ccColor3B __fastcall GameToolbox::transformColor(const cocos2d::ccColor3B *a1, float a2, float a3, float a4)\n{\n  cocos2d::ccHSVValue v5; // 0:xmm0_8.8,8:rsi.8\n\n  *(_QWORD *)&v5.v = (unsigned int)_mm_cvtsi128_si32(*(__m128i *)&a4) | 0x10100000000LL;\n  *(_QWORD *)&v5.h = _mm_insert_ps(*(__m128 *)&a2, *(__m128 *)&a3, 16).u64[0];\n  return GameToolbox::transformColor_1(a1, v5);\n}", "assembly": "; \n; GameToolbox::transformColor from 0x1004efa30 to 0x1004efa51 (33 bytes)\n; \n; 9 xrefs:\n; > PlayLayer::updateVisibility @ 0x1000b70aa\n; > PlayLayer::updateVisibility @ 0x1000b70ff\n; > LevelEditorLayer::updateVisibility @ 0x1000eadba\n; > LevelEditorLayer::updateObjectColors @ 0x1000eb85d\n; > GJBaseGameLayer::preUpdateVisibility @ 0x10014f910\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100165004\n; > GJBaseGameLayer::visitWithColorFlash @ 0x10016503c\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100165064\n; > GJEffectManager::calculateLightBGColor @ 0x1002edbfa\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\npush    rbp                                                            ; +0x0, 0x1004efa30\nmov     rbp, rsp                                                       ; +0x1, 0x1004efa31\nmovd    eax, xmm2                                                      ; +0x4, 0x1004efa34\nmov     rsi, 10100000000h                                              ; +0x8, 0x1004efa38\nor      rsi, rax                                                       ; +0x12, 0x1004efa42\ninsertps xmm0, xmm1, 10h                                               ; +0x15, 0x1004efa45\npop     rbp                                                            ; +0x1b, 0x1004efa4b\njmp     GameToolbox__transformColor_1                                  ; +0x1c, 0x1004efa4c", "xrefs": ["PlayLayer::updateVisibility @ 0x1000b70aa", "PlayLayer::updateVisibility @ 0x1000b70ff", "LevelEditorLayer::updateVisibility @ 0x1000eadba", "LevelEditorLayer::updateObjectColors @ 0x1000eb85d", "GJBaseGameLayer::preUpdateVisibility @ 0x10014f910", "GJBaseGameLayer::visitWithColorFlash @ 0x100165004", "GJBaseGameLayer::visitWithColorFlash @ 0x10016503c", "GJBaseGameLayer::visitWithColorFlash @ 0x100165064", "GJEffectManager::calculateLightBGColor @ 0x1002edbfa"], "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"}