{"type": "func", "start": 13388168, "end": 13388256, "name": "EditorSFXManager::setPlayMode", "pseudocode": "// \n// EditorSFXManager::setPlayMode from 0xcc4988 to 0xcc49e0 (88 bytes)\n// \n// 2 xrefs:\n// > EditorSFXActionConfigLayer::onToggleMode @ 0xcbdf00\n// > <???> @ 0xb1d90\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:06:19 +0000\n// \n\n__int64 __fastcall EditorSFXManager::setPlayMode(EditorSFXManager *this, int a2, unsigned int a3)\n{\n  __int64 result; // x0\n  __int64 v4; // x4\n  __int64 v5; // x3\n\n  result = EditorSFXManager::getOrCreateBinding(this, a2);\n  v4 = *(_QWORD *)(result + 40);\n  v5 = *(_QWORD *)(result + 48);\n  *(_QWORD *)(result + 8) = a3;\n  if ( v4 != v5 )\n    *(_QWORD *)(result + 48) = v5 + 4 * ~((unsigned __int64)(v5 - 4 - v4) >> 2);\n  *(_DWORD *)(result + 64) = 0;\n  *(_QWORD *)(result + 68) = 0xFFFFFFFFLL;\n  return result;\n}", "assembly": "; \n; EditorSFXManager::setPlayMode from 0xcc4988 to 0xcc49e0 (88 bytes)\n; \n; 2 xrefs:\n; > EditorSFXActionConfigLayer::onToggleMode @ 0xcbdf00\n; > <???> @ 0xb1d90\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:06:19 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xcc4988\nMOV             X29, SP                                                ; +0x4, 0xcc498c\nSTR             X2, [X29,#0x20+var_8]                                  ; +0x8, 0xcc4990\nBL              _ZN16EditorSFXManager18getOrCreateBindingEi; EditorSFXManager::getOrCreateBinding(int) ; +0xc, 0xcc4994\nLDR             X4, [X0,#0x28]                                         ; +0x10, 0xcc4998\nLDR             X3, [X0,#0x30]                                         ; +0x14, 0xcc499c\nLDR             X2, [X29,#0x20+var_8]                                  ; +0x18, 0xcc49a0\nSTR             W2, [X0,#8]                                            ; +0x1c, 0xcc49a4\nCMP             X4, X3                                                 ; +0x20, 0xcc49a8\nSTR             WZR, [X0,#0xC]                                         ; +0x24, 0xcc49ac\nB.EQ            loc_CC49C8                                             ; +0x28, 0xcc49b0\nSUB             X1, X3, #4                                             ; +0x2c, 0xcc49b4\nSUB             X1, X1, X4                                             ; +0x30, 0xcc49b8\nMVN             X1, X1,LSR#2                                           ; +0x34, 0xcc49bc\nADD             X1, X3, X1,LSL#2                                       ; +0x38, 0xcc49c0\nSTR             X1, [X0,#0x30]                                         ; +0x3c, 0xcc49c4\nSTR             WZR, [X0,#0x40]                                        ; +0x40, 0xcc49c8\nMOV             W1, #0xFFFFFFFF                                        ; +0x44, 0xcc49cc\nSTR             WZR, [X0,#0x48]                                        ; +0x48, 0xcc49d0\nSTR             W1, [X0,#0x44]                                         ; +0x4c, 0xcc49d4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x50, 0xcc49d8\nRET                                                                    ; +0x54, 0xcc49dc", "xrefs": ["EditorSFXActionConfigLayer::onToggleMode @ 0xcbdf00", "<???> @ 0xb1d90"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}