{"type": "func", "start": 4296379824, "end": 4296379896, "name": "GJBaseGameLayer::applyLevelSettings", "pseudocode": "// \n// GJBaseGameLayer::applyLevelSettings from 0x100158db0 to 0x100158df8 (72 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x1000dfcf5\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 canRotateFree; // al\n  bool m_fixNegativeScale; // al\n\n  canRotateFree = 1;\n  if ( !a1->m_allowStaticRotate )\n    canRotateFree = GameObject::canRotateFree(a2);\n  a2->m_canRotateFree = canRotateFree;\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 0x100158db0 to 0x100158df8 (72 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x1000dfcf5\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, 0x100158db0\nmov     rbp, rsp                                                       ; +0x1, 0x100158db1\npush    r14                                                            ; +0x4, 0x100158db4\npush    rbx                                                            ; +0x6, 0x100158db6\nmov     rbx, rsi                                                       ; +0x7, 0x100158db7\nmov     r14, rdi                                                       ; +0xa, 0x100158dba\nmov     al, 1                                                          ; +0xd, 0x100158dbd\ncmp     byte ptr [rdi+7A0h], 0                                         ; +0xf, 0x100158dbf\njnz     short loc_100158DD0                                            ; +0x16, 0x100158dc6\nmov     rdi, rbx                                                       ; +0x18, 0x100158dc8\ncall    GameObject__canRotateFree                                      ; +0x1b, 0x100158dcb\nmov     [rbx+364h], al                                                 ; +0x20, 0x100158dd0\nmovzx   eax, byte ptr [r14+7A1h]                                       ; +0x26, 0x100158dd6\ncmp     [rbx+365h], al                                                 ; +0x2e, 0x100158dde\njz      short loc_100158DED                                            ; +0x34, 0x100158de4\nmov     byte ptr [rbx+360h], 1                                         ; +0x36, 0x100158de6\nmov     [rbx+365h], al                                                 ; +0x3d, 0x100158ded\npop     rbx                                                            ; +0x43, 0x100158df3\npop     r14                                                            ; +0x44, 0x100158df4\npop     rbp                                                            ; +0x46, 0x100158df6\nretn                                                                   ; +0x47, 0x100158df7", "xrefs": ["LevelEditorLayer::addSpecial @ 0x1000dfcf5"], "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"}