{"type": "func", "start": 5372996976, "end": 5372997244, "name": "SetupCameraOffsetTrigger::toggleEasingRateVisibility", "pseudocode": "// \n// SetupCameraOffsetTrigger::toggleEasingRateVisibility from 0x140416d70 to 0x140416e7c (268 bytes)\n// \n// 6 xrefs:\n// > SetupCameraOffsetTrigger::init @ 0x140415e5d\n// > SetupCameraOffsetTrigger::onEasing @ 0x140416f33\n// > SetupMGTrigger::init @ 0x140427c4f\n// > <???> @ 0x14069fbe4\n// > <???> @ 0x14069fbf4\n// > <???> @ 0x1406d8f60\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\n// Merged with: SetupCameraOffsetTrigger::toggleEasingRateVisibility, SetupMGTrigger::toggleEasingRateVisibility\n__int64 __fastcall SetupCameraOffsetTrigger::toggleEasingRateVisibility(__int64 a1)\n{\n  unsigned __int8 v2; // si\n  cocos2d::CCArray *v3; // rcx\n  unsigned int v4; // edi\n\n  switch ( *(_DWORD *)(a1 + 968) )\n  {\n    case 1:\n    case 2:\n    case 3:\n    case 4:\n    case 5:\n    case 6:\n      v2 = 1;\n      break;\n    default:\n      v3 = *(cocos2d::CCArray **)(a1 + 664);\n      v2 = 0;\n      if ( v3 )\n      {\n        if ( cocos2d::CCArray::count(v3) )\n        {\n          v2 = 1;\n          v4 = 0;\n          if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664)) )\n          {\n            while ( 2 )\n            {\n              switch ( LODWORD(cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 664), 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(*(cocos2d::CCArray **)(a1 + 664)) )\n                    continue;\n                  break;\n                default:\n                  v2 = 0;\n                  break;\n              }\n              break;\n            }\n          }\n        }\n      }\n      break;\n  }\n  return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 976) + 320LL))(*(_QWORD *)(a1 + 976), v2);\n}", "assembly": "; \n; SetupCameraOffsetTrigger::toggleEasingRateVisibility from 0x140416d70 to 0x140416e7c (268 bytes)\n; \n; 6 xrefs:\n; > SetupCameraOffsetTrigger::init @ 0x140415e5d\n; > SetupCameraOffsetTrigger::onEasing @ 0x140416f33\n; > SetupMGTrigger::init @ 0x140427c4f\n; > <???> @ 0x14069fbe4\n; > <???> @ 0x14069fbf4\n; > <???> @ 0x1406d8f60\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, 0x140416d70\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140416d75\npush    rsi                                                            ; +0xa, 0x140416d7a\nsub     rsp, 20h                                                       ; +0xb, 0x140416d7b\nmov     eax, [rcx+3C8h]                                                ; +0xf, 0x140416d7f\nlea     rbp, cs:140000000h                                             ; +0x15, 0x140416d85\ndec     eax; switch 6 cases                                            ; +0x1c, 0x140416d8c\nmov     rbx, rcx                                                       ; +0x1e, 0x140416d8e\ncmp     eax, 5                                                         ; +0x21, 0x140416d91\nja      short def_140416DA2; jumptable 0000000140416DA2 default case   ; +0x24, 0x140416d94\ncdqe                                                                   ; +0x26, 0x140416d96\nmov     edx, ss:(jpt_140416DA2 - 140000000h)[rbp+rax*4]                ; +0x28, 0x140416d98\nadd     rdx, rbp                                                       ; +0x2f, 0x140416d9f\njmp     rdx; switch jump                                               ; +0x32, 0x140416da2\nmov     sil, 1; jumptable 0000000140416DA2 cases 1-6                   ; +0x34, 0x140416da4\njmp     short loc_140416E28                                            ; +0x37, 0x140416da7\nmov     rcx, [rcx+298h]; jumptable 0000000140416DA2 default case       ; +0x39, 0x140416da9\nxor     sil, sil                                                       ; +0x40, 0x140416db0\ntest    rcx, rcx                                                       ; +0x43, 0x140416db3\njz      short loc_140416E28                                            ; +0x46, 0x140416db6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x48, 0x140416db8\ntest    eax, eax                                                       ; +0x4e, 0x140416dbe\njz      short loc_140416E28                                            ; +0x50, 0x140416dc0\nmov     rcx, [rbx+298h]                                                ; +0x52, 0x140416dc2\nmov     sil, 1                                                         ; +0x59, 0x140416dc9\nmov     [rsp+28h+arg_0], rdi                                           ; +0x5c, 0x140416dcc\nxor     edi, edi                                                       ; +0x61, 0x140416dd1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x63, 0x140416dd3\ntest    eax, eax                                                       ; +0x69, 0x140416dd9\njz      short loc_140416E23                                            ; +0x6b, 0x140416ddb\nnop     dword ptr [rax]                                                ; +0x6d, 0x140416ddd\nmov     rcx, [rbx+298h]                                                ; +0x70, 0x140416de0\nmov     edx, edi                                                       ; +0x77, 0x140416de7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x79, 0x140416de9\nmov     ecx, [rax+5E8h]                                                ; +0x7f, 0x140416def\ndec     ecx; switch 6 cases                                            ; +0x85, 0x140416df5\ncmp     ecx, 5                                                         ; +0x87, 0x140416df7\nja      short def_140416E09; jumptable 0000000140416E09 default case   ; +0x8a, 0x140416dfa\nmovsxd  rax, ecx                                                       ; +0x8c, 0x140416dfc\nmov     ecx, ss:(jpt_140416E09 - 140000000h)[rbp+rax*4]                ; +0x8f, 0x140416dff\nadd     rcx, rbp                                                       ; +0x96, 0x140416e06\njmp     rcx; switch jump                                               ; +0x99, 0x140416e09\nmov     rcx, [rbx+298h]; jumptable 0000000140416E09 cases 1-6          ; +0x9b, 0x140416e0b\ninc     edi                                                            ; +0xa2, 0x140416e12\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa4, 0x140416e14\ncmp     edi, eax                                                       ; +0xaa, 0x140416e1a\njb      short loc_140416DE0                                            ; +0xac, 0x140416e1c\njmp     short loc_140416E23                                            ; +0xae, 0x140416e1e\nxor     sil, sil; jumptable 0000000140416E09 default case              ; +0xb0, 0x140416e20\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xb3, 0x140416e23\nmov     rcx, [rbx+3D0h]                                                ; +0xb8, 0x140416e28\nmovzx   edx, sil                                                       ; +0xbf, 0x140416e2f\nmov     rax, [rcx]                                                     ; +0xc3, 0x140416e33\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc6, 0x140416e36\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xcb, 0x140416e3b\nadd     rsp, 20h                                                       ; +0xd0, 0x140416e40\npop     rsi                                                            ; +0xd4, 0x140416e44\njmp     qword ptr [rax+140h]                                           ; +0xd5, 0x140416e45\ndd offset loc_140416DA4 - 140000000h; jump table for switch statement  ; +0xdc, 0x140416e4c\ndd offset loc_140416E0B - 140000000h; jump table for switch statement  ; +0xf4, 0x140416e64", "xrefs": ["SetupCameraOffsetTrigger::init @ 0x140415e5d", "SetupCameraOffsetTrigger::onEasing @ 0x140416f33", "SetupMGTrigger::init @ 0x140427c4f", "<???> @ 0x14069fbe4", "<???> @ 0x14069fbf4", "<???> @ 0x1406d8f60"], "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"}