{"type": "func", "start": 4297072576, "end": 4297072664, "name": "GJBaseGameLayer::applyLevelSettings", "pseudocode": "// \n// GJBaseGameLayer::applyLevelSettings from 0x100201fc0 to 0x100202018 (88 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x100359c34\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 GJBaseGameLayer::applyLevelSettings(GJBaseGameLayer *a1, GameObject *a2)\n{\n  bool v4; // w0\n  _BOOL4 m_fixNegativeScale; // w8\n\n  v4 = a1->m_allowStaticRotate || GameObject::canRotateFree(a2);\n  a2->m_canRotateFree = v4;\n  m_fixNegativeScale = a1->m_fixNegativeScale;\n  if ( a2->m_isMirroredByScale != m_fixNegativeScale )\n    a2->m_isObjectRectDirty = 1;\n  a2->m_isMirroredByScale = m_fixNegativeScale;\n}", "assembly": "; \n; GJBaseGameLayer::applyLevelSettings from 0x100201fc0 to 0x100202018 (88 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x100359c34\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, 0x100201fc0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100201fc4\nADD             X29, SP, #0x10                                         ; +0x8, 0x100201fc8\nMOV             X19, X1                                                ; +0xc, 0x100201fcc\nMOV             X20, X0                                                ; +0x10, 0x100201fd0\nLDRB            W8, [X0,#0x7A0]                                        ; +0x14, 0x100201fd4\nTBZ             W8, #0, loc_100201FE4                                  ; +0x18, 0x100201fd8\nMOV             W0, #1                                                 ; +0x1c, 0x100201fdc\nB               loc_100201FEC                                          ; +0x20, 0x100201fe0\nMOV             X0, X19                                                ; +0x24, 0x100201fe4\nBL              GameObject__canRotateFree                              ; +0x28, 0x100201fe8\nSTRB            W0, [X19,#0x364]                                       ; +0x2c, 0x100201fec\nLDRB            W9, [X19,#0x365]                                       ; +0x30, 0x100201ff0\nLDRB            W8, [X20,#0x7A1]                                       ; +0x34, 0x100201ff4\nCMP             W9, W8                                                 ; +0x38, 0x100201ff8\nB.EQ            loc_100202008                                          ; +0x3c, 0x100201ffc\nMOV             W9, #1                                                 ; +0x40, 0x100202000\nSTRB            W9, [X19,#0x360]                                       ; +0x44, 0x100202004\nSTRB            W8, [X19,#0x365]                                       ; +0x48, 0x100202008\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x10020200c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x100202010\nRET                                                                    ; +0x54, 0x100202014", "xrefs": ["LevelEditorLayer::addSpecial @ 0x100359c34"], "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"}