{"type": "func", "start": 7302572, "end": 7302720, "name": "EditorUI::setDpadStep", "pseudocode": "// \n// EditorUI::setDpadStep from 0x6f6dac to 0x6f6e40 (148 bytes)\n// \n// 3 xrefs:\n// > EditorUI::createDpadMoveMenu @ 0x6f73ec\n// > EditorUI::nextDpadStep @ 0x6f8046\n// > EditorUI::onDpadStep @ 0x6f8082\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:39 +0000\n// \n\nint __fastcall EditorUI::setDpadStep(int this, unsigned int a2)\n{\n  cocos2d::CCArray **v2; // r4\n  signed int v4; // r5\n  int v5; // r0\n  int v6; // r1\n  int v7; // r7\n  void (__fastcall *v8)(int, int); // r8\n  int v9; // r0\n  signed int i; // r5\n  int v11; // r0\n  char *v12; // r0\n  const char *v14; // r1\n\n  v2 = (cocos2d::CCArray **)this;\n  if ( *(_DWORD *)(this + 1056) && a2 <= 8 )\n  {\n    v4 = 0;\n    *(_DWORD *)(this + 1060) = a2;\n    while ( v4 < cocos2d::CCArray::count(v2[267]) )\n    {\n      v5 = cocos2d::CCArray::objectAtIndex(v2[267], v4);\n      v6 = v4++;\n      v7 = v5;\n      v8 = *(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 36);\n      v9 = EditorUI::selectedMoveCommand((EditorUI *)v2, v6);\n      v8(v7, v9);\n    }\n    for ( i = 0; i < cocos2d::CCArray::count(v2[268]); ++i )\n    {\n      v11 = cocos2d::CCArray::objectAtIndex(v2[268], i);\n      v12 = (char *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 536))(v11);\n      if ( i == a2 )\n        v14 = \"GJ_button_02.png\";\n      else\n        v14 = \"GJ_button_04.png\";\n      ButtonSprite::updateBGImage(v12, v14);\n    }\n    return EditorUI::updateDpadStepLabel((int)v2);\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::setDpadStep from 0x6f6dac to 0x6f6e40 (148 bytes)\n; \n; 3 xrefs:\n; > EditorUI::createDpadMoveMenu @ 0x6f73ec\n; > EditorUI::nextDpadStep @ 0x6f8046\n; > EditorUI::onDpadStep @ 0x6f8082\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:39 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x6f6dac\nMOV             R4, R0                                                 ; +0x4, 0x6f6db0\nLDR.W           R3, [R0,#0x420]                                        ; +0x6, 0x6f6db2\nMOV             R6, R1                                                 ; +0xa, 0x6f6db6\nCMP             R3, #0                                                 ; +0xc, 0x6f6db8\nBEQ             locret_6F6E3C                                          ; +0xe, 0x6f6dba\nCMP             R1, #8                                                 ; +0x10, 0x6f6dbc\nBHI             locret_6F6E3C                                          ; +0x12, 0x6f6dbe\nMOVS            R5, #0                                                 ; +0x14, 0x6f6dc0\nSTR.W           R1, [R4,#0x424]                                        ; +0x16, 0x6f6dc2\nLDR.W           R0, [R4,#0x42C]; this                                  ; +0x1a, 0x6f6dc6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1e, 0x6f6dca\nCMP             R5, R0                                                 ; +0x22, 0x6f6dce\nBGE             loc_6F6DF6                                             ; +0x24, 0x6f6dd0\nMOV             R1, R5; unsigned int                                   ; +0x26, 0x6f6dd2\nLDR.W           R0, [R4,#0x42C]; this                                  ; +0x28, 0x6f6dd4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2c, 0x6f6dd8\nMOV             R1, R5; int                                            ; +0x30, 0x6f6ddc\nADDS            R5, #1                                                 ; +0x32, 0x6f6dde\nLDR             R3, [R0]                                               ; +0x34, 0x6f6de0\nMOV             R7, R0                                                 ; +0x36, 0x6f6de2\nMOV             R0, R4; this                                           ; +0x38, 0x6f6de4\nLDR.W           R8, [R3,#0x24]                                         ; +0x3a, 0x6f6de6\nBL              _ZN8EditorUI19selectedMoveCommandEi; EditorUI::selectedMoveCommand(int) ; +0x3e, 0x6f6dea\nMOV             R1, R0                                                 ; +0x42, 0x6f6dee\nMOV             R0, R7                                                 ; +0x44, 0x6f6df0\nBLX             R8                                                     ; +0x46, 0x6f6df2\nB               loc_6F6DC6                                             ; +0x48, 0x6f6df4\nLDR             R7, =(aGjButton02Png - 0x6F6E02); \"GJ_button_02.png\"   ; +0x4a, 0x6f6df6\nMOVS            R5, #0                                                 ; +0x4c, 0x6f6df8\nLDR.W           R8, =(aGjButton04Png - 0x6F6E04); \"GJ_button_04.png\"   ; +0x4e, 0x6f6dfa\nADD             R7, PC; \"GJ_button_02.png\"                             ; +0x52, 0x6f6dfe\nADD             R8, PC; \"GJ_button_04.png\"                             ; +0x54, 0x6f6e00\nLDR.W           R0, [R4,#0x430]; this                                  ; +0x56, 0x6f6e02\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x5a, 0x6f6e06\nCMP             R5, R0                                                 ; +0x5e, 0x6f6e0a\nBGE             loc_6F6E32                                             ; +0x60, 0x6f6e0c\nMOV             R1, R5; unsigned int                                   ; +0x62, 0x6f6e0e\nLDR.W           R0, [R4,#0x430]; this                                  ; +0x64, 0x6f6e10\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x68, 0x6f6e14\nLDR             R3, [R0]                                               ; +0x6c, 0x6f6e18\nLDR.W           R3, [R3,#0x218]                                        ; +0x6e, 0x6f6e1a\nBLX             R3                                                     ; +0x72, 0x6f6e1e\nCMP             R5, R6                                                 ; +0x74, 0x6f6e20\nADD.W           R5, R5, #1                                             ; +0x76, 0x6f6e22\nITE EQ                                                                 ; +0x7a, 0x6f6e26\nMOVEQ           R1, R7                                                 ; +0x7c, 0x6f6e28\nMOVNE           R1, R8; char *                                         ; +0x7e, 0x6f6e2a\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x80, 0x6f6e2c\nB               loc_6F6E02                                             ; +0x84, 0x6f6e30\nMOV             R0, R4; this                                           ; +0x86, 0x6f6e32\nPOP.W           {R4-R8,LR}                                             ; +0x88, 0x6f6e34\nB.W             _ZN8EditorUI19updateDpadStepLabelEv; EditorUI::updateDpadStepLabel(void) ; +0x8c, 0x6f6e38\nPOP.W           {R4-R8,PC}                                             ; +0x90, 0x6f6e3c", "xrefs": ["EditorUI::createDpadMoveMenu @ 0x6f73ec", "EditorUI::nextDpadStep @ 0x6f8046", "EditorUI::onDpadStep @ 0x6f8082"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}