{"type": "func", "start": 5371170080, "end": 5371170347, "name": "ColorChannelSprite::updateBlending", "pseudocode": "// \n// ColorChannelSprite::updateBlending from 0x140258d20 to 0x140258e2b (267 bytes)\n// \n// 6 xrefs:\n// > CustomizeObjectLayer::updateColorSprite @ 0x1400a8612\n// > GJColorSetupLayer::updateSpriteColor @ 0x140256ac5\n// > LevelSettingsLayer::updateColorSprite @ 0x140321b30\n// > <???> @ 0x140684760\n// > <???> @ 0x140684770\n// > <???> @ 0x1406cfbb8\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 ColorChannelSprite::updateBlending(ColorChannelSprite *a1, bool a2)\n{\n  float v2; // xmm0_4\n  cocos2d::CCLabelBMFont **p_m_blendingLabel; // rdi\n  struct cocos2d::CCLabelBMFont *v6; // rax\n  ColorChannelSprite_vtbl *v7; // r8\n  cocos2d::CCLabelBMFont_vtbl *v8; // rbx\n  const cocos2d::CCSize *v9; // rax\n  const cocos2d::CCPoint *v10; // rax\n\n  p_m_blendingLabel = &a1->m_blendingLabel;\n  if ( a2 )\n  {\n    if ( !*p_m_blendingLabel )\n    {\n      v6 = cocos2d::CCLabelBMFont::create((const char *)&dword_140531F08, (const char *)&qword_14052A4D8);\n      v7 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      *p_m_blendingLabel = v6;\n      v7->addChild_1(a1, v6);\n      v8 = (*p_m_blendingLabel)->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      a1->getContentSize(a1);\n      v9 = a1->getContentSize(a1);\n      cocos2d::CCPoint::CCPoint(v2, (float)(v9->width * 0.5) - 10.0);\n      v8->setPosition_0(*p_m_blendingLabel, v10);\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *))(*p_m_blendingLabel)->setScale_0)(*p_m_blendingLabel);\n    }\n  }\n  else if ( !*p_m_blendingLabel )\n  {\n    return;\n  }\n  (*p_m_blendingLabel)->setVisible(*p_m_blendingLabel, a2);\n}", "assembly": "; \n; ColorChannelSprite::updateBlending from 0x140258d20 to 0x140258e2b (267 bytes)\n; \n; 6 xrefs:\n; > CustomizeObjectLayer::updateColorSprite @ 0x1400a8612\n; > GJColorSetupLayer::updateSpriteColor @ 0x140256ac5\n; > LevelSettingsLayer::updateColorSprite @ 0x140321b30\n; > <???> @ 0x140684760\n; > <???> @ 0x140684770\n; > <???> @ 0x1406cfbb8\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_8], rsi                                               ; +0x0, 0x140258d20\nmov     [rsp+arg_18], rdi                                              ; +0x5, 0x140258d25\npush    r14                                                            ; +0xa, 0x140258d2a\nsub     rsp, 30h                                                       ; +0xc, 0x140258d2c\nlea     rdi, [rcx+268h]                                                ; +0x10, 0x140258d30\nmovzx   esi, dl                                                        ; +0x17, 0x140258d37\nmov     r14, rcx                                                       ; +0x1a, 0x140258d3a\ntest    dl, dl                                                         ; +0x1d, 0x140258d3d\njnz     short loc_140258D50                                            ; +0x1f, 0x140258d3f\ncmp     qword ptr [rdi], 0                                             ; +0x21, 0x140258d41\njz      loc_140258E1A                                                  ; +0x25, 0x140258d45\njmp     loc_140258E0A                                                  ; +0x2b, 0x140258d4b\ncmp     qword ptr [rdi], 0                                             ; +0x30, 0x140258d50\njnz     loc_140258E0A                                                  ; +0x34, 0x140258d54\nmov     [rsp+38h+arg_0], rbx                                           ; +0x3a, 0x140258d5a\nlea     rdx, qword_14052A4D8                                           ; +0x3f, 0x140258d5f\nlea     rcx, dword_140531F08                                           ; +0x46, 0x140258d66\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x4d, 0x140258d6d\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x52, 0x140258d72\nmov     r8, [r14]                                                      ; +0x58, 0x140258d78\nmov     rcx, r14                                                       ; +0x5b, 0x140258d7b\nmov     rdx, rax                                                       ; +0x5e, 0x140258d7e\nmov     [rdi], rax                                                     ; +0x61, 0x140258d81\ncall    qword ptr [r8+1C0h]                                            ; +0x64, 0x140258d84\nmov     rax, [rdi]                                                     ; +0x6b, 0x140258d8b\nmov     rcx, r14                                                       ; +0x6e, 0x140258d8e\nmov     rbx, [rax]                                                     ; +0x71, 0x140258d91\nmov     rax, [r14]                                                     ; +0x74, 0x140258d94\ncall    qword ptr [rax+130h]                                           ; +0x77, 0x140258d97\nmov     rcx, r14                                                       ; +0x7d, 0x140258d9d\nmovss   xmm6, dword ptr [rax+4]                                        ; +0x80, 0x140258da0\nmov     rax, [r14]                                                     ; +0x85, 0x140258da5\ncall    qword ptr [rax+130h]                                           ; +0x88, 0x140258da8\nmulss   xmm6, cs:dword_140622B08                                       ; +0x8e, 0x140258dae\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x96, 0x140258db6\nmovss   xmm1, dword ptr [rax]                                          ; +0x9b, 0x140258dbb\nmulss   xmm1, cs:dword_140622B08                                       ; +0x9f, 0x140258dbf\naddss   xmm6, cs:dword_140623098                                       ; +0xa7, 0x140258dc7\nsubss   xmm1, cs:flt_14062307C                                         ; +0xaf, 0x140258dcf\nmovaps  xmm2, xmm6                                                     ; +0xb7, 0x140258dd7\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xba, 0x140258dda\nmov     rcx, [rdi]                                                     ; +0xc0, 0x140258de0\nmov     rdx, rax                                                       ; +0xc3, 0x140258de3\ncall    qword ptr [rbx+0B8h]                                           ; +0xc6, 0x140258de6\nmov     rcx, [rdi]                                                     ; +0xcc, 0x140258dec\nmovss   xmm1, cs:dword_140622B08                                       ; +0xcf, 0x140258def\nmov     rax, [rcx]                                                     ; +0xd7, 0x140258df7\ncall    qword ptr [rax+0A0h]                                           ; +0xda, 0x140258dfa\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xe0, 0x140258e00\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xe5, 0x140258e05\nmov     rcx, [rdi]                                                     ; +0xea, 0x140258e0a\nmovzx   edx, sil                                                       ; +0xed, 0x140258e0d\nmov     rax, [rcx]                                                     ; +0xf1, 0x140258e11\ncall    qword ptr [rax+140h]                                           ; +0xf4, 0x140258e14\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xfa, 0x140258e1a\nmov     rdi, [rsp+38h+arg_18]                                          ; +0xff, 0x140258e1f\nadd     rsp, 30h                                                       ; +0x104, 0x140258e24\npop     r14                                                            ; +0x108, 0x140258e28\nretn                                                                   ; +0x10a, 0x140258e2a", "xrefs": ["CustomizeObjectLayer::updateColorSprite @ 0x1400a8612", "GJColorSetupLayer::updateSpriteColor @ 0x140256ac5", "LevelSettingsLayer::updateColorSprite @ 0x140321b30", "<???> @ 0x140684760", "<???> @ 0x140684770", "<???> @ 0x1406cfbb8"], "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"}