{"type": "func", "start": 5372058448, "end": 5372058782, "name": "MenuGameLayer::updateColor", "pseudocode": "// \n// MenuGameLayer::updateColor from 0x140331b50 to 0x140331c9e (334 bytes)\n// \n// 3 xrefs:\n// > MenuGameLayer::init @ 0x140331aa6\n// > MenuGameLayer::init @ 0x140331a90\n// > <???> @ 0x1406d506c\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 MenuGameLayer::updateColor(MenuGameLayer *a1, float a2)\n{\n  float v2; // xmm3_4\n  cocos2d::CCSprite *m_backgroundSprite; // rcx\n  struct cocos2d::CCTintTo *v5; // rax\n  cocos2d::ccColor3B *v6; // r8\n  GJGroundLayer *m_groundLayer; // rcx\n  float v8; // xmm6_4\n  struct cocos2d::CCTintTo *v9; // rax\n  cocos2d::ccColor3B *v10; // r8\n  cocos2d::CCSprite *m_ground2Sprite; // rcx\n  struct cocos2d::CCTintTo *v12; // rax\n  cocos2d::ccColor3B *v13; // r8\n  float v14; // [rsp+20h] [rbp-18h]\n  float v15; // [rsp+20h] [rbp-18h]\n  float v16; // [rsp+20h] [rbp-18h]\n  unsigned __int8 v17; // [rsp+40h] [rbp+8h] BYREF\n  unsigned __int8 v18; // [rsp+41h] [rbp+9h]\n  unsigned __int8 v19; // [rsp+42h] [rbp+Ah]\n\n  MenuGameLayer::getBGColor((cocos2d::ccColor3B *)a1, (MenuGameLayer *)&v17, a1->m_initCount);\n  m_backgroundSprite = a1->m_backgroundSprite;\n  ++a1->m_initCount;\n  cocos2d::CCNode::stopAllActions(m_backgroundSprite);\n  v5 = cocos2d::CCTintTo::create(4.0, v17, v18, v19);\n  cocos2d::CCNode::runAction((CCLightFlash *)a1->m_backgroundSprite, (cocos2d::CCPoint)v5, v6, v2, v14);\n  m_groundLayer = a1->m_groundLayer;\n  if ( m_groundLayer->m_ground2Sprite )\n    v8 = 0.60000002;\n  else\n    v8 = 0.80000001;\n  cocos2d::CCNode::stopAllActions(m_groundLayer->m_ground1Sprite);\n  v9 = cocos2d::CCTintTo::create(\n         4.0,\n         (int)(float)((float)v17 * v8),\n         (int)(float)((float)v18 * v8),\n         (int)(float)((float)v19 * v8));\n  cocos2d::CCNode::runAction((CCLightFlash *)a1->m_groundLayer->m_ground1Sprite, (cocos2d::CCPoint)v9, v10, v2, v15);\n  m_ground2Sprite = a1->m_groundLayer->m_ground2Sprite;\n  if ( m_ground2Sprite )\n  {\n    cocos2d::CCNode::stopAllActions(m_ground2Sprite);\n    v12 = cocos2d::CCTintTo::create(4.0, v17, v18, v19);\n    cocos2d::CCNode::runAction((CCLightFlash *)a1->m_groundLayer->m_ground2Sprite, (cocos2d::CCPoint)v12, v13, v2, v16);\n  }\n}", "assembly": "; \n; MenuGameLayer::updateColor from 0x140331b50 to 0x140331c9e (334 bytes)\n; \n; 3 xrefs:\n; > MenuGameLayer::init @ 0x140331aa6\n; > MenuGameLayer::init @ 0x140331a90\n; > <???> @ 0x1406d506c\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    rbx                                                            ; +0x0, 0x140331b50\nsub     rsp, 30h                                                       ; +0x2, 0x140331b52\nmov     r8d, [rcx+1A4h]                                                ; +0x6, 0x140331b56\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xd, 0x140331b5d\nmovaps  xmmword ptr [rsp+38h+var_18], xmm6                             ; +0x12, 0x140331b62\nmov     rbx, rcx                                                       ; +0x17, 0x140331b67\ncall    MenuGameLayer__getBGColor                                      ; +0x1a, 0x140331b6a\nmov     rcx, [rbx+1B8h]                                                ; +0x1f, 0x140331b6f\ninc     dword ptr [rbx+1A4h]                                           ; +0x26, 0x140331b76\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x2c, 0x140331b7c\nmovzx   r9d, [rsp+38h+arg_2]                                           ; +0x32, 0x140331b82\nmovzx   r8d, [rsp+38h+arg_1]                                           ; +0x38, 0x140331b88\nmovzx   edx, [rsp+38h+arg_0]                                           ; +0x3e, 0x140331b8e\nmovss   xmm0, cs:dword_140622FF0                                       ; +0x43, 0x140331b93\ncall    cs:?create@CCTintTo@cocos2d@@SAPEAV12@MEEE@Z; cocos2d::CCTintTo::create(float,uchar,uchar,uchar) ; +0x4b, 0x140331b9b\nmov     rcx, [rbx+1B8h]                                                ; +0x51, 0x140331ba1\nmov     rdx, rax                                                       ; +0x58, 0x140331ba8\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x5b, 0x140331bab\nmov     rcx, [rbx+1C0h]                                                ; +0x61, 0x140331bb1\ncmp     qword ptr [rcx+1A0h], 0                                        ; +0x68, 0x140331bb8\njz      short loc_140331BCC                                            ; +0x70, 0x140331bc0\nmovss   xmm6, cs:dword_140622B38                                       ; +0x72, 0x140331bc2\njmp     short loc_140331BD4                                            ; +0x7a, 0x140331bca\nmovss   xmm6, cs:dword_140622BA4                                       ; +0x7c, 0x140331bcc\nmov     rcx, [rcx+198h]                                                ; +0x84, 0x140331bd4\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x8b, 0x140331bdb\nmovzx   eax, [rsp+38h+arg_2]                                           ; +0x91, 0x140331be1\nmovd    xmm0, eax                                                      ; +0x96, 0x140331be6\nmovzx   eax, [rsp+38h+arg_1]                                           ; +0x9a, 0x140331bea\ncvtdq2ps xmm0, xmm0                                                    ; +0x9f, 0x140331bef\nmovd    xmm1, eax                                                      ; +0xa2, 0x140331bf2\nmovzx   eax, [rsp+38h+arg_0]                                           ; +0xa6, 0x140331bf6\nmulss   xmm0, xmm6                                                     ; +0xab, 0x140331bfb\ncvtdq2ps xmm1, xmm1                                                    ; +0xaf, 0x140331bff\ncvttss2si r9d, xmm0                                                    ; +0xb2, 0x140331c02\nmovd    xmm0, eax                                                      ; +0xb7, 0x140331c07\ncvtdq2ps xmm0, xmm0                                                    ; +0xbb, 0x140331c0b\nmulss   xmm1, xmm6                                                     ; +0xbe, 0x140331c0e\nmulss   xmm0, xmm6                                                     ; +0xc2, 0x140331c12\ncvttss2si r8d, xmm1                                                    ; +0xc6, 0x140331c16\ncvttss2si edx, xmm0                                                    ; +0xcb, 0x140331c1b\nmovss   xmm0, cs:dword_140622FF0                                       ; +0xcf, 0x140331c1f\ncall    cs:?create@CCTintTo@cocos2d@@SAPEAV12@MEEE@Z; cocos2d::CCTintTo::create(float,uchar,uchar,uchar) ; +0xd7, 0x140331c27\nmov     rcx, [rbx+1C0h]                                                ; +0xdd, 0x140331c2d\nmov     rdx, rax                                                       ; +0xe4, 0x140331c34\nmov     rcx, [rcx+198h]                                                ; +0xe7, 0x140331c37\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xee, 0x140331c3e\nmov     rax, [rbx+1C0h]                                                ; +0xf4, 0x140331c44\nmov     rcx, [rax+1A0h]                                                ; +0xfb, 0x140331c4b\ntest    rcx, rcx                                                       ; +0x102, 0x140331c52\njz      short loc_140331C93                                            ; +0x105, 0x140331c55\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x107, 0x140331c57\nmovzx   r9d, [rsp+38h+arg_2]                                           ; +0x10d, 0x140331c5d\nmovzx   r8d, [rsp+38h+arg_1]                                           ; +0x113, 0x140331c63\nmovzx   edx, [rsp+38h+arg_0]                                           ; +0x119, 0x140331c69\nmovss   xmm0, cs:dword_140622FF0                                       ; +0x11e, 0x140331c6e\ncall    cs:?create@CCTintTo@cocos2d@@SAPEAV12@MEEE@Z; cocos2d::CCTintTo::create(float,uchar,uchar,uchar) ; +0x126, 0x140331c76\nmov     rcx, [rbx+1C0h]                                                ; +0x12c, 0x140331c7c\nmov     rdx, rax                                                       ; +0x133, 0x140331c83\nmov     rcx, [rcx+1A0h]                                                ; +0x136, 0x140331c86\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x13d, 0x140331c8d\nmovaps  xmm6, xmmword ptr [rsp+38h+var_18]                             ; +0x143, 0x140331c93\nadd     rsp, 30h                                                       ; +0x148, 0x140331c98\npop     rbx                                                            ; +0x14c, 0x140331c9c\nretn                                                                   ; +0x14d, 0x140331c9d", "xrefs": ["MenuGameLayer::init @ 0x140331aa6", "MenuGameLayer::init @ 0x140331a90", "<???> @ 0x1406d506c"], "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"}