{"type": "func", "start": 3965556, "end": 3966002, "name": "CCScrollLayerExt::updateIndicators", "pseudocode": "// \n// CCScrollLayerExt::updateIndicators from 0x3c8274 to 0x3c8432 (446 bytes)\n// \n// 0 xrefs:\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:35 +0000\n// \n\nint __fastcall CCScrollLayerExt::updateIndicators(CCScrollLayerExt *this, float a2)\n{\n  const cocos2d::CCSize *v3; // r0\n  const cocos2d::CCSize *v4; // r0\n  int result; // r0\n  int v6; // r0\n  float v7; // s16\n  const cocos2d::CCPoint *v8; // r0\n  float v9; // s15\n  float *v10; // r0\n  float v11; // s16\n  const cocos2d::CCPoint *v12; // r0\n  float v13; // s15\n  float v14[2]; // [sp+4h] [bp-2Ch] BYREF\n  float v15; // [sp+Ch] [bp-24h] BYREF\n  float v16; // [sp+10h] [bp-20h]\n  float v17; // [sp+14h] [bp-1Ch] BYREF\n  float v18; // [sp+18h] [bp-18h]\n  float v19[2]; // [sp+1Ch] [bp-14h] BYREF\n  _BYTE v20[8]; // [sp+24h] [bp-Ch] BYREF\n\n  (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 89) + 172))(\n    *((_DWORD *)this + 89),\n    *((unsigned __int8 *)this + 369));\n  (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 88) + 172))(\n    *((_DWORD *)this + 88),\n    *((unsigned __int8 *)this + 370));\n  v3 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 91) + 164))(*((_DWORD *)this + 91));\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)v14, v3);\n  v4 = (const cocos2d::CCSize *)(*(int (__fastcall **)(CCScrollLayerExt *))(*(_DWORD *)this + 164))(this);\n  result = cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v15, v4);\n  if ( *((_BYTE *)this + 370) )\n  {\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v17, 4.0, (float)(v16 * v16) / v14[1]);\n    (*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)this + 88) + 160))(*((_DWORD *)this + 88), &v17);\n    v6 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 91) + 96))(*((_DWORD *)this + 91));\n    v7 = (float)((float)(*(float *)(v6 + 4) - v16) * v18) / v16;\n    v8 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 88) + 96))(*((_DWORD *)this + 88));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v8);\n    v9 = (float)(v16 - v7) - v18 * 0.5;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v19[0], v9);\n    result = (*(int (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 88) + 92))(*((_DWORD *)this + 88), v20);\n  }\n  if ( *((_BYTE *)this + 369) )\n  {\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v17, (float)(v15 * v15) / v14[0], 4.0);\n    (*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)this + 89) + 160))(*((_DWORD *)this + 89), &v17);\n    v10 = (float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 91) + 96))(*((_DWORD *)this + 91));\n    v11 = (float)((float)(*v10 - v15) * v17) / v15;\n    v12 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 89) + 96))(*((_DWORD *)this + 89));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v12);\n    v13 = (float)-v11 + v15 * 0.5 - v17 * 0.5;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v13, v19[1]);\n    return (*(int (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 89) + 92))(*((_DWORD *)this + 89), v20);\n  }\n  return result;\n}", "assembly": "; \n; CCScrollLayerExt::updateIndicators from 0x3c8274 to 0x3c8432 (446 bytes)\n; \n; 0 xrefs:\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:35 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x3c8274\nMOV             R4, R0                                                 ; +0x2, 0x3c8276\nVPUSH           {D8}                                                   ; +0x4, 0x3c8278\nLDR             R6, =(__stack_chk_guard_ptr - 0x3C8286)                ; +0x8, 0x3c827c\nLDRB.W          R1, [R4,#0x171]                                        ; +0xa, 0x3c827e\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3c8282\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x3c8284\nLDR.W           R0, [R0,#0x164]                                        ; +0x12, 0x3c8286\nSUB             SP, SP, #0x30                                          ; +0x16, 0x3c828a\nLDR             R3, [R6]                                               ; +0x18, 0x3c828c\nSTR             R3, [SP,#0x30+var_4]                                   ; +0x1a, 0x3c828e\nLDR             R3, [R0]                                               ; +0x1c, 0x3c8290\nLDR.W           R3, [R3,#0xAC]                                         ; +0x1e, 0x3c8292\nBLX             R3                                                     ; +0x22, 0x3c8296\nLDR.W           R0, [R4,#0x160]                                        ; +0x24, 0x3c8298\nLDRB.W          R1, [R4,#0x172]                                        ; +0x28, 0x3c829c\nLDR             R3, [R0]                                               ; +0x2c, 0x3c82a0\nLDR.W           R3, [R3,#0xAC]                                         ; +0x2e, 0x3c82a2\nBLX             R3                                                     ; +0x32, 0x3c82a6\nLDR.W           R0, [R4,#0x16C]                                        ; +0x34, 0x3c82a8\nLDR             R3, [R0]                                               ; +0x38, 0x3c82ac\nLDR.W           R3, [R3,#0xA4]                                         ; +0x3a, 0x3c82ae\nBLX             R3                                                     ; +0x3e, 0x3c82b2\nMOV             R1, R0; cocos2d::CCSize *                              ; +0x40, 0x3c82b4\nADD             R0, SP, #0x30+var_2C; this                             ; +0x42, 0x3c82b6\nBL              _ZN7cocos2d6CCSizeC1ERKS0_; cocos2d::CCSize::CCSize(cocos2d::CCSize const&) ; +0x44, 0x3c82b8\nLDR             R3, [R4]                                               ; +0x48, 0x3c82bc\nMOV             R0, R4                                                 ; +0x4a, 0x3c82be\nLDR.W           R3, [R3,#0xA4]                                         ; +0x4c, 0x3c82c0\nBLX             R3                                                     ; +0x50, 0x3c82c4\nMOV             R1, R0; cocos2d::CCSize *                              ; +0x52, 0x3c82c6\nADD             R0, SP, #0x30+var_24; this                             ; +0x54, 0x3c82c8\nBL              _ZN7cocos2d6CCSizeC1ERKS0_; cocos2d::CCSize::CCSize(cocos2d::CCSize const&) ; +0x56, 0x3c82ca\nLDRB.W          R3, [R4,#0x172]                                        ; +0x5a, 0x3c82ce\nCMP             R3, #0                                                 ; +0x5e, 0x3c82d2\nBEQ             loc_3C8372                                             ; +0x60, 0x3c82d4\nVLDR            S15, [SP,#0x30+var_20]                                 ; +0x62, 0x3c82d6\nADD             R5, SP, #0x30+var_1C                                   ; +0x66, 0x3c82da\nMOV.W           R1, #0x40800000; float                                 ; +0x68, 0x3c82dc\nMOV             R0, R5; this                                           ; +0x6c, 0x3c82e0\nVLDR            S14, [SP,#0x30+var_28]                                 ; +0x6e, 0x3c82e2\nVMUL.F32        S15, S15, S15                                          ; +0x72, 0x3c82e6\nVDIV.F32        S15, S15, S14                                          ; +0x76, 0x3c82ea\nVMOV            R2, S15; float                                         ; +0x7a, 0x3c82ee\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x7e, 0x3c82f2\nLDR.W           R0, [R4,#0x160]                                        ; +0x82, 0x3c82f6\nMOV             R1, R5                                                 ; +0x86, 0x3c82fa\nADD             R5, SP, #0x30+var_C                                    ; +0x88, 0x3c82fc\nLDR             R3, [R0]                                               ; +0x8a, 0x3c82fe\nLDR.W           R3, [R3,#0xA0]                                         ; +0x8c, 0x3c8300\nBLX             R3                                                     ; +0x90, 0x3c8304\nLDR.W           R0, [R4,#0x16C]                                        ; +0x92, 0x3c8306\nLDR             R3, [R0]                                               ; +0x96, 0x3c830a\nLDR             R3, [R3,#0x60]                                         ; +0x98, 0x3c830c\nBLX             R3                                                     ; +0x9a, 0x3c830e\nVLDR            S16, [SP,#0x30+var_20]                                 ; +0x9c, 0x3c8310\nVLDR            S15, [SP,#0x30+var_18]                                 ; +0xa0, 0x3c8314\nVLDR            S14, [R0,#4]                                           ; +0xa4, 0x3c8318\nLDR.W           R0, [R4,#0x160]                                        ; +0xa8, 0x3c831c\nVSUB.F32        S14, S14, S16                                          ; +0xac, 0x3c8320\nLDR             R3, [R0]                                               ; +0xb0, 0x3c8324\nLDR             R3, [R3,#0x60]                                         ; +0xb2, 0x3c8326\nVMUL.F32        S15, S14, S15                                          ; +0xb4, 0x3c8328\nVDIV.F32        S16, S15, S16                                          ; +0xb8, 0x3c832c\nBLX             R3                                                     ; +0xbc, 0x3c8330\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0xbe, 0x3c8332\nADD             R0, SP, #0x30+var_14; this                             ; +0xc0, 0x3c8334\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xc2, 0x3c8336\nVLDR            S14, [SP,#0x30+var_20]                                 ; +0xc6, 0x3c833a\nLDR             R1, [SP,#0x30+var_14]; float                           ; +0xca, 0x3c833e\nMOV             R0, R5; this                                           ; +0xcc, 0x3c8340\nVLDR            S12, [SP,#0x30+var_18]                                 ; +0xce, 0x3c8342\nVSUB.F32        S14, S14, S16                                          ; +0xd2, 0x3c8346\nVMOV.F64        D5, #0.5                                               ; +0xd6, 0x3c834a\nVCVT.F64.F32    D6, S12                                                ; +0xda, 0x3c834e\nVCVT.F64.F32    D7, S14                                                ; +0xde, 0x3c8352\nVMLS.F64        D7, D6, D5                                             ; +0xe2, 0x3c8356\nVCVT.F32.F64    S15, D7                                                ; +0xe6, 0x3c835a\nVMOV            R2, S15; float                                         ; +0xea, 0x3c835e\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xee, 0x3c8362\nLDR.W           R0, [R4,#0x160]                                        ; +0xf2, 0x3c8366\nMOV             R1, R5                                                 ; +0xf6, 0x3c836a\nLDR             R3, [R0]                                               ; +0xf8, 0x3c836c\nLDR             R3, [R3,#0x5C]                                         ; +0xfa, 0x3c836e\nBLX             R3                                                     ; +0xfc, 0x3c8370\nLDRB.W          R3, [R4,#0x171]                                        ; +0xfe, 0x3c8372\nCMP             R3, #0                                                 ; +0x102, 0x3c8376\nBEQ             loc_3C841E                                             ; +0x104, 0x3c8378\nVLDR            S15, [SP,#0x30+var_24]                                 ; +0x106, 0x3c837a\nADD             R5, SP, #0x30+var_1C                                   ; +0x10a, 0x3c837e\nMOV.W           R2, #0x40800000; float                                 ; +0x10c, 0x3c8380\nMOV             R0, R5; this                                           ; +0x110, 0x3c8384\nVLDR            S14, [SP,#0x30+var_2C]                                 ; +0x112, 0x3c8386\nVMUL.F32        S15, S15, S15                                          ; +0x116, 0x3c838a\nVDIV.F32        S15, S15, S14                                          ; +0x11a, 0x3c838e\nVMOV            R1, S15; float                                         ; +0x11e, 0x3c8392\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x122, 0x3c8396\nLDR.W           R0, [R4,#0x164]                                        ; +0x126, 0x3c839a\nMOV             R1, R5                                                 ; +0x12a, 0x3c839e\nADD             R5, SP, #0x30+var_C                                    ; +0x12c, 0x3c83a0\nLDR             R3, [R0]                                               ; +0x12e, 0x3c83a2\nLDR.W           R3, [R3,#0xA0]                                         ; +0x130, 0x3c83a4\nBLX             R3                                                     ; +0x134, 0x3c83a8\nLDR.W           R0, [R4,#0x16C]                                        ; +0x136, 0x3c83aa\nLDR             R3, [R0]                                               ; +0x13a, 0x3c83ae\nLDR             R3, [R3,#0x60]                                         ; +0x13c, 0x3c83b0\nBLX             R3                                                     ; +0x13e, 0x3c83b2\nVLDR            S16, [SP,#0x30+var_24]                                 ; +0x140, 0x3c83b4\nVLDR            S15, [SP,#0x30+var_1C]                                 ; +0x144, 0x3c83b8\nVLDR            S14, [R0]                                              ; +0x148, 0x3c83bc\nLDR.W           R0, [R4,#0x164]                                        ; +0x14c, 0x3c83c0\nVSUB.F32        S14, S14, S16                                          ; +0x150, 0x3c83c4\nLDR             R3, [R0]                                               ; +0x154, 0x3c83c8\nLDR             R3, [R3,#0x60]                                         ; +0x156, 0x3c83ca\nVMUL.F32        S15, S14, S15                                          ; +0x158, 0x3c83cc\nVDIV.F32        S16, S15, S16                                          ; +0x15c, 0x3c83d0\nBLX             R3                                                     ; +0x160, 0x3c83d4\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x162, 0x3c83d6\nADD             R0, SP, #0x30+var_14; this                             ; +0x164, 0x3c83d8\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x166, 0x3c83da\nVLDR            S12, [SP,#0x30+var_24]                                 ; +0x16a, 0x3c83de\nMOV             R0, R5; this                                           ; +0x16e, 0x3c83e2\nLDR             R2, [SP,#0x30+var_10]; float                           ; +0x170, 0x3c83e4\nVNEG.F32        S16, S16                                               ; +0x172, 0x3c83e6\nVMOV.F64        D5, #0.5                                               ; +0x176, 0x3c83ea\nVCVT.F64.F32    D6, S12                                                ; +0x17a, 0x3c83ee\nVCVT.F64.F32    D7, S16                                                ; +0x17e, 0x3c83f2\nVMLA.F64        D7, D6, D5                                             ; +0x182, 0x3c83f6\nVLDR            S12, [SP,#0x30+var_1C]                                 ; +0x186, 0x3c83fa\nVCVT.F64.F32    D6, S12                                                ; +0x18a, 0x3c83fe\nVMLS.F64        D7, D6, D5                                             ; +0x18e, 0x3c8402\nVCVT.F32.F64    S15, D7                                                ; +0x192, 0x3c8406\nVMOV            R1, S15; float                                         ; +0x196, 0x3c840a\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x19a, 0x3c840e\nLDR.W           R0, [R4,#0x164]                                        ; +0x19e, 0x3c8412\nMOV             R1, R5                                                 ; +0x1a2, 0x3c8416\nLDR             R3, [R0]                                               ; +0x1a4, 0x3c8418\nLDR             R3, [R3,#0x5C]                                         ; +0x1a6, 0x3c841a\nBLX             R3                                                     ; +0x1a8, 0x3c841c\nLDR             R2, [SP,#0x30+var_4]                                   ; +0x1aa, 0x3c841e\nLDR             R3, [R6]                                               ; +0x1ac, 0x3c8420\nCMP             R2, R3                                                 ; +0x1ae, 0x3c8422\nBEQ             loc_3C842A                                             ; +0x1b0, 0x3c8424\nBLX             __stack_chk_fail                                       ; +0x1b2, 0x3c8426\nADD             SP, SP, #0x30 ; '0'                                    ; +0x1b6, 0x3c842a\nVPOP            {D8}                                                   ; +0x1b8, 0x3c842c\nPOP             {R4-R6,PC}                                             ; +0x1bc, 0x3c8430", "xrefs": [], "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"}