{"type": "func", "start": 5372541184, "end": 5372541323, "name": "PlayLayer::toggleDebugDraw", "pseudocode": "// \n// PlayLayer::toggleDebugDraw from 0x1403a7900 to 0x1403a798b (139 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::updateDebugDrawSettings @ 0x1403a78f8\n// > PlayLayer::destroyPlayer @ 0x1403b3c9e\n// > PlayLayer::resetLevel @ 0x1403b9085\n// > PlayLayer::togglePracticeMode @ 0x1403b9e8e\n// > <???> @ 0x1406d6b6c\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 PlayLayer::toggleDebugDraw(PlayLayer *a1)\n{\n  bool v2; // di\n\n  v2 = a1->m_isDebugDrawEnabled && a1->m_isPracticeMode || a1->m_hitboxesOnDeath && a1->m_playerDied;\n  if ( v2 != a1->m_debugDrawNode->isVisible(a1->m_debugDrawNode) )\n  {\n    cocos2d::CCDrawNode::clear(a1->m_debugDrawNode);\n    a1->m_debugDrawNode->setVisible(a1->m_debugDrawNode, v2);\n    if ( v2 )\n      a1->updateDebugDraw(a1);\n  }\n}", "assembly": "; \n; PlayLayer::toggleDebugDraw from 0x1403a7900 to 0x1403a798b (139 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::updateDebugDrawSettings @ 0x1403a78f8\n; > PlayLayer::destroyPlayer @ 0x1403b3c9e\n; > PlayLayer::resetLevel @ 0x1403b9085\n; > PlayLayer::togglePracticeMode @ 0x1403b9e8e\n; > <???> @ 0x1406d6b6c\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_0], rbx                                               ; +0x0, 0x1403a7900\npush    rdi                                                            ; +0x5, 0x1403a7905\nsub     rsp, 20h                                                       ; +0x6, 0x1403a7906\ncmp     byte ptr [rcx+3780h], 0                                        ; +0xa, 0x1403a790a\nmov     rbx, rcx                                                       ; +0x11, 0x1403a7911\njz      short loc_1403A791F                                            ; +0x14, 0x1403a7914\ncmp     byte ptr [rcx+31F0h], 0                                        ; +0x16, 0x1403a7916\njnz     short loc_1403A7931                                            ; +0x1d, 0x1403a791d\ncmp     byte ptr [rcx+3782h], 0                                        ; +0x1f, 0x1403a791f\njz      short loc_1403A7936                                            ; +0x26, 0x1403a7926\ncmp     byte ptr [rcx+324Ah], 0                                        ; +0x28, 0x1403a7928\njz      short loc_1403A7936                                            ; +0x2f, 0x1403a792f\nmov     dil, 1                                                         ; +0x31, 0x1403a7931\njmp     short loc_1403A7939                                            ; +0x34, 0x1403a7934\nxor     dil, dil                                                       ; +0x36, 0x1403a7936\nmov     rcx, [rcx+3770h]                                               ; +0x39, 0x1403a7939\nmov     rax, [rcx]                                                     ; +0x40, 0x1403a7940\ncall    qword ptr [rax+148h]                                           ; +0x43, 0x1403a7943\ncmp     dil, al                                                        ; +0x49, 0x1403a7949\njz      short loc_1403A7980                                            ; +0x4c, 0x1403a794c\nmov     rcx, [rbx+3770h]                                               ; +0x4e, 0x1403a794e\ncall    cs:?clear@CCDrawNode@cocos2d@@QEAAXXZ; cocos2d::CCDrawNode::clear(void) ; +0x55, 0x1403a7955\nmov     rcx, [rbx+3770h]                                               ; +0x5b, 0x1403a795b\nmovzx   edx, dil                                                       ; +0x62, 0x1403a7962\nmov     rax, [rcx]                                                     ; +0x66, 0x1403a7966\ncall    qword ptr [rax+140h]                                           ; +0x69, 0x1403a7969\ntest    dil, dil                                                       ; +0x6f, 0x1403a796f\njz      short loc_1403A7980                                            ; +0x72, 0x1403a7972\nmov     rax, [rbx]                                                     ; +0x74, 0x1403a7974\nmov     rcx, rbx                                                       ; +0x77, 0x1403a7977\ncall    qword ptr [rax+470h]                                           ; +0x7a, 0x1403a797a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x80, 0x1403a7980\nadd     rsp, 20h                                                       ; +0x85, 0x1403a7985\npop     rdi                                                            ; +0x89, 0x1403a7989\nretn                                                                   ; +0x8a, 0x1403a798a", "xrefs": ["PlayLayer::updateDebugDrawSettings @ 0x1403a78f8", "PlayLayer::destroyPlayer @ 0x1403b3c9e", "PlayLayer::resetLevel @ 0x1403b9085", "PlayLayer::togglePracticeMode @ 0x1403b9e8e", "<???> @ 0x1406d6b6c"], "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"}