{"type": "func", "start": 4300143584, "end": 4300143684, "name": "LevelBindingsLayer::onClose", "pseudocode": "// \n// LevelBindingsLayer::onClose from 0x1004efbe0 to 0x1004efc44 (100 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100993f40\n// \n// This function is hookable on this platform (idp: arm, 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 11:06:44 +0000\n// \n\n__int64 __fastcall LevelBindingsLayer::onClose(__int64 a1, __int64 a2)\n{\n  __int64 v4; // x21\n  __int64 v5; // x21\n  _QWORD *v6; // t1\n\n  if ( *(_BYTE *)(a1 + 1201) == 1 )\n  {\n    v4 = *(_QWORD *)(a1 + 1192);\n    if ( (*(_BYTE *)(v4 + 32) & 1) == 0 )\n    {\n      v6 = *(_QWORD **)(v4 + 16);\n      v5 = v4 + 16;\n      sub_10018E328(v5 - 8, v6);\n      *(_QWORD *)v5 = 0;\n      *(_QWORD *)(v5 + 8) = 0;\n      *(_QWORD *)(v5 - 8) = v5;\n      *(_BYTE *)(v5 + 16) = 1;\n    }\n  }\n  return KeybindingsLayer::onClose(a1, a2);\n}", "assembly": "; \n; LevelBindingsLayer::onClose from 0x1004efbe0 to 0x1004efc44 (100 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100993f40\n; \n; This function is hookable on this platform (idp: arm, 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 11:06:44 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1004efbe0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1004efbe4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1004efbe8\nADD             X29, SP, #0x20                                         ; +0xc, 0x1004efbec\nMOV             X19, X1                                                ; +0x10, 0x1004efbf0\nMOV             X20, X0                                                ; +0x14, 0x1004efbf4\nLDRB            W8, [X0,#0x4B1]                                        ; +0x18, 0x1004efbf8\nCMP             W8, #1                                                 ; +0x1c, 0x1004efbfc\nB.NE            loc_1004EFC2C                                          ; +0x20, 0x1004efc00\nLDR             X21, [X20,#0x4A8]                                      ; +0x24, 0x1004efc04\nLDRB            W8, [X21,#0x20]                                        ; +0x28, 0x1004efc08\nTBNZ            W8, #0, loc_1004EFC2C                                  ; +0x2c, 0x1004efc0c\nLDR             X1, [X21,#0x10]!                                       ; +0x30, 0x1004efc10\nSUB             X0, X21, #8                                            ; +0x34, 0x1004efc14\nBL              sub_10018E328                                          ; +0x38, 0x1004efc18\nSTP             XZR, XZR, [X21]                                        ; +0x3c, 0x1004efc1c\nSTUR            X21, [X21,#-8]                                         ; +0x40, 0x1004efc20\nMOV             W8, #1                                                 ; +0x44, 0x1004efc24\nSTRB            W8, [X21,#0x10]                                        ; +0x48, 0x1004efc28\nMOV             X0, X20                                                ; +0x4c, 0x1004efc2c\nMOV             X1, X19                                                ; +0x50, 0x1004efc30\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x1004efc34\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x1004efc38\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x5c, 0x1004efc3c\nB               KeybindingsLayer__onClose                              ; +0x60, 0x1004efc40", "xrefs": ["<???> @ 0x100993f40"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}