{"type": "func", "start": 5373415024, "end": 5373415292, "name": "SetupTriggerPopup::toggleEaseRateVisibility", "pseudocode": "// \n// SetupTriggerPopup::toggleEaseRateVisibility from 0x14047ce70 to 0x14047cf7c (268 bytes)\n// \n// 5 xrefs:\n// > SetupTriggerPopup::createEasingControls @ 0x14047cad3\n// > SetupTriggerPopup::onEase @ 0x14047cfde\n// > <???> @ 0x1406a5d00\n// > <???> @ 0x1406a5d10\n// > <???> @ 0x1406db87c\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::toggleEaseRateVisibility(SetupTriggerPopup *a1)\n{\n  bool v2; // si\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v4; // edi\n\n  switch ( a1->m_easingType )\n  {\n    case EaseInOut:\n    case EaseIn:\n    case EaseOut:\n    case ElasticInOut:\n    case ElasticIn:\n    case ElasticOut:\n      v2 = 1;\n      break;\n    default:\n      m_gameObjects = a1->m_gameObjects;\n      v2 = 0;\n      if ( m_gameObjects )\n      {\n        if ( cocos2d::CCArray::count(m_gameObjects) )\n        {\n          v2 = 1;\n          v4 = 0;\n          if ( cocos2d::CCArray::count(a1->m_gameObjects) )\n          {\n            while ( 2 )\n            {\n              switch ( LODWORD(cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v4)[27].__vftable) )\n              {\n                case 1:\n                case 2:\n                case 3:\n                case 4:\n                case 5:\n                case 6:\n                  if ( ++v4 < cocos2d::CCArray::count(a1->m_gameObjects) )\n                    continue;\n                  break;\n                default:\n                  v2 = 0;\n                  break;\n              }\n              break;\n            }\n          }\n        }\n      }\n      break;\n  }\n  a1->m_easingRateButton->setVisible(a1->m_easingRateButton, v2);\n}", "assembly": "; \n; SetupTriggerPopup::toggleEaseRateVisibility from 0x14047ce70 to 0x14047cf7c (268 bytes)\n; \n; 5 xrefs:\n; > SetupTriggerPopup::createEasingControls @ 0x14047cad3\n; > SetupTriggerPopup::onEase @ 0x14047cfde\n; > <???> @ 0x1406a5d00\n; > <???> @ 0x1406a5d10\n; > <???> @ 0x1406db87c\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], rbx                                               ; +0x0, 0x14047ce70\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14047ce75\npush    rsi                                                            ; +0xa, 0x14047ce7a\nsub     rsp, 20h                                                       ; +0xb, 0x14047ce7b\nmov     eax, [rcx+310h]                                                ; +0xf, 0x14047ce7f\nlea     rbp, cs:140000000h                                             ; +0x15, 0x14047ce85\ndec     eax; switch 6 cases                                            ; +0x1c, 0x14047ce8c\nmov     rbx, rcx                                                       ; +0x1e, 0x14047ce8e\ncmp     eax, 5                                                         ; +0x21, 0x14047ce91\nja      short def_14047CEA2; jumptable 000000014047CEA2 default case   ; +0x24, 0x14047ce94\ncdqe                                                                   ; +0x26, 0x14047ce96\nmov     edx, ss:(jpt_14047CEA2 - 140000000h)[rbp+rax*4]                ; +0x28, 0x14047ce98\nadd     rdx, rbp                                                       ; +0x2f, 0x14047ce9f\njmp     rdx; switch jump                                               ; +0x32, 0x14047cea2\nmov     sil, 1; jumptable 000000014047CEA2 cases 1-6                   ; +0x34, 0x14047cea4\njmp     short loc_14047CF28                                            ; +0x37, 0x14047cea7\nmov     rcx, [rcx+298h]; jumptable 000000014047CEA2 default case       ; +0x39, 0x14047cea9\nxor     sil, sil                                                       ; +0x40, 0x14047ceb0\ntest    rcx, rcx                                                       ; +0x43, 0x14047ceb3\njz      short loc_14047CF28                                            ; +0x46, 0x14047ceb6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x48, 0x14047ceb8\ntest    eax, eax                                                       ; +0x4e, 0x14047cebe\njz      short loc_14047CF28                                            ; +0x50, 0x14047cec0\nmov     rcx, [rbx+298h]                                                ; +0x52, 0x14047cec2\nmov     sil, 1                                                         ; +0x59, 0x14047cec9\nmov     [rsp+28h+arg_0], rdi                                           ; +0x5c, 0x14047cecc\nxor     edi, edi                                                       ; +0x61, 0x14047ced1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x63, 0x14047ced3\ntest    eax, eax                                                       ; +0x69, 0x14047ced9\njz      short loc_14047CF23                                            ; +0x6b, 0x14047cedb\nnop     dword ptr [rax]                                                ; +0x6d, 0x14047cedd\nmov     rcx, [rbx+298h]                                                ; +0x70, 0x14047cee0\nmov     edx, edi                                                       ; +0x77, 0x14047cee7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x79, 0x14047cee9\nmov     ecx, [rax+5E8h]                                                ; +0x7f, 0x14047ceef\ndec     ecx; switch 6 cases                                            ; +0x85, 0x14047cef5\ncmp     ecx, 5                                                         ; +0x87, 0x14047cef7\nja      short def_14047CF09; jumptable 000000014047CF09 default case   ; +0x8a, 0x14047cefa\nmovsxd  rax, ecx                                                       ; +0x8c, 0x14047cefc\nmov     ecx, ss:(jpt_14047CF09 - 140000000h)[rbp+rax*4]                ; +0x8f, 0x14047ceff\nadd     rcx, rbp                                                       ; +0x96, 0x14047cf06\njmp     rcx; switch jump                                               ; +0x99, 0x14047cf09\nmov     rcx, [rbx+298h]; jumptable 000000014047CF09 cases 1-6          ; +0x9b, 0x14047cf0b\ninc     edi                                                            ; +0xa2, 0x14047cf12\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa4, 0x14047cf14\ncmp     edi, eax                                                       ; +0xaa, 0x14047cf1a\njb      short loc_14047CEE0                                            ; +0xac, 0x14047cf1c\njmp     short loc_14047CF23                                            ; +0xae, 0x14047cf1e\nxor     sil, sil; jumptable 000000014047CF09 default case              ; +0xb0, 0x14047cf20\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xb3, 0x14047cf23\nmov     rcx, [rbx+308h]                                                ; +0xb8, 0x14047cf28\nmovzx   edx, sil                                                       ; +0xbf, 0x14047cf2f\nmov     rax, [rcx]                                                     ; +0xc3, 0x14047cf33\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc6, 0x14047cf36\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xcb, 0x14047cf3b\nadd     rsp, 20h                                                       ; +0xd0, 0x14047cf40\npop     rsi                                                            ; +0xd4, 0x14047cf44\njmp     qword ptr [rax+140h]                                           ; +0xd5, 0x14047cf45\ndd offset loc_14047CEA4 - 140000000h; jump table for switch statement  ; +0xdc, 0x14047cf4c\ndd offset loc_14047CF0B - 140000000h; jump table for switch statement  ; +0xf4, 0x14047cf64", "xrefs": ["SetupTriggerPopup::createEasingControls @ 0x14047cad3", "SetupTriggerPopup::onEase @ 0x14047cfde", "<???> @ 0x1406a5d00", "<???> @ 0x1406a5d10", "<???> @ 0x1406db87c"], "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"}