{"type": "func", "start": 5370756704, "end": 5370757004, "name": "EditorUI::setDpadStep", "pseudocode": "// \n// EditorUI::setDpadStep from 0x1401f3e60 to 0x1401f3f8c (300 bytes)\n// \n// 6 xrefs:\n// > EditorUI::handleEditorAction @ 0x1401c372c\n// > EditorUI::createDpadMoveMenu @ 0x1401f3df6\n// > EditorUI::onDpadStep @ 0x1401f3fed\n// > <???> @ 0x1408a32f4\n// > <???> @ 0x1408a3304\n// > <???> @ 0x14091aa20\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:28:09 +0000\n// \n\nvoid __fastcall EditorUI::setDpadStep(__int64 a1, unsigned int a2)\n{\n  signed int v4; // esi\n  signed int i; // edi\n  struct cocos2d::CCObject *v6; // rax\n  struct cocos2d::CCObject *v7; // rax\n  const char *v8; // rdi\n  __int64 v9; // rax\n\n  if ( *(_QWORD *)(a1 + 1664) && a2 <= 8 )\n  {\n    v4 = 0;\n    *(_DWORD *)(a1 + 1672) = a2;\n    for ( i = 0; i < (int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1680)); ++i )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1680), i);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v6 + 64LL))(\n        v6,\n        (unsigned int)(i + *((_DWORD *)&unk_1407032B0 + 8 * *(int *)(a1 + 1672))));\n    }\n    if ( (int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1688)) > 0 )\n    {\n      do\n      {\n        v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1688), v4);\n        v8 = \"GJ_button_04.png\";\n        if ( v4 == a2 )\n          v8 = \"GJ_button_02.png\";\n        v9 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 952LL))(v7);\n        ButtonSprite::updateBGImage(v9, v8);\n        ++v4;\n      }\n      while ( v4 < (int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1688)) );\n    }\n    EditorUI::updateDpadStepLabel(a1);\n  }\n}", "assembly": "; \n; EditorUI::setDpadStep from 0x1401f3e60 to 0x1401f3f8c (300 bytes)\n; \n; 6 xrefs:\n; > EditorUI::handleEditorAction @ 0x1401c372c\n; > EditorUI::createDpadMoveMenu @ 0x1401f3df6\n; > EditorUI::onDpadStep @ 0x1401f3fed\n; > <???> @ 0x1408a32f4\n; > <???> @ 0x1408a3304\n; > <???> @ 0x14091aa20\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:28:09 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1401f3e60\npush    rbp                                                            ; +0x5, 0x1401f3e65\nsub     rsp, 20h                                                       ; +0x6, 0x1401f3e66\ncmp     qword ptr [rcx+680h], 0                                        ; +0xa, 0x1401f3e6a\nmov     ebp, edx                                                       ; +0x12, 0x1401f3e72\nmov     rbx, rcx                                                       ; +0x14, 0x1401f3e74\njz      loc_1401F3F81                                                  ; +0x17, 0x1401f3e77\ncmp     edx, 8                                                         ; +0x1d, 0x1401f3e7d\nja      loc_1401F3F81                                                  ; +0x20, 0x1401f3e80\nmov     [rsp+28h+arg_0], rsi                                           ; +0x26, 0x1401f3e86\nxor     esi, esi                                                       ; +0x2b, 0x1401f3e8b\nmov     [rcx+688h], edx                                                ; +0x2d, 0x1401f3e8d\nmov     rcx, [rcx+690h]                                                ; +0x33, 0x1401f3e93\nmov     [rsp+28h+arg_8], rdi                                           ; +0x3a, 0x1401f3e9a\nmov     edi, esi                                                       ; +0x3f, 0x1401f3e9f\nmov     [rsp+28h+arg_10], r14                                          ; +0x41, 0x1401f3ea1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x46, 0x1401f3ea6\ntest    eax, eax                                                       ; +0x4c, 0x1401f3eac\njle     short loc_1401F3F00                                            ; +0x4e, 0x1401f3eae\nlea     r14, unk_1407032B0                                             ; +0x50, 0x1401f3eb0\nnop     word ptr [rax+rax+00000000h]                                   ; +0x57, 0x1401f3eb7\nmov     rcx, [rbx+690h]                                                ; +0x60, 0x1401f3ec0\nmov     edx, edi                                                       ; +0x67, 0x1401f3ec7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x1401f3ec9\nmovsxd  rcx, dword ptr [rbx+688h]                                      ; +0x6f, 0x1401f3ecf\nshl     rcx, 5                                                         ; +0x76, 0x1401f3ed6\nmov     edx, [rcx+r14]                                                 ; +0x7a, 0x1401f3eda\nmov     rcx, [rax]                                                     ; +0x7e, 0x1401f3ede\nadd     edx, edi                                                       ; +0x81, 0x1401f3ee1\nmov     r8, [rcx+40h]                                                  ; +0x83, 0x1401f3ee3\nmov     rcx, rax                                                       ; +0x87, 0x1401f3ee7\ncall    r8                                                             ; +0x8a, 0x1401f3eea\nmov     rcx, [rbx+690h]                                                ; +0x8d, 0x1401f3eed\ninc     edi                                                            ; +0x94, 0x1401f3ef4\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x96, 0x1401f3ef6\ncmp     edi, eax                                                       ; +0x9c, 0x1401f3efc\njl      short loc_1401F3EC0                                            ; +0x9e, 0x1401f3efe\nmov     rcx, [rbx+698h]                                                ; +0xa0, 0x1401f3f00\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa7, 0x1401f3f07\ntest    eax, eax                                                       ; +0xad, 0x1401f3f0d\njle     short loc_1401F3F6A                                            ; +0xaf, 0x1401f3f0f\nlea     r14, aGjButton02Png; \"GJ_button_02.png\"                        ; +0xb1, 0x1401f3f11\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xb8, 0x1401f3f18\nmov     rcx, [rbx+698h]                                                ; +0xc0, 0x1401f3f20\nmov     edx, esi                                                       ; +0xc7, 0x1401f3f27\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xc9, 0x1401f3f29\ncmp     esi, ebp                                                       ; +0xcf, 0x1401f3f2f\nlea     rdi, aGjButton04Png; \"GJ_button_04.png\"                        ; +0xd1, 0x1401f3f31\ncmovz   rdi, r14                                                       ; +0xd8, 0x1401f3f38\nmov     rcx, [rax]                                                     ; +0xdc, 0x1401f3f3c\nmov     r8, [rcx+3B8h]                                                 ; +0xdf, 0x1401f3f3f\nmov     rcx, rax                                                       ; +0xe6, 0x1401f3f46\ncall    r8                                                             ; +0xe9, 0x1401f3f49\nmov     rcx, rax                                                       ; +0xec, 0x1401f3f4c\nmov     rdx, rdi                                                       ; +0xef, 0x1401f3f4f\ncall    ButtonSprite__updateBGImage                                    ; +0xf2, 0x1401f3f52\nmov     rcx, [rbx+698h]                                                ; +0xf7, 0x1401f3f57\ninc     esi                                                            ; +0xfe, 0x1401f3f5e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x100, 0x1401f3f60\ncmp     esi, eax                                                       ; +0x106, 0x1401f3f66\njl      short loc_1401F3F20                                            ; +0x108, 0x1401f3f68\nmov     rcx, rbx                                                       ; +0x10a, 0x1401f3f6a\ncall    EditorUI__updateDpadStepLabel                                  ; +0x10d, 0x1401f3f6d\nmov     r14, [rsp+28h+arg_10]                                          ; +0x112, 0x1401f3f72\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x117, 0x1401f3f77\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x11c, 0x1401f3f7c\nmov     rbx, [rsp+28h+arg_18]                                          ; +0x121, 0x1401f3f81\nadd     rsp, 20h                                                       ; +0x126, 0x1401f3f86\npop     rbp                                                            ; +0x12a, 0x1401f3f8a\nretn                                                                   ; +0x12b, 0x1401f3f8b", "xrefs": ["EditorUI::handleEditorAction @ 0x1401c372c", "EditorUI::createDpadMoveMenu @ 0x1401f3df6", "EditorUI::onDpadStep @ 0x1401f3fed", "<???> @ 0x1408a32f4", "<???> @ 0x1408a3304", "<???> @ 0x14091aa20"], "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"}