{"type": "func", "start": 5373262448, "end": 5373262563, "name": "SetupSmartBlockLayer::onAllowRotation", "pseudocode": "// \n// SetupSmartBlockLayer::onAllowRotation from 0x140457a70 to 0x140457ae3 (115 bytes)\n// \n// 2 xrefs:\n// > SetupSmartBlockLayer::init @ 0x1404574f8\n// > <???> @ 0x1406da9dc\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\n// Hidden C++ exception states: #wind=1\nvoid SetupSmartBlockLayer::onAllowRotation(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rcx\n  __int64 v4; // rcx\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  a1->m_allowRotation = !a1->m_allowRotation;\n  v3 = qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v5 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v3 = qword_1406C2EC0;\n  }\n  v4 = *(_QWORD *)(v3 + 960);\n  if ( v4 )\n    *(_BYTE *)(v4 + 130) = a1->m_allowRotation;\n}", "assembly": "; \n; SetupSmartBlockLayer::onAllowRotation from 0x140457a70 to 0x140457ae3 (115 bytes)\n; \n; 2 xrefs:\n; > SetupSmartBlockLayer::init @ 0x1404574f8\n; > <???> @ 0x1406da9dc\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, 0x140457a70\nsub     rsp, 20h                                                       ; +0x2, 0x140457a72\nmov     rbx, rcx                                                       ; +0x6, 0x140457a76\ncmp     byte ptr [rcx+289h], 0                                         ; +0x9, 0x140457a79\nsetz    al                                                             ; +0x10, 0x140457a80\nmov     [rcx+289h], al                                                 ; +0x13, 0x140457a83\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x19, 0x140457a89\ntest    rcx, rcx                                                       ; +0x20, 0x140457a90\njnz     short loc_140457AC4                                            ; +0x23, 0x140457a93\nmov     ecx, 3D0h; Size                                                ; +0x25, 0x140457a95\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x140457a9a\nmov     [rsp+28h+arg_0], rax                                           ; +0x2f, 0x140457a9f\nmov     rcx, rax                                                       ; +0x34, 0x140457aa4\ncall    sub_140141280                                                  ; +0x37, 0x140457aa7\nnop                                                                    ; +0x3c, 0x140457aac\nmov     cs:qword_1406C2EC0, rax                                        ; +0x3d, 0x140457aad\nmov     rdx, [rax]                                                     ; +0x44, 0x140457ab4\nmov     rcx, rax                                                       ; +0x47, 0x140457ab7\ncall    qword ptr [rdx+48h]                                            ; +0x4a, 0x140457aba\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x4d, 0x140457abd\nmov     rcx, [rcx+3C0h]                                                ; +0x54, 0x140457ac4\ntest    rcx, rcx                                                       ; +0x5b, 0x140457acb\njz      short loc_140457ADD                                            ; +0x5e, 0x140457ace\nmovzx   eax, byte ptr [rbx+289h]                                       ; +0x60, 0x140457ad0\nmov     [rcx+82h], al                                                  ; +0x67, 0x140457ad7\nadd     rsp, 20h                                                       ; +0x6d, 0x140457add\npop     rbx                                                            ; +0x71, 0x140457ae1\nretn                                                                   ; +0x72, 0x140457ae2", "xrefs": ["SetupSmartBlockLayer::init @ 0x1404574f8", "<???> @ 0x1406da9dc"], "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"}