{"type": "func", "start": 4681000, "end": 4681054, "name": "GJBaseGameLayer::applyLevelSettings", "pseudocode": "// \n// GJBaseGameLayer::applyLevelSettings from 0x476d28 to 0x476d5e (54 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x370a28\n// > GJBaseGameLayer::loadLevelSettings @ 0x476e1e\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  int m_isMirroredByScale; // r2\n  int m_fixNegativeScale; // r3\n\n  a2->m_canRotateFree = a1->m_allowStaticRotate || GameObject::canRotateFree(a2);\n  m_isMirroredByScale = a2->m_isMirroredByScale;\n  m_fixNegativeScale = a1->m_fixNegativeScale;\n  a2->m_isMirroredByScale = m_fixNegativeScale;\n  if ( m_isMirroredByScale != m_fixNegativeScale )\n    a2->m_isObjectRectDirty = 1;\n}", "assembly": "; \n; GJBaseGameLayer::applyLevelSettings from 0x476d28 to 0x476d5e (54 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x370a28\n; > GJBaseGameLayer::loadLevelSettings @ 0x476e1e\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            {R3-R5,LR}                                             ; +0x0, 0x476d28\nMOV             R5, R0                                                 ; +0x2, 0x476d2a\nLDRB.W          R3, [R0,#0x614]                                        ; +0x4, 0x476d2c\nMOV             R4, R1                                                 ; +0x8, 0x476d30\nCBZ             R3, loc_476D3C                                         ; +0xa, 0x476d32\nMOVS            R3, #1                                                 ; +0xc, 0x476d34\nSTRB.W          R3, [R1,#0x2D8]                                        ; +0xe, 0x476d36\nB               loc_476D46                                             ; +0x12, 0x476d3a\nMOV             R0, R1; this                                           ; +0x14, 0x476d3c\nBL              _ZN10GameObject13canRotateFreeEv; GameObject::canRotateFree(void) ; +0x16, 0x476d3e\nSTRB.W          R0, [R4,#0x2D8]                                        ; +0x1a, 0x476d42\nLDRB.W          R2, [R4,#0x2D9]                                        ; +0x1e, 0x476d46\nLDRB.W          R3, [R5,#0x615]                                        ; +0x22, 0x476d4a\nCMP             R2, R3                                                 ; +0x26, 0x476d4e\nSTRB.W          R3, [R4,#0x2D9]                                        ; +0x28, 0x476d50\nITT NE                                                                 ; +0x2c, 0x476d54\nMOVNE           R2, #1                                                 ; +0x2e, 0x476d56\nSTRBNE.W        R2, [R4,#0x2D4]                                        ; +0x30, 0x476d58\nPOP             {R3-R5,PC}                                             ; +0x34, 0x476d5c", "xrefs": ["LevelEditorLayer::addSpecial @ 0x370a28", "GJBaseGameLayer::loadLevelSettings @ 0x476e1e"], "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"}