{"type": "func", "start": 4299240960, "end": 4299241159, "name": "GJSmartTemplate::applyTransformationsForType", "pseudocode": "// \n// GJSmartTemplate::applyTransformationsForType from 0x100413600 to 0x1004136c7 (199 bytes)\n// \n// 4 xrefs:\n// > EditorUI::createPrefab @ 0x1000149f5\n// > EditorUI::createPrefab @ 0x100014a3f\n// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100415a65\n// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100415c07\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 12:30:10 +0000\n// \n\n__int64 __fastcall GJSmartTemplate::applyTransformationsForType(int a1, unsigned __int8 *a2)\n{\n  __int64 result; // rax\n  __int64 (__fastcall *v3)(unsigned __int8 *, double); // rax\n  __int64 v4; // xmm0_8\n\n  switch ( a1 )\n  {\n    case '3':\n    case 'G':\n    case 'H':\n      v3 = *(__int64 (__fastcall **)(unsigned __int8 *, double))(*(_QWORD *)a2 + 360LL);\n      v4 = 1119092736;\n      goto LABEL_9;\n    case '4':\n      v3 = *(__int64 (__fastcall **)(unsigned __int8 *, double))(*(_QWORD *)a2 + 360LL);\n      v4 = 1132920832;\n      goto LABEL_9;\n    case '5':\n    case 'C':\n    case 'D':\n      v3 = *(__int64 (__fastcall **)(unsigned __int8 *, double))(*(_QWORD *)a2 + 360LL);\n      v4 = 1127481344;\n      goto LABEL_9;\n    case '8':\n    case '9':\n      return cocos2d::CCSprite::setFlipX(a2, 1u);\n    case 'A':\n    case 'B':\n      return cocos2d::CCSprite::setFlipY(a2, 1u);\n    case 'E':\n    case 'F':\n      cocos2d::CCSprite::setFlipX(a2, 1u);\n      goto LABEL_8;\n    case 'I':\n    case 'J':\n      goto LABEL_8;\n    case 'K':\n    case 'L':\n      cocos2d::CCSprite::setFlipY(a2, 1u);\nLABEL_8:\n      v3 = *(__int64 (__fastcall **)(unsigned __int8 *, double))(*(_QWORD *)a2 + 360LL);\n      v4 = 3266576384LL;\nLABEL_9:\n      result = v3(a2, *(double *)&v4);\n      break;\n    default:\n      return result;\n  }\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::applyTransformationsForType from 0x100413600 to 0x1004136c7 (199 bytes)\n; \n; 4 xrefs:\n; > EditorUI::createPrefab @ 0x1000149f5\n; > EditorUI::createPrefab @ 0x100014a3f\n; > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100415a65\n; > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100415c07\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 12:30:10 +0000\n; \npush    rbp                                                            ; +0x0, 0x100413600\nmov     rbp, rsp                                                       ; +0x1, 0x100413601\npush    rbx                                                            ; +0x4, 0x100413604\npush    rax                                                            ; +0x5, 0x100413605\nadd     edi, 0FFFFFFCDh; switch 26 cases                               ; +0x6, 0x100413606\ncmp     edi, 19h                                                       ; +0x9, 0x100413609\nja      def_100413623; jumptable 0000000100413623 default case, cases 54,55,58-64 ; +0xc, 0x10041360c\nmov     rbx, rsi                                                       ; +0x12, 0x100413612\nlea     rax, jpt_100413623                                             ; +0x15, 0x100413615\nmovsxd  rcx, (jpt_100413623 - 1004136C8h)[rax+rdi*4]                   ; +0x1c, 0x10041361c\nadd     rcx, rax                                                       ; +0x20, 0x100413620\njmp     rcx; switch jump                                               ; +0x23, 0x100413623\nmov     rax, [rbx]; jumptable 0000000100413623 cases 51,71,72          ; +0x25, 0x100413625\nmov     rax, [rax+168h]                                                ; +0x28, 0x100413628\nmovss   xmm0, cs:flt_100A035A4                                         ; +0x2f, 0x10041362f\njmp     short loc_1004136A1                                            ; +0x37, 0x100413637\nmov     rax, [rbx]; jumptable 0000000100413623 cases 53,67,68          ; +0x39, 0x100413639\nmov     rax, [rax+168h]                                                ; +0x3c, 0x10041363c\nmovss   xmm0, cs:dword_100A03A84                                       ; +0x43, 0x100413643\njmp     short loc_1004136A1                                            ; +0x4b, 0x10041364b\nmov     rdi, rbx; jumptable 0000000100413623 cases 69,70               ; +0x4d, 0x10041364d\nmov     esi, 1                                                         ; +0x50, 0x100413650\ncall    cocos2d__CCSprite__setFlipX                                    ; +0x55, 0x100413655\njmp     short loc_10041368F; jumptable 0000000100413623 cases 73,74    ; +0x5a, 0x10041365a\nmov     rdi, rbx; jumptable 0000000100413623 cases 65,66               ; +0x5c, 0x10041365c\nmov     esi, 1                                                         ; +0x5f, 0x10041365f\nadd     rsp, 8                                                         ; +0x64, 0x100413664\npop     rbx                                                            ; +0x68, 0x100413668\npop     rbp                                                            ; +0x69, 0x100413669\njmp     cocos2d__CCSprite__setFlipY                                    ; +0x6a, 0x10041366a\nmov     rdi, rbx; jumptable 0000000100413623 cases 56,57               ; +0x6f, 0x10041366f\nmov     esi, 1                                                         ; +0x72, 0x100413672\nadd     rsp, 8                                                         ; +0x77, 0x100413677\npop     rbx                                                            ; +0x7b, 0x10041367b\npop     rbp                                                            ; +0x7c, 0x10041367c\njmp     cocos2d__CCSprite__setFlipX                                    ; +0x7d, 0x10041367d\nmov     rdi, rbx; jumptable 0000000100413623 cases 75,76               ; +0x82, 0x100413682\nmov     esi, 1                                                         ; +0x85, 0x100413685\ncall    cocos2d__CCSprite__setFlipY                                    ; +0x8a, 0x10041368a\nmov     rax, [rbx]; jumptable 0000000100413623 cases 73,74             ; +0x8f, 0x10041368f\nmov     rax, [rax+168h]                                                ; +0x92, 0x100413692\nmovss   xmm0, cs:dword_100A03F54                                       ; +0x99, 0x100413699\nmov     rdi, rbx                                                       ; +0xa1, 0x1004136a1\nadd     rsp, 8                                                         ; +0xa4, 0x1004136a4\npop     rbx                                                            ; +0xa8, 0x1004136a8\npop     rbp                                                            ; +0xa9, 0x1004136a9\njmp     rax                                                            ; +0xaa, 0x1004136aa\nadd     rsp, 8; jumptable 0000000100413623 default case, cases 54,55,58-64 ; +0xac, 0x1004136ac\npop     rbx                                                            ; +0xb0, 0x1004136b0\npop     rbp                                                            ; +0xb1, 0x1004136b1\nretn                                                                   ; +0xb2, 0x1004136b2\nmov     rax, [rbx]; jumptable 0000000100413623 case 52                 ; +0xb3, 0x1004136b3\nmov     rax, [rax+168h]                                                ; +0xb6, 0x1004136b6\nmovss   xmm0, cs:dword_100A04190                                       ; +0xbd, 0x1004136bd\njmp     short loc_1004136A1                                            ; +0xc5, 0x1004136c5", "xrefs": ["EditorUI::createPrefab @ 0x1000149f5", "EditorUI::createPrefab @ 0x100014a3f", "GJSmartBlockPreview::addTemplateGuide_1 @ 0x100415a65", "GJSmartBlockPreview::addTemplateGuide_1 @ 0x100415c07"], "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"}