{"type": "func", "start": 6442732304, "end": 6442732362, "name": "cocos2d::CCKeyboardHandler::initWithDelegate", "pseudocode": "// \n// cocos2d::CCKeyboardHandler::initWithDelegate from 0x180044b10 to 0x180044b4a (58 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCKeyboardHandler::handlerWithDelegate @ 0x180044a96\n// > <???> @ 0x1800ead60\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1638\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nchar __fastcall cocos2d::CCKeyboardHandler::initWithDelegate(\n        cocos2d::CCKeyboardHandler *this,\n        struct cocos2d::CCKeyboardDelegate *a2)\n{\n  cocos2d::CCObject *v2; // rax\n\n  this->m_pDelegate = a2;\n  v2 = (cocos2d::CCObject *)_RTDynamicCast(\n                              a2,\n                              0,\n                              &cocos2d::CCKeyboardDelegate `RTTI Type Descriptor',\n                              &cocos2d::CCObject `RTTI Type Descriptor',\n                              0);\n  cocos2d::CCObject::retain(v2);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCKeyboardHandler::initWithDelegate from 0x180044b10 to 0x180044b4a (58 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCKeyboardHandler::handlerWithDelegate @ 0x180044a96\n; > <???> @ 0x1800ead60\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1638\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nsub     rsp, 38h                                                       ; +0x0, 0x180044b10\nmov     rax, rdx                                                       ; +0x4, 0x180044b14\nmov     [rcx+38h], rdx                                                 ; +0x7, 0x180044b17\nmov     rcx, rax                                                       ; +0xb, 0x180044b1b\nmov     [rsp+38h+var_18], 0                                            ; +0xe, 0x180044b1e\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x16, 0x180044b26\nxor     edx, edx                                                       ; +0x1d, 0x180044b2d\nlea     r8, ??_R0?AVCCKeyboardDelegate@cocos2d@@@8; cocos2d::CCKeyboardDelegate `RTTI Type Descriptor' ; +0x1f, 0x180044b2f\ncall    __RTDynamicCast                                                ; +0x26, 0x180044b36\nmov     rcx, rax; this                                                 ; +0x2b, 0x180044b3b\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x2e, 0x180044b3e\nmov     al, 1                                                          ; +0x33, 0x180044b43\nadd     rsp, 38h                                                       ; +0x35, 0x180044b45\nretn                                                                   ; +0x39, 0x180044b49", "xrefs": ["cocos2d::CCKeyboardHandler::handlerWithDelegate @ 0x180044a96", "<???> @ 0x1800ead60", "<???> @ 0x1801438a8", "<???> @ 0x1801b1638"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}