{"type": "func", "start": 5373262576, "end": 5373262772, "name": "SetupSmartBlockLayer::onAllowFlipping", "pseudocode": "// \n// SetupSmartBlockLayer::onAllowFlipping from 0x140457af0 to 0x140457bb4 (196 bytes)\n// \n// 3 xrefs:\n// > SetupSmartBlockLayer::init @ 0x1404575d0\n// > SetupSmartBlockLayer::init @ 0x1404576b7\n// > <???> @ 0x1406da9e8\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::onAllowFlipping(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v4; // rbx\n  __int64 v5; // rbx\n  bool v6; // al\n  bool v7; // al\n  void *v8; // [rsp+38h] [rbp+10h]\n\n  if ( a2 )\n  {\n    v4 = qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v8 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v4 = qword_1406C2EC0;\n    }\n    v5 = *(_QWORD *)(v4 + 960);\n    if ( a2->getTag(a2) == 3 )\n    {\n      v6 = !a1->m_allowFlipX;\n      a1->m_allowFlipX = v6;\n      if ( v5 )\n        *(_BYTE *)(v5 + 128) = v6;\n    }\n    else\n    {\n      v7 = !a1->m_allowFlipY;\n      a1->m_allowFlipY = v7;\n      if ( v5 )\n        *(_BYTE *)(v5 + 129) = v7;\n    }\n  }\n}", "assembly": "; \n; SetupSmartBlockLayer::onAllowFlipping from 0x140457af0 to 0x140457bb4 (196 bytes)\n; \n; 3 xrefs:\n; > SetupSmartBlockLayer::init @ 0x1404575d0\n; > SetupSmartBlockLayer::init @ 0x1404576b7\n; > <???> @ 0x1406da9e8\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\ntest    rdx, rdx                                                       ; +0x0, 0x140457af0\njz      locret_140457BB3                                               ; +0x3, 0x140457af3\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x140457af9\nmov     [rsp+arg_10], rsi                                              ; +0xe, 0x140457afe\npush    rdi                                                            ; +0x13, 0x140457b03\nsub     rsp, 20h                                                       ; +0x14, 0x140457b04\nmov     rsi, rdx                                                       ; +0x18, 0x140457b08\nmov     rdi, rcx                                                       ; +0x1b, 0x140457b0b\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x1e, 0x140457b0e\ntest    rbx, rbx                                                       ; +0x25, 0x140457b15\njnz     short loc_140457B49                                            ; +0x28, 0x140457b18\nmov     ecx, 3D0h; Size                                                ; +0x2a, 0x140457b1a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2f, 0x140457b1f\nmov     [rsp+28h+arg_8], rax                                           ; +0x34, 0x140457b24\nmov     rcx, rax                                                       ; +0x39, 0x140457b29\ncall    sub_140141280                                                  ; +0x3c, 0x140457b2c\nnop                                                                    ; +0x41, 0x140457b31\nmov     cs:qword_1406C2EC0, rax                                        ; +0x42, 0x140457b32\nmov     rdx, [rax]                                                     ; +0x49, 0x140457b39\nmov     rcx, rax                                                       ; +0x4c, 0x140457b3c\ncall    qword ptr [rdx+48h]                                            ; +0x4f, 0x140457b3f\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x52, 0x140457b42\nmov     rbx, [rbx+3C0h]                                                ; +0x59, 0x140457b49\nmov     rax, [rsi]                                                     ; +0x60, 0x140457b50\nmov     rcx, rsi                                                       ; +0x63, 0x140457b53\ncall    qword ptr [rax+38h]                                            ; +0x66, 0x140457b56\ncmp     eax, 3                                                         ; +0x69, 0x140457b59\njnz     short loc_140457B89                                            ; +0x6c, 0x140457b5c\ncmp     byte ptr [rdi+28Ah], 0                                         ; +0x6e, 0x140457b5e\nsetz    al                                                             ; +0x75, 0x140457b65\nmov     [rdi+28Ah], al                                                 ; +0x78, 0x140457b68\ntest    rbx, rbx                                                       ; +0x7e, 0x140457b6e\njz      short loc_140457BA4                                            ; +0x81, 0x140457b71\nmov     [rbx+80h], al                                                  ; +0x83, 0x140457b73\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x89, 0x140457b79\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x8e, 0x140457b7e\nadd     rsp, 20h                                                       ; +0x93, 0x140457b83\npop     rdi                                                            ; +0x97, 0x140457b87\nretn                                                                   ; +0x98, 0x140457b88\ncmp     byte ptr [rdi+28Bh], 0                                         ; +0x99, 0x140457b89\nsetz    al                                                             ; +0xa0, 0x140457b90\nmov     [rdi+28Bh], al                                                 ; +0xa3, 0x140457b93\ntest    rbx, rbx                                                       ; +0xa9, 0x140457b99\njz      short loc_140457BA4                                            ; +0xac, 0x140457b9c\nmov     [rbx+81h], al                                                  ; +0xae, 0x140457b9e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb4, 0x140457ba4\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb9, 0x140457ba9\nadd     rsp, 20h                                                       ; +0xbe, 0x140457bae\npop     rdi                                                            ; +0xc2, 0x140457bb2\nretn                                                                   ; +0xc3, 0x140457bb3", "xrefs": ["SetupSmartBlockLayer::init @ 0x1404575d0", "SetupSmartBlockLayer::init @ 0x1404576b7", "<???> @ 0x1406da9e8"], "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"}