{"type": "func", "start": 5373149984, "end": 5373150128, "name": "SetupPulsePopup::onUpdateCustomColor", "pseudocode": "// \n// SetupPulsePopup::onUpdateCustomColor from 0x14043c320 to 0x14043c3b0 (144 bytes)\n// \n// 3 xrefs:\n// > SetupPulsePopup::init @ 0x140438d27\n// > SetupPulsePopup::init @ 0x140438dc1\n// > <???> @ 0x1406da0a0\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 SetupPulsePopup::onUpdateCustomColor(SetupPulsePopup *a1, cocos2d::CCObject *a2)\n{\n  int v2; // edi\n  int v3; // esi\n  int v5; // eax\n  int m_targetGroupID; // ecx\n  int v7; // edx\n  int v8; // ecx\n\n  v2 = 0;\n  v3 = 999;\n  if ( a1->m_targetGroupID > 999 && a1->m_pulseTargetType != 1 )\n    a1->m_targetGroupID = 0;\n  v5 = a2->getTag(a2);\n  m_targetGroupID = a1->m_targetGroupID;\n  v7 = m_targetGroupID + 1;\n  v8 = m_targetGroupID - 1;\n  if ( v5 != 1 )\n    v8 = v7;\n  if ( a1->m_pulseTargetType == 1 )\n    v3 = 9999;\n  if ( v8 >= 0 )\n    v2 = v8;\n  if ( v3 < v2 )\n    v2 = v3;\n  a1->m_targetGroupID = v2;\n  SetupPulsePopup::updateTargetID(a1);\n  SetupTriggerPopup::updateEditorLabel(a1);\n  SetupPulsePopup::updateTextInputLabel(a1);\n}", "assembly": "; \n; SetupPulsePopup::onUpdateCustomColor from 0x14043c320 to 0x14043c3b0 (144 bytes)\n; \n; 3 xrefs:\n; > SetupPulsePopup::init @ 0x140438d27\n; > SetupPulsePopup::init @ 0x140438dc1\n; > <???> @ 0x1406da0a0\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, 0x14043c320\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14043c325\npush    rdi                                                            ; +0xa, 0x14043c32a\nsub     rsp, 20h                                                       ; +0xb, 0x14043c32b\nxor     edi, edi                                                       ; +0xf, 0x14043c32f\nmov     esi, 3E7h                                                      ; +0x11, 0x14043c331\nmov     rbx, rcx                                                       ; +0x16, 0x14043c336\ncmp     [rcx+4A4h], esi                                                ; +0x19, 0x14043c339\njle     short loc_14043C350                                            ; +0x1f, 0x14043c33f\ncmp     dword ptr [rcx+4C0h], 1                                        ; +0x21, 0x14043c341\njz      short loc_14043C350                                            ; +0x28, 0x14043c348\nmov     [rcx+4A4h], edi                                                ; +0x2a, 0x14043c34a\nmov     rax, [rdx]                                                     ; +0x30, 0x14043c350\nmov     rcx, rdx                                                       ; +0x33, 0x14043c353\ncall    qword ptr [rax+38h]                                            ; +0x36, 0x14043c356\nmov     ecx, [rbx+4A4h]                                                ; +0x39, 0x14043c359\nlea     edx, [rcx+1]                                                   ; +0x3f, 0x14043c35f\ndec     ecx                                                            ; +0x42, 0x14043c362\ncmp     eax, 1                                                         ; +0x44, 0x14043c364\nmov     eax, 270Fh                                                     ; +0x47, 0x14043c367\ncmovnz  ecx, edx                                                       ; +0x4c, 0x14043c36c\ncmp     dword ptr [rbx+4C0h], 1                                        ; +0x4f, 0x14043c36f\ncmovz   esi, eax                                                       ; +0x56, 0x14043c376\ntest    ecx, ecx                                                       ; +0x59, 0x14043c379\ncmovns  edi, ecx                                                       ; +0x5b, 0x14043c37b\nmov     rcx, rbx                                                       ; +0x5e, 0x14043c37e\ncmp     esi, edi                                                       ; +0x61, 0x14043c381\ncmovl   edi, esi                                                       ; +0x63, 0x14043c383\nmov     [rbx+4A4h], edi                                                ; +0x66, 0x14043c386\ncall    SetupPulsePopup__updateTargetID                                ; +0x6c, 0x14043c38c\nmov     rcx, rbx                                                       ; +0x71, 0x14043c391\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0x74, 0x14043c394\nmov     rcx, rbx                                                       ; +0x79, 0x14043c399\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7c, 0x14043c39c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x81, 0x14043c3a1\nadd     rsp, 20h                                                       ; +0x86, 0x14043c3a6\npop     rdi                                                            ; +0x8a, 0x14043c3aa\njmp     SetupPulsePopup__updateTextInputLabel                          ; +0x8b, 0x14043c3ab", "xrefs": ["SetupPulsePopup::init @ 0x140438d27", "SetupPulsePopup::init @ 0x140438dc1", "<???> @ 0x1406da0a0"], "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"}