{"type": "func", "start": 5373389760, "end": 5373389976, "name": "SetupTriggerPopup::toggleDisableButtons", "pseudocode": "// \n// SetupTriggerPopup::toggleDisableButtons from 0x140476bc0 to 0x140476c98 (216 bytes)\n// \n// 8 xrefs:\n// > SetupShaderEffectPopup::setupShockWave @ 0x14044c4fe\n// > SetupShaderEffectPopup::setupShockLine @ 0x14044d6fc\n// > SetupShaderEffectPopup::valueDidChange @ 0x140454619\n// > SetupShaderEffectPopup::toggleGroup @ 0x140454afb\n// > SetupShaderEffectPopup::toggleGroup @ 0x140454b0b\n// > <???> @ 0x1406a5964\n// > <???> @ 0x1406a5974\n// > <???> @ 0x1406db6cc\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::toggleDisableButtons(SetupTriggerPopup *a1, bool a2)\n{\n  cocos2d::CCDictionary *m_disableButtons; // rbx\n  cocos2d::CCDictElement *m_pElements; // rbx\n  cocos2d::CCDictElement *i; // rsi\n  cocos2d::CCObject *m_pObject; // rbx\n  bool v8; // di\n  int v9; // eax\n  struct cocos2d::CCObject *v10; // rax\n\n  m_disableButtons = a1->m_disableButtons;\n  if ( m_disableButtons )\n  {\n    m_pElements = m_disableButtons->m_pElements;\n    if ( m_pElements )\n    {\n      for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )\n      {\n        m_pObject = m_pElements->m_pObject;\n        v8 = a2;\n        if ( a2 )\n        {\n          v9 = m_pObject->getTag(m_pObject);\n          v10 = cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, v9);\n          if ( v10 )\n          {\n            if ( !((unsigned __int8 (__fastcall *)(struct cocos2d::CCObject *))v10->__vftable[4].encodeWithCoder)(v10) )\n              v8 = 0;\n          }\n        }\n        ((void (__fastcall *)(cocos2d::CCObject *, bool))m_pObject->__vftable[4].update)(m_pObject, v8);\n        ((void (__fastcall *)(cocos2d::CCObject *, bool))m_pObject->__vftable[12].getTag)(m_pObject, v8);\n        m_pElements = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n}", "assembly": "; \n; SetupTriggerPopup::toggleDisableButtons from 0x140476bc0 to 0x140476c98 (216 bytes)\n; \n; 8 xrefs:\n; > SetupShaderEffectPopup::setupShockWave @ 0x14044c4fe\n; > SetupShaderEffectPopup::setupShockLine @ 0x14044d6fc\n; > SetupShaderEffectPopup::valueDidChange @ 0x140454619\n; > SetupShaderEffectPopup::toggleGroup @ 0x140454afb\n; > SetupShaderEffectPopup::toggleGroup @ 0x140454b0b\n; > <???> @ 0x1406a5964\n; > <???> @ 0x1406a5974\n; > <???> @ 0x1406db6cc\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, 0x140476bc0\npush    rbp                                                            ; +0x2, 0x140476bc2\npush    r14                                                            ; +0x3, 0x140476bc3\nsub     rsp, 20h                                                       ; +0x5, 0x140476bc5\nmov     rbx, [rcx+2F0h]                                                ; +0x9, 0x140476bc9\nmov     r14, rcx                                                       ; +0x10, 0x140476bd0\nmovzx   ebp, dl                                                        ; +0x13, 0x140476bd3\ntest    rbx, rbx                                                       ; +0x16, 0x140476bd6\njz      loc_140476C8F                                                  ; +0x19, 0x140476bd9\nmov     rbx, [rbx+38h]                                                 ; +0x1f, 0x140476bdf\ntest    rbx, rbx                                                       ; +0x23, 0x140476be3\njz      loc_140476C8F                                                  ; +0x26, 0x140476be6\nmov     [rsp+38h+arg_0], rsi                                           ; +0x2c, 0x140476bec\nmov     rsi, [rbx+120h]                                                ; +0x31, 0x140476bf1\nmov     [rsp+38h+arg_8], rdi                                           ; +0x38, 0x140476bf8\nmov     [rsp+38h+arg_10], r15                                          ; +0x3d, 0x140476bfd\nxor     r15d, r15d                                                     ; +0x42, 0x140476c02\nnop     word ptr [rax+rax+00000000h]                                   ; +0x45, 0x140476c05\nmov     rbx, [rbx+108h]                                                ; +0x50, 0x140476c10\nmov     edi, ebp                                                       ; +0x57, 0x140476c17\ntest    bpl, bpl                                                       ; +0x59, 0x140476c19\njz      short loc_140476C4F                                            ; +0x5c, 0x140476c1c\nmov     rax, [rbx]                                                     ; +0x5e, 0x140476c1e\nmov     rcx, rbx                                                       ; +0x61, 0x140476c21\ncall    qword ptr [rax+38h]                                            ; +0x64, 0x140476c24\nmov     rcx, [r14+2D8h]                                                ; +0x67, 0x140476c27\nmovsxd  rdx, eax                                                       ; +0x6e, 0x140476c2e\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x71, 0x140476c31\ntest    rax, rax                                                       ; +0x77, 0x140476c37\njz      short loc_140476C4F                                            ; +0x7a, 0x140476c3a\nmov     r8, [rax]                                                      ; +0x7c, 0x140476c3c\nmov     rcx, rax                                                       ; +0x7f, 0x140476c3f\ncall    qword ptr [r8+148h]                                            ; +0x82, 0x140476c42\ntest    al, al                                                         ; +0x89, 0x140476c49\ncmovz   edi, r15d                                                      ; +0x8b, 0x140476c4b\nmov     rax, [rbx]                                                     ; +0x8f, 0x140476c4f\nmovzx   edx, dil                                                       ; +0x92, 0x140476c52\nmov     rcx, rbx                                                       ; +0x96, 0x140476c56\ncall    qword ptr [rax+140h]                                           ; +0x99, 0x140476c59\nmov     rax, [rbx]                                                     ; +0x9f, 0x140476c5f\nmovzx   edx, dil                                                       ; +0xa2, 0x140476c62\nmov     rcx, rbx                                                       ; +0xa6, 0x140476c66\ncall    qword ptr [rax+398h]                                           ; +0xa9, 0x140476c69\nmov     rbx, rsi                                                       ; +0xaf, 0x140476c6f\ntest    rsi, rsi                                                       ; +0xb2, 0x140476c72\njz      short loc_140476C80                                            ; +0xb5, 0x140476c75\nmov     rsi, [rsi+120h]                                                ; +0xb7, 0x140476c77\njmp     short loc_140476C10                                            ; +0xbe, 0x140476c7e\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xc0, 0x140476c80\nmov     rsi, [rsp+38h+arg_0]                                           ; +0xc5, 0x140476c85\nmov     r15, [rsp+38h+arg_10]                                          ; +0xca, 0x140476c8a\nadd     rsp, 20h                                                       ; +0xcf, 0x140476c8f\npop     r14                                                            ; +0xd3, 0x140476c93\npop     rbp                                                            ; +0xd5, 0x140476c95\npop     rbx                                                            ; +0xd6, 0x140476c96\nretn                                                                   ; +0xd7, 0x140476c97", "xrefs": ["SetupShaderEffectPopup::setupShockWave @ 0x14044c4fe", "SetupShaderEffectPopup::setupShockLine @ 0x14044d6fc", "SetupShaderEffectPopup::valueDidChange @ 0x140454619", "SetupShaderEffectPopup::toggleGroup @ 0x140454afb", "SetupShaderEffectPopup::toggleGroup @ 0x140454b0b", "<???> @ 0x1406a5964", "<???> @ 0x1406a5974", "<???> @ 0x1406db6cc"], "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"}