{"type": "func", "start": 5373500960, "end": 5373501083, "name": "ShareLevelSettingsLayer::onClose", "pseudocode": "// \n// ShareLevelSettingsLayer::onClose from 0x140491e20 to 0x140491e9b (123 bytes)\n// \n// 3 xrefs:\n// > ShareLevelSettingsLayer::keyBackClicked @ 0x140491ea9\n// > ShareLevelSettingsLayer::init @ 0x14049142f\n// > <???> @ 0x1406dc0ec\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 ShareLevelSettingsLayer::onClose(ShareLevelSettingsLayer *a1, cocos2d::CCObject *a2)\n{\n  GJGameLevel *m_level; // rdi\n  float v4; // xmm0_4\n  _BOOL8 v5; // rdx\n\n  m_level = a1->m_level;\n  if ( m_level->m_password.random - m_level->m_password.seed == -1 )\n  {\n    v4 = (float)((float)rand() / 32767.0) * 1000.0;\n    m_level->m_password.seed = (int)v4;\n    m_level->m_password.random = (int)v4 + 1;\n  }\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v5) = 1;\n  a1->removeFromParentAndCleanup(a1, v5);\n}", "assembly": "; \n; ShareLevelSettingsLayer::onClose from 0x140491e20 to 0x140491e9b (123 bytes)\n; \n; 3 xrefs:\n; > ShareLevelSettingsLayer::keyBackClicked @ 0x140491ea9\n; > ShareLevelSettingsLayer::init @ 0x14049142f\n; > <???> @ 0x1406dc0ec\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140491e20\npush    rdi                                                            ; +0x5, 0x140491e25\nsub     rsp, 20h                                                       ; +0x6, 0x140491e26\nmov     rdi, [rcx+288h]                                                ; +0xa, 0x140491e2a\nmov     rbx, rcx                                                       ; +0x11, 0x140491e31\nmov     eax, [rdi+3A8h]                                                ; +0x14, 0x140491e34\nsub     eax, [rdi+3ACh]                                                ; +0x1a, 0x140491e3a\ncmp     eax, 0FFFFFFFFh                                                ; +0x20, 0x140491e40\njnz     short loc_140491E74                                            ; +0x23, 0x140491e43\ncall    cs:rand                                                        ; +0x25, 0x140491e45\nmovd    xmm0, eax                                                      ; +0x2b, 0x140491e4b\ncvtdq2ps xmm0, xmm0                                                    ; +0x2f, 0x140491e4f\ndivss   xmm0, cs:dword_140623644                                       ; +0x32, 0x140491e52\nmulss   xmm0, cs:dword_14062350C                                       ; +0x3a, 0x140491e5a\ncvttss2si eax, xmm0                                                    ; +0x42, 0x140491e62\nmov     [rdi+3ACh], eax                                                ; +0x46, 0x140491e66\ninc     eax                                                            ; +0x4c, 0x140491e6c\nmov     [rdi+3A8h], eax                                                ; +0x4e, 0x140491e6e\nmov     rax, [rbx]                                                     ; +0x54, 0x140491e74\nxor     edx, edx                                                       ; +0x57, 0x140491e77\nmov     rcx, rbx                                                       ; +0x59, 0x140491e79\ncall    qword ptr [rax+3D0h]                                           ; +0x5c, 0x140491e7c\nmov     rax, [rbx]                                                     ; +0x62, 0x140491e82\nmov     dl, 1                                                          ; +0x65, 0x140491e85\nmov     rcx, rbx                                                       ; +0x67, 0x140491e87\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6a, 0x140491e8a\nadd     rsp, 20h                                                       ; +0x6f, 0x140491e8f\npop     rdi                                                            ; +0x73, 0x140491e93\njmp     qword ptr [rax+1F8h]                                           ; +0x74, 0x140491e94", "xrefs": ["ShareLevelSettingsLayer::keyBackClicked @ 0x140491ea9", "ShareLevelSettingsLayer::init @ 0x14049142f", "<???> @ 0x1406dc0ec"], "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"}