{"type": "func", "start": 3978936, "end": 3979166, "name": "FLAlertLayer::textInputShouldOffset", "pseudocode": "// \n// FLAlertLayer::textInputShouldOffset from 0x3cb6b8 to 0x3cb79e (230 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'FLAlertLayer::textInputShouldOffset @ 0x3cb7a8\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:37 +0000\n// \n\nint __fastcall FLAlertLayer::textInputShouldOffset(int this, CCTextInputNode *a2, float a3)\n{\n  int v3; // r4\n  const cocos2d::CCPoint *v5; // r0\n  const cocos2d::CCPoint *v6; // r1\n  float v7; // s16\n  cocos2d::CCNode *v8; // r8\n  float v9; // r2\n  _BYTE v10[4]; // [sp+4h] [bp-24h] BYREF\n  float v11; // [sp+8h] [bp-20h]\n  _BYTE v12[4]; // [sp+Ch] [bp-1Ch] BYREF\n  float v13; // [sp+10h] [bp-18h]\n  _BYTE v14[8]; // [sp+14h] [bp-14h] BYREF\n  _BYTE v15[8]; // [sp+1Ch] [bp-Ch] BYREF\n\n  v3 = this;\n  if ( *(_DWORD *)(this + 460) )\n  {\n    if ( a2 )\n    {\n      if ( *((_BYTE *)a2 + 344) )\n      {\n        this = FLAlertLayer::containsNode(this, (int)a2);\n        if ( this )\n        {\n          v5 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v3 + 460) + 96))(*(_DWORD *)(v3 + 460));\n          cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v5);\n          v6 = *(_BYTE *)(v3 + 471) ? (const cocos2d::CCPoint *)(v3 + 472) : (const cocos2d::CCPoint *)v10;\n          this = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v6);\n          v7 = (float)(a3 + v11) - v13;\n          if ( v7 > 0.0 || *(_BYTE *)(v3 + 470) )\n          {\n            cocos2d::CCPoint::operator=(v3 + 472, v12);\n            v8 = *(cocos2d::CCNode **)(v3 + 460);\n            *(_BYTE *)(v3 + 471) = 1;\n            *(_BYTE *)(v3 + 470) = 1;\n            if ( v7 > 0.0 )\n              v9 = v7;\n            else\n              v9 = 0.0;\n            cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, v9);\n            cocos2d::CCPoint::operator+(v15, v12, v14);\n            return sub_3CB370(v8, COERCE_FLOAT(v15));\n          }\n        }\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; FLAlertLayer::textInputShouldOffset from 0x3cb6b8 to 0x3cb79e (230 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'FLAlertLayer::textInputShouldOffset @ 0x3cb7a8\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:37 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x3cb6b8\nMOV             R4, R0                                                 ; +0x4, 0x3cb6bc\nVPUSH           {D8}                                                   ; +0x6, 0x3cb6be\nLDR             R3, =(__stack_chk_guard_ptr - 0x3CB6C8)                ; +0xa, 0x3cb6c2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3cb6c4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xe, 0x3cb6c6\nVMOV            S16, R2                                                ; +0x10, 0x3cb6c8\nSUB             SP, SP, #0x28                                          ; +0x14, 0x3cb6cc\nLDR             R2, [R3]                                               ; +0x16, 0x3cb6ce\nMOV             R6, R3                                                 ; +0x18, 0x3cb6d0\nSTR             R2, [SP,#0x28+var_4]                                   ; +0x1a, 0x3cb6d2\nLDR.W           R2, [R0,#0x1CC]                                        ; +0x1c, 0x3cb6d4\nCMP             R2, #0                                                 ; +0x20, 0x3cb6d8\nBEQ             loc_3CB788                                             ; +0x22, 0x3cb6da\nCMP             R1, #0                                                 ; +0x24, 0x3cb6dc\nBEQ             loc_3CB788                                             ; +0x26, 0x3cb6de\nLDRB.W          R3, [R1,#0x158]                                        ; +0x28, 0x3cb6e0\nCMP             R3, #0                                                 ; +0x2c, 0x3cb6e4\nBEQ             loc_3CB788                                             ; +0x2e, 0x3cb6e6\nBL              _ZN12FLAlertLayer12containsNodeEPN7cocos2d6CCNodeE; FLAlertLayer::containsNode(cocos2d::CCNode *) ; +0x30, 0x3cb6e8\nCMP             R0, #0                                                 ; +0x34, 0x3cb6ec\nBEQ             loc_3CB788                                             ; +0x36, 0x3cb6ee\nLDR.W           R0, [R4,#0x1CC]                                        ; +0x38, 0x3cb6f0\nADD             R5, SP, #0x28+var_24                                   ; +0x3c, 0x3cb6f4\nLDR             R3, [R0]                                               ; +0x3e, 0x3cb6f6\nLDR             R3, [R3,#0x60]                                         ; +0x40, 0x3cb6f8\nBLX             R3                                                     ; +0x42, 0x3cb6fa\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x44, 0x3cb6fc\nMOV             R0, R5; this                                           ; +0x46, 0x3cb6fe\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x48, 0x3cb700\nLDRB.W          R3, [R4,#0x1D7]                                        ; +0x4c, 0x3cb704\nCBZ             R3, loc_3CB784                                         ; +0x50, 0x3cb708\nADD.W           R1, R4, #0x1D8; cocos2d::CCPoint *                     ; +0x52, 0x3cb70a\nADD             R5, SP, #0x28+var_1C                                   ; +0x56, 0x3cb70e\nMOV             R0, R5; this                                           ; +0x58, 0x3cb710\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x5a, 0x3cb712\nVLDR            S15, [SP,#0x28+var_20]                                 ; +0x5e, 0x3cb716\nVADD.F32        S16, S16, S15                                          ; +0x62, 0x3cb71a\nVLDR            S15, [SP,#0x28+var_18]                                 ; +0x66, 0x3cb71e\nVSUB.F32        S16, S16, S15                                          ; +0x6a, 0x3cb722\nVCMPE.F32       S16, #0.0                                              ; +0x6e, 0x3cb726\nVMRS            APSR_nzcv, FPSCR                                       ; +0x72, 0x3cb72a\nBHI             loc_3CB736                                             ; +0x76, 0x3cb72e\nLDRB.W          R3, [R4,#0x1D6]                                        ; +0x78, 0x3cb730\nCBZ             R3, loc_3CB788                                         ; +0x7c, 0x3cb734\nMOV             R1, R5                                                 ; +0x7e, 0x3cb736\nADD.W           R0, R4, #0x1D8                                         ; +0x80, 0x3cb738\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x84, 0x3cb73c\nVCMPE.F32       S16, #0.0                                              ; +0x88, 0x3cb740\nMOVS            R1, #0                                                 ; +0x8c, 0x3cb744\nADD             R7, SP, #0x28+var_14                                   ; +0x8e, 0x3cb746\nVMOV            S15, R1; float                                         ; +0x90, 0x3cb748\nMOVS            R3, #1                                                 ; +0x94, 0x3cb74c\nLDR.W           R8, [R4,#0x1CC]                                        ; +0x96, 0x3cb74e\nMOV             R0, R7; this                                           ; +0x9a, 0x3cb752\nSTRB.W          R3, [R4,#0x1D7]                                        ; +0x9c, 0x3cb754\nVMRS            APSR_nzcv, FPSCR                                       ; +0xa0, 0x3cb758\nSTRB.W          R3, [R4,#0x1D6]                                        ; +0xa4, 0x3cb75c\nADD             R4, SP, #0x28+var_C                                    ; +0xa8, 0x3cb760\nITE LE                                                                 ; +0xaa, 0x3cb762\nVMOVLE          R2, S15                                                ; +0xac, 0x3cb764\nVMOVGT          R2, S16; float                                         ; +0xb0, 0x3cb768\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb4, 0x3cb76c\nMOV             R0, R4                                                 ; +0xb8, 0x3cb770\nMOV             R1, R5                                                 ; +0xba, 0x3cb772\nMOV             R2, R7                                                 ; +0xbc, 0x3cb774\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xbe, 0x3cb776\nMOV             R0, R8                                                 ; +0xc2, 0x3cb77a\nMOV             R1, R4                                                 ; +0xc4, 0x3cb77c\nBL              sub_3CB370                                             ; +0xc6, 0x3cb77e\nB               loc_3CB788                                             ; +0xca, 0x3cb782\nMOV             R1, R5                                                 ; +0xcc, 0x3cb784\nB               loc_3CB70E                                             ; +0xce, 0x3cb786\nLDR             R2, [SP,#0x28+var_4]                                   ; +0xd0, 0x3cb788\nLDR             R3, [R6]                                               ; +0xd2, 0x3cb78a\nCMP             R2, R3                                                 ; +0xd4, 0x3cb78c\nBEQ             loc_3CB794                                             ; +0xd6, 0x3cb78e\nBLX             __stack_chk_fail                                       ; +0xd8, 0x3cb790\nADD             SP, SP, #0x28 ; '('                                    ; +0xdc, 0x3cb794\nVPOP            {D8}                                                   ; +0xde, 0x3cb796\nPOP.W           {R4-R8,PC}                                             ; +0xe2, 0x3cb79a", "xrefs": ["`non-virtual thunk to'FLAlertLayer::textInputShouldOffset @ 0x3cb7a8"], "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"}