{"type": "func", "start": 13200036, "end": 13200368, "name": "ControllerInputNode::create", "pseudocode": "// \n// ControllerInputNode::create from 0xc96aa4 to 0xc96bf0 (332 bytes)\n// \n// 2 xrefs:\n// > KeybindCapturePopup::init @ 0xcf75b4\n// > <???> @ 0x8dfa0\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 13:05:53 +0000\n// \n\n__int64 __fastcall ControllerInputNode::create(\n        ControllerInputNode *this,\n        InputCaptureDelegate *a2,\n        const cocos2d::CCSize *a3)\n{\n  __int64 v5; // x19\n  cocos2d::CCPoint *v6; // x20\n\n  v5 = operator new(0x1B8u);\n  memset((void *)v5, 0, 0x1B8u);\n  cocos2d::CCNode::CCNode((cocos2d::CCNode *)v5);\n  v6 = (cocos2d::CCPoint *)(v5 + 408);\n  *(_QWORD *)(v5 + 320) = 0;\n  *(_BYTE *)(v5 + 328) = 0;\n  *(_QWORD *)v5 = &off_14F5D40;\n  *(_DWORD *)(v5 + 332) = 0;\n  *(_QWORD *)(v5 + 344) = 0;\n  *(_QWORD *)(v5 + 352) = 0;\n  *(_QWORD *)(v5 + 360) = 0;\n  *(_QWORD *)(v5 + 368) = 0;\n  *(_QWORD *)(v5 + 376) = 0;\n  *(_QWORD *)(v5 + 384) = 0;\n  *(_QWORD *)(v5 + 392) = 0;\n  *(_QWORD *)(v5 + 400) = 0;\n  *(float *)(v5 + 336) = 1.0;\n  do\n  {\n    cocos2d::CCPoint::CCPoint(v6);\n    v6 = (cocos2d::CCPoint *)((char *)v6 + 8);\n  }\n  while ( v6 != (cocos2d::CCPoint *)(v5 + 440) );\n  if ( (unsigned __int8)ControllerInputNode::init((ControllerInputNode *)v5, this, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);\n    return v5;\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 16LL))(v5);\n    return 0;\n  }\n}", "assembly": "; \n; ControllerInputNode::create from 0xc96aa4 to 0xc96bf0 (332 bytes)\n; \n; 2 xrefs:\n; > KeybindCapturePopup::init @ 0xcf75b4\n; > <???> @ 0x8dfa0\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 13:05:53 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xc96aa4\nMOV             X29, SP                                                ; +0x4, 0xc96aa8\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x8, 0xc96aac\nMOV             X23, X0                                                ; +0xc, 0xc96ab0\nMOV             X0, #0x1B8; unsigned __int64                           ; +0x10, 0xc96ab4\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x14, 0xc96ab8\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x18, 0xc96abc\nMOV             X22, X1                                                ; +0x1c, 0xc96ac0\nBL              _Znwm; operator new(ulong)                             ; +0x20, 0xc96ac4\nMOV             W1, #0; int                                            ; +0x24, 0xc96ac8\nMOV             X2, #0x1B8; size_t                                     ; +0x28, 0xc96acc\nMOV             X19, X0                                                ; +0x2c, 0xc96ad0\nBL              .memset                                                ; +0x30, 0xc96ad4\nMOV             X0, X19; this                                          ; +0x34, 0xc96ad8\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0x38, 0xc96adc\nADRP            X0, #_ZTV19ControllerInputNode_ptr@PAGE                ; +0x3c, 0xc96ae0\nADD             X20, X19, #0x198                                       ; +0x40, 0xc96ae4\nFMOV            S0, #1.0                                               ; +0x44, 0xc96ae8\nADD             X21, X19, #0x1B8                                       ; +0x48, 0xc96aec\nLDR             X0, [X0,#_ZTV19ControllerInputNode_ptr@PAGEOFF]; `vtable for'ControllerInputNode ... ; +0x4c, 0xc96af0\nSTR             XZR, [X19,#0x140]                                      ; +0x50, 0xc96af4\nADD             X0, X0, #0x10                                          ; +0x54, 0xc96af8\nSTRB            WZR, [X19,#0x148]                                      ; +0x58, 0xc96afc\nSTR             X0, [X19]                                              ; +0x5c, 0xc96b00\nSTR             WZR, [X19,#0x14C]                                      ; +0x60, 0xc96b04\nSTR             XZR, [X19,#0x158]                                      ; +0x64, 0xc96b08\nSTR             XZR, [X19,#0x160]                                      ; +0x68, 0xc96b0c\nSTR             XZR, [X19,#0x168]                                      ; +0x6c, 0xc96b10\nSTR             XZR, [X19,#0x170]                                      ; +0x70, 0xc96b14\nSTR             XZR, [X19,#0x178]                                      ; +0x74, 0xc96b18\nSTR             XZR, [X19,#0x180]                                      ; +0x78, 0xc96b1c\nSTR             XZR, [X19,#0x188]                                      ; +0x7c, 0xc96b20\nSTR             XZR, [X19,#0x190]                                      ; +0x80, 0xc96b24\nSTR             S0, [X19,#0x150]                                       ; +0x84, 0xc96b28\nMOV             X0, X20; this                                          ; +0x88, 0xc96b2c\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x8c, 0xc96b30\nADD             X20, X20, #8                                           ; +0x90, 0xc96b34\nCMP             X20, X21                                               ; +0x94, 0xc96b38\nB.NE            loc_C96B2C                                             ; +0x98, 0xc96b3c\nMOV             X0, X19; this                                          ; +0x9c, 0xc96b40\nMOV             X1, X23; InputCaptureDelegate *                        ; +0xa0, 0xc96b44\nMOV             X2, X22; cocos2d::CCSize *                             ; +0xa4, 0xc96b48\nBL              _ZN19ControllerInputNode4initEP20InputCaptureDelegateRKN7cocos2d6CCSizeE; ControllerInputNode::init(InputCaptureDelegate *,cocos2d::CCSize const&) ; +0xa8, 0xc96b4c\nUXTB            W0, W0                                                 ; +0xac, 0xc96b50\nCBNZ            W0, loc_C96B84                                         ; +0xb0, 0xc96b54\nLDR             X1, [X19]                                              ; +0xb4, 0xc96b58\nMOV             X0, X19                                                ; +0xb8, 0xc96b5c\nMOV             X19, #0                                                ; +0xbc, 0xc96b60\nLDR             X1, [X1,#0x10]                                         ; +0xc0, 0xc96b64\nBLR             X1                                                     ; +0xc4, 0xc96b68\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xc8, 0xc96b6c\nMOV             X0, X19                                                ; +0xcc, 0xc96b70\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xd0, 0xc96b74\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xd4, 0xc96b78\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xd8, 0xc96b7c\nRET                                                                    ; +0xdc, 0xc96b80\nMOV             X0, X19; this                                          ; +0xe0, 0xc96b84\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xe4, 0xc96b88\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xe8, 0xc96b8c\nMOV             X0, X19                                                ; +0xec, 0xc96b90\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xf0, 0xc96b94\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xf4, 0xc96b98\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xf8, 0xc96b9c\nRET                                                                    ; +0xfc, 0xc96ba0\nLDR             X1, [X19,#0x160]                                       ; +0x100, 0xc96ba4\nMOV             X20, X0                                                ; +0x104, 0xc96ba8\nCBZ             X1, loc_C96BE4                                         ; +0x108, 0xc96bac\nLDR             X0, [X19,#0x168]                                       ; +0x10c, 0xc96bb0\nCMP             X1, X0                                                 ; +0x110, 0xc96bb4\nB.EQ            loc_C96BDC                                             ; +0x114, 0xc96bb8\nSUB             X0, X0, #8                                             ; +0x118, 0xc96bbc\nSTR             X0, [X19,#0x168]                                       ; +0x11c, 0xc96bc0\nB               loc_C96BB0                                             ; +0x120, 0xc96bc4\nMOV             X20, X0                                                ; +0x124, 0xc96bc8\nMOV             X0, X19; void *                                        ; +0x128, 0xc96bcc\nBL              _ZdlPv; operator delete(void *)                        ; +0x12c, 0xc96bd0\nMOV             X0, X20                                                ; +0x130, 0xc96bd4\nBL              _Unwind_Resume                                         ; +0x134, 0xc96bd8\nMOV             X0, X1; void *                                         ; +0x138, 0xc96bdc\nBL              _ZdlPv; operator delete(void *)                        ; +0x13c, 0xc96be0\nMOV             X0, X19; this                                          ; +0x140, 0xc96be4\nBL              _ZN7cocos2d6CCNodeD1Ev; cocos2d::CCNode::~CCNode()     ; +0x144, 0xc96be8\nB               loc_C96BCC                                             ; +0x148, 0xc96bec", "xrefs": ["KeybindCapturePopup::init @ 0xcf75b4", "<???> @ 0x8dfa0"], "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"}