{"type": "func", "start": 5371339568, "end": 5371340311, "name": "GameManager::loadDpadFromString", "pseudocode": "// \n// GameManager::loadDpadFromString from 0x140282330 to 0x140282617 (743 bytes)\n// \n// 11 xrefs:\n// > GameManager::loadDPadLayout @ 0x140281e55\n// > GameManager::loadDPadLayout @ 0x140281fb5\n// > GameManager::loadDPadLayout @ 0x140281fd5\n// > GameManager::loadDPadLayout @ 0x140281ff5\n// > GameManager::loadDPadLayout @ 0x140282015\n// > GameManager::dataLoaded @ 0x140283991\n// > GameManager::dataLoaded @ 0x1402839b5\n// > GameManager::dataLoaded @ 0x1402839d9\n// > GameManager::dataLoaded @ 0x1402839fd\n// > GameManager::dataLoaded @ 0x140283a21\n// > <???> @ 0x14091d0b4\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:29:00 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GameManager::loadDpadFromString(__int64 a1, __int64 a2, __int64 *a3)\n{\n  char *v5; // rdi\n  char *v6; // rbx\n  char *v7; // rcx\n  char *v8; // rcx\n  float v9; // xmm1_4\n  char *v10; // rcx\n  char *v11; // rcx\n  char *v12; // rcx\n  char *v13; // rcx\n  char *v14; // rcx\n  float v15; // xmm1_4\n  char *v16; // rcx\n  float v17; // xmm1_4\n  char *v18; // rcx\n  char *v19; // rcx\n  char *v20; // rax\n  char *String[2]; // [rsp+30h] [rbp-D0h] BYREF\n  __int64 v22; // [rsp+40h] [rbp-C0h]\n  __int64 *v23; // [rsp+48h] [rbp-B8h]\n  _BYTE v24[528]; // [rsp+50h] [rbp-B0h] BYREF\n\n  v23 = a3;\n  fmt::BasicWriter<char>::BasicWriter<char>(v24);\n  *(_OWORD *)String = 0;\n  v22 = 0;\n  sub_1401C5360(a3, byte_14070ECF8, (__int64 *)String);\n  v5 = String[1];\n  v6 = String[0];\n  if ( (unsigned __int64)((String[1] - String[0]) >> 5) >= 6 )\n  {\n    if ( *((_QWORD *)String[0] + 3) > 0xFu )\n      v6 = *(char **)String[0];\n    *(_DWORD *)a2 = atoi(v6);\n    v7 = String[0] + 32;\n    if ( *((_QWORD *)String[0] + 7) > 0xFu )\n      v7 = *(char **)v7;\n    *(_DWORD *)(a2 + 4) = atoi(v7);\n    v8 = String[0] + 64;\n    if ( *((_QWORD *)String[0] + 11) > 0xFu )\n      v8 = *(char **)v8;\n    v9 = atof(v8);\n    *(float *)(a2 + 12) = v9;\n    v10 = String[0] + 96;\n    if ( *((_QWORD *)String[0] + 15) > 0xFu )\n      v10 = *(char **)v10;\n    *(_DWORD *)(a2 + 16) = (int)atof(v10);\n    v11 = String[0] + 128;\n    if ( *((_QWORD *)String[0] + 19) > 0xFu )\n      v11 = *(char **)v11;\n    *(float *)(a2 + 28) = (float)atoi(v11);\n    v12 = String[0] + 160;\n    if ( *((_QWORD *)String[0] + 23) > 0xFu )\n      v12 = *(char **)v12;\n    *(float *)(a2 + 32) = (float)atoi(v12);\n    v5 = String[1];\n    v6 = String[0];\n    if ( (unsigned __int64)((String[1] - String[0]) >> 5) >= 0xB )\n    {\n      v13 = String[0] + 192;\n      if ( *((_QWORD *)String[0] + 27) > 0xFu )\n        v13 = *(char **)v13;\n      *(_BYTE *)(a2 + 24) = atoi(v13) != 0;\n      v14 = String[0] + 224;\n      if ( *((_QWORD *)String[0] + 31) > 0xFu )\n        v14 = *(char **)v14;\n      v15 = atof(v14);\n      *(float *)(a2 + 8) = v15;\n      v16 = String[0] + 256;\n      if ( *((_QWORD *)String[0] + 35) > 0xFu )\n        v16 = *(char **)v16;\n      v17 = atof(v16);\n      *(float *)(a2 + 20) = v17;\n      v18 = String[0] + 288;\n      if ( *((_QWORD *)String[0] + 39) > 0xFu )\n        v18 = *(char **)v18;\n      *(_BYTE *)(a2 + 25) = atoi(v18) != 0;\n      v19 = String[0] + 320;\n      if ( *((_QWORD *)String[0] + 43) > 0xFu )\n        v19 = *(char **)v19;\n      *(_BYTE *)(a2 + 38) = atoi(v19) != 0;\n      v5 = String[1];\n      v6 = String[0];\n    }\n  }\n  if ( v6 )\n  {\n    if ( v6 != v5 )\n    {\n      do\n      {\n        sub_14003D310((__int64)v6);\n        v6 += 32;\n      }\n      while ( v6 != v5 );\n      v6 = String[0];\n    }\n    v20 = v6;\n    if ( ((v22 - (_QWORD)v6) & 0xFFFFFFFFFFFFFFE0uLL) >= 0x1000 )\n    {\n      v6 = *((char **)v6 - 1);\n      if ( (unsigned __int64)(v20 - v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v6);\n    *(_OWORD *)String = 0;\n    v22 = 0;\n  }\n  fmt::BasicWriter<char>::~BasicWriter<char>(v24);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameManager::loadDpadFromString from 0x140282330 to 0x140282617 (743 bytes)\n; \n; 11 xrefs:\n; > GameManager::loadDPadLayout @ 0x140281e55\n; > GameManager::loadDPadLayout @ 0x140281fb5\n; > GameManager::loadDPadLayout @ 0x140281fd5\n; > GameManager::loadDPadLayout @ 0x140281ff5\n; > GameManager::loadDPadLayout @ 0x140282015\n; > GameManager::dataLoaded @ 0x140283991\n; > GameManager::dataLoaded @ 0x1402839b5\n; > GameManager::dataLoaded @ 0x1402839d9\n; > GameManager::dataLoaded @ 0x1402839fd\n; > GameManager::dataLoaded @ 0x140283a21\n; > <???> @ 0x14091d0b4\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:29:00 +0000\n; \nmov     [rsp-8+arg_0], rbx                                             ; +0x0, 0x140282330\nmov     [rsp-8+arg_18], rsi                                            ; +0x5, 0x140282335\npush    rbp                                                            ; +0xa, 0x14028233a\npush    rdi                                                            ; +0xb, 0x14028233b\npush    r14                                                            ; +0xc, 0x14028233c\nlea     rbp, [rsp-170h]                                                ; +0xe, 0x14028233e\nsub     rsp, 270h                                                      ; +0x16, 0x140282346\nmov     rax, cs:__security_cookie                                      ; +0x1d, 0x14028234d\nxor     rax, rsp                                                       ; +0x24, 0x140282354\nmov     [rbp+180h+var_20], rax                                         ; +0x27, 0x140282357\nmov     r14, r8                                                        ; +0x2e, 0x14028235e\nmov     rsi, rdx                                                       ; +0x31, 0x140282361\nmov     [rsp+280h+var_238], r8                                         ; +0x34, 0x140282364\nlea     rcx, [rsp+280h+var_230]                                        ; +0x39, 0x140282369\ncall    cs:??0?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter<char>::BasicWriter<char>(void) ; +0x3e, 0x14028236e\nnop                                                                    ; +0x44, 0x140282374\nxorps   xmm0, xmm0                                                     ; +0x45, 0x140282375\nmovdqu  xmmword ptr [rsp+280h+String], xmm0                            ; +0x48, 0x140282378\nmov     [rsp+280h+var_240], 0                                          ; +0x4e, 0x14028237e\nlea     r8, [rsp+280h+String]                                          ; +0x57, 0x140282387\nlea     rdx, byte_14070ECF8                                            ; +0x5c, 0x14028238c\nmov     rcx, r14                                                       ; +0x63, 0x140282393\ncall    sub_1401C5360                                                  ; +0x66, 0x140282396\nmov     rdi, [rsp+280h+String+8]                                       ; +0x6b, 0x14028239b\nmov     rax, rdi                                                       ; +0x70, 0x1402823a0\nmov     rbx, [rsp+280h+String]                                         ; +0x73, 0x1402823a3\nsub     rax, rbx                                                       ; +0x78, 0x1402823a8\nsar     rax, 5                                                         ; +0x7b, 0x1402823ab\ncmp     rax, 6                                                         ; +0x7f, 0x1402823af\njb      loc_14028255B                                                  ; +0x83, 0x1402823b3\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x89, 0x1402823b9\njbe     short loc_1402823C3                                            ; +0x8e, 0x1402823be\nmov     rbx, [rbx]                                                     ; +0x90, 0x1402823c0\nmov     rcx, rbx; String                                               ; +0x93, 0x1402823c3\ncall    cs:atoi                                                        ; +0x96, 0x1402823c6\nmov     [rsi], eax                                                     ; +0x9c, 0x1402823cc\nmov     rcx, [rsp+280h+String]                                         ; +0x9e, 0x1402823ce\nadd     rcx, 20h ; ' '                                                 ; +0xa3, 0x1402823d3\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0xa7, 0x1402823d7\njbe     short loc_1402823E1                                            ; +0xac, 0x1402823dc\nmov     rcx, [rcx]; String                                             ; +0xae, 0x1402823de\ncall    cs:atoi                                                        ; +0xb1, 0x1402823e1\nmov     [rsi+4], eax                                                   ; +0xb7, 0x1402823e7\nmov     rcx, [rsp+280h+String]                                         ; +0xba, 0x1402823ea\nadd     rcx, 40h ; '@'                                                 ; +0xbf, 0x1402823ef\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0xc3, 0x1402823f3\njbe     short loc_1402823FD                                            ; +0xc8, 0x1402823f8\nmov     rcx, [rcx]; String                                             ; +0xca, 0x1402823fa\ncall    cs:atof                                                        ; +0xcd, 0x1402823fd\nxorps   xmm1, xmm1                                                     ; +0xd3, 0x140282403\ncvtsd2ss xmm1, xmm0                                                    ; +0xd6, 0x140282406\nmovss   dword ptr [rsi+0Ch], xmm1                                      ; +0xda, 0x14028240a\nmov     rcx, [rsp+280h+String]                                         ; +0xdf, 0x14028240f\nadd     rcx, 60h ; '`'                                                 ; +0xe4, 0x140282414\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0xe8, 0x140282418\njbe     short loc_140282422                                            ; +0xed, 0x14028241d\nmov     rcx, [rcx]; String                                             ; +0xef, 0x14028241f\ncall    cs:atof                                                        ; +0xf2, 0x140282422\ncvttsd2si eax, xmm0                                                    ; +0xf8, 0x140282428\nmov     [rsi+10h], eax                                                 ; +0xfc, 0x14028242c\nmov     rcx, [rsp+280h+String]                                         ; +0xff, 0x14028242f\nsub     rcx, 0FFFFFFFFFFFFFF80h                                        ; +0x104, 0x140282434\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x108, 0x140282438\njbe     short loc_140282442                                            ; +0x10d, 0x14028243d\nmov     rcx, [rcx]; String                                             ; +0x10f, 0x14028243f\ncall    cs:atoi                                                        ; +0x112, 0x140282442\nmovd    xmm0, eax                                                      ; +0x118, 0x140282448\ncvtdq2ps xmm0, xmm0                                                    ; +0x11c, 0x14028244c\nmovss   dword ptr [rsi+1Ch], xmm0                                      ; +0x11f, 0x14028244f\nmov     rcx, [rsp+280h+String]                                         ; +0x124, 0x140282454\nadd     rcx, 0A0h                                                      ; +0x129, 0x140282459\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x130, 0x140282460\njbe     short loc_14028246A                                            ; +0x135, 0x140282465\nmov     rcx, [rcx]; String                                             ; +0x137, 0x140282467\ncall    cs:atoi                                                        ; +0x13a, 0x14028246a\nmovd    xmm0, eax                                                      ; +0x140, 0x140282470\ncvtdq2ps xmm0, xmm0                                                    ; +0x144, 0x140282474\nmovss   dword ptr [rsi+20h], xmm0                                      ; +0x147, 0x140282477\nmov     rdi, [rsp+280h+String+8]                                       ; +0x14c, 0x14028247c\nmov     rax, rdi                                                       ; +0x151, 0x140282481\nmov     rbx, [rsp+280h+String]                                         ; +0x154, 0x140282484\nsub     rax, rbx                                                       ; +0x159, 0x140282489\nsar     rax, 5                                                         ; +0x15c, 0x14028248c\ncmp     rax, 0Bh                                                       ; +0x160, 0x140282490\njb      loc_14028255B                                                  ; +0x164, 0x140282494\nlea     rcx, [rbx+0C0h]                                                ; +0x16a, 0x14028249a\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x171, 0x1402824a1\njbe     short loc_1402824AB                                            ; +0x176, 0x1402824a6\nmov     rcx, [rcx]; String                                             ; +0x178, 0x1402824a8\ncall    cs:atoi                                                        ; +0x17b, 0x1402824ab\ntest    eax, eax                                                       ; +0x181, 0x1402824b1\nsetnz   al                                                             ; +0x183, 0x1402824b3\nmov     [rsi+18h], al                                                  ; +0x186, 0x1402824b6\nmov     rcx, [rsp+280h+String]                                         ; +0x189, 0x1402824b9\nadd     rcx, 0E0h                                                      ; +0x18e, 0x1402824be\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x195, 0x1402824c5\njbe     short loc_1402824CF                                            ; +0x19a, 0x1402824ca\nmov     rcx, [rcx]; String                                             ; +0x19c, 0x1402824cc\ncall    cs:atof                                                        ; +0x19f, 0x1402824cf\nxorps   xmm1, xmm1                                                     ; +0x1a5, 0x1402824d5\ncvtsd2ss xmm1, xmm0                                                    ; +0x1a8, 0x1402824d8\nmovss   dword ptr [rsi+8], xmm1                                        ; +0x1ac, 0x1402824dc\nmov     rcx, [rsp+280h+String]                                         ; +0x1b1, 0x1402824e1\nadd     rcx, 100h                                                      ; +0x1b6, 0x1402824e6\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x1bd, 0x1402824ed\njbe     short loc_1402824F7                                            ; +0x1c2, 0x1402824f2\nmov     rcx, [rcx]; String                                             ; +0x1c4, 0x1402824f4\ncall    cs:atof                                                        ; +0x1c7, 0x1402824f7\nxorps   xmm1, xmm1                                                     ; +0x1cd, 0x1402824fd\ncvtsd2ss xmm1, xmm0                                                    ; +0x1d0, 0x140282500\nmovss   dword ptr [rsi+14h], xmm1                                      ; +0x1d4, 0x140282504\nmov     rcx, [rsp+280h+String]                                         ; +0x1d9, 0x140282509\nadd     rcx, 120h                                                      ; +0x1de, 0x14028250e\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x1e5, 0x140282515\njbe     short loc_14028251F                                            ; +0x1ea, 0x14028251a\nmov     rcx, [rcx]; String                                             ; +0x1ec, 0x14028251c\ncall    cs:atoi                                                        ; +0x1ef, 0x14028251f\ntest    eax, eax                                                       ; +0x1f5, 0x140282525\nsetnz   al                                                             ; +0x1f7, 0x140282527\nmov     [rsi+19h], al                                                  ; +0x1fa, 0x14028252a\nmov     rcx, [rsp+280h+String]                                         ; +0x1fd, 0x14028252d\nadd     rcx, 140h                                                      ; +0x202, 0x140282532\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x209, 0x140282539\njbe     short loc_140282543                                            ; +0x20e, 0x14028253e\nmov     rcx, [rcx]; String                                             ; +0x210, 0x140282540\ncall    cs:atoi                                                        ; +0x213, 0x140282543\ntest    eax, eax                                                       ; +0x219, 0x140282549\nsetnz   al                                                             ; +0x21b, 0x14028254b\nmov     [rsi+26h], al                                                  ; +0x21e, 0x14028254e\nmov     rdi, [rsp+280h+String+8]                                       ; +0x221, 0x140282551\nmov     rbx, [rsp+280h+String]                                         ; +0x226, 0x140282556\ntest    rbx, rbx                                                       ; +0x22b, 0x14028255b\njz      short loc_1402825DC                                            ; +0x22e, 0x14028255e\ncmp     rbx, rdi                                                       ; +0x230, 0x140282560\njz      short loc_14028257B                                            ; +0x233, 0x140282563\nmov     rcx, rbx                                                       ; +0x235, 0x140282565\ncall    sub_14003D310                                                  ; +0x238, 0x140282568\nadd     rbx, 20h ; ' '                                                 ; +0x23d, 0x14028256d\ncmp     rbx, rdi                                                       ; +0x241, 0x140282571\njnz     short loc_140282565                                            ; +0x244, 0x140282574\nmov     rbx, [rsp+280h+String]                                         ; +0x246, 0x140282576\nmov     rdx, [rsp+280h+var_240]                                        ; +0x24b, 0x14028257b\nsub     rdx, rbx                                                       ; +0x250, 0x140282580\nand     rdx, 0FFFFFFFFFFFFFFE0h                                        ; +0x253, 0x140282583\nmov     rax, rbx                                                       ; +0x257, 0x140282587\ncmp     rdx, 1000h                                                     ; +0x25a, 0x14028258a\njb      short loc_1402825C2                                            ; +0x261, 0x140282591\nadd     rdx, 27h ; '''                                                 ; +0x263, 0x140282593\nmov     rbx, [rbx-8]                                                   ; +0x267, 0x140282597\nsub     rax, rbx                                                       ; +0x26b, 0x14028259b\nsub     rax, 8                                                         ; +0x26e, 0x14028259e\ncmp     rax, 1Fh                                                       ; +0x272, 0x1402825a2\njbe     short loc_1402825C2                                            ; +0x276, 0x1402825a6\nmov     [rsp+280h+Reserved], 0; Reserved                               ; +0x278, 0x1402825a8\nxor     r9d, r9d; LineNo                                               ; +0x281, 0x1402825b1\nxor     r8d, r8d; FileName                                             ; +0x284, 0x1402825b4\nxor     edx, edx; FunctionName                                         ; +0x287, 0x1402825b7\nxor     ecx, ecx; Expression                                           ; +0x289, 0x1402825b9\ncall    cs:_invoke_watson                                              ; +0x28b, 0x1402825bb\nalign 2                                                                ; +0x291, 0x1402825c1\nmov     rcx, rbx; Block                                                ; +0x292, 0x1402825c2\ncall    j_j_free                                                       ; +0x295, 0x1402825c5\nxorps   xmm0, xmm0                                                     ; +0x29a, 0x1402825ca\nmovdqu  xmmword ptr [rsp+280h+String], xmm0                            ; +0x29d, 0x1402825cd\nmov     [rsp+280h+var_240], 0                                          ; +0x2a3, 0x1402825d3\nlea     rcx, [rsp+280h+var_230]                                        ; +0x2ac, 0x1402825dc\ncall    cs:__imp_??1?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter<char>::~BasicWriter<char>(void) ; +0x2b1, 0x1402825e1\nnop                                                                    ; +0x2b7, 0x1402825e7\nmov     rcx, r14                                                       ; +0x2b8, 0x1402825e8\ncall    sub_14003D310                                                  ; +0x2bb, 0x1402825eb\nmov     rcx, [rbp+180h+var_20]                                         ; +0x2c0, 0x1402825f0\nxor     rcx, rsp; StackCookie                                          ; +0x2c7, 0x1402825f7\ncall    __security_check_cookie                                        ; +0x2ca, 0x1402825fa\nlea     r11, [rsp+280h+var_10]                                         ; +0x2cf, 0x1402825ff\nmov     rbx, [r11+20h]                                                 ; +0x2d7, 0x140282607\nmov     rsi, [r11+38h]                                                 ; +0x2db, 0x14028260b\nmov     rsp, r11                                                       ; +0x2df, 0x14028260f\npop     r14                                                            ; +0x2e2, 0x140282612\npop     rdi                                                            ; +0x2e4, 0x140282614\npop     rbp                                                            ; +0x2e5, 0x140282615\nretn                                                                   ; +0x2e6, 0x140282616", "xrefs": ["GameManager::loadDPadLayout @ 0x140281e55", "GameManager::loadDPadLayout @ 0x140281fb5", "GameManager::loadDPadLayout @ 0x140281fd5", "GameManager::loadDPadLayout @ 0x140281ff5", "GameManager::loadDPadLayout @ 0x140282015", "GameManager::dataLoaded @ 0x140283991", "GameManager::dataLoaded @ 0x1402839b5", "GameManager::dataLoaded @ 0x1402839d9", "GameManager::dataLoaded @ 0x1402839fd", "GameManager::dataLoaded @ 0x140283a21", "<???> @ 0x14091d0b4"], "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"}