{"type": "func", "start": 5371541312, "end": 5371541628, "name": "GJSmartTemplate::applyTransformationsForType", "pseudocode": "// \n// GJSmartTemplate::applyTransformationsForType from 0x1402b3740 to 0x1402b387c (316 bytes)\n// \n// 4 xrefs:\n// > EditorUI::createPrefab @ 0x140117c83\n// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1402b5fc2\n// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1402b63d3\n// > <???> @ 0x1406d23cc\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 GJSmartTemplate::applyTransformationsForType(SmartBlockType a1, cocos2d::CCSprite *a2)\n{\n  switch ( a1 )\n  {\n    case NormalSlope2:\n    case NormalSlope3:\n    case NormalSlope4:\n    case WideSlope7:\n    case WideSlope8:\n    case WideSlope11:\n    case WideSlope12:\n    case WideSlope13:\n    case WideSlope14:\n      goto LABEL_6;\n    case WideSlope3:\n    case WideSlope4:\n      cocos2d::CCSprite::setFlipX(a2, 1);\n      return;\n    case WideSlope5:\n    case WideSlope6:\n      cocos2d::CCSprite::setFlipY(a2, 1);\n      return;\n    case WideSlope9:\n    case WideSlope10:\n      cocos2d::CCSprite::setFlipX(a2, 1);\n      goto LABEL_6;\n    case WideSlope15:\n    case WideSlope16:\n      cocos2d::CCSprite::setFlipY(a2, 1);\nLABEL_6:\n      ((void (__fastcall *)(cocos2d::CCSprite *))a2->setRotation)(a2);\n      break;\n    default:\n      return;\n  }\n}", "assembly": "; \n; GJSmartTemplate::applyTransformationsForType from 0x1402b3740 to 0x1402b387c (316 bytes)\n; \n; 4 xrefs:\n; > EditorUI::createPrefab @ 0x140117c83\n; > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1402b5fc2\n; > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1402b63d3\n; > <???> @ 0x1406d23cc\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, 0x1402b3740\nsub     rsp, 20h                                                       ; +0x2, 0x1402b3742\nadd     ecx, 0FFFFFFCDh; switch 26 cases                               ; +0x6, 0x1402b3746\nmov     rbx, rdx                                                       ; +0x9, 0x1402b3749\ncmp     ecx, 19h                                                       ; +0xc, 0x1402b374c\nja      def_1402B3769; jumptable 00000001402B3769 default case, cases 54,55,58-64 ; +0xf, 0x1402b374f\nmovsxd  rax, ecx                                                       ; +0x15, 0x1402b3755\nlea     rdx, cs:140000000h                                             ; +0x18, 0x1402b3758\nmov     ecx, ds:(jpt_1402B3769 - 140000000h)[rdx+rax*4]                ; +0x1f, 0x1402b375f\nadd     rcx, rdx                                                       ; +0x26, 0x1402b3766\njmp     rcx; switch jump                                               ; +0x29, 0x1402b3769\nmov     rax, [rbx]; jumptable 00000001402B3769 cases 51,71,72          ; +0x2b, 0x1402b376b\nmov     rcx, rbx                                                       ; +0x2e, 0x1402b376e\nmovss   xmm1, cs:dword_140623294                                       ; +0x31, 0x1402b3771\nadd     rsp, 20h                                                       ; +0x39, 0x1402b3779\npop     rbx                                                            ; +0x3d, 0x1402b377d\njmp     qword ptr [rax+150h]                                           ; +0x3e, 0x1402b377e\nmov     rax, [rbx]; jumptable 00000001402B3769 cases 53,67,68          ; +0x45, 0x1402b3785\nmov     rcx, rbx                                                       ; +0x48, 0x1402b3788\nmovss   xmm1, cs:dword_1406233A4                                       ; +0x4b, 0x1402b378b\nadd     rsp, 20h                                                       ; +0x53, 0x1402b3793\npop     rbx                                                            ; +0x57, 0x1402b3797\njmp     qword ptr [rax+150h]                                           ; +0x58, 0x1402b3798\nmov     rax, [rbx]; jumptable 00000001402B3769 case 52                 ; +0x5f, 0x1402b379f\nmov     rcx, rbx                                                       ; +0x62, 0x1402b37a2\nmovss   xmm1, cs:dword_140623424                                       ; +0x65, 0x1402b37a5\nadd     rsp, 20h                                                       ; +0x6d, 0x1402b37ad\npop     rbx                                                            ; +0x71, 0x1402b37b1\njmp     qword ptr [rax+150h]                                           ; +0x72, 0x1402b37b2\nmov     dl, 1; jumptable 00000001402B3769 cases 56,57                  ; +0x79, 0x1402b37b9\nmov     rcx, rbx                                                       ; +0x7b, 0x1402b37bb\nadd     rsp, 20h                                                       ; +0x7e, 0x1402b37be\npop     rbx                                                            ; +0x82, 0x1402b37c2\njmp     cs:?setFlipX@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipX(bool) ; +0x83, 0x1402b37c3\nmov     dl, 1; jumptable 00000001402B3769 cases 65,66                  ; +0x8a, 0x1402b37ca\nmov     rcx, rbx                                                       ; +0x8c, 0x1402b37cc\nadd     rsp, 20h                                                       ; +0x8f, 0x1402b37cf\npop     rbx                                                            ; +0x93, 0x1402b37d3\njmp     cs:?setFlipY@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipY(bool) ; +0x94, 0x1402b37d4\nmov     dl, 1; jumptable 00000001402B3769 cases 69,70                  ; +0x9b, 0x1402b37db\nmov     rcx, rbx                                                       ; +0x9d, 0x1402b37dd\ncall    cs:?setFlipX@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipX(bool) ; +0xa0, 0x1402b37e0\njmp     short loc_1402B37F3; jumptable 00000001402B3769 cases 73,74    ; +0xa6, 0x1402b37e6\nmov     dl, 1; jumptable 00000001402B3769 cases 75,76                  ; +0xa8, 0x1402b37e8\nmov     rcx, rbx                                                       ; +0xaa, 0x1402b37ea\ncall    cs:?setFlipY@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipY(bool) ; +0xad, 0x1402b37ed\nmov     rax, [rbx]; jumptable 00000001402B3769 cases 73,74             ; +0xb3, 0x1402b37f3\nmov     rcx, rbx                                                       ; +0xb6, 0x1402b37f6\nmovss   xmm1, cs:dword_1406239C0                                       ; +0xb9, 0x1402b37f9\nadd     rsp, 20h                                                       ; +0xc1, 0x1402b3801\npop     rbx                                                            ; +0xc5, 0x1402b3805\njmp     qword ptr [rax+150h]                                           ; +0xc6, 0x1402b3806\nadd     rsp, 20h; jumptable 00000001402B3769 default case, cases 54,55,58-64 ; +0xcd, 0x1402b380d\npop     rbx                                                            ; +0xd1, 0x1402b3811\nretn                                                                   ; +0xd2, 0x1402b3812\nalign 4                                                                ; +0xd3, 0x1402b3813\ndd offset loc_1402B376B - 140000000h; jump table for switch statement  ; +0xd4, 0x1402b3814", "xrefs": ["EditorUI::createPrefab @ 0x140117c83", "GJSmartBlockPreview::addTemplateGuide_1 @ 0x1402b5fc2", "GJSmartBlockPreview::addTemplateGuide_1 @ 0x1402b63d3", "<???> @ 0x1406d23cc"], "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"}