{"type": "func", "start": 5369451792, "end": 5369451889, "name": "OptionsCell::onToggleOption", "pseudocode": "// \n// OptionsCell::onToggleOption from 0x1400b5510 to 0x1400b5571 (97 bytes)\n// \n// 2 xrefs:\n// > OptionsCell::loadFromObject @ 0x1400b5465\n// > <???> @ 0x1406c7bb4\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 OptionsCell::onToggleOption(OptionsCell *a1, cocos2d::CCObject *a2)\n{\n  OptionsObject *m_optionsObject; // rdx\n  OptionsObjectDelegate *m_delegate; // rcx\n  TableViewCellDelegate *m_cellDelegate; // rcx\n\n  m_optionsObject = a1->m_optionsObject;\n  if ( m_optionsObject )\n  {\n    m_delegate = m_optionsObject->m_delegate;\n    m_optionsObject->m_enabled = !m_optionsObject->m_enabled;\n    if ( m_delegate )\n      ((void (__fastcall *)(OptionsObjectDelegate *))m_delegate->stateChanged)(m_delegate);\n    m_cellDelegate = a1->m_tableView->m_cellDelegate;\n    if ( m_cellDelegate )\n      ((void (__fastcall *)(TableViewCellDelegate *, OptionsCell *, __int64))m_cellDelegate->cellPerformedAction)(\n        m_cellDelegate,\n        a1,\n        26);\n  }\n}", "assembly": "; \n; OptionsCell::onToggleOption from 0x1400b5510 to 0x1400b5571 (97 bytes)\n; \n; 2 xrefs:\n; > OptionsCell::loadFromObject @ 0x1400b5465\n; > <???> @ 0x1406c7bb4\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, 0x1400b5510\nsub     rsp, 30h                                                       ; +0x2, 0x1400b5512\nmov     rdx, [rcx+230h]                                                ; +0x6, 0x1400b5516\nmov     rbx, rcx                                                       ; +0xd, 0x1400b551d\ntest    rdx, rdx                                                       ; +0x10, 0x1400b5520\njz      short loc_1400B556B                                            ; +0x13, 0x1400b5523\ncmp     byte ptr [rdx+3Ch], 0                                          ; +0x15, 0x1400b5525\nmov     rcx, [rdx+60h]                                                 ; +0x19, 0x1400b5529\nsetz    al                                                             ; +0x1d, 0x1400b552d\nmov     [rdx+3Ch], al                                                  ; +0x20, 0x1400b5530\ntest    rcx, rcx                                                       ; +0x23, 0x1400b5533\njz      short loc_1400B553D                                            ; +0x26, 0x1400b5536\nmov     rax, [rcx]                                                     ; +0x28, 0x1400b5538\ncall    qword ptr [rax]                                                ; +0x2b, 0x1400b553b\nmov     rax, [rbx+1A0h]                                                ; +0x2d, 0x1400b553d\nmov     rcx, [rax+260h]                                                ; +0x34, 0x1400b5544\ntest    rcx, rcx                                                       ; +0x3b, 0x1400b554b\njz      short loc_1400B556B                                            ; +0x3e, 0x1400b554e\nmov     rax, [rcx]                                                     ; +0x40, 0x1400b5550\nmov     r9d, 1                                                         ; +0x43, 0x1400b5553\nmov     rdx, rbx                                                       ; +0x49, 0x1400b5559\nmov     [rsp+38h+var_18], 0                                            ; +0x4c, 0x1400b555c\nlea     r8d, [r9+19h]                                                  ; +0x55, 0x1400b5565\ncall    qword ptr [rax]                                                ; +0x59, 0x1400b5569\nadd     rsp, 30h                                                       ; +0x5b, 0x1400b556b\npop     rbx                                                            ; +0x5f, 0x1400b556f\nretn                                                                   ; +0x60, 0x1400b5570", "xrefs": ["OptionsCell::loadFromObject @ 0x1400b5465", "<???> @ 0x1406c7bb4"], "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"}