{"type": "func", "start": 4298753872, "end": 4298754054, "name": "EndPortalObject::updateColors", "pseudocode": "// \n// EndPortalObject::updateColors from 0x10039c750 to 0x10039c806 (182 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x1000b6b76\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!\nvoid __fastcall EndPortalObject::updateColors(EndPortalObject *a1, cocos2d::ccColor3B a2)\n{\n  __m128 v2; // xmm1\n  __m128 v3; // xmm2\n  __m128 v4; // xmm3\n  cocos2d::CCParticleSystemQuad *m_particle; // rdi\n  cocos2d::CCParticleSystemQuad *v7; // rdi\n  __m128 v8; // [rsp+0h] [rbp-30h]\n  __m128 v9; // [rsp+10h] [rbp-20h] BYREF\n  cocos2d::ccColor3B v10; // [rsp+24h] [rbp-Ch] BYREF\n\n  v10 = a2;\n  m_particle = a1->m_particle;\n  if ( m_particle )\n  {\n    v4.f32[0] = (float)a2.r / 255.0;\n    v2.f32[0] = (float)a2.g / 255.0;\n    v3.f32[0] = (float)((*(_DWORD *)&a2.r & 0xFF0000u) >> 16) / 255.0;\n    v8 = _mm_movelh_ps(_mm_insert_ps(v4, v2, 16), _mm_blend_ps(v3, (__m128)xmmword_1008150D0, 14));\n    v9 = v8;\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __m128 *))m_particle->setStartColor)(m_particle, &v9);\n    v7 = a1->m_particle;\n    v9 = v8;\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __m128 *))v7->setEndColor)(v7, &v9);\n  }\n  ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_gradientBar->setColor)(a1->m_gradientBar, &v10);\n}", "assembly": "; \n; EndPortalObject::updateColors from 0x10039c750 to 0x10039c806 (182 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x1000b6b76\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, 0x10039c750\nmov     rbp, rsp                                                       ; +0x1, 0x10039c751\npush    rbx                                                            ; +0x4, 0x10039c754\nsub     rsp, 28h                                                       ; +0x5, 0x10039c755\nmov     eax, esi                                                       ; +0x9, 0x10039c759\nmov     rbx, rdi                                                       ; +0xb, 0x10039c75b\nmov     [rbp+var_C], ax                                                ; +0xe, 0x10039c75e\nmov     ecx, esi                                                       ; +0x12, 0x10039c762\nshr     ecx, 10h                                                       ; +0x14, 0x10039c764\nmov     [rbp+var_A], cl                                                ; +0x17, 0x10039c767\nmov     rdi, [rdi+308h]                                                ; +0x1a, 0x10039c76a\ntest    rdi, rdi                                                       ; +0x21, 0x10039c771\njz      short loc_10039C7EB                                            ; +0x24, 0x10039c774\nmov     ecx, eax                                                       ; +0x26, 0x10039c776\nand     ecx, 0FF0000h                                                  ; +0x28, 0x10039c778\nshr     ecx, 10h                                                       ; +0x2e, 0x10039c77e\nmovzx   edx, al                                                        ; +0x31, 0x10039c781\ncvtsi2ss xmm3, edx                                                     ; +0x34, 0x10039c784\nmovss   xmm0, cs:dword_100815C10                                       ; +0x38, 0x10039c788\nmovzx   eax, ah                                                        ; +0x40, 0x10039c790\ncvtsi2ss xmm1, eax                                                     ; +0x43, 0x10039c793\ndivss   xmm3, xmm0                                                     ; +0x47, 0x10039c797\ncvtsi2ss xmm2, ecx                                                     ; +0x4b, 0x10039c79b\ndivss   xmm1, xmm0                                                     ; +0x4f, 0x10039c79f\ndivss   xmm2, xmm0                                                     ; +0x53, 0x10039c7a3\nblendps xmm2, cs:xmmword_1008150D0, 0Eh                                ; +0x57, 0x10039c7a7\ninsertps xmm3, xmm1, 10h                                               ; +0x61, 0x10039c7b1\nmovlhps xmm3, xmm2                                                     ; +0x67, 0x10039c7b7\nmovaps  [rbp+var_30], xmm3                                             ; +0x6a, 0x10039c7ba\nmovups  [rbp+var_20], xmm3                                             ; +0x6e, 0x10039c7be\nmov     rax, [rdi]                                                     ; +0x72, 0x10039c7c2\nlea     rsi, [rbp+var_20]                                              ; +0x75, 0x10039c7c5\ncall    qword ptr [rax+540h]                                           ; +0x79, 0x10039c7c9\nmov     rdi, [rbx+308h]                                                ; +0x7f, 0x10039c7cf\nmovaps  xmm0, [rbp+var_30]                                             ; +0x86, 0x10039c7d6\nmovups  [rbp+var_20], xmm0                                             ; +0x8a, 0x10039c7da\nmov     rax, [rdi]                                                     ; +0x8e, 0x10039c7de\nlea     rsi, [rbp+var_20]                                              ; +0x91, 0x10039c7e1\ncall    qword ptr [rax+560h]                                           ; +0x95, 0x10039c7e5\nmov     rdi, [rbx+548h]                                                ; +0x9b, 0x10039c7eb\nmov     rax, [rdi]                                                     ; +0xa2, 0x10039c7f2\nlea     rsi, [rbp+var_C]                                               ; +0xa5, 0x10039c7f5\ncall    qword ptr [rax+3B0h]                                           ; +0xa9, 0x10039c7f9\nadd     rsp, 28h                                                       ; +0xaf, 0x10039c7ff\npop     rbx                                                            ; +0xb3, 0x10039c803\npop     rbp                                                            ; +0xb4, 0x10039c804\nretn                                                                   ; +0xb5, 0x10039c805", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x1000b6b76"], "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"}