{"type": "func", "start": 8808156, "end": 8808252, "name": "GJBaseGameLayer::applyLevelSettings", "pseudocode": "// \n// GJBaseGameLayer::applyLevelSettings from 0x8666dc to 0x86673c (96 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x6704b4\n// > GJBaseGameLayer::loadLevelSettings @ 0x866824\n// > <???> @ 0x7cea8\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 GJBaseGameLayer::applyLevelSettings(GJBaseGameLayer *a1, GameObject *a2)\n{\n  _BOOL4 m_fixNegativeScale; // w0\n  bool canRotateFree; // w0\n  GameObject *v5; // [xsp+28h] [xbp+28h]\n\n  if ( a1->m_allowStaticRotate )\n  {\n    a2->m_canRotateFree = 1;\n  }\n  else\n  {\n    v5 = a2;\n    canRotateFree = GameObject::canRotateFree(a2);\n    a2 = v5;\n    v5->m_canRotateFree = canRotateFree;\n  }\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 0x8666dc to 0x86673c (96 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x6704b4\n; > GJBaseGameLayer::loadLevelSettings @ 0x866824\n; > <???> @ 0x7cea8\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x8666dc\nMOV             X29, SP                                                ; +0x4, 0x8666e0\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0x8666e4\nMOV             X19, X0                                                ; +0xc, 0x8666e8\nLDRB            W0, [X0,#0x8B0]                                        ; +0x10, 0x8666ec\nCBZ             W0, loc_866724                                         ; +0x14, 0x8666f0\nMOV             W0, #1                                                 ; +0x18, 0x8666f4\nSTRB            W0, [X1,#0x354]                                        ; +0x1c, 0x8666f8\nLDRB            W0, [X19,#0x8B1]                                       ; +0x20, 0x8666fc\nLDRB            W2, [X1,#0x355]                                        ; +0x24, 0x866700\nCMP             W2, W0                                                 ; +0x28, 0x866704\nB.EQ            loc_866714                                             ; +0x2c, 0x866708\nMOV             W2, #1                                                 ; +0x30, 0x86670c\nSTRB            W2, [X1,#0x350]                                        ; +0x34, 0x866710\nSTRB            W0, [X1,#0x355]                                        ; +0x38, 0x866714\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x3c, 0x866718\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x40, 0x86671c\nRET                                                                    ; +0x44, 0x866720\nMOV             X0, X1; this                                           ; +0x48, 0x866724\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x4c, 0x866728\nBL              _ZN10GameObject13canRotateFreeEv; GameObject::canRotateFree(void) ; +0x50, 0x86672c\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x54, 0x866730\nSTRB            W0, [X1,#0x354]                                        ; +0x58, 0x866734\nB               loc_8666FC                                             ; +0x5c, 0x866738", "xrefs": ["LevelEditorLayer::addSpecial @ 0x6704b4", "GJBaseGameLayer::loadLevelSettings @ 0x866824", "<???> @ 0x7cea8"], "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"}