{"type": "func", "start": 4294998444, "end": 4294998748, "name": "GJSmartTemplate::applyTransformationsForType", "pseudocode": "// \n// GJSmartTemplate::applyTransformationsForType from 0x1000079ac to 0x100007adc (304 bytes)\n// \n// 3 xrefs:\n// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008dd4\n// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008f0c\n// > EditorUI::createPrefab @ 0x1003f244c\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  int v3; // w8\n\n  if ( a1 > WideSlope6 )\n  {\n    if ( (unsigned int)(a1 - 71) > 5 )\n    {\n      if ( (unsigned int)(a1 - 67) < 2 )\n        goto LABEL_19;\n      if ( (unsigned int)(a1 - 69) >= 2 )\n        return;\n      cocos2d::CCSprite::setFlipX(a2, 1);\n    }\n    else\n    {\n      v3 = 1 << (a1 - 71);\n      if ( (v3 & 3) != 0 )\n        goto LABEL_18;\n      if ( (v3 & 0xC) == 0 )\n        cocos2d::CCSprite::setFlipY(a2, 1);\n    }\n    ((void (__fastcall *)(cocos2d::CCSprite *, float))a2->setRotation)(a2, -90.0);\n    return;\n  }\n  if ( a1 > WideSlope2 )\n  {\n    if ( (unsigned int)(a1 - 56) < 2 )\n    {\n      cocos2d::CCSprite::setFlipX(a2, 1);\n    }\n    else if ( (unsigned int)(a1 - 65) < 2 )\n    {\n      cocos2d::CCSprite::setFlipY(a2, 1);\n    }\n    return;\n  }\n  switch ( a1 )\n  {\n    case NormalSlope2:\nLABEL_18:\n      ((void (__fastcall *)(cocos2d::CCSprite *, float))a2->setRotation)(a2, 90.0);\n      return;\n    case NormalSlope3:\n      ((void (__fastcall *)(cocos2d::CCSprite *, float))a2->setRotation)(a2, 270.0);\n      return;\n    case NormalSlope4:\nLABEL_19:\n      ((void (__fastcall *)(cocos2d::CCSprite *, float))a2->setRotation)(a2, 180.0);\n      break;\n  }\n}", "assembly": "; \n; GJSmartTemplate::applyTransformationsForType from 0x1000079ac to 0x100007adc (304 bytes)\n; \n; 3 xrefs:\n; > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008dd4\n; > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008f0c\n; > EditorUI::createPrefab @ 0x1003f244c\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000079ac\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000079b0\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000079b4\nMOV             X19, X1                                                ; +0xc, 0x1000079b8\nCMP             W0, #0x42 ; 'B'                                        ; +0x10, 0x1000079bc\nB.GT            loc_1000079F8                                          ; +0x14, 0x1000079c0\nCMP             W0, #0x37 ; '7'                                        ; +0x18, 0x1000079c4\nB.LE            loc_100007A2C                                          ; +0x1c, 0x1000079c8\nSUB             W8, W0, #0x38 ; '8'                                    ; +0x20, 0x1000079cc\nCMP             W8, #2                                                 ; +0x24, 0x1000079d0\nB.CC            loc_100007A9C                                          ; +0x28, 0x1000079d4\nSUB             W8, W0, #0x41 ; 'A'                                    ; +0x2c, 0x1000079d8\nCMP             W8, #2                                                 ; +0x30, 0x1000079dc\nB.CS            loc_100007AD0                                          ; +0x34, 0x1000079e0\nMOV             X0, X19                                                ; +0x38, 0x1000079e4\nMOV             W1, #1                                                 ; +0x3c, 0x1000079e8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x40, 0x1000079ec\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x44, 0x1000079f0\nB               cocos2d__CCSprite__setFlipY                            ; +0x48, 0x1000079f4\nSUB             W8, W0, #0x47 ; 'G'                                    ; +0x4c, 0x1000079f8\nCMP             W8, #5                                                 ; +0x50, 0x1000079fc\nB.HI            loc_100007A48                                          ; +0x54, 0x100007a00\nMOV             W9, #1                                                 ; +0x58, 0x100007a04\nLSL             W8, W9, W8                                             ; +0x5c, 0x100007a08\nTST             W8, #3                                                 ; +0x60, 0x100007a0c\nB.NE            loc_100007A7C                                          ; +0x64, 0x100007a10\nTST             W8, #0xC                                               ; +0x68, 0x100007a14\nB.NE            loc_100007A6C                                          ; +0x6c, 0x100007a18\nMOV             X0, X19                                                ; +0x70, 0x100007a1c\nMOV             W1, #1                                                 ; +0x74, 0x100007a20\nBL              cocos2d__CCSprite__setFlipY                            ; +0x78, 0x100007a24\nB               loc_100007A6C                                          ; +0x7c, 0x100007a28\nCMP             W0, #0x33 ; '3'                                        ; +0x80, 0x100007a2c\nB.EQ            loc_100007A7C                                          ; +0x84, 0x100007a30\nCMP             W0, #0x34 ; '4'                                        ; +0x88, 0x100007a34\nB.EQ            loc_100007AB0                                          ; +0x8c, 0x100007a38\nCMP             W0, #0x35 ; '5'                                        ; +0x90, 0x100007a3c\nB.EQ            loc_100007A8C                                          ; +0x94, 0x100007a40\nB               loc_100007AD0                                          ; +0x98, 0x100007a44\nSUB             W8, W0, #0x43 ; 'C'                                    ; +0x9c, 0x100007a48\nCMP             W8, #2                                                 ; +0xa0, 0x100007a4c\nB.CC            loc_100007A8C                                          ; +0xa4, 0x100007a50\nSUB             W8, W0, #0x45 ; 'E'                                    ; +0xa8, 0x100007a54\nCMP             W8, #2                                                 ; +0xac, 0x100007a58\nB.CS            loc_100007AD0                                          ; +0xb0, 0x100007a5c\nMOV             X0, X19                                                ; +0xb4, 0x100007a60\nMOV             W1, #1                                                 ; +0xb8, 0x100007a64\nBL              cocos2d__CCSprite__setFlipX                            ; +0xbc, 0x100007a68\nLDR             X8, [X19]                                              ; +0xc0, 0x100007a6c\nLDR             X1, [X8,#0x158]                                        ; +0xc4, 0x100007a70\nMOV             W8, #0xC2B40000                                        ; +0xc8, 0x100007a74\nB               loc_100007ABC                                          ; +0xcc, 0x100007a78\nLDR             X8, [X19]                                              ; +0xd0, 0x100007a7c\nLDR             X1, [X8,#0x158]                                        ; +0xd4, 0x100007a80\nMOV             W8, #0x42B40000                                        ; +0xd8, 0x100007a84\nB               loc_100007ABC                                          ; +0xdc, 0x100007a88\nLDR             X8, [X19]                                              ; +0xe0, 0x100007a8c\nLDR             X1, [X8,#0x158]                                        ; +0xe4, 0x100007a90\nMOV             W8, #0x43340000                                        ; +0xe8, 0x100007a94\nB               loc_100007ABC                                          ; +0xec, 0x100007a98\nMOV             X0, X19                                                ; +0xf0, 0x100007a9c\nMOV             W1, #1                                                 ; +0xf4, 0x100007aa0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xf8, 0x100007aa4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xfc, 0x100007aa8\nB               cocos2d__CCSprite__setFlipX                            ; +0x100, 0x100007aac\nLDR             X8, [X19]                                              ; +0x104, 0x100007ab0\nLDR             X1, [X8,#0x158]                                        ; +0x108, 0x100007ab4\nMOV             W8, #0x43870000                                        ; +0x10c, 0x100007ab8\nFMOV            S0, W8                                                 ; +0x110, 0x100007abc\nMOV             X0, X19                                                ; +0x114, 0x100007ac0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x118, 0x100007ac4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x11c, 0x100007ac8\nBR              X1                                                     ; +0x120, 0x100007acc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x124, 0x100007ad0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x128, 0x100007ad4\nRET                                                                    ; +0x12c, 0x100007ad8", "xrefs": ["GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008dd4", "GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008f0c", "EditorUI::createPrefab @ 0x1003f244c"], "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"}