{"type": "func", "start": 4295490896, "end": 4295491440, "name": "EditorUI::getRandomStartKey", "pseudocode": "// \n// EditorUI::getRandomStartKey from 0x10007fd50 to 0x10007ff70 (544 bytes)\n// \n// 2 xrefs:\n// > SetupSmartBlockLayer::onCreate @ 0x10007852c\n// > EditorUI::processSmartObjectsFromType @ 0x10047a004\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 10:58:16 +0000\n// \n\n__int64 __fastcall EditorUI::getRandomStartKey(__int64 result)\n{\n  unsigned __int64 v1; // x10\n  unsigned int v2; // w8\n  unsigned int v3; // w9\n  bool v4; // cf\n  unsigned int v5; // w8\n  unsigned __int64 v6; // x10\n  unsigned int v7; // w8\n  bool v8; // zf\n  unsigned int v9; // w8\n  unsigned int v10; // w8\n  unsigned int v11; // w9\n\n  if ( (int)result > 1860 )\n  {\n    if ( (_DWORD)result == 2838 )\n    {\n      qword_1009F3730 = 214013 * qword_1009F3730 + 2531011;\n      if ( vcvtms_s32_f32(\n             (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0)\n           + (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0)) )\n      {\n        return 2840;\n      }\n      else\n      {\n        return 2838;\n      }\n    }\n    if ( (_DWORD)result != 2703 )\n    {\n      if ( (_DWORD)result != 1861 )\n        return result;\n      v6 = ((unsigned __int64)(214013 * qword_1009F3730 + 2531011) >> 16) & 0x7FFF;\n      qword_1009F3730 = 214013 * qword_1009F3730 + 2531011;\n      v7 = vcvtms_s32_f32((float)((float)v6 / 32767.0) * 4.0);\n      v3 = v7 + 1861;\n      v4 = v7 >= 3;\n      v5 = 1864;\n      goto LABEL_10;\n    }\n    qword_1009F3730 = 214013 * qword_1009F3730 + 2531011;\n    v8 = vcvtms_s32_f32(\n           (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0)\n         + (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0)) == 0;\n    v9 = 2703;\nLABEL_24:\n    if ( v8 )\n      return v9;\n    else\n      return v9 + 1;\n  }\n  if ( (_DWORD)result == 869 )\n  {\n    qword_1009F3730 = 214013 * qword_1009F3730 + 2531011;\n    v8 = vcvtms_s32_f32(\n           (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0)\n         + (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0)) == 0;\n    v9 = 869;\n    goto LABEL_24;\n  }\n  if ( (_DWORD)result != 1431 )\n  {\n    if ( (_DWORD)result != 1461 )\n      return result;\n    v1 = ((unsigned __int64)(214013 * qword_1009F3730 + 2531011) >> 16) & 0x7FFF;\n    qword_1009F3730 = 214013 * qword_1009F3730 + 2531011;\n    v2 = vcvtms_s32_f32((float)((float)v1 / 32767.0) * 4.0);\n    v3 = v2 + 1461;\n    v4 = v2 >= 3;\n    v5 = 1464;\nLABEL_10:\n    if ( v4 )\n      return v5;\n    else\n      return v3;\n  }\n  qword_1009F3730 = 214013 * qword_1009F3730 + 2531011;\n  v10 = vcvtms_s32_f32((float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0) * 3.0);\n  if ( v10 == 1 )\n    v11 = 1432;\n  else\n    v11 = 1433;\n  if ( v10 )\n    return v11;\n  else\n    return 1431;\n}", "assembly": "; \n; EditorUI::getRandomStartKey from 0x10007fd50 to 0x10007ff70 (544 bytes)\n; \n; 2 xrefs:\n; > SetupSmartBlockLayer::onCreate @ 0x10007852c\n; > EditorUI::processSmartObjectsFromType @ 0x10047a004\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 10:58:16 +0000\n; \nMOV             X8, X0                                                 ; +0x0, 0x10007fd50\nCMP             W0, #0x744                                             ; +0x4, 0x10007fd54\nB.GT            loc_10007FDC4                                          ; +0x8, 0x10007fd58\nCMP             W8, #0x365                                             ; +0xc, 0x10007fd5c\nB.EQ            loc_10007FE30                                          ; +0x10, 0x10007fd60\nCMP             W8, #0x597                                             ; +0x14, 0x10007fd64\nB.EQ            loc_10007FEC8                                          ; +0x18, 0x10007fd68\nCMP             W8, #0x5B5                                             ; +0x1c, 0x10007fd6c\nB.NE            locret_10007FF6C                                       ; +0x20, 0x10007fd70\nADRP            X8, #qword_1009F3730@PAGE                              ; +0x24, 0x10007fd74\nLDR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0x28, 0x10007fd78\nMOV             W10, #0x343FD                                          ; +0x2c, 0x10007fd7c\nMOV             W11, #0x269EC3                                         ; +0x34, 0x10007fd84\nMADD            X9, X9, X10, X11                                       ; +0x3c, 0x10007fd8c\nUBFX            X10, X9, #0x10, #0xF                                   ; +0x40, 0x10007fd90\nUCVTF           S0, X10                                                ; +0x44, 0x10007fd94\nSTR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0x48, 0x10007fd98\nADRP            X8, #dword_10075CAAC@PAGE                              ; +0x4c, 0x10007fd9c\nLDR             S1, [X8,#dword_10075CAAC@PAGEOFF]                      ; +0x50, 0x10007fda0\nFDIV            S0, S0, S1                                             ; +0x54, 0x10007fda4\nFMOV            S1, #4.0                                               ; +0x58, 0x10007fda8\nFMUL            S0, S0, S1                                             ; +0x5c, 0x10007fdac\nFCVTMS          W8, S0                                                 ; +0x60, 0x10007fdb0\nADD             W9, W8, #0x5B5                                         ; +0x64, 0x10007fdb4\nCMP             W8, #3                                                 ; +0x68, 0x10007fdb8\nMOV             W8, #0x5B8                                             ; +0x6c, 0x10007fdbc\nB               loc_10007FE28                                          ; +0x70, 0x10007fdc0\nCMP             W8, #0xB16                                             ; +0x74, 0x10007fdc4\nB.EQ            loc_10007FE78                                          ; +0x78, 0x10007fdc8\nCMP             W8, #0xA8F                                             ; +0x7c, 0x10007fdcc\nB.EQ            loc_10007FF24                                          ; +0x80, 0x10007fdd0\nCMP             W8, #0x745                                             ; +0x84, 0x10007fdd4\nB.NE            locret_10007FF6C                                       ; +0x88, 0x10007fdd8\nADRP            X8, #qword_1009F3730@PAGE                              ; +0x8c, 0x10007fddc\nLDR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0x90, 0x10007fde0\nMOV             W10, #0x343FD                                          ; +0x94, 0x10007fde4\nMOV             W11, #0x269EC3                                         ; +0x9c, 0x10007fdec\nMADD            X9, X9, X10, X11                                       ; +0xa4, 0x10007fdf4\nUBFX            X10, X9, #0x10, #0xF                                   ; +0xa8, 0x10007fdf8\nUCVTF           S0, X10                                                ; +0xac, 0x10007fdfc\nSTR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0xb0, 0x10007fe00\nADRP            X8, #dword_10075CAAC@PAGE                              ; +0xb4, 0x10007fe04\nLDR             S1, [X8,#dword_10075CAAC@PAGEOFF]                      ; +0xb8, 0x10007fe08\nFDIV            S0, S0, S1                                             ; +0xbc, 0x10007fe0c\nFMOV            S1, #4.0                                               ; +0xc0, 0x10007fe10\nFMUL            S0, S0, S1                                             ; +0xc4, 0x10007fe14\nFCVTMS          W8, S0                                                 ; +0xc8, 0x10007fe18\nADD             W9, W8, #0x745                                         ; +0xcc, 0x10007fe1c\nCMP             W8, #3                                                 ; +0xd0, 0x10007fe20\nMOV             W8, #0x748                                             ; +0xd4, 0x10007fe24\nCSEL            W0, W9, W8, CC                                         ; +0xd8, 0x10007fe28\nRET                                                                    ; +0xdc, 0x10007fe2c\nADRP            X8, #qword_1009F3730@PAGE                              ; +0xe0, 0x10007fe30\nLDR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0xe4, 0x10007fe34\nMOV             W10, #0x343FD                                          ; +0xe8, 0x10007fe38\nMOV             W11, #0x269EC3                                         ; +0xf0, 0x10007fe40\nMADD            X9, X9, X10, X11                                       ; +0xf8, 0x10007fe48\nSTR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0xfc, 0x10007fe4c\nUBFX            X8, X9, #0x10, #0xF                                    ; +0x100, 0x10007fe50\nUCVTF           S0, X8                                                 ; +0x104, 0x10007fe54\nADRP            X8, #dword_10075CAAC@PAGE                              ; +0x108, 0x10007fe58\nLDR             S1, [X8,#dword_10075CAAC@PAGEOFF]                      ; +0x10c, 0x10007fe5c\nFDIV            S0, S0, S1                                             ; +0x110, 0x10007fe60\nFADD            S0, S0, S0                                             ; +0x114, 0x10007fe64\nFCVTMS          W8, S0                                                 ; +0x118, 0x10007fe68\nCMP             W8, #0                                                 ; +0x11c, 0x10007fe6c\nMOV             W8, #0x365                                             ; +0x120, 0x10007fe70\nB               loc_10007FF68                                          ; +0x124, 0x10007fe74\nADRP            X8, #qword_1009F3730@PAGE                              ; +0x128, 0x10007fe78\nLDR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0x12c, 0x10007fe7c\nMOV             W10, #0x343FD                                          ; +0x130, 0x10007fe80\nMOV             W11, #0x269EC3                                         ; +0x138, 0x10007fe88\nMADD            X9, X9, X10, X11                                       ; +0x140, 0x10007fe90\nSTR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0x144, 0x10007fe94\nUBFX            X8, X9, #0x10, #0xF                                    ; +0x148, 0x10007fe98\nUCVTF           S0, X8                                                 ; +0x14c, 0x10007fe9c\nADRP            X8, #dword_10075CAAC@PAGE                              ; +0x150, 0x10007fea0\nLDR             S1, [X8,#dword_10075CAAC@PAGEOFF]                      ; +0x154, 0x10007fea4\nFDIV            S0, S0, S1                                             ; +0x158, 0x10007fea8\nFADD            S0, S0, S0                                             ; +0x15c, 0x10007feac\nFCVTMS          W8, S0                                                 ; +0x160, 0x10007feb0\nCMP             W8, #0                                                 ; +0x164, 0x10007feb4\nMOV             W8, #0xB18                                             ; +0x168, 0x10007feb8\nMOV             W9, #0xB16                                             ; +0x16c, 0x10007febc\nCSEL            W0, W9, W8, EQ                                         ; +0x170, 0x10007fec0\nRET                                                                    ; +0x174, 0x10007fec4\nADRP            X8, #qword_1009F3730@PAGE                              ; +0x178, 0x10007fec8\nLDR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0x17c, 0x10007fecc\nMOV             W10, #0x343FD                                          ; +0x180, 0x10007fed0\nMOV             W11, #0x269EC3                                         ; +0x188, 0x10007fed8\nMADD            X9, X9, X10, X11                                       ; +0x190, 0x10007fee0\nSTR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0x194, 0x10007fee4\nUBFX            X8, X9, #0x10, #0xF                                    ; +0x198, 0x10007fee8\nUCVTF           S0, X8                                                 ; +0x19c, 0x10007feec\nADRP            X8, #dword_10075CAAC@PAGE                              ; +0x1a0, 0x10007fef0\nLDR             S1, [X8,#dword_10075CAAC@PAGEOFF]                      ; +0x1a4, 0x10007fef4\nFDIV            S0, S0, S1                                             ; +0x1a8, 0x10007fef8\nFMOV            S1, #3.0                                               ; +0x1ac, 0x10007fefc\nFMUL            S0, S0, S1                                             ; +0x1b0, 0x10007ff00\nFCVTMS          W8, S0                                                 ; +0x1b4, 0x10007ff04\nCMP             W8, #1                                                 ; +0x1b8, 0x10007ff08\nMOV             W9, #0x598                                             ; +0x1bc, 0x10007ff0c\nCINC            W9, W9, NE                                             ; +0x1c0, 0x10007ff10\nCMP             W8, #0                                                 ; +0x1c4, 0x10007ff14\nMOV             W8, #0x597                                             ; +0x1c8, 0x10007ff18\nCSEL            W0, W8, W9, EQ                                         ; +0x1cc, 0x10007ff1c\nRET                                                                    ; +0x1d0, 0x10007ff20\nADRP            X8, #qword_1009F3730@PAGE                              ; +0x1d4, 0x10007ff24\nLDR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0x1d8, 0x10007ff28\nMOV             W10, #0x343FD                                          ; +0x1dc, 0x10007ff2c\nMOV             W11, #0x269EC3                                         ; +0x1e4, 0x10007ff34\nMADD            X9, X9, X10, X11                                       ; +0x1ec, 0x10007ff3c\nSTR             X9, [X8,#qword_1009F3730@PAGEOFF]                      ; +0x1f0, 0x10007ff40\nUBFX            X8, X9, #0x10, #0xF                                    ; +0x1f4, 0x10007ff44\nUCVTF           S0, X8                                                 ; +0x1f8, 0x10007ff48\nADRP            X8, #dword_10075CAAC@PAGE                              ; +0x1fc, 0x10007ff4c\nLDR             S1, [X8,#dword_10075CAAC@PAGEOFF]                      ; +0x200, 0x10007ff50\nFDIV            S0, S0, S1                                             ; +0x204, 0x10007ff54\nFADD            S0, S0, S0                                             ; +0x208, 0x10007ff58\nFCVTMS          W8, S0                                                 ; +0x20c, 0x10007ff5c\nCMP             W8, #0                                                 ; +0x210, 0x10007ff60\nMOV             W8, #0xA8F                                             ; +0x214, 0x10007ff64\nCINC            W0, W8, NE                                             ; +0x218, 0x10007ff68\nRET                                                                    ; +0x21c, 0x10007ff6c", "xrefs": ["SetupSmartBlockLayer::onCreate @ 0x10007852c", "EditorUI::processSmartObjectsFromType @ 0x10047a004"], "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"}