{"type": "func", "start": 4301500384, "end": 4301500662, "name": "EditorUI::setDpadStep", "pseudocode": "// \n// EditorUI::setDpadStep from 0x10063afe0 to 0x10063b0f6 (278 bytes)\n// \n// 4 xrefs:\n// > EditorUI::createDpadMoveMenu @ 0x10063adac\n// > EditorUI::onDpadStep @ 0x10063afb1\n// > EditorUI::onDpadStep @ 0x10063afd4\n// > EditorUI::nextDpadStep @ 0x10063b310\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 12:34:40 +0000\n// \n\n__int64 __fastcall EditorUI::setDpadStep(__int64 a1, unsigned int a2, float a3)\n{\n  __int64 result; // rax\n  int v5; // r15d\n  __int64 v6; // rax\n  int v7; // r15d\n  __int64 v8; // rax\n  __int64 v9; // rax\n  const char *v10; // rsi\n\n  if ( a2 <= 8 && *(_QWORD *)(a1 + 1592) )\n  {\n    *(_DWORD *)(a1 + 1600) = a2;\n    if ( (int)sub_1007FEF90(*(_QWORD *)(a1 + 1608)) > 0 )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = sub_1007FEFE0(*(_QWORD *)(a1 + 1608), (unsigned int)v5);\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 72LL))(\n          v6,\n          (unsigned int)(v5 + *((_DWORD *)&unk_100B7FD50 + 8 * *(int *)(a1 + 1600))));\n        ++v5;\n      }\n      while ( v5 < (int)sub_1007FEF90(*(_QWORD *)(a1 + 1608)) );\n    }\n    if ( (int)sub_1007FEF90(*(_QWORD *)(a1 + 1616)) > 0 )\n    {\n      v7 = 0;\n      do\n      {\n        v8 = sub_1007FEFE0(*(_QWORD *)(a1 + 1616), (unsigned int)v7);\n        v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1072LL))(v8);\n        v10 = \"GJ_button_04.png\";\n        if ( a2 == v7 )\n          v10 = \"GJ_button_02.png\";\n        ButtonSprite::updateBGImage(v9, (__int64)v10);\n        ++v7;\n      }\n      while ( v7 < (int)sub_1007FEF90(*(_QWORD *)(a1 + 1616)) );\n    }\n    return EditorUI::updateDpadStepLabel(a1, a3);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::setDpadStep from 0x10063afe0 to 0x10063b0f6 (278 bytes)\n; \n; 4 xrefs:\n; > EditorUI::createDpadMoveMenu @ 0x10063adac\n; > EditorUI::onDpadStep @ 0x10063afb1\n; > EditorUI::onDpadStep @ 0x10063afd4\n; > EditorUI::nextDpadStep @ 0x10063b310\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 12:34:40 +0000\n; \npush    rbp                                                            ; +0x0, 0x10063afe0\nmov     rbp, rsp                                                       ; +0x1, 0x10063afe1\npush    r15                                                            ; +0x4, 0x10063afe4\npush    r14                                                            ; +0x6, 0x10063afe6\npush    r13                                                            ; +0x8, 0x10063afe8\npush    r12                                                            ; +0xa, 0x10063afea\npush    rbx                                                            ; +0xc, 0x10063afec\npush    rax                                                            ; +0xd, 0x10063afed\ncmp     esi, 8                                                         ; +0xe, 0x10063afee\nja      loc_10063B0E7                                                  ; +0x11, 0x10063aff1\nmov     rbx, rdi                                                       ; +0x17, 0x10063aff7\ncmp     qword ptr [rdi+638h], 0                                        ; +0x1a, 0x10063affa\njz      loc_10063B0E7                                                  ; +0x22, 0x10063b002\nmov     r14d, esi                                                      ; +0x28, 0x10063b008\nmov     [rbx+640h], esi                                                ; +0x2b, 0x10063b00b\nmov     rdi, [rbx+648h]                                                ; +0x31, 0x10063b011\ncall    sub_1007FEF90                                                  ; +0x38, 0x10063b018\ntest    eax, eax                                                       ; +0x3d, 0x10063b01d\njle     short loc_10063B06E                                            ; +0x3f, 0x10063b01f\nxor     r15d, r15d                                                     ; +0x41, 0x10063b021\nlea     r12, unk_100B7FD50                                             ; +0x44, 0x10063b024\nnop     dword ptr [rax+rax+00h]                                        ; +0x4b, 0x10063b02b\nmov     rdi, [rbx+648h]                                                ; +0x50, 0x10063b030\nmov     esi, r15d                                                      ; +0x57, 0x10063b037\ncall    sub_1007FEFE0                                                  ; +0x5a, 0x10063b03a\nmovsxd  rcx, dword ptr [rbx+640h]                                      ; +0x5f, 0x10063b03f\nshl     rcx, 5                                                         ; +0x66, 0x10063b046\nmov     esi, [rcx+r12]                                                 ; +0x6a, 0x10063b04a\nadd     esi, r15d                                                      ; +0x6e, 0x10063b04e\nmov     rcx, [rax]                                                     ; +0x71, 0x10063b051\nmov     rdi, rax                                                       ; +0x74, 0x10063b054\ncall    qword ptr [rcx+48h]                                            ; +0x77, 0x10063b057\ninc     r15d                                                           ; +0x7a, 0x10063b05a\nmov     rdi, [rbx+648h]                                                ; +0x7d, 0x10063b05d\ncall    sub_1007FEF90                                                  ; +0x84, 0x10063b064\ncmp     r15d, eax                                                      ; +0x89, 0x10063b069\njl      short loc_10063B030                                            ; +0x8c, 0x10063b06c\nmov     rdi, [rbx+650h]                                                ; +0x8e, 0x10063b06e\ncall    sub_1007FEF90                                                  ; +0x95, 0x10063b075\ntest    eax, eax                                                       ; +0x9a, 0x10063b07a\njle     short loc_10063B0D1                                            ; +0x9c, 0x10063b07c\nxor     r15d, r15d                                                     ; +0x9e, 0x10063b07e\nlea     r12, aGjButton02Png; \"GJ_button_02.png\"                        ; +0xa1, 0x10063b081\nlea     r13, aGjButton04Png; \"GJ_button_04.png\"                        ; +0xa8, 0x10063b088\nnop                                                                    ; +0xaf, 0x10063b08f\nmov     rdi, [rbx+650h]                                                ; +0xb0, 0x10063b090\nmov     esi, r15d                                                      ; +0xb7, 0x10063b097\ncall    sub_1007FEFE0                                                  ; +0xba, 0x10063b09a\nmov     rcx, [rax]                                                     ; +0xbf, 0x10063b09f\nmov     rdi, rax                                                       ; +0xc2, 0x10063b0a2\ncall    qword ptr [rcx+430h]                                           ; +0xc5, 0x10063b0a5\ncmp     r14d, r15d                                                     ; +0xcb, 0x10063b0ab\nmov     rsi, r13                                                       ; +0xce, 0x10063b0ae\ncmovz   rsi, r12                                                       ; +0xd1, 0x10063b0b1\nmov     rdi, rax                                                       ; +0xd5, 0x10063b0b5\ncall    ButtonSprite__updateBGImage                                    ; +0xd8, 0x10063b0b8\ninc     r15d                                                           ; +0xdd, 0x10063b0bd\nmov     rdi, [rbx+650h]                                                ; +0xe0, 0x10063b0c0\ncall    sub_1007FEF90                                                  ; +0xe7, 0x10063b0c7\ncmp     r15d, eax                                                      ; +0xec, 0x10063b0cc\njl      short loc_10063B090                                            ; +0xef, 0x10063b0cf\nmov     rdi, rbx                                                       ; +0xf1, 0x10063b0d1\nadd     rsp, 8                                                         ; +0xf4, 0x10063b0d4\npop     rbx                                                            ; +0xf8, 0x10063b0d8\npop     r12                                                            ; +0xf9, 0x10063b0d9\npop     r13                                                            ; +0xfb, 0x10063b0db\npop     r14                                                            ; +0xfd, 0x10063b0dd\npop     r15                                                            ; +0xff, 0x10063b0df\npop     rbp                                                            ; +0x101, 0x10063b0e1\njmp     EditorUI__updateDpadStepLabel                                  ; +0x102, 0x10063b0e2\nadd     rsp, 8                                                         ; +0x107, 0x10063b0e7\npop     rbx                                                            ; +0x10b, 0x10063b0eb\npop     r12                                                            ; +0x10c, 0x10063b0ec\npop     r13                                                            ; +0x10e, 0x10063b0ee\npop     r14                                                            ; +0x110, 0x10063b0f0\npop     r15                                                            ; +0x112, 0x10063b0f2\npop     rbp                                                            ; +0x114, 0x10063b0f4\nretn                                                                   ; +0x115, 0x10063b0f5", "xrefs": ["EditorUI::createDpadMoveMenu @ 0x10063adac", "EditorUI::onDpadStep @ 0x10063afb1", "EditorUI::onDpadStep @ 0x10063afd4", "EditorUI::nextDpadStep @ 0x10063b310"], "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"}