{"type": "func", "start": 5373418992, "end": 5373419360, "name": "SetupTriggerPopup::toggleCustomEaseRateVisibility", "pseudocode": "// \n// SetupTriggerPopup::toggleCustomEaseRateVisibility from 0x14047ddf0 to 0x14047df60 (368 bytes)\n// \n// 5 xrefs:\n// > SetupTriggerPopup::createCustomEasingControls @ 0x14047d899\n// > SetupTriggerPopup::onCustomEaseArrow @ 0x14047daee\n// > <???> @ 0x1406a5e3c\n// > <???> @ 0x1406a5e4c\n// > <???> @ 0x1406db918\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 SetupTriggerPopup::toggleCustomEaseRateVisibility(SetupTriggerPopup *a1, int a2, int a3)\n{\n  __int64 v5; // r14\n  unsigned __int8 v6; // si\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v8; // edi\n  GameObject *v9; // rax\n  struct cocos2d::CCObject *v10; // rax\n  struct cocos2d::CCObject *v11; // rdi\n  cocos2d::CCDictionary *m_disabledEasingButtons; // rcx\n  __int64 m_uID; // r8\n\n  v5 = a3;\n  switch ( (int)((float (*)(void))a1->getValue)() )\n  {\n    case 1:\n    case 2:\n    case 3:\n    case 4:\n    case 5:\n    case 6:\n      v6 = 1;\n      break;\n    default:\n      m_gameObjects = a1->m_gameObjects;\n      v6 = 0;\n      if ( m_gameObjects )\n      {\n        if ( cocos2d::CCArray::count(m_gameObjects) )\n        {\n          v6 = 1;\n          v8 = 0;\n          if ( cocos2d::CCArray::count(a1->m_gameObjects) )\n          {\n            while ( 2 )\n            {\n              v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v8);\n              switch ( (int)SetupTriggerPopup::getTriggerValue(a1, a2, v9) )\n              {\n                case 1:\n                case 2:\n                case 3:\n                case 4:\n                case 5:\n                case 6:\n                  if ( ++v8 < cocos2d::CCArray::count(a1->m_gameObjects) )\n                    continue;\n                  break;\n                default:\n                  v6 = 0;\n                  break;\n              }\n              break;\n            }\n          }\n        }\n      }\n      break;\n  }\n  v10 = cocos2d::CCDictionary::objectForKey(a1->m_customEasingButtons, v5);\n  v11 = v10;\n  if ( v10 )\n  {\n    ((void (__fastcall *)(struct cocos2d::CCObject *, _QWORD))v10->__vftable[4].update)(v10, v6);\n    m_disabledEasingButtons = a1->m_disabledEasingButtons;\n    m_uID = v11->m_uID;\n    if ( v6 )\n      cocos2d::CCDictionary::removeObjectForKey(m_disabledEasingButtons, (unsigned int)m_uID);\n    else\n      cocos2d::CCDictionary::setObject(m_disabledEasingButtons, v11, m_uID);\n  }\n}", "assembly": "; \n; SetupTriggerPopup::toggleCustomEaseRateVisibility from 0x14047ddf0 to 0x14047df60 (368 bytes)\n; \n; 5 xrefs:\n; > SetupTriggerPopup::createCustomEasingControls @ 0x14047d899\n; > SetupTriggerPopup::onCustomEaseArrow @ 0x14047daee\n; > <???> @ 0x1406a5e3c\n; > <???> @ 0x1406a5e4c\n; > <???> @ 0x1406db918\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    rbx                                                            ; +0x0, 0x14047ddf0\npush    rsi                                                            ; +0x2, 0x14047ddf2\npush    rdi                                                            ; +0x3, 0x14047ddf3\nsub     rsp, 20h                                                       ; +0x4, 0x14047ddf4\nmov     rax, [rcx]                                                     ; +0x8, 0x14047ddf8\nmov     rbx, rcx                                                       ; +0xb, 0x14047ddfb\nmov     [rsp+38h+arg_0], rbp                                           ; +0xe, 0x14047ddfe\nmov     ebp, edx                                                       ; +0x13, 0x14047de03\nmov     [rsp+38h+arg_8], r14                                           ; +0x15, 0x14047de05\nmov     [rsp+38h+arg_10], r15                                          ; +0x1a, 0x14047de0a\nmovsxd  r14, r8d                                                       ; +0x1f, 0x14047de0f\ncall    qword ptr [rax+470h]                                           ; +0x22, 0x14047de12\ncvttss2si eax, xmm0                                                    ; +0x28, 0x14047de18\nlea     r15, cs:140000000h                                             ; +0x2c, 0x14047de1c\ndec     eax; switch 6 cases                                            ; +0x33, 0x14047de23\ncmp     eax, 5                                                         ; +0x35, 0x14047de25\nja      short def_14047DE37; jumptable 000000014047DE37 default case   ; +0x38, 0x14047de28\ncdqe                                                                   ; +0x3a, 0x14047de2a\nmov     ecx, ds:(jpt_14047DE37 - 140000000h)[r15+rax*4]                ; +0x3c, 0x14047de2c\nadd     rcx, r15                                                       ; +0x44, 0x14047de34\njmp     rcx; switch jump                                               ; +0x47, 0x14047de37\nmov     sil, 1; jumptable 000000014047DE37 cases 1-6                   ; +0x49, 0x14047de39\njmp     loc_14047DEBE                                                  ; +0x4c, 0x14047de3c\nmov     rcx, [rbx+298h]; jumptable 000000014047DE37 default case       ; +0x51, 0x14047de41\nxor     sil, sil                                                       ; +0x58, 0x14047de48\ntest    rcx, rcx                                                       ; +0x5b, 0x14047de4b\njz      short loc_14047DEBE                                            ; +0x5e, 0x14047de4e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x60, 0x14047de50\ntest    eax, eax                                                       ; +0x66, 0x14047de56\njz      short loc_14047DEBE                                            ; +0x68, 0x14047de58\nmov     rcx, [rbx+298h]                                                ; +0x6a, 0x14047de5a\nmov     sil, 1                                                         ; +0x71, 0x14047de61\nxor     edi, edi                                                       ; +0x74, 0x14047de64\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x76, 0x14047de66\ntest    eax, eax                                                       ; +0x7c, 0x14047de6c\njz      short loc_14047DEBE                                            ; +0x7e, 0x14047de6e\nmov     rcx, [rbx+298h]                                                ; +0x80, 0x14047de70\nmov     edx, edi                                                       ; +0x87, 0x14047de77\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x89, 0x14047de79\nmov     edx, ebp                                                       ; +0x8f, 0x14047de7f\nmov     rcx, rbx                                                       ; +0x91, 0x14047de81\nmov     r8, rax                                                        ; +0x94, 0x14047de84\ncall    SetupTriggerPopup__getTriggerValue                             ; +0x97, 0x14047de87\ncvttss2si eax, xmm0                                                    ; +0x9c, 0x14047de8c\ndec     eax; switch 6 cases                                            ; +0xa0, 0x14047de90\ncmp     eax, 5                                                         ; +0xa2, 0x14047de92\nja      short def_14047DEA4; jumptable 000000014047DEA4 default case   ; +0xa5, 0x14047de95\ncdqe                                                                   ; +0xa7, 0x14047de97\nmov     ecx, ds:(jpt_14047DEA4 - 140000000h)[r15+rax*4]                ; +0xa9, 0x14047de99\nadd     rcx, r15                                                       ; +0xb1, 0x14047dea1\njmp     rcx; switch jump                                               ; +0xb4, 0x14047dea4\nmov     rcx, [rbx+298h]; jumptable 000000014047DEA4 cases 1-6          ; +0xb6, 0x14047dea6\ninc     edi                                                            ; +0xbd, 0x14047dead\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xbf, 0x14047deaf\ncmp     edi, eax                                                       ; +0xc5, 0x14047deb5\njb      short loc_14047DE70                                            ; +0xc7, 0x14047deb7\njmp     short loc_14047DEBE                                            ; +0xc9, 0x14047deb9\nxor     sil, sil; jumptable 000000014047DEA4 default case              ; +0xcb, 0x14047debb\nmov     rcx, [rbx+378h]                                                ; +0xce, 0x14047debe\nmov     rdx, r14                                                       ; +0xd5, 0x14047dec5\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xd8, 0x14047dec8\nmov     r15, [rsp+38h+arg_10]                                          ; +0xde, 0x14047dece\nmov     rdi, rax                                                       ; +0xe3, 0x14047ded3\nmov     r14, [rsp+38h+arg_8]                                           ; +0xe6, 0x14047ded6\nmov     rbp, [rsp+38h+arg_0]                                           ; +0xeb, 0x14047dedb\ntest    rax, rax                                                       ; +0xf0, 0x14047dee0\njz      short loc_14047DF28                                            ; +0xf3, 0x14047dee3\nmov     r8, [rax]                                                      ; +0xf5, 0x14047dee5\nmovzx   edx, sil                                                       ; +0xf8, 0x14047dee8\nmov     rcx, rax                                                       ; +0xfc, 0x14047deec\ncall    qword ptr [r8+140h]                                            ; +0xff, 0x14047deef\nmov     rcx, [rbx+388h]                                                ; +0x106, 0x14047def6\nmov     r8d, [rdi+8]                                                   ; +0x10d, 0x14047defd\ntest    sil, sil                                                       ; +0x111, 0x14047df01\njz      short loc_14047DF17                                            ; +0x114, 0x14047df04\nmov     edx, r8d                                                       ; +0x116, 0x14047df06\nadd     rsp, 20h                                                       ; +0x119, 0x14047df09\npop     rdi                                                            ; +0x11d, 0x14047df0d\npop     rsi                                                            ; +0x11e, 0x14047df0e\npop     rbx                                                            ; +0x11f, 0x14047df0f\njmp     cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAX_J@Z; cocos2d::CCDictionary::removeObjectForKey(__int64) ; +0x120, 0x14047df10\nmov     rdx, rdi                                                       ; +0x127, 0x14047df17\nadd     rsp, 20h                                                       ; +0x12a, 0x14047df1a\npop     rdi                                                            ; +0x12e, 0x14047df1e\npop     rsi                                                            ; +0x12f, 0x14047df1f\npop     rbx                                                            ; +0x130, 0x14047df20\njmp     cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x131, 0x14047df21\nadd     rsp, 20h                                                       ; +0x138, 0x14047df28\npop     rdi                                                            ; +0x13c, 0x14047df2c\npop     rsi                                                            ; +0x13d, 0x14047df2d\npop     rbx                                                            ; +0x13e, 0x14047df2e\nretn                                                                   ; +0x13f, 0x14047df2f\ndd offset loc_14047DE39 - 140000000h; jump table for switch statement  ; +0x140, 0x14047df30\ndd offset loc_14047DEA6 - 140000000h; jump table for switch statement  ; +0x158, 0x14047df48", "xrefs": ["SetupTriggerPopup::createCustomEasingControls @ 0x14047d899", "SetupTriggerPopup::onCustomEaseArrow @ 0x14047daee", "<???> @ 0x1406a5e3c", "<???> @ 0x1406a5e4c", "<???> @ 0x1406db918"], "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"}