{"type": "func", "start": 4295822160, "end": 4295822292, "name": "GJGameLevel::getSessionBest", "pseudocode": "// \n// GJGameLevel::getSessionBest from 0x1000d0b50 to 0x1000d0bd4 (132 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::resetLevel @ 0x10014bd0c\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:53 +0000\n// \n\n__int64 __fastcall GJGameLevel::getSessionBest(__int64 a1)\n{\n  __int64 v1; // x19\n  unsigned __int64 v2; // x8\n  int *v3; // x9\n  unsigned int v4; // w10\n  int v5; // t1\n  __int64 v6; // x1\n  int *v8; // [xsp+8h] [xbp-28h] BYREF\n  int *v9; // [xsp+10h] [xbp-20h]\n  __int64 v10; // [xsp+18h] [xbp-18h]\n\n  v8 = nullptr;\n  v9 = nullptr;\n  v10 = 0;\n  GJGameLevel::dtExpandOrder((std::string *)(a1 + 1592), (__int64)&v8);\n  v1 = 0;\n  if ( v9 != v8 )\n  {\n    v2 = v9 - v8;\n    if ( v2 <= 1 )\n      v2 = 1;\n    v3 = v8;\n    do\n    {\n      v5 = *v3++;\n      v4 = v5;\n      if ( v5 <= (int)v1 )\n        v1 = (unsigned int)v1;\n      else\n        v1 = v4;\n      --v2;\n    }\n    while ( v2 );\n    goto LABEL_11;\n  }\n  v6 = 0;\n  if ( v8 )\n  {\nLABEL_11:\n    v9 = v8;\n    operator delete(v8);\n    return v1;\n  }\n  return v6;\n}", "assembly": "; \n; GJGameLevel::getSessionBest from 0x1000d0b50 to 0x1000d0bd4 (132 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::resetLevel @ 0x10014bd0c\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:53 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1000d0b50\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1000d0b54\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1000d0b58\nADD             X29, SP, #0x30                                         ; +0xc, 0x1000d0b5c\nSTP             XZR, XZR, [SP,#0x30+var_28]                            ; +0x10, 0x1000d0b60\nSTR             XZR, [SP,#0x30+var_18]                                 ; +0x14, 0x1000d0b64\nADD             X0, X0, #0x638; this                                   ; +0x18, 0x1000d0b68\nADD             X1, SP, #0x30+var_28                                   ; +0x1c, 0x1000d0b6c\nBL              GJGameLevel__dtExpandOrder                             ; +0x20, 0x1000d0b70\nLDP             X0, X8, [SP,#0x30+var_28]; __p                         ; +0x24, 0x1000d0b74\nMOV             W19, #0                                                ; +0x28, 0x1000d0b78\nSUBS            X8, X8, X0                                             ; +0x2c, 0x1000d0b7c\nB.EQ            loc_1000D0BAC                                          ; +0x30, 0x1000d0b80\nASR             X8, X8, #2                                             ; +0x34, 0x1000d0b84\nCMP             X8, #1                                                 ; +0x38, 0x1000d0b88\nCSINC           X8, X8, XZR, HI                                        ; +0x3c, 0x1000d0b8c\nMOV             X9, X0                                                 ; +0x40, 0x1000d0b90\nLDR             W10, [X9],#4                                           ; +0x44, 0x1000d0b94\nCMP             W10, W19                                               ; +0x48, 0x1000d0b98\nCSEL            W19, W10, W19, GT                                      ; +0x4c, 0x1000d0b9c\nSUBS            X8, X8, #1                                             ; +0x50, 0x1000d0ba0\nB.NE            loc_1000D0B94                                          ; +0x54, 0x1000d0ba4\nB               loc_1000D0BB4                                          ; +0x58, 0x1000d0ba8\nMOV             W1, #0                                                 ; +0x5c, 0x1000d0bac\nCBZ             X0, loc_1000D0BC0                                      ; +0x60, 0x1000d0bb0\nSTR             X0, [SP,#0x30+var_20]                                  ; +0x64, 0x1000d0bb4\nBL              __ZdlPv; operator delete(void *)                       ; +0x68, 0x1000d0bb8\nMOV             X1, X19                                                ; +0x6c, 0x1000d0bbc\nMOV             X0, X1                                                 ; +0x70, 0x1000d0bc0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x74, 0x1000d0bc4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x78, 0x1000d0bc8\nADD             SP, SP, #0x40 ; '@'                                    ; +0x7c, 0x1000d0bcc\nRET                                                                    ; +0x80, 0x1000d0bd0", "xrefs": ["PlayLayer::resetLevel @ 0x10014bd0c"], "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"}