{"type": "func", "start": 5373144432, "end": 5373144985, "name": "SetupPulsePopup::onSelectPulseMode", "pseudocode": "// \n// SetupPulsePopup::onSelectPulseMode from 0x14043ad70 to 0x14043af99 (553 bytes)\n// \n// 4 xrefs:\n// > SetupPulsePopup::init @ 0x14043aa4d\n// > SetupPulsePopup::init @ 0x140438ff4\n// > SetupPulsePopup::init @ 0x1404390a6\n// > <???> @ 0x1406d9e84\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::onSelectPulseMode(SetupPulsePopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // ebp\n  const char *v4; // rsi\n  const char *v5; // rdi\n  ButtonSprite *v6; // rax\n  ButtonSprite *v7; // rax\n  unsigned int v8; // esi\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v10; // rax\n  unsigned int j; // edi\n  _BOOL8 v12; // rdx\n  struct cocos2d::CCObject *v13; // rax\n  EffectGameObject *m_gameObject; // rax\n  cocos2d::CCArray *m_gameObjects; // rcx\n  struct cocos2d::CCObject *v16; // rax\n\n  if ( a2 )\n    v3 = a2->getTag(a2);\n  else\n    v3 = -1;\n  v4 = \"GJ_button_04.png\";\n  v5 = \"GJ_button_04.png\";\n  if ( !v3 )\n    v5 = \"GJ_button_02.png\";\n  v6 = (ButtonSprite *)a1->m_colorButton->getNormalImage(a1->m_colorButton);\n  ButtonSprite::updateBGImage(v6, v5);\n  if ( v3 == 1 )\n    v4 = \"GJ_button_02.png\";\n  v7 = (ButtonSprite *)a1->m_hsvButton->getNormalImage(a1->m_hsvButton);\n  ButtonSprite::updateBGImage(v7, v4);\n  v8 = 0;\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_colorObjects); ++i )\n  {\n    v10 = cocos2d::CCArray::objectAtIndex(a1->m_colorObjects, i);\n    ((void (__fastcall *)(struct cocos2d::CCObject *, bool))v10->__vftable[4].update)(v10, v3 == 0);\n  }\n  for ( j = 0; j < cocos2d::CCArray::count(a1->m_hsvObjects); ++j )\n  {\n    v13 = cocos2d::CCArray::objectAtIndex(a1->m_hsvObjects, j);\n    ((void (__fastcall *)(struct cocos2d::CCObject *, bool))v13->__vftable[4].update)(v13, v3 == 1);\n  }\n  LOBYTE(v12) = v3 == 1;\n  a1->m_colorIDInput->setTouchEnabled(a1->m_colorIDInput, v12);\n  a1->m_rInput->setTouchEnabled(a1->m_rInput, v3 == 0);\n  a1->m_gInput->setTouchEnabled(a1->m_gInput, v3 == 0);\n  a1->m_bInput->setTouchEnabled(a1->m_bInput, v3 == 0);\n  a1->m_hexInput->setTouchEnabled(a1->m_hexInput, v3 == 0);\n  a1->m_pulseMode = v3;\n  if ( !a1->m_modesInitializing )\n  {\n    m_gameObject = a1->m_gameObject;\n    if ( m_gameObject )\n    {\n      m_gameObject->m_pulseMode = v3;\n    }\n    else\n    {\n      m_gameObjects = a1->m_gameObjects;\n      if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) )\n      {\n        do\n        {\n          v16 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v8++);\n          v16[28].m_unknown5 = a1->m_pulseMode;\n        }\n        while ( v8 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; SetupPulsePopup::onSelectPulseMode from 0x14043ad70 to 0x14043af99 (553 bytes)\n; \n; 4 xrefs:\n; > SetupPulsePopup::init @ 0x14043aa4d\n; > SetupPulsePopup::init @ 0x140438ff4\n; > SetupPulsePopup::init @ 0x1404390a6\n; > <???> @ 0x1406d9e84\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, 0x14043ad70\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14043ad75\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14043ad7a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x14043ad7f\npush    r14                                                            ; +0x14, 0x14043ad84\nsub     rsp, 20h                                                       ; +0x16, 0x14043ad86\nmov     rbx, rcx                                                       ; +0x1a, 0x14043ad8a\ntest    rdx, rdx                                                       ; +0x1d, 0x14043ad8d\njz      short loc_14043AD9F                                            ; +0x20, 0x14043ad90\nmov     rax, [rdx]                                                     ; +0x22, 0x14043ad92\nmov     rcx, rdx                                                       ; +0x25, 0x14043ad95\ncall    qword ptr [rax+38h]                                            ; +0x28, 0x14043ad98\nmov     ebp, eax                                                       ; +0x2b, 0x14043ad9b\njmp     short loc_14043ADA4                                            ; +0x2d, 0x14043ad9d\nmov     ebp, 0FFFFFFFFh                                                ; +0x2f, 0x14043ad9f\nmov     rcx, [rbx+428h]                                                ; +0x34, 0x14043ada4\nlea     rsi, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x3b, 0x14043adab\ntest    ebp, ebp                                                       ; +0x42, 0x14043adb2\nlea     r14, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x44, 0x14043adb4\nmov     rdi, rsi                                                       ; +0x4b, 0x14043adbb\ncmovz   rdi, r14                                                       ; +0x4e, 0x14043adbe\nmov     rax, [rcx]                                                     ; +0x52, 0x14043adc2\ncall    qword ptr [rax+3A8h]                                           ; +0x55, 0x14043adc5\nmov     rcx, rax                                                       ; +0x5b, 0x14043adcb\nmov     rdx, rdi                                                       ; +0x5e, 0x14043adce\ncall    ButtonSprite__updateBGImage                                    ; +0x61, 0x14043add1\nmov     rcx, [rbx+430h]                                                ; +0x66, 0x14043add6\ncmp     ebp, 1                                                         ; +0x6d, 0x14043addd\ncmovz   rsi, r14                                                       ; +0x70, 0x14043ade0\nmov     rax, [rcx]                                                     ; +0x74, 0x14043ade4\ncall    qword ptr [rax+3A8h]                                           ; +0x77, 0x14043ade7\nmov     rcx, rax                                                       ; +0x7d, 0x14043aded\nmov     rdx, rsi                                                       ; +0x80, 0x14043adf0\ncall    ButtonSprite__updateBGImage                                    ; +0x83, 0x14043adf3\nmov     rcx, [rbx+3C8h]                                                ; +0x88, 0x14043adf8\nxor     esi, esi                                                       ; +0x8f, 0x14043adff\nmov     edi, esi                                                       ; +0x91, 0x14043ae01\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x93, 0x14043ae03\ntest    eax, eax                                                       ; +0x99, 0x14043ae09\njz      short loc_14043AE53                                            ; +0x9b, 0x14043ae0b\ntest    ebp, ebp                                                       ; +0x9d, 0x14043ae0d\nsetz    r14b                                                           ; +0x9f, 0x14043ae0f\nnop     dword ptr [rax+00h]                                            ; +0xa3, 0x14043ae13\nnop     word ptr [rax+rax+00000000h]                                   ; +0xa7, 0x14043ae17\nmov     rcx, [rbx+3C8h]                                                ; +0xb0, 0x14043ae20\nmov     edx, edi                                                       ; +0xb7, 0x14043ae27\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb9, 0x14043ae29\nmovzx   edx, r14b                                                      ; +0xbf, 0x14043ae2f\nmov     rcx, rax                                                       ; +0xc3, 0x14043ae33\nmov     r8, [rax]                                                      ; +0xc6, 0x14043ae36\ncall    qword ptr [r8+140h]                                            ; +0xc9, 0x14043ae39\nmov     rcx, [rbx+3C8h]                                                ; +0xd0, 0x14043ae40\ninc     edi                                                            ; +0xd7, 0x14043ae47\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd9, 0x14043ae49\ncmp     edi, eax                                                       ; +0xdf, 0x14043ae4f\njb      short loc_14043AE20                                            ; +0xe1, 0x14043ae51\nmov     rcx, [rbx+3D0h]                                                ; +0xe3, 0x14043ae53\nmov     edi, esi                                                       ; +0xea, 0x14043ae5a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xec, 0x14043ae5c\ntest    eax, eax                                                       ; +0xf2, 0x14043ae62\njz      short loc_14043AEA3                                            ; +0xf4, 0x14043ae64\ncmp     ebp, 1                                                         ; +0xf6, 0x14043ae66\nsetz    r14b                                                           ; +0xf9, 0x14043ae69\nnop     dword ptr [rax]                                                ; +0xfd, 0x14043ae6d\nmov     rcx, [rbx+3D0h]                                                ; +0x100, 0x14043ae70\nmov     edx, edi                                                       ; +0x107, 0x14043ae77\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x109, 0x14043ae79\nmovzx   edx, r14b                                                      ; +0x10f, 0x14043ae7f\nmov     rcx, rax                                                       ; +0x113, 0x14043ae83\nmov     r8, [rax]                                                      ; +0x116, 0x14043ae86\ncall    qword ptr [r8+140h]                                            ; +0x119, 0x14043ae89\nmov     rcx, [rbx+3D0h]                                                ; +0x120, 0x14043ae90\ninc     edi                                                            ; +0x127, 0x14043ae97\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x129, 0x14043ae99\ncmp     edi, eax                                                       ; +0x12f, 0x14043ae9f\njb      short loc_14043AE70                                            ; +0x131, 0x14043aea1\nmov     rcx, [rbx+468h]                                                ; +0x133, 0x14043aea3\ncmp     ebp, 1                                                         ; +0x13a, 0x14043aeaa\nsetz    dl                                                             ; +0x13d, 0x14043aead\nmov     rax, [rcx]                                                     ; +0x140, 0x14043aeb0\ncall    qword ptr [rax+388h]                                           ; +0x143, 0x14043aeb3\nmov     rcx, [rbx+4D8h]                                                ; +0x149, 0x14043aeb9\ntest    ebp, ebp                                                       ; +0x150, 0x14043aec0\nsetz    dil                                                            ; +0x152, 0x14043aec2\nmovzx   edx, dil                                                       ; +0x156, 0x14043aec6\nmov     rax, [rcx]                                                     ; +0x15a, 0x14043aeca\ncall    qword ptr [rax+388h]                                           ; +0x15d, 0x14043aecd\nmov     rcx, [rbx+4E0h]                                                ; +0x163, 0x14043aed3\nmovzx   edx, dil                                                       ; +0x16a, 0x14043aeda\nmov     rax, [rcx]                                                     ; +0x16e, 0x14043aede\ncall    qword ptr [rax+388h]                                           ; +0x171, 0x14043aee1\nmov     rcx, [rbx+4E8h]                                                ; +0x177, 0x14043aee7\nmovzx   edx, dil                                                       ; +0x17e, 0x14043aeee\nmov     rax, [rcx]                                                     ; +0x182, 0x14043aef2\ncall    qword ptr [rax+388h]                                           ; +0x185, 0x14043aef5\nmov     rcx, [rbx+4F0h]                                                ; +0x18b, 0x14043aefb\nmovzx   edx, dil                                                       ; +0x192, 0x14043af02\nmov     rax, [rcx]                                                     ; +0x196, 0x14043af06\ncall    qword ptr [rax+388h]                                           ; +0x199, 0x14043af09\nmov     [rbx+4BCh], ebp                                                ; +0x19f, 0x14043af0f\ncmp     [rbx+4C4h], sil                                                ; +0x1a5, 0x14043af15\njnz     short loc_14043AF7E                                            ; +0x1ac, 0x14043af1c\nmov     rax, [rbx+290h]                                                ; +0x1ae, 0x14043af1e\ntest    rax, rax                                                       ; +0x1b5, 0x14043af25\njz      short loc_14043AF32                                            ; +0x1b8, 0x14043af28\nmov     [rax+654h], ebp                                                ; +0x1ba, 0x14043af2a\njmp     short loc_14043AF7E                                            ; +0x1c0, 0x14043af30\nmov     rcx, [rbx+298h]                                                ; +0x1c2, 0x14043af32\ntest    rcx, rcx                                                       ; +0x1c9, 0x14043af39\njz      short loc_14043AF7E                                            ; +0x1cc, 0x14043af3c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1ce, 0x14043af3e\ntest    eax, eax                                                       ; +0x1d4, 0x14043af44\njz      short loc_14043AF7E                                            ; +0x1d6, 0x14043af46\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x1d8, 0x14043af48\nmov     rcx, [rbx+298h]                                                ; +0x1e0, 0x14043af50\nmov     edx, esi                                                       ; +0x1e7, 0x14043af57\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1e9, 0x14043af59\nmov     ecx, [rbx+4BCh]                                                ; +0x1ef, 0x14043af5f\ninc     esi                                                            ; +0x1f5, 0x14043af65\nmov     [rax+654h], ecx                                                ; +0x1f7, 0x14043af67\nmov     rcx, [rbx+298h]                                                ; +0x1fd, 0x14043af6d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x204, 0x14043af74\ncmp     esi, eax                                                       ; +0x20a, 0x14043af7a\njb      short loc_14043AF50                                            ; +0x20c, 0x14043af7c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x20e, 0x14043af7e\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x213, 0x14043af83\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x218, 0x14043af88\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x21d, 0x14043af8d\nadd     rsp, 20h                                                       ; +0x222, 0x14043af92\npop     r14                                                            ; +0x226, 0x14043af96\nretn                                                                   ; +0x228, 0x14043af98", "xrefs": ["SetupPulsePopup::init @ 0x14043aa4d", "SetupPulsePopup::init @ 0x140438ff4", "SetupPulsePopup::init @ 0x1404390a6", "<???> @ 0x1406d9e84"], "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"}