{"type": "func", "start": 4049524, "end": 4049712, "name": "CCTextInputNode::getBoxRect", "pseudocode": "// \n// CCTextInputNode::getBoxRect from 0x3dca74 to 0x3dcb30 (188 bytes)\n// \n// 1 xrefs:\n// > CCTextInputMenu::init @ 0x3dbe28\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\nCCTextInputNode *__fastcall CCTextInputNode::getBoxRect(CCTextInputNode *this, const cocos2d::CCPoint *a2)\n{\n  float v4; // s17\n  float v5; // s16\n  float v6; // s16\n  float v7; // r4\n  float v8; // r0\n  _BYTE v10[8]; // [sp+Ch] [bp-18h] BYREF\n  float v11; // [sp+14h] [bp-10h]\n  float v12; // [sp+18h] [bp-Ch]\n\n  CCTextInputNode::getWorldRect((CCTextInputNode *)v10, a2);\n  if ( *((_DWORD *)a2 + 109) )\n  {\n    cocos2d::CCRect::CCRect(this, (const cocos2d::CCRect *)v10);\n  }\n  else\n  {\n    v4 = v12;\n    v5 = 1.0;\n    if ( *(float *)((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a2 + 164))(a2) + 4) > 1.0 )\n      v5 = *(float *)((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a2 + 164))(a2) + 4);\n    v6 = (float)(v4 / v5) * 30.0;\n    if ( v12 <= v6 )\n      v6 = v12;\n    v7 = COERCE_FLOAT(cocos2d::CCRect::getMinX((cocos2d::CCRect *)v10));\n    v8 = COERCE_FLOAT(cocos2d::CCRect::getMidY((cocos2d::CCRect *)v10));\n    cocos2d::CCRect::CCRect(this, v7, v8 - (float)(v6 * 0.5), v11, v6);\n  }\n  return this;\n}", "assembly": "; \n; CCTextInputNode::getBoxRect from 0x3dca74 to 0x3dcb30 (188 bytes)\n; \n; 1 xrefs:\n; > CCTextInputMenu::init @ 0x3dbe28\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; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x3dca74\nMOV             R4, R1                                                 ; +0x2, 0x3dca76\nVPUSH           {D8}                                                   ; +0x4, 0x3dca78\nMOV             R7, R0                                                 ; +0x8, 0x3dca7c\nLDR             R5, =(__stack_chk_guard_ptr - 0x3DCA84)                ; +0xa, 0x3dca7e\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3dca80\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x3dca82\nSUB             SP, SP, #0x24; float                                   ; +0x10, 0x3dca84\nLDR             R3, [R5]                                               ; +0x12, 0x3dca86\nADD             R6, SP, #0x24+var_18                                   ; +0x14, 0x3dca88\nMOV             R0, R6; this                                           ; +0x16, 0x3dca8a\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x18, 0x3dca8c\nBL              _ZN15CCTextInputNode12getWorldRectEv; CCTextInputNode::getWorldRect(void) ; +0x1a, 0x3dca8e\nLDR.W           R3, [R4,#0x1B4]                                        ; +0x1e, 0x3dca92\nCBZ             R3, loc_3DCAA2                                         ; +0x22, 0x3dca96\nMOV             R0, R7; this                                           ; +0x24, 0x3dca98\nMOV             R1, R6; cocos2d::CCRect *                              ; +0x26, 0x3dca9a\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x28, 0x3dca9c\nB               loc_3DCB1A                                             ; +0x2c, 0x3dcaa0\nLDR             R3, [R4]                                               ; +0x2e, 0x3dcaa2\nMOV             R0, R4                                                 ; +0x30, 0x3dcaa4\nVLDR            S17, [SP,#0x24+var_C]                                  ; +0x32, 0x3dcaa6\nLDR.W           R3, [R3,#0xA4]                                         ; +0x36, 0x3dcaaa\nBLX             R3                                                     ; +0x3a, 0x3dcaae\nVMOV.F32        S16, #1.0                                              ; +0x3c, 0x3dcab0\nVLDR            S15, [R0,#4]                                           ; +0x40, 0x3dcab4\nVCMPE.F32       S15, S16                                               ; +0x44, 0x3dcab8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x48, 0x3dcabc\nBLE             loc_3DCAD0                                             ; +0x4c, 0x3dcac0\nLDR             R3, [R4]                                               ; +0x4e, 0x3dcac2\nMOV             R0, R4                                                 ; +0x50, 0x3dcac4\nLDR.W           R3, [R3,#0xA4]                                         ; +0x52, 0x3dcac6\nBLX             R3                                                     ; +0x56, 0x3dcaca\nVLDR            S16, [R0,#4]                                           ; +0x58, 0x3dcacc\nMOV             R0, R6; this                                           ; +0x5c, 0x3dcad0\nVDIV.F32        S17, S17, S16                                          ; +0x5e, 0x3dcad2\nVLDR            S15, [SP,#0x24+var_C]                                  ; +0x62, 0x3dcad6\nVMOV.F32        S16, #30.0                                             ; +0x66, 0x3dcada\nVMUL.F32        S16, S17, S16                                          ; +0x6a, 0x3dcade\nVCMPE.F32       S15, S16                                               ; +0x6e, 0x3dcae2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x72, 0x3dcae6\nIT LE                                                                  ; +0x76, 0x3dcaea\nVMOVLE.F32      S16, S15                                               ; +0x78, 0x3dcaec\nBL              _ZNK7cocos2d6CCRect7getMinXEv; cocos2d::CCRect::getMinX(void) ; +0x7c, 0x3dcaf0\nMOV             R4, R0                                                 ; +0x80, 0x3dcaf4\nMOV             R0, R6; this                                           ; +0x82, 0x3dcaf6\nBL              _ZNK7cocos2d6CCRect7getMidYEv; cocos2d::CCRect::getMidY(void) ; +0x84, 0x3dcaf8\nVMOV.F32        S15, #0.5                                              ; +0x88, 0x3dcafc\nVSTR            S16, [SP,#0x24+var_24]                                 ; +0x8c, 0x3dcb00\nMOV             R1, R4; float                                          ; +0x90, 0x3dcb04\nLDR             R3, [SP,#0x24+var_10]; float                           ; +0x92, 0x3dcb06\nVMOV            S14, R0                                                ; +0x94, 0x3dcb08\nMOV             R0, R7; this                                           ; +0x98, 0x3dcb0c\nVMLS.F32        S14, S16, S15                                          ; +0x9a, 0x3dcb0e\nVMOV            R2, S14; float                                         ; +0x9e, 0x3dcb12\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xa2, 0x3dcb16\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xa6, 0x3dcb1a\nMOV             R0, R7                                                 ; +0xa8, 0x3dcb1c\nLDR             R3, [R5]                                               ; +0xaa, 0x3dcb1e\nCMP             R2, R3                                                 ; +0xac, 0x3dcb20\nBEQ             loc_3DCB28                                             ; +0xae, 0x3dcb22\nBLX             __stack_chk_fail                                       ; +0xb0, 0x3dcb24\nADD             SP, SP, #0x24 ; '$'                                    ; +0xb4, 0x3dcb28\nVPOP            {D8}                                                   ; +0xb6, 0x3dcb2a\nPOP             {R4-R7,PC}                                             ; +0xba, 0x3dcb2e", "xrefs": ["CCTextInputMenu::init @ 0x3dbe28"], "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"}