{"type": "func", "start": 4296245824, "end": 4296245896, "name": "GJBaseGameLayer::applyLevelSettings", "pseudocode": "// \n// GJBaseGameLayer::applyLevelSettings from 0x100138240 to 0x100138288 (72 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x1000af4e5\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:24:51 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::applyLevelSettings(__int64 a1, _BYTE *a2)\n{\n  char canRotateFree; // al\n  __int64 result; // rax\n\n  canRotateFree = 1;\n  if ( !*(_BYTE *)(a1 + 1980) )\n    canRotateFree = GameObject::canRotateFree(a2);\n  a2[868] = canRotateFree;\n  result = *(unsigned __int8 *)(a1 + 1981);\n  if ( a2[869] != (_BYTE)result )\n    a2[864] = 1;\n  a2[869] = result;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::applyLevelSettings from 0x100138240 to 0x100138288 (72 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x1000af4e5\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:24:51 +0000\n; \npush    rbp                                                            ; +0x0, 0x100138240\nmov     rbp, rsp                                                       ; +0x1, 0x100138241\npush    r14                                                            ; +0x4, 0x100138244\npush    rbx                                                            ; +0x6, 0x100138246\nmov     rbx, rsi                                                       ; +0x7, 0x100138247\nmov     r14, rdi                                                       ; +0xa, 0x10013824a\nmov     al, 1                                                          ; +0xd, 0x10013824d\ncmp     byte ptr [rdi+7BCh], 0                                         ; +0xf, 0x10013824f\njnz     short loc_100138260                                            ; +0x16, 0x100138256\nmov     rdi, rbx                                                       ; +0x18, 0x100138258\ncall    GameObject__canRotateFree                                      ; +0x1b, 0x10013825b\nmov     [rbx+364h], al                                                 ; +0x20, 0x100138260\nmovzx   eax, byte ptr [r14+7BDh]                                       ; +0x26, 0x100138266\ncmp     [rbx+365h], al                                                 ; +0x2e, 0x10013826e\njz      short loc_10013827D                                            ; +0x34, 0x100138274\nmov     byte ptr [rbx+360h], 1                                         ; +0x36, 0x100138276\nmov     [rbx+365h], al                                                 ; +0x3d, 0x10013827d\npop     rbx                                                            ; +0x43, 0x100138283\npop     r14                                                            ; +0x44, 0x100138284\npop     rbp                                                            ; +0x46, 0x100138286\nretn                                                                   ; +0x47, 0x100138287", "xrefs": ["LevelEditorLayer::addSpecial @ 0x1000af4e5"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}