{"type": "func", "start": 4048884, "end": 4049018, "name": "CCTextInputNode::setTextScrollViewSize", "pseudocode": "// \n// CCTextInputNode::setTextScrollViewSize from 0x3dc7f4 to 0x3dc87a (134 bytes)\n// \n// 1 xrefs:\n// > ThreadViewPopup::layoutComposeBar @ 0x747400\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:46:48 +0000\n// \n\nfloat *__fastcall CCTextInputNode::setTextScrollViewSize(float *result, float *a2)\n{\n  float *v2; // r6\n  int v4; // r8\n  int v5; // r8\n  void (__fastcall *v6)(int, _BYTE *); // r9\n  _BYTE v7[8]; // [sp+4h] [bp-10h] BYREF\n\n  v2 = result;\n  if ( *((_DWORD *)result + 113) )\n  {\n    (*(void (__fastcall **)(float *))(*(_DWORD *)result + 160))(result);\n    v4 = *((_DWORD *)v2 + 113);\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v7, (const cocos2d::CCSize *)a2);\n    ScrollableContentLayer::setViewSize(v4, v7);\n    v5 = *((_DWORD *)v2 + 113);\n    v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -(float)(*a2 * 0.5), -(float)(a2[1] * 0.5));\n    v6(v5, v7);\n    return CCTextInputNode::scrollToCursor(v2);\n  }\n  return result;\n}", "assembly": "; \n; CCTextInputNode::setTextScrollViewSize from 0x3dc7f4 to 0x3dc87a (134 bytes)\n; \n; 1 xrefs:\n; > ThreadViewPopup::layoutComposeBar @ 0x747400\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:46:48 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x3DC7FE)                ; +0x0, 0x3dc7f4\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x3dc7f6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3dc7fa\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x3dc7fc\nSUB             SP, SP, #0x14                                          ; +0xa, 0x3dc7fe\nMOV             R6, R0                                                 ; +0xc, 0x3dc800\nLDR             R2, [R3]                                               ; +0xe, 0x3dc802\nMOV             R7, R1                                                 ; +0x10, 0x3dc804\nMOV             R5, R3                                                 ; +0x12, 0x3dc806\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x14, 0x3dc808\nLDR.W           R2, [R0,#0x1C4]                                        ; +0x16, 0x3dc80a\nCBZ             R2, loc_3DC868                                         ; +0x1a, 0x3dc80e\nLDR             R3, [R0]                                               ; +0x1c, 0x3dc810\nADD             R4, SP, #0x14+var_10                                   ; +0x1e, 0x3dc812\nLDR.W           R3, [R3,#0xA0]                                         ; +0x20, 0x3dc814\nBLX             R3                                                     ; +0x24, 0x3dc818\nLDR.W           R8, [R6,#0x1C4]                                        ; +0x26, 0x3dc81a\nMOV             R1, R7; cocos2d::CCSize *                              ; +0x2a, 0x3dc81e\nMOV             R0, R4; this                                           ; +0x2c, 0x3dc820\nBL              _ZN7cocos2d6CCSizeC1ERKS0_; cocos2d::CCSize::CCSize(cocos2d::CCSize const&) ; +0x2e, 0x3dc822\nMOV             R1, R4                                                 ; +0x32, 0x3dc826\nMOV             R0, R8                                                 ; +0x34, 0x3dc828\nBL              _ZN22ScrollableContentLayer11setViewSizeEN7cocos2d6CCSizeE; ScrollableContentLayer::setViewSize(cocos2d::CCSize) ; +0x36, 0x3dc82a\nVMOV.F32        S15, #0.5                                              ; +0x3a, 0x3dc82e\nVLDR            S14, [R7,#4]                                           ; +0x3e, 0x3dc832\nMOV             R0, R4; this                                           ; +0x42, 0x3dc836\nLDR.W           R8, [R6,#0x1C4]                                        ; +0x44, 0x3dc838\nVLDR            S13, [R7]                                              ; +0x48, 0x3dc83c\nLDR.W           R3, [R8]                                               ; +0x4c, 0x3dc840\nLDR.W           R9, [R3,#0x5C]                                         ; +0x50, 0x3dc844\nVNMUL.F32       S13, S13, S15                                          ; +0x54, 0x3dc848\nVNMUL.F32       S15, S14, S15                                          ; +0x58, 0x3dc84c\nVMOV            R1, S13; float                                         ; +0x5c, 0x3dc850\nVMOV            R2, S15; float                                         ; +0x60, 0x3dc854\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x64, 0x3dc858\nMOV             R0, R8                                                 ; +0x68, 0x3dc85c\nMOV             R1, R4                                                 ; +0x6a, 0x3dc85e\nBLX             R9                                                     ; +0x6c, 0x3dc860\nMOV             R0, R6; this                                           ; +0x6e, 0x3dc862\nBL              _ZN15CCTextInputNode14scrollToCursorEv; CCTextInputNode::scrollToCursor(void) ; +0x70, 0x3dc864\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x74, 0x3dc868\nLDR             R3, [R5]                                               ; +0x76, 0x3dc86a\nCMP             R2, R3                                                 ; +0x78, 0x3dc86c\nBEQ             loc_3DC874                                             ; +0x7a, 0x3dc86e\nBLX             __stack_chk_fail                                       ; +0x7c, 0x3dc870\nADD             SP, SP, #0x14                                          ; +0x80, 0x3dc874\nPOP.W           {R4-R9,PC}                                             ; +0x82, 0x3dc876", "xrefs": ["ThreadViewPopup::layoutComposeBar @ 0x747400"], "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"}