{"type": "func", "start": 5372881392, "end": 5372881529, "name": "SetGroupIDLayer::onToggleGuide", "pseudocode": "// \n// SetGroupIDLayer::onToggleGuide from 0x1403fa9f0 to 0x1403faa79 (137 bytes)\n// \n// 2 xrefs:\n// > SetGroupIDLayer::init @ 0x1403fa5d5\n// > <???> @ 0x1406d8390\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 SetGroupIDLayer::onToggleGuide(SetGroupIDLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  EffectGameObject *m_targetObject; // rdx\n  __int64 v5; // rbx\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  v3 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = qword_1406C2ED8;\n  }\n  m_targetObject = (EffectGameObject *)a1->m_targetObject;\n  v5 = *(_QWORD *)(*(_QWORD *)(v3 + 528) + 14496LL);\n  m_targetObject->m_shouldPreview = !m_targetObject->m_shouldPreview;\n  if ( LevelEditorLayer::tryUpdateSpeedObject(*(LevelEditorLayer **)(v5 + 1280), m_targetObject, 0) )\n    *(_BYTE *)(v5 + 805) = 1;\n}", "assembly": "; \n; SetGroupIDLayer::onToggleGuide from 0x1403fa9f0 to 0x1403faa79 (137 bytes)\n; \n; 2 xrefs:\n; > SetGroupIDLayer::init @ 0x1403fa5d5\n; > <???> @ 0x1406d8390\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, 0x1403fa9f0\nsub     rsp, 20h                                                       ; +0x2, 0x1403fa9f2\nmov     rbx, rcx                                                       ; +0x6, 0x1403fa9f6\nmov     rax, cs:qword_1406C2ED8                                        ; +0x9, 0x1403fa9f9\ntest    rax, rax                                                       ; +0x10, 0x1403faa00\njnz     short loc_1403FAA34                                            ; +0x13, 0x1403faa03\nmov     ecx, 668h; Size                                                ; +0x15, 0x1403faa05\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1403faa0a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x1403faa0f\nmov     rcx, rax                                                       ; +0x24, 0x1403faa14\ncall    sub_14017AB00                                                  ; +0x27, 0x1403faa17\nnop                                                                    ; +0x2c, 0x1403faa1c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x1403faa1d\nmov     rdx, [rax]                                                     ; +0x34, 0x1403faa24\nmov     rcx, rax                                                       ; +0x37, 0x1403faa27\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x1403faa2a\nmov     rax, cs:qword_1406C2ED8                                        ; +0x3d, 0x1403faa2d\nmov     rdx, [rbx+288h]                                                ; +0x44, 0x1403faa34\nmov     rax, [rax+210h]                                                ; +0x4b, 0x1403faa3b\nmov     rbx, [rax+38A0h]                                               ; +0x52, 0x1403faa42\ncmp     byte ptr [rdx+6F8h], 0                                         ; +0x59, 0x1403faa49\nsetz    al                                                             ; +0x60, 0x1403faa50\nmov     [rdx+6F8h], al                                                 ; +0x63, 0x1403faa53\nxor     r8d, r8d                                                       ; +0x69, 0x1403faa59\nmov     rcx, [rbx+500h]                                                ; +0x6c, 0x1403faa5c\ncall    LevelEditorLayer__tryUpdateSpeedObject                         ; +0x73, 0x1403faa63\ntest    al, al                                                         ; +0x78, 0x1403faa68\njz      short loc_1403FAA73                                            ; +0x7a, 0x1403faa6a\nmov     byte ptr [rbx+325h], 1                                         ; +0x7c, 0x1403faa6c\nadd     rsp, 20h                                                       ; +0x83, 0x1403faa73\npop     rbx                                                            ; +0x87, 0x1403faa77\nretn                                                                   ; +0x88, 0x1403faa78", "xrefs": ["SetGroupIDLayer::init @ 0x1403fa5d5", "<???> @ 0x1406d8390"], "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"}