{"type": "func", "start": 7754528, "end": 7754608, "name": "ControllerInputNode::onButton", "pseudocode": "// \n// ControllerInputNode::onButton from 0x765320 to 0x765370 (80 bytes)\n// \n// 0 xrefs:\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:59:07 +0000\n// \n\nint __fastcall ControllerInputNode::onButton(ControllerInputNode *this, cocos2d::CCObject *a2)\n{\n  int v3; // r4\n  int result; // r0\n  int v5; // r5\n  int (__fastcall *v6)(int, int); // r6\n  int v7; // r0\n\n  v3 = *((_DWORD *)&unk_C74AD4 + 7 * (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2));\n  *((_DWORD *)this + 68) = v3;\n  result = ControllerInputNode::refreshVisuals(this);\n  if ( *((_BYTE *)this + 268) && (v3 & 1) != 0 )\n    LOWORD(v3) = v3 + 1;\n  v5 = *((_DWORD *)this + 66);\n  if ( v5 )\n  {\n    v6 = *(int (__fastcall **)(int, int))(*(_DWORD *)v5 + 8);\n    v7 = GJKeybindManager::encodeChord(v3, 0, 0, 0);\n    return v6(v5, v7);\n  }\n  return result;\n}", "assembly": "; \n; ControllerInputNode::onButton from 0x765320 to 0x765370 (80 bytes)\n; \n; 0 xrefs:\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:59:07 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x765320\nMOV             R5, R0                                                 ; +0x2, 0x765322\nLDR             R3, [R1]                                               ; +0x4, 0x765324\nMOV             R0, R1                                                 ; +0x6, 0x765326\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x765328\nBLX             R3                                                     ; +0xa, 0x76532a\nMOVS            R3, #0x1C                                              ; +0xc, 0x76532c\nLDR             R2, =(unk_C74AD4 - 0x765334)                           ; +0xe, 0x76532e\nADD             R2, PC; unk_C74AD4                                     ; +0x10, 0x765330\nMULS            R0, R3                                                 ; +0x12, 0x765332\nLDR             R4, [R2,R0]                                            ; +0x14, 0x765334\nMOV             R0, R5; this                                           ; +0x16, 0x765336\nSTR.W           R4, [R5,#0x110]                                        ; +0x18, 0x765338\nBL              _ZN19ControllerInputNode14refreshVisualsEv; ControllerInputNode::refreshVisuals(void) ; +0x1c, 0x76533c\nLDRB.W          R3, [R5,#0x10C]                                        ; +0x20, 0x765340\nCBZ             R3, loc_76534C                                         ; +0x24, 0x765344\nLSLS            R3, R4, #0x1F                                          ; +0x26, 0x765346\nIT MI                                                                  ; +0x28, 0x765348\nADDMI           R4, #1                                                 ; +0x2a, 0x76534a\nLDR.W           R5, [R5,#0x108]                                        ; +0x2c, 0x76534c\nCBZ             R5, locret_76536E                                      ; +0x30, 0x765350\nLDR             R3, [R5]                                               ; +0x32, 0x765352\nMOVS            R1, #0                                                 ; +0x34, 0x765354\nMOV             R0, R4                                                 ; +0x36, 0x765356\nMOV             R2, R1                                                 ; +0x38, 0x765358\nLDR             R6, [R3,#8]                                            ; +0x3a, 0x76535a\nMOV             R3, R1                                                 ; +0x3c, 0x76535c\nBL              _ZN16GJKeybindManager11encodeChordEN7cocos2d12enumKeyCodesEbbb; GJKeybindManager::encodeChord(cocos2d::enumKeyCodes,bool,bool,bool) ; +0x3e, 0x76535e\nMOV             R3, R6                                                 ; +0x42, 0x765362\nMOV             R1, R0                                                 ; +0x44, 0x765364\nMOV             R0, R5                                                 ; +0x46, 0x765366\nPOP.W           {R4-R6,LR}                                             ; +0x48, 0x765368\nBX              R3                                                     ; +0x4c, 0x76536c\nPOP             {R4-R6,PC}                                             ; +0x4e, 0x76536e", "xrefs": [], "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"}