{"type": "func", "start": 5369348000, "end": 5369348783, "name": "AutoSaveSettingsLayer::getValue", "pseudocode": "// \n// AutoSaveSettingsLayer::getValue from 0x14009bfa0 to 0x14009c2af (783 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14071b7f8\n// > <???> @ 0x140912efc\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 11:26:05 +0000\n// \n\n// Hidden C++ exception states: #wind=5\nfloat __fastcall AutoSaveSettingsLayer::getValue(__int64 a1, int a2)\n{\n  __int64 v2; // rcx\n  const char *v3; // rdx\n  float result; // xmm0_4\n  __int64 v5; // rbx\n  cocos2d::CCString *v6; // rax\n  int v7; // ebx\n  void *v8; // r8\n  int v9; // eax\n  __int64 v10; // rbx\n  cocos2d::CCString *v11; // rax\n  void *v12; // r8\n  void *v13; // [rsp+30h] [rbp-30h]\n  void *v14; // [rsp+30h] [rbp-30h]\n  void *v15; // [rsp+30h] [rbp-30h]\n  void *v16; // [rsp+30h] [rbp-30h]\n  void *Block[2]; // [rsp+38h] [rbp-28h] BYREF\n  __int64 v18; // [rsp+48h] [rbp-18h]\n  unsigned __int64 v19; // [rsp+50h] [rbp-10h]\n\n  switch ( a2 )\n  {\n    case -4:\n      v10 = qword_14090BFD0;\n      if ( !qword_14090BFD0 )\n      {\n        v16 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager(v16);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v10 = qword_14090BFD0;\n      }\n      *(_OWORD *)Block = 0;\n      v18 = 3;\n      v19 = 15;\n      LODWORD(Block[0]) = 6256231;\n      sub_140044D80(Block, \"0187\", 4u);\n      v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v10 + 432), Block);\n      v7 = cocos2d::CCString::intValue(v11);\n      if ( v19 > 0xF )\n      {\n        v12 = Block[0];\n        if ( v19 + 1 >= 0x1000 )\n        {\n          v12 = *((void **)Block[0] - 1);\n          if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F )\n            invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n        }\n        j_j_free(v12);\n      }\n      v9 = 3600;\n      break;\n    case -3:\n      v2 = qword_14090BFD0;\n      if ( !qword_14090BFD0 )\n      {\n        v15 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager(v15);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v2 = qword_14090BFD0;\n      }\n      v3 = \"0186\";\nLABEL_9:\n      if ( (unsigned __int8)GameManager::getGameVariable(v2, v3) )\n        return 1.0;\n      else\n        return 0.0;\n    case -2:\n      v5 = qword_14090BFD0;\n      if ( !qword_14090BFD0 )\n      {\n        v14 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager(v14);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v5 = qword_14090BFD0;\n      }\n      *(_OWORD *)Block = 0;\n      v18 = 3;\n      v19 = 15;\n      LODWORD(Block[0]) = 6256231;\n      sub_140044D80(Block, \"0185\", 4u);\n      v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v5 + 432), Block);\n      v7 = cocos2d::CCString::intValue(v6);\n      if ( v19 > 0xF )\n      {\n        v8 = Block[0];\n        if ( v19 + 1 >= 0x1000 )\n        {\n          v8 = *((void **)Block[0] - 1);\n          if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n            invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n        }\n        j_j_free(v8);\n      }\n      v9 = 300;\n      break;\n    case -1:\n      v2 = qword_14090BFD0;\n      if ( !qword_14090BFD0 )\n      {\n        v13 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager(v13);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v2 = qword_14090BFD0;\n      }\n      v3 = \"0184\";\n      goto LABEL_9;\n    default:\n      SetupTriggerPopup::getValue();\n      return result;\n  }\n  if ( v7 <= 0 )\n    v7 = v9;\n  return (float)(v7 / 0x3Cu);\n}", "assembly": "; \n; AutoSaveSettingsLayer::getValue from 0x14009bfa0 to 0x14009c2af (783 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14071b7f8\n; > <???> @ 0x140912efc\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 11:26:05 +0000\n; \nmov     [rsp-8+arg_10], rbx                                            ; +0x0, 0x14009bfa0\npush    rbp                                                            ; +0x5, 0x14009bfa5\nmov     rbp, rsp                                                       ; +0x6, 0x14009bfa6\nsub     rsp, 60h                                                       ; +0x9, 0x14009bfa9\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x14009bfad\nxor     rax, rsp                                                       ; +0x14, 0x14009bfb4\nmov     [rbp+var_8], rax                                               ; +0x17, 0x14009bfb7\ncmp     edx, 0FFFFFFFCh                                                ; +0x1b, 0x14009bfbb\njz      loc_14009C188                                                  ; +0x1e, 0x14009bfbe\ncmp     edx, 0FFFFFFFDh                                                ; +0x24, 0x14009bfc4\njz      loc_14009C13F                                                  ; +0x27, 0x14009bfc7\ncmp     edx, 0FFFFFFFEh                                                ; +0x2d, 0x14009bfcd\njz      short loc_14009C043                                            ; +0x30, 0x14009bfd0\ncmp     edx, 0FFFFFFFFh                                                ; +0x32, 0x14009bfd2\njz      short loc_14009BFE1                                            ; +0x35, 0x14009bfd5\ncall    SetupTriggerPopup__getValue                                    ; +0x37, 0x14009bfd7\njmp     loc_14009C295                                                  ; +0x3c, 0x14009bfdc\nmov     rcx, cs:qword_14090BFD0                                        ; +0x41, 0x14009bfe1\ntest    rcx, rcx                                                       ; +0x48, 0x14009bfe8\njnz     short loc_14009C01E                                            ; +0x4b, 0x14009bfeb\nmov     ecx, 6E8h; Size                                                ; +0x4d, 0x14009bfed\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x52, 0x14009bff2\nmov     [rbp+var_30], rax                                              ; +0x57, 0x14009bff7\nmov     rcx, rax                                                       ; +0x5b, 0x14009bffb\ncall    GameManager__GameManager                                       ; +0x5e, 0x14009bffe\nnop                                                                    ; +0x63, 0x14009c003\nmov     cs:qword_14090BFD0, rax                                        ; +0x64, 0x14009c004\nmov     rcx, [rax]                                                     ; +0x6b, 0x14009c00b\nmov     rdx, [rcx+48h]                                                 ; +0x6e, 0x14009c00e\nmov     rcx, rax                                                       ; +0x72, 0x14009c012\ncall    rdx                                                            ; +0x75, 0x14009c015\nmov     rcx, cs:qword_14090BFD0                                        ; +0x77, 0x14009c017\nlea     rdx, a0184; \"0184\"                                             ; +0x7e, 0x14009c01e\ncall    GameManager__getGameVariable                                   ; +0x85, 0x14009c025\ntest    al, al                                                         ; +0x8a, 0x14009c02a\njz      short loc_14009C03B                                            ; +0x8c, 0x14009c02c\nmovss   xmm0, cs:flt_140835080                                         ; +0x8e, 0x14009c02e\njmp     loc_14009C295                                                  ; +0x96, 0x14009c036\nxorps   xmm0, xmm0                                                     ; +0x9b, 0x14009c03b\njmp     loc_14009C295                                                  ; +0x9e, 0x14009c03e\nmov     rbx, cs:qword_14090BFD0                                        ; +0xa3, 0x14009c043\ntest    rbx, rbx                                                       ; +0xaa, 0x14009c04a\njnz     short loc_14009C080                                            ; +0xad, 0x14009c04d\nmov     ecx, 6E8h; Size                                                ; +0xaf, 0x14009c04f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb4, 0x14009c054\nmov     [rbp+var_30], rax                                              ; +0xb9, 0x14009c059\nmov     rcx, rax                                                       ; +0xbd, 0x14009c05d\ncall    GameManager__GameManager                                       ; +0xc0, 0x14009c060\nnop                                                                    ; +0xc5, 0x14009c065\nmov     cs:qword_14090BFD0, rax                                        ; +0xc6, 0x14009c066\nmov     rcx, [rax]                                                     ; +0xcd, 0x14009c06d\nmov     rdx, [rcx+48h]                                                 ; +0xd0, 0x14009c070\nmov     rcx, rax                                                       ; +0xd4, 0x14009c074\ncall    rdx                                                            ; +0xd7, 0x14009c077\nmov     rbx, cs:qword_14090BFD0                                        ; +0xd9, 0x14009c079\nxorps   xmm0, xmm0                                                     ; +0xe0, 0x14009c080\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0xe3, 0x14009c083\nmov     [rbp+var_18], 3                                                ; +0xe7, 0x14009c087\nmov     [rbp+var_10], 0Fh                                              ; +0xef, 0x14009c08f\nmov     eax, cs:dword_140757618                                        ; +0xf7, 0x14009c097\nmov     word ptr [rbp+Block], ax                                       ; +0xfd, 0x14009c09d\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x101, 0x14009c0a1\nmov     byte ptr [rbp+Block+2], al                                     ; +0x108, 0x14009c0a8\nmov     byte ptr [rbp+Block+3], 0                                      ; +0x10b, 0x14009c0ab\nmov     r8d, 4; Size                                                   ; +0x10f, 0x14009c0af\nlea     rdx, a0185; \"0185\"                                             ; +0x115, 0x14009c0b5\nlea     rcx, [rbp+Block]; Src                                          ; +0x11c, 0x14009c0bc\ncall    sub_140044D80                                                  ; +0x120, 0x14009c0c0\nlea     rdx, [rbp+Block]                                               ; +0x125, 0x14009c0c5\nmov     rcx, [rbx+1B0h]                                                ; +0x129, 0x14009c0c9\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0x130, 0x14009c0d0\nmov     rcx, rax                                                       ; +0x136, 0x14009c0d6\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x139, 0x14009c0d9\nmov     ebx, eax                                                       ; +0x13f, 0x14009c0df\nmov     rdx, [rbp+var_10]                                              ; +0x141, 0x14009c0e1\ncmp     rdx, 0Fh                                                       ; +0x145, 0x14009c0e5\njbe     short loc_14009C135                                            ; +0x149, 0x14009c0e9\ninc     rdx                                                            ; +0x14b, 0x14009c0eb\nmov     r8, [rbp+Block]                                                ; +0x14e, 0x14009c0ee\nmov     rcx, r8                                                        ; +0x152, 0x14009c0f2\ncmp     rdx, 1000h                                                     ; +0x155, 0x14009c0f5\njb      short loc_14009C12D                                            ; +0x15c, 0x14009c0fc\nadd     rdx, 27h ; '''                                                 ; +0x15e, 0x14009c0fe\nmov     r8, [r8-8]                                                     ; +0x162, 0x14009c102\nsub     rcx, r8                                                        ; +0x166, 0x14009c106\nsub     rcx, 8                                                         ; +0x169, 0x14009c109\ncmp     rcx, 1Fh                                                       ; +0x16d, 0x14009c10d\njbe     short loc_14009C12D                                            ; +0x171, 0x14009c111\nmov     [rsp+60h+Reserved], 0; Reserved                                ; +0x173, 0x14009c113\nxor     r9d, r9d; LineNo                                               ; +0x17c, 0x14009c11c\nxor     r8d, r8d; FileName                                             ; +0x17f, 0x14009c11f\nxor     edx, edx; FunctionName                                         ; +0x182, 0x14009c122\nxor     ecx, ecx; Expression                                           ; +0x184, 0x14009c124\ncall    cs:_invoke_watson                                              ; +0x186, 0x14009c126\ndb 0CCh                                                                ; +0x18c, 0x14009c12c\nmov     rcx, r8; Block                                                 ; +0x18d, 0x14009c12d\ncall    j_j_free                                                       ; +0x190, 0x14009c130\nmov     eax, 12Ch                                                      ; +0x195, 0x14009c135\njmp     loc_14009C27F                                                  ; +0x19a, 0x14009c13a\nmov     rcx, cs:qword_14090BFD0                                        ; +0x19f, 0x14009c13f\ntest    rcx, rcx                                                       ; +0x1a6, 0x14009c146\njnz     short loc_14009C17C                                            ; +0x1a9, 0x14009c149\nmov     ecx, 6E8h; Size                                                ; +0x1ab, 0x14009c14b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1b0, 0x14009c150\nmov     [rbp+var_30], rax                                              ; +0x1b5, 0x14009c155\nmov     rcx, rax                                                       ; +0x1b9, 0x14009c159\ncall    GameManager__GameManager                                       ; +0x1bc, 0x14009c15c\nnop                                                                    ; +0x1c1, 0x14009c161\nmov     cs:qword_14090BFD0, rax                                        ; +0x1c2, 0x14009c162\nmov     rcx, [rax]                                                     ; +0x1c9, 0x14009c169\nmov     rdx, [rcx+48h]                                                 ; +0x1cc, 0x14009c16c\nmov     rcx, rax                                                       ; +0x1d0, 0x14009c170\ncall    rdx                                                            ; +0x1d3, 0x14009c173\nmov     rcx, cs:qword_14090BFD0                                        ; +0x1d5, 0x14009c175\nlea     rdx, a0186; \"0186\"                                             ; +0x1dc, 0x14009c17c\njmp     loc_14009C025                                                  ; +0x1e3, 0x14009c183\nmov     rbx, cs:qword_14090BFD0                                        ; +0x1e8, 0x14009c188\ntest    rbx, rbx                                                       ; +0x1ef, 0x14009c18f\njnz     short loc_14009C1C5                                            ; +0x1f2, 0x14009c192\nmov     ecx, 6E8h; Size                                                ; +0x1f4, 0x14009c194\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1f9, 0x14009c199\nmov     [rbp+var_30], rax                                              ; +0x1fe, 0x14009c19e\nmov     rcx, rax                                                       ; +0x202, 0x14009c1a2\ncall    GameManager__GameManager                                       ; +0x205, 0x14009c1a5\nnop                                                                    ; +0x20a, 0x14009c1aa\nmov     cs:qword_14090BFD0, rax                                        ; +0x20b, 0x14009c1ab\nmov     rcx, [rax]                                                     ; +0x212, 0x14009c1b2\nmov     rdx, [rcx+48h]                                                 ; +0x215, 0x14009c1b5\nmov     rcx, rax                                                       ; +0x219, 0x14009c1b9\ncall    rdx                                                            ; +0x21c, 0x14009c1bc\nmov     rbx, cs:qword_14090BFD0                                        ; +0x21e, 0x14009c1be\nxorps   xmm0, xmm0                                                     ; +0x225, 0x14009c1c5\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0x228, 0x14009c1c8\nmov     [rbp+var_18], 3                                                ; +0x22c, 0x14009c1cc\nmov     [rbp+var_10], 0Fh                                              ; +0x234, 0x14009c1d4\nmov     eax, cs:dword_140757618                                        ; +0x23c, 0x14009c1dc\nmov     word ptr [rbp+Block], ax                                       ; +0x242, 0x14009c1e2\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x246, 0x14009c1e6\nmov     byte ptr [rbp+Block+2], al                                     ; +0x24d, 0x14009c1ed\nmov     byte ptr [rbp+Block+3], 0                                      ; +0x250, 0x14009c1f0\nmov     r8d, 4; Size                                                   ; +0x254, 0x14009c1f4\nlea     rdx, a0187; \"0187\"                                             ; +0x25a, 0x14009c1fa\nlea     rcx, [rbp+Block]; Src                                          ; +0x261, 0x14009c201\ncall    sub_140044D80                                                  ; +0x265, 0x14009c205\nlea     rdx, [rbp+Block]                                               ; +0x26a, 0x14009c20a\nmov     rcx, [rbx+1B0h]                                                ; +0x26e, 0x14009c20e\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0x275, 0x14009c215\nmov     rcx, rax                                                       ; +0x27b, 0x14009c21b\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x27e, 0x14009c21e\nmov     ebx, eax                                                       ; +0x284, 0x14009c224\nmov     rdx, [rbp+var_10]                                              ; +0x286, 0x14009c226\ncmp     rdx, 0Fh                                                       ; +0x28a, 0x14009c22a\njbe     short loc_14009C27A                                            ; +0x28e, 0x14009c22e\ninc     rdx                                                            ; +0x290, 0x14009c230\nmov     r8, [rbp+Block]                                                ; +0x293, 0x14009c233\nmov     rcx, r8                                                        ; +0x297, 0x14009c237\ncmp     rdx, 1000h                                                     ; +0x29a, 0x14009c23a\njb      short loc_14009C272                                            ; +0x2a1, 0x14009c241\nadd     rdx, 27h ; '''                                                 ; +0x2a3, 0x14009c243\nmov     r8, [r8-8]                                                     ; +0x2a7, 0x14009c247\nsub     rcx, r8                                                        ; +0x2ab, 0x14009c24b\nsub     rcx, 8                                                         ; +0x2ae, 0x14009c24e\ncmp     rcx, 1Fh                                                       ; +0x2b2, 0x14009c252\njbe     short loc_14009C272                                            ; +0x2b6, 0x14009c256\nmov     [rsp+60h+Reserved], 0; Reserved                                ; +0x2b8, 0x14009c258\nxor     r9d, r9d; LineNo                                               ; +0x2c1, 0x14009c261\nxor     r8d, r8d; FileName                                             ; +0x2c4, 0x14009c264\nxor     edx, edx; FunctionName                                         ; +0x2c7, 0x14009c267\nxor     ecx, ecx; Expression                                           ; +0x2c9, 0x14009c269\ncall    cs:_invoke_watson                                              ; +0x2cb, 0x14009c26b\nalign 2                                                                ; +0x2d1, 0x14009c271\nmov     rcx, r8; Block                                                 ; +0x2d2, 0x14009c272\ncall    j_j_free                                                       ; +0x2d5, 0x14009c275\nmov     eax, 0E10h                                                     ; +0x2da, 0x14009c27a\ntest    ebx, ebx                                                       ; +0x2df, 0x14009c27f\ncmovle  ebx, eax                                                       ; +0x2e1, 0x14009c281\nmov     eax, 88888889h                                                 ; +0x2e4, 0x14009c284\nmul     ebx                                                            ; +0x2e9, 0x14009c289\nshr     edx, 5                                                         ; +0x2eb, 0x14009c28b\nmovd    xmm0, edx                                                      ; +0x2ee, 0x14009c28e\ncvtdq2ps xmm0, xmm0                                                    ; +0x2f2, 0x14009c292\nmov     rcx, [rbp+var_8]                                               ; +0x2f5, 0x14009c295\nxor     rcx, rsp; StackCookie                                          ; +0x2f9, 0x14009c299\ncall    __security_check_cookie                                        ; +0x2fc, 0x14009c29c\nmov     rbx, [rsp+60h+arg_10]                                          ; +0x301, 0x14009c2a1\nadd     rsp, 60h                                                       ; +0x309, 0x14009c2a9\npop     rbp                                                            ; +0x30d, 0x14009c2ad\nretn                                                                   ; +0x30e, 0x14009c2ae", "xrefs": ["<???> @ 0x14071b7f8", "<???> @ 0x140912efc"], "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"}