{"type": "func", "start": 5372615712, "end": 5372616028, "name": "GJSmartTemplate::applyTransformationsForType", "pseudocode": "// \n// GJSmartTemplate::applyTransformationsForType from 0x1403b9c20 to 0x1403b9d5c (316 bytes)\n// \n// 4 xrefs:\n// > EditorUI::createPrefab @ 0x1401b7623\n// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1403bc4f2\n// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1403bc8d6\n// > <???> @ 0x140923d8c\n// \n// This function is hookable on this platform (idp: pc, 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 11:31:26 +0000\n// \n\nvoid __fastcall GJSmartTemplate::applyTransformationsForType(int a1, cocos2d::CCSprite *a2)\n{\n  switch ( a1 )\n  {\n    case '3':\n    case '4':\n    case '5':\n    case 'C':\n    case 'D':\n    case 'G':\n    case 'H':\n    case 'I':\n    case 'J':\n      goto LABEL_2;\n    case '8':\n    case '9':\n      cocos2d::CCSprite::setFlipX(a2, 1);\n      return;\n    case 'A':\n    case 'B':\n      cocos2d::CCSprite::setFlipY(a2, 1);\n      return;\n    case 'E':\n    case 'F':\n      cocos2d::CCSprite::setFlipX(a2, 1);\n      goto LABEL_2;\n    case 'K':\n    case 'L':\n      cocos2d::CCSprite::setFlipY(a2, 1);\nLABEL_2:\n      (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)a2 + 352LL))(a2);\n      break;\n    default:\n      return;\n  }\n}", "assembly": "; \n; GJSmartTemplate::applyTransformationsForType from 0x1403b9c20 to 0x1403b9d5c (316 bytes)\n; \n; 4 xrefs:\n; > EditorUI::createPrefab @ 0x1401b7623\n; > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1403bc4f2\n; > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1403bc8d6\n; > <???> @ 0x140923d8c\n; \n; This function is hookable on this platform (idp: pc, 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 11:31:26 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403b9c20\nsub     rsp, 20h                                                       ; +0x2, 0x1403b9c22\nadd     ecx, 0FFFFFFCDh; switch 26 cases                               ; +0x6, 0x1403b9c26\nmov     rbx, rdx                                                       ; +0x9, 0x1403b9c29\ncmp     ecx, 19h                                                       ; +0xc, 0x1403b9c2c\nja      def_1403B9C49; jumptable 00000001403B9C49 default case, cases 54,55,58-64 ; +0xf, 0x1403b9c2f\nmovsxd  rax, ecx                                                       ; +0x15, 0x1403b9c35\nlea     rdx, cs:140000000h                                             ; +0x18, 0x1403b9c38\nmov     ecx, ds:(jpt_1403B9C49 - 140000000h)[rdx+rax*4]                ; +0x1f, 0x1403b9c3f\nadd     rcx, rdx                                                       ; +0x26, 0x1403b9c46\njmp     rcx; switch jump                                               ; +0x29, 0x1403b9c49\nmov     rax, [rbx]; jumptable 00000001403B9C49 cases 51,71,72          ; +0x2b, 0x1403b9c4b\nmov     rcx, rbx                                                       ; +0x2e, 0x1403b9c4e\nmovss   xmm1, cs:flt_140835780                                         ; +0x31, 0x1403b9c51\nadd     rsp, 20h                                                       ; +0x39, 0x1403b9c59\npop     rbx                                                            ; +0x3d, 0x1403b9c5d\njmp     qword ptr [rax+160h]                                           ; +0x3e, 0x1403b9c5e\nmov     rax, [rbx]; jumptable 00000001403B9C49 cases 53,67,68          ; +0x45, 0x1403b9c65\nmov     rcx, rbx                                                       ; +0x48, 0x1403b9c68\nmovss   xmm1, cs:dword_1408358B8                                       ; +0x4b, 0x1403b9c6b\nadd     rsp, 20h                                                       ; +0x53, 0x1403b9c73\npop     rbx                                                            ; +0x57, 0x1403b9c77\njmp     qword ptr [rax+160h]                                           ; +0x58, 0x1403b9c78\nmov     rax, [rbx]; jumptable 00000001403B9C49 case 52                 ; +0x5f, 0x1403b9c7f\nmov     rcx, rbx                                                       ; +0x62, 0x1403b9c82\nmovss   xmm1, cs:dword_14083597C                                       ; +0x65, 0x1403b9c85\nadd     rsp, 20h                                                       ; +0x6d, 0x1403b9c8d\npop     rbx                                                            ; +0x71, 0x1403b9c91\njmp     qword ptr [rax+160h]                                           ; +0x72, 0x1403b9c92\nmov     dl, 1; jumptable 00000001403B9C49 cases 56,57                  ; +0x79, 0x1403b9c99\nmov     rcx, rbx                                                       ; +0x7b, 0x1403b9c9b\nadd     rsp, 20h                                                       ; +0x7e, 0x1403b9c9e\npop     rbx                                                            ; +0x82, 0x1403b9ca2\njmp     cs:?setFlipX@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipX(bool) ; +0x83, 0x1403b9ca3\nmov     dl, 1; jumptable 00000001403B9C49 cases 65,66                  ; +0x8a, 0x1403b9caa\nmov     rcx, rbx                                                       ; +0x8c, 0x1403b9cac\nadd     rsp, 20h                                                       ; +0x8f, 0x1403b9caf\npop     rbx                                                            ; +0x93, 0x1403b9cb3\njmp     cs:?setFlipY@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipY(bool) ; +0x94, 0x1403b9cb4\nmov     dl, 1; jumptable 00000001403B9C49 cases 69,70                  ; +0x9b, 0x1403b9cbb\nmov     rcx, rbx                                                       ; +0x9d, 0x1403b9cbd\ncall    cs:?setFlipX@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipX(bool) ; +0xa0, 0x1403b9cc0\njmp     short loc_1403B9CD3; jumptable 00000001403B9C49 cases 73,74    ; +0xa6, 0x1403b9cc6\nmov     dl, 1; jumptable 00000001403B9C49 cases 75,76                  ; +0xa8, 0x1403b9cc8\nmov     rcx, rbx                                                       ; +0xaa, 0x1403b9cca\ncall    cs:?setFlipY@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipY(bool) ; +0xad, 0x1403b9ccd\nmov     rax, [rbx]; jumptable 00000001403B9C49 cases 73,74             ; +0xb3, 0x1403b9cd3\nmov     rcx, rbx                                                       ; +0xb6, 0x1403b9cd6\nmovss   xmm1, cs:dword_140835F78                                       ; +0xb9, 0x1403b9cd9\nadd     rsp, 20h                                                       ; +0xc1, 0x1403b9ce1\npop     rbx                                                            ; +0xc5, 0x1403b9ce5\njmp     qword ptr [rax+160h]                                           ; +0xc6, 0x1403b9ce6\nadd     rsp, 20h; jumptable 00000001403B9C49 default case, cases 54,55,58-64 ; +0xcd, 0x1403b9ced\npop     rbx                                                            ; +0xd1, 0x1403b9cf1\nretn                                                                   ; +0xd2, 0x1403b9cf2\nalign 4                                                                ; +0xd3, 0x1403b9cf3\ndd offset loc_1403B9C4B - 140000000h; jump table for switch statement  ; +0xd4, 0x1403b9cf4", "xrefs": ["EditorUI::createPrefab @ 0x1401b7623", "GJSmartBlockPreview::addTemplateGuide_1 @ 0x1403bc4f2", "GJSmartBlockPreview::addTemplateGuide_1 @ 0x1403bc8d6", "<???> @ 0x140923d8c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}