{"type": "func", "start": 4296591080, "end": 4296591276, "name": "GJKeybindManager::chordToString", "pseudocode": "// \n// GJKeybindManager::chordToString from 0x10018c6e8 to 0x10018c7ac (196 bytes)\n// \n// 3 xrefs:\n// > KeybindingsLayer::buildContentForTab @ 0x100024a50\n// > KeybindingsLayer::actionsToShow @ 0x10002568c\n// > KeybindCapturePopup::updateChordDisplay @ 0x1001a4ee4\n// \n// This function is hookable on this platform (idp: arm, 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 10:59:53 +0000\n// \n\nstd::string *__usercall GJKeybindManager::chordToString@<X0>(std::string *a1@<X0>, std::string *a2@<X8>)\n{\n  int v2; // w20\n  __int64 v5; // x0\n  __int64 v6; // x0\n  __int64 v7; // x0\n  const std::string::value_type *v8; // x1\n\n  v2 = (int)a1;\n  a2->__r_.__value_.__r.__words[0] = 0;\n  a2->__r_.__value_.__l.__size_ = 0;\n  a2->__r_.__value_.__r.__words[2] = 0;\n  if ( ((unsigned int)a1 & 0x10000) != 0 )\n    a1 = std::string::append(a2, \"Ctrl+\");\n  if ( (v2 & 0x20000) != 0 )\n    a1 = std::string::append(a2, \"Alt+\");\n  if ( (v2 & 0x40000) != 0 )\n    a1 = std::string::append(a2, \"Shift+\");\n  if ( (unsigned int)(unsigned __int16)v2 - 1001 <= 0x2B )\n    return std::string::append(a2, off_1008E48F0[(unsigned __int16)v2 - 1001]);\n  v5 = cocos2d::CCDirector::sharedDirector(a1);\n  v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5);\n  v7 = sub_1002D668C(v6, (unsigned __int16)v2);\n  if ( v7 )\n    v8 = (const std::string::value_type *)v7;\n  else\n    v8 = \"?\";\n  return std::string::append(a2, v8);\n}", "assembly": "; \n; GJKeybindManager::chordToString from 0x10018c6e8 to 0x10018c7ac (196 bytes)\n; \n; 3 xrefs:\n; > KeybindingsLayer::buildContentForTab @ 0x100024a50\n; > KeybindingsLayer::actionsToShow @ 0x10002568c\n; > KeybindCapturePopup::updateChordDisplay @ 0x1001a4ee4\n; \n; This function is hookable on this platform (idp: arm, 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 10:59:53 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10018c6e8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10018c6ec\nADD             X29, SP, #0x10                                         ; +0x8, 0x10018c6f0\nMOV             X20, X0                                                ; +0xc, 0x10018c6f4\nMOV             X19, X8                                                ; +0x10, 0x10018c6f8\nSTP             XZR, XZR, [X8]                                         ; +0x14, 0x10018c6fc\nSTR             XZR, [X8,#0x10]                                        ; +0x18, 0x10018c700\nTBZ             W0, #0x10, loc_10018C718                               ; +0x1c, 0x10018c704\nADRL            X1, aCtrl; \"Ctrl+\"                                     ; +0x20, 0x10018c708\nMOV             X0, X19; this                                          ; +0x28, 0x10018c710\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x2c, 0x10018c714\nTBZ             W20, #0x11, loc_10018C72C                              ; +0x30, 0x10018c718\nADRL            X1, aAlt; \"Alt+\"                                       ; +0x34, 0x10018c71c\nMOV             X0, X19; this                                          ; +0x3c, 0x10018c724\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x40, 0x10018c728\nTBZ             W20, #0x12, loc_10018C740                              ; +0x44, 0x10018c72c\nADRL            X1, aShift; \"Shift+\"                                   ; +0x48, 0x10018c730\nMOV             X0, X19; this                                          ; +0x50, 0x10018c738\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x54, 0x10018c73c\nAND             X20, X20, #0xFFFF                                      ; +0x58, 0x10018c740\nSUB             W8, W20, #0x3E9                                        ; +0x5c, 0x10018c744\nCMP             W8, #0x2B ; '+'                                        ; +0x60, 0x10018c748\nB.HI            loc_10018C770                                          ; +0x64, 0x10018c74c\nADRL            X8, off_1008E48F0; \"CA\"                                ; +0x68, 0x10018c750\nADD             X8, X8, X20,LSL#3                                      ; +0x70, 0x10018c758\nMOV             X9, #0xFFFFFFFFFFFFE0B8                                ; +0x74, 0x10018c75c\nLDR             X1, [X8,X9]; __s                                       ; +0x78, 0x10018c760\nMOV             X0, X19; this                                          ; +0x7c, 0x10018c764\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x80, 0x10018c768\nB               loc_10018C7A0                                          ; +0x84, 0x10018c76c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x88, 0x10018c770\nLDR             X8, [X0]                                               ; +0x8c, 0x10018c774\nLDR             X8, [X8,#0xC0]                                         ; +0x90, 0x10018c778\nBLR             X8                                                     ; +0x94, 0x10018c77c\nMOV             X1, X20                                                ; +0x98, 0x10018c780\nBL              sub_1002D668C                                          ; +0x9c, 0x10018c784\nADRL            X8, asc_1007EA43E; \"?\"                                 ; +0xa0, 0x10018c788\nCMP             X0, #0                                                 ; +0xa8, 0x10018c790\nCSEL            X1, X8, X0, EQ; __s                                    ; +0xac, 0x10018c794\nMOV             X0, X19; this                                          ; +0xb0, 0x10018c798\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xb4, 0x10018c79c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xb8, 0x10018c7a0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xbc, 0x10018c7a4\nRET                                                                    ; +0xc0, 0x10018c7a8", "xrefs": ["KeybindingsLayer::buildContentForTab @ 0x100024a50", "KeybindingsLayer::actionsToShow @ 0x10002568c", "KeybindCapturePopup::updateChordDisplay @ 0x1001a4ee4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}