{"type": "func", "start": 4299319696, "end": 4299319895, "name": "GJSmartTemplate::applyTransformationsForType", "pseudocode": "// \n// GJSmartTemplate::applyTransformationsForType from 0x100426990 to 0x100426a57 (199 bytes)\n// \n// 4 xrefs:\n// > EditorUI::createPrefab @ 0x100043a5f\n// > EditorUI::createPrefab @ 0x100043aaf\n// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100428df5\n// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100428f97\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 __fastcall GJSmartTemplate::applyTransformationsForType(SmartBlockType a1, cocos2d::CCSprite *a2)\n{\n  void (__cdecl *setRotation)(cocos2d::CCSprite *__hidden, float); // rax\n  __int64 v3; // xmm0_8\n\n  switch ( a1 )\n  {\n    case NormalSlope2:\n    case WideSlope11:\n    case WideSlope12:\n      setRotation = a2->setRotation;\n      v3 = 1119092736;\n      goto LABEL_9;\n    case NormalSlope3:\n      setRotation = a2->setRotation;\n      v3 = 1132920832;\n      goto LABEL_9;\n    case NormalSlope4:\n    case WideSlope7:\n    case WideSlope8:\n      setRotation = a2->setRotation;\n      v3 = 1127481344;\n      goto LABEL_9;\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_8;\n    case WideSlope13:\n    case WideSlope14:\n      goto LABEL_8;\n    case WideSlope15:\n    case WideSlope16:\n      cocos2d::CCSprite::setFlipY(a2, 1);\nLABEL_8:\n      setRotation = a2->setRotation;\n      v3 = 3266576384LL;\nLABEL_9:\n      ((void (__fastcall *)(cocos2d::CCSprite *, double))setRotation)(a2, *(double *)&v3);\n      break;\n    default:\n      return;\n  }\n}", "assembly": "; \n; GJSmartTemplate::applyTransformationsForType from 0x100426990 to 0x100426a57 (199 bytes)\n; \n; 4 xrefs:\n; > EditorUI::createPrefab @ 0x100043a5f\n; > EditorUI::createPrefab @ 0x100043aaf\n; > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100428df5\n; > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100428f97\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    rbp                                                            ; +0x0, 0x100426990\nmov     rbp, rsp                                                       ; +0x1, 0x100426991\npush    rbx                                                            ; +0x4, 0x100426994\npush    rax                                                            ; +0x5, 0x100426995\nadd     edi, 0FFFFFFCDh; switch 26 cases                               ; +0x6, 0x100426996\ncmp     edi, 19h                                                       ; +0x9, 0x100426999\nja      def_1004269B3; jumptable 00000001004269B3 default case, cases 54,55,58-64 ; +0xc, 0x10042699c\nmov     rbx, rsi                                                       ; +0x12, 0x1004269a2\nlea     rax, jpt_1004269B3                                             ; +0x15, 0x1004269a5\nmovsxd  rcx, (jpt_1004269B3 - 100426A58h)[rax+rdi*4]                   ; +0x1c, 0x1004269ac\nadd     rcx, rax                                                       ; +0x20, 0x1004269b0\njmp     rcx; switch jump                                               ; +0x23, 0x1004269b3\nmov     rax, [rbx]; jumptable 00000001004269B3 cases 51,71,72          ; +0x25, 0x1004269b5\nmov     rax, [rax+158h]                                                ; +0x28, 0x1004269b8\nmovss   xmm0, cs:dword_100815038                                       ; +0x2f, 0x1004269bf\njmp     short loc_100426A31                                            ; +0x37, 0x1004269c7\nmov     rax, [rbx]; jumptable 00000001004269B3 cases 53,67,68          ; +0x39, 0x1004269c9\nmov     rax, [rax+158h]                                                ; +0x3c, 0x1004269cc\nmovss   xmm0, cs:dword_100815738                                       ; +0x43, 0x1004269d3\njmp     short loc_100426A31                                            ; +0x4b, 0x1004269db\nmov     rdi, rbx; jumptable 00000001004269B3 cases 69,70               ; +0x4d, 0x1004269dd\nmov     esi, 1                                                         ; +0x50, 0x1004269e0\ncall    cocos2d__CCSprite__setFlipX                                    ; +0x55, 0x1004269e5\njmp     short loc_100426A1F; jumptable 00000001004269B3 cases 73,74    ; +0x5a, 0x1004269ea\nmov     rdi, rbx; jumptable 00000001004269B3 cases 65,66               ; +0x5c, 0x1004269ec\nmov     esi, 1                                                         ; +0x5f, 0x1004269ef\nadd     rsp, 8                                                         ; +0x64, 0x1004269f4\npop     rbx                                                            ; +0x68, 0x1004269f8\npop     rbp                                                            ; +0x69, 0x1004269f9\njmp     cocos2d__CCSprite__setFlipY                                    ; +0x6a, 0x1004269fa\nmov     rdi, rbx; jumptable 00000001004269B3 cases 56,57               ; +0x6f, 0x1004269ff\nmov     esi, 1                                                         ; +0x72, 0x100426a02\nadd     rsp, 8                                                         ; +0x77, 0x100426a07\npop     rbx                                                            ; +0x7b, 0x100426a0b\npop     rbp                                                            ; +0x7c, 0x100426a0c\njmp     cocos2d__CCSprite__setFlipX                                    ; +0x7d, 0x100426a0d\nmov     rdi, rbx; jumptable 00000001004269B3 cases 75,76               ; +0x82, 0x100426a12\nmov     esi, 1                                                         ; +0x85, 0x100426a15\ncall    cocos2d__CCSprite__setFlipY                                    ; +0x8a, 0x100426a1a\nmov     rax, [rbx]; jumptable 00000001004269B3 cases 73,74             ; +0x8f, 0x100426a1f\nmov     rax, [rax+158h]                                                ; +0x92, 0x100426a22\nmovss   xmm0, cs:dword_100814FBC                                       ; +0x99, 0x100426a29\nmov     rdi, rbx                                                       ; +0xa1, 0x100426a31\nadd     rsp, 8                                                         ; +0xa4, 0x100426a34\npop     rbx                                                            ; +0xa8, 0x100426a38\npop     rbp                                                            ; +0xa9, 0x100426a39\njmp     rax                                                            ; +0xaa, 0x100426a3a\nadd     rsp, 8; jumptable 00000001004269B3 default case, cases 54,55,58-64 ; +0xac, 0x100426a3c\npop     rbx                                                            ; +0xb0, 0x100426a40\npop     rbp                                                            ; +0xb1, 0x100426a41\nretn                                                                   ; +0xb2, 0x100426a42\nmov     rax, [rbx]; jumptable 00000001004269B3 case 52                 ; +0xb3, 0x100426a43\nmov     rax, [rax+158h]                                                ; +0xb6, 0x100426a46\nmovss   xmm0, cs:dword_100815414                                       ; +0xbd, 0x100426a4d\njmp     short loc_100426A31                                            ; +0xc5, 0x100426a55", "xrefs": ["EditorUI::createPrefab @ 0x100043a5f", "EditorUI::createPrefab @ 0x100043aaf", "GJSmartBlockPreview::addTemplateGuide_1 @ 0x100428df5", "GJSmartBlockPreview::addTemplateGuide_1 @ 0x100428f97"], "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"}