{"type": "func", "start": 5372498704, "end": 5372498844, "name": "PlayerObject::setColor", "pseudocode": "// \n// PlayerObject::setColor from 0x14039d310 to 0x14039d39c (140 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405c8918\n// > <???> @ 0x1406d671c\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 PlayerObject::setColor(PlayerObject *a1, const cocos2d::ccColor3B *a2)\n{\n  GJRobotSprite *m_vehicleSpriteSecondary; // rcx\n  GJRobotSprite *m_birdVehicle; // rcx\n\n  cocos2d::CCSprite::setColor(a1, a2);\n  (**(void (__fastcall ***)(__int64, const cocos2d::ccColor3B *))(*(_QWORD *)&a1->m_slopeAngle + 320LL))(\n    *(_QWORD *)&a1->m_slopeAngle + 320LL,\n    a2);\n  a1->m_collidingWithRight->setColor(&a1->m_collidingWithRight->cocos2d::CCRGBAProtocol, a2);\n  m_vehicleSpriteSecondary = (GJRobotSprite *)a1->m_vehicleSpriteSecondary;\n  m_vehicleSpriteSecondary->m_color = *a2;\n  GJRobotSprite::updateColors(m_vehicleSpriteSecondary);\n  m_birdVehicle = (GJRobotSprite *)a1->m_birdVehicle;\n  m_birdVehicle->m_color = *a2;\n  GJRobotSprite::updateColors(m_birdVehicle);\n}", "assembly": "; \n; PlayerObject::setColor from 0x14039d310 to 0x14039d39c (140 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405c8918\n; > <???> @ 0x1406d671c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14039d310\npush    rdi                                                            ; +0x5, 0x14039d315\nsub     rsp, 20h                                                       ; +0x6, 0x14039d316\nmov     rdi, rdx                                                       ; +0xa, 0x14039d31a\nmov     rbx, rcx                                                       ; +0xd, 0x14039d31d\ncall    cs:__imp_?setColor@CCSprite@cocos2d@@UEAAXAEBU_ccColor3B@2@@Z; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const &) ; +0x10, 0x14039d320\nmov     rcx, [rbx+5F8h]                                                ; +0x16, 0x14039d326\nmov     rdx, rdi                                                       ; +0x1d, 0x14039d32d\nadd     rcx, 140h                                                      ; +0x20, 0x14039d330\nmov     rax, [rcx]                                                     ; +0x27, 0x14039d337\ncall    qword ptr [rax]                                                ; +0x2a, 0x14039d33a\nmov     rcx, [rbx+618h]                                                ; +0x2c, 0x14039d33c\nmov     rdx, rdi                                                       ; +0x33, 0x14039d343\nadd     rcx, 140h                                                      ; +0x36, 0x14039d346\nmov     rax, [rcx]                                                     ; +0x3d, 0x14039d34d\ncall    qword ptr [rax]                                                ; +0x40, 0x14039d350\nmovzx   eax, word ptr [rdi]                                            ; +0x42, 0x14039d352\nmov     rcx, [rbx+760h]                                                ; +0x45, 0x14039d355\nmov     [rcx+2F1h], ax                                                 ; +0x4c, 0x14039d35c\nmovzx   eax, byte ptr [rdi+2]                                          ; +0x53, 0x14039d363\nmov     [rcx+2F3h], al                                                 ; +0x57, 0x14039d367\ncall    GJRobotSprite__updateColors                                    ; +0x5d, 0x14039d36d\nmovzx   eax, word ptr [rdi]                                            ; +0x62, 0x14039d372\nmov     rcx, [rbx+768h]                                                ; +0x65, 0x14039d375\nmov     [rcx+2F1h], ax                                                 ; +0x6c, 0x14039d37c\nmovzx   eax, byte ptr [rdi+2]                                          ; +0x73, 0x14039d383\nmov     [rcx+2F3h], al                                                 ; +0x77, 0x14039d387\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7d, 0x14039d38d\nadd     rsp, 20h                                                       ; +0x82, 0x14039d392\npop     rdi                                                            ; +0x86, 0x14039d396\njmp     GJRobotSprite__updateColors                                    ; +0x87, 0x14039d397", "xrefs": ["<???> @ 0x1405c8918", "<???> @ 0x1406d671c"], "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"}