{"type": "func", "start": 3047340, "end": 3047786, "name": "CCScrollLayerExt::updateIndicators", "pseudocode": "// \n// CCScrollLayerExt::updateIndicators from 0x2e7fac to 0x2e816a (446 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CCScrollLayerExt::updateIndicators(CCScrollLayerExt *a1, float a2)\n{\n  const cocos2d::CCSize *v3; // r0\n  const cocos2d::CCSize *v4; // r0\n  const cocos2d::CCPoint *v5; // r0\n  float v6; // s16\n  const cocos2d::CCPoint *v7; // r0\n  float v8; // s15\n  const cocos2d::CCPoint *v9; // r0\n  float v10; // s16\n  const cocos2d::CCPoint *v11; // r0\n  float v12; // s15\n  cocos2d::CCSize v13; // [sp+4h] [bp-2Ch] BYREF\n  cocos2d::CCSize v14; // [sp+Ch] [bp-24h] BYREF\n  cocos2d::CCSize v15; // [sp+14h] [bp-1Ch] BYREF\n  cocos2d::CCPoint v16; // [sp+1Ch] [bp-14h] BYREF\n  cocos2d::CCPoint v17; // [sp+24h] [bp-Ch] BYREF\n\n  a1->m_horizontalScrollbar->setVisible(a1->m_horizontalScrollbar, a1->m_vScrollbarVisible);\n  a1->m_verticalScrollbar->setVisible(a1->m_verticalScrollbar, a1->m_hScrollbarVisible);\n  v3 = a1->m_contentLayer->getContentSize(a1->m_contentLayer);\n  cocos2d::CCSize::CCSize(&v13, v3);\n  v4 = a1->getContentSize(a1);\n  cocos2d::CCSize::CCSize(&v14, v4);\n  if ( a1->m_hScrollbarVisible )\n  {\n    cocos2d::CCSize::CCSize(&v15, 4.0, (float)(v14.height * v14.height) / v13.height);\n    a1->m_verticalScrollbar->setContentSize(a1->m_verticalScrollbar, &v15);\n    v5 = a1->m_contentLayer->getPosition(a1->m_contentLayer);\n    v6 = (float)((float)(v5->y - v14.height) * v15.height) / v14.height;\n    v7 = a1->m_verticalScrollbar->getPosition(a1->m_verticalScrollbar);\n    cocos2d::CCPoint::CCPoint(&v16, v7);\n    v8 = (float)(v14.height - v6) - v15.height * 0.5;\n    cocos2d::CCPoint::CCPoint(&v17, v16.x, v8);\n    a1->m_verticalScrollbar->setPosition(a1->m_verticalScrollbar, &v17);\n  }\n  if ( a1->m_vScrollbarVisible )\n  {\n    cocos2d::CCSize::CCSize(&v15, (float)(v14.width * v14.width) / v13.width, 4.0);\n    a1->m_horizontalScrollbar->setContentSize(a1->m_horizontalScrollbar, &v15);\n    v9 = a1->m_contentLayer->getPosition(a1->m_contentLayer);\n    v10 = (float)((float)(v9->x - v14.width) * v15.width) / v14.width;\n    v11 = a1->m_horizontalScrollbar->getPosition(a1->m_horizontalScrollbar);\n    cocos2d::CCPoint::CCPoint(&v16, v11);\n    v12 = (float)-v10 + v14.width * 0.5 - v15.width * 0.5;\n    cocos2d::CCPoint::CCPoint(&v17, v12, v16.y);\n    a1->m_horizontalScrollbar->setPosition(a1->m_horizontalScrollbar, &v17);\n  }\n}", "assembly": "; \n; CCScrollLayerExt::updateIndicators from 0x2e7fac to 0x2e816a (446 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x2e7fac\nMOV             R4, R0                                                 ; +0x2, 0x2e7fae\nLDR             R6, =(__stack_chk_guard_ptr - 0x2E7FBA)                ; +0x4, 0x2e7fb0\nVPUSH           {D8}                                                   ; +0x6, 0x2e7fb2\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xa, 0x2e7fb6\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xc, 0x2e7fb8\nLDR.W           R0, [R0,#0x160]                                        ; +0xe, 0x2e7fba\nLDRB.W          R1, [R4,#0x16D]                                        ; +0x12, 0x2e7fbe\nLDR             R3, [R6]                                               ; +0x16, 0x2e7fc2\nSUB             SP, SP, #0x30                                          ; +0x18, 0x2e7fc4\nSTR             R3, [SP,#0x30+var_4]                                   ; +0x1a, 0x2e7fc6\nLDR             R3, [R0]                                               ; +0x1c, 0x2e7fc8\nLDR.W           R3, [R3,#0xA4]                                         ; +0x1e, 0x2e7fca\nBLX             R3                                                     ; +0x22, 0x2e7fce\nLDR.W           R0, [R4,#0x15C]                                        ; +0x24, 0x2e7fd0\nLDRB.W          R1, [R4,#0x16E]                                        ; +0x28, 0x2e7fd4\nLDR             R3, [R0]                                               ; +0x2c, 0x2e7fd8\nLDR.W           R3, [R3,#0xA4]                                         ; +0x2e, 0x2e7fda\nBLX             R3                                                     ; +0x32, 0x2e7fde\nLDR.W           R0, [R4,#0x168]                                        ; +0x34, 0x2e7fe0\nLDR             R3, [R0]                                               ; +0x38, 0x2e7fe4\nLDR.W           R3, [R3,#0x9C]                                         ; +0x3a, 0x2e7fe6\nBLX             R3                                                     ; +0x3e, 0x2e7fea\nMOV             R1, R0; cocos2d::CCSize *                              ; +0x40, 0x2e7fec\nADD             R0, SP, #0x30+var_2C; this                             ; +0x42, 0x2e7fee\nBL              _ZN7cocos2d6CCSizeC1ERKS0_; cocos2d::CCSize::CCSize(cocos2d::CCSize const&) ; +0x44, 0x2e7ff0\nLDR             R3, [R4]                                               ; +0x48, 0x2e7ff4\nMOV             R0, R4                                                 ; +0x4a, 0x2e7ff6\nLDR.W           R3, [R3,#0x9C]                                         ; +0x4c, 0x2e7ff8\nBLX             R3                                                     ; +0x50, 0x2e7ffc\nMOV             R1, R0; cocos2d::CCSize *                              ; +0x52, 0x2e7ffe\nADD             R0, SP, #0x30+var_24; this                             ; +0x54, 0x2e8000\nBL              _ZN7cocos2d6CCSizeC1ERKS0_; cocos2d::CCSize::CCSize(cocos2d::CCSize const&) ; +0x56, 0x2e8002\nLDRB.W          R3, [R4,#0x16E]                                        ; +0x5a, 0x2e8006\nCMP             R3, #0                                                 ; +0x5e, 0x2e800a\nBEQ             loc_2E80AA                                             ; +0x60, 0x2e800c\nVLDR            S15, [SP,#0x30+var_20]                                 ; +0x62, 0x2e800e\nADD             R5, SP, #0x30+var_1C                                   ; +0x66, 0x2e8012\nMOV.W           R1, #0x40800000; float                                 ; +0x68, 0x2e8014\nMOV             R0, R5; this                                           ; +0x6c, 0x2e8018\nVLDR            S14, [SP,#0x30+var_28]                                 ; +0x6e, 0x2e801a\nVMUL.F32        S15, S15, S15                                          ; +0x72, 0x2e801e\nVDIV.F32        S15, S15, S14                                          ; +0x76, 0x2e8022\nVMOV            R2, S15; float                                         ; +0x7a, 0x2e8026\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x7e, 0x2e802a\nLDR.W           R0, [R4,#0x15C]                                        ; +0x82, 0x2e802e\nMOV             R1, R5                                                 ; +0x86, 0x2e8032\nADD             R5, SP, #0x30+var_C                                    ; +0x88, 0x2e8034\nLDR             R3, [R0]                                               ; +0x8a, 0x2e8036\nLDR.W           R3, [R3,#0x98]                                         ; +0x8c, 0x2e8038\nBLX             R3                                                     ; +0x90, 0x2e803c\nLDR.W           R0, [R4,#0x168]                                        ; +0x92, 0x2e803e\nLDR             R3, [R0]                                               ; +0x96, 0x2e8042\nLDR             R3, [R3,#0x60]                                         ; +0x98, 0x2e8044\nBLX             R3                                                     ; +0x9a, 0x2e8046\nVLDR            S16, [SP,#0x30+var_20]                                 ; +0x9c, 0x2e8048\nVLDR            S15, [SP,#0x30+var_18]                                 ; +0xa0, 0x2e804c\nVLDR            S14, [R0,#4]                                           ; +0xa4, 0x2e8050\nLDR.W           R0, [R4,#0x15C]                                        ; +0xa8, 0x2e8054\nVSUB.F32        S14, S14, S16                                          ; +0xac, 0x2e8058\nLDR             R3, [R0]                                               ; +0xb0, 0x2e805c\nLDR             R3, [R3,#0x60]                                         ; +0xb2, 0x2e805e\nVMUL.F32        S15, S14, S15                                          ; +0xb4, 0x2e8060\nVDIV.F32        S16, S15, S16                                          ; +0xb8, 0x2e8064\nBLX             R3                                                     ; +0xbc, 0x2e8068\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0xbe, 0x2e806a\nADD             R0, SP, #0x30+var_14; this                             ; +0xc0, 0x2e806c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xc2, 0x2e806e\nVLDR            S14, [SP,#0x30+var_20]                                 ; +0xc6, 0x2e8072\nLDR             R1, [SP,#0x30+var_14]; float                           ; +0xca, 0x2e8076\nMOV             R0, R5; this                                           ; +0xcc, 0x2e8078\nVLDR            S12, [SP,#0x30+var_18]                                 ; +0xce, 0x2e807a\nVSUB.F32        S14, S14, S16                                          ; +0xd2, 0x2e807e\nVMOV.F64        D5, #0.5                                               ; +0xd6, 0x2e8082\nVCVT.F64.F32    D6, S12                                                ; +0xda, 0x2e8086\nVCVT.F64.F32    D7, S14                                                ; +0xde, 0x2e808a\nVMLS.F64        D7, D6, D5                                             ; +0xe2, 0x2e808e\nVCVT.F32.F64    S15, D7                                                ; +0xe6, 0x2e8092\nVMOV            R2, S15; float                                         ; +0xea, 0x2e8096\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xee, 0x2e809a\nLDR.W           R0, [R4,#0x15C]                                        ; +0xf2, 0x2e809e\nMOV             R1, R5                                                 ; +0xf6, 0x2e80a2\nLDR             R3, [R0]                                               ; +0xf8, 0x2e80a4\nLDR             R3, [R3,#0x5C]                                         ; +0xfa, 0x2e80a6\nBLX             R3                                                     ; +0xfc, 0x2e80a8\nLDRB.W          R3, [R4,#0x16D]                                        ; +0xfe, 0x2e80aa\nCMP             R3, #0                                                 ; +0x102, 0x2e80ae\nBEQ             loc_2E8156                                             ; +0x104, 0x2e80b0\nVLDR            S15, [SP,#0x30+var_24]                                 ; +0x106, 0x2e80b2\nADD             R5, SP, #0x30+var_1C                                   ; +0x10a, 0x2e80b6\nMOV.W           R2, #0x40800000; float                                 ; +0x10c, 0x2e80b8\nMOV             R0, R5; this                                           ; +0x110, 0x2e80bc\nVLDR            S14, [SP,#0x30+var_2C]                                 ; +0x112, 0x2e80be\nVMUL.F32        S15, S15, S15                                          ; +0x116, 0x2e80c2\nVDIV.F32        S15, S15, S14                                          ; +0x11a, 0x2e80c6\nVMOV            R1, S15; float                                         ; +0x11e, 0x2e80ca\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x122, 0x2e80ce\nLDR.W           R0, [R4,#0x160]                                        ; +0x126, 0x2e80d2\nMOV             R1, R5                                                 ; +0x12a, 0x2e80d6\nADD             R5, SP, #0x30+var_C                                    ; +0x12c, 0x2e80d8\nLDR             R3, [R0]                                               ; +0x12e, 0x2e80da\nLDR.W           R3, [R3,#0x98]                                         ; +0x130, 0x2e80dc\nBLX             R3                                                     ; +0x134, 0x2e80e0\nLDR.W           R0, [R4,#0x168]                                        ; +0x136, 0x2e80e2\nLDR             R3, [R0]                                               ; +0x13a, 0x2e80e6\nLDR             R3, [R3,#0x60]                                         ; +0x13c, 0x2e80e8\nBLX             R3                                                     ; +0x13e, 0x2e80ea\nVLDR            S16, [SP,#0x30+var_24]                                 ; +0x140, 0x2e80ec\nVLDR            S15, [SP,#0x30+var_1C]                                 ; +0x144, 0x2e80f0\nVLDR            S14, [R0]                                              ; +0x148, 0x2e80f4\nLDR.W           R0, [R4,#0x160]                                        ; +0x14c, 0x2e80f8\nVSUB.F32        S14, S14, S16                                          ; +0x150, 0x2e80fc\nLDR             R3, [R0]                                               ; +0x154, 0x2e8100\nLDR             R3, [R3,#0x60]                                         ; +0x156, 0x2e8102\nVMUL.F32        S15, S14, S15                                          ; +0x158, 0x2e8104\nVDIV.F32        S16, S15, S16                                          ; +0x15c, 0x2e8108\nBLX             R3                                                     ; +0x160, 0x2e810c\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x162, 0x2e810e\nADD             R0, SP, #0x30+var_14; this                             ; +0x164, 0x2e8110\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x166, 0x2e8112\nVLDR            S12, [SP,#0x30+var_24]                                 ; +0x16a, 0x2e8116\nMOV             R0, R5; this                                           ; +0x16e, 0x2e811a\nLDR             R2, [SP,#0x30+var_10]; float                           ; +0x170, 0x2e811c\nVNEG.F32        S16, S16                                               ; +0x172, 0x2e811e\nVMOV.F64        D5, #0.5                                               ; +0x176, 0x2e8122\nVCVT.F64.F32    D6, S12                                                ; +0x17a, 0x2e8126\nVCVT.F64.F32    D7, S16                                                ; +0x17e, 0x2e812a\nVMLA.F64        D7, D6, D5                                             ; +0x182, 0x2e812e\nVLDR            S12, [SP,#0x30+var_1C]                                 ; +0x186, 0x2e8132\nVCVT.F64.F32    D6, S12                                                ; +0x18a, 0x2e8136\nVMLS.F64        D7, D6, D5                                             ; +0x18e, 0x2e813a\nVCVT.F32.F64    S15, D7                                                ; +0x192, 0x2e813e\nVMOV            R1, S15; float                                         ; +0x196, 0x2e8142\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x19a, 0x2e8146\nLDR.W           R0, [R4,#0x160]                                        ; +0x19e, 0x2e814a\nMOV             R1, R5                                                 ; +0x1a2, 0x2e814e\nLDR             R3, [R0]                                               ; +0x1a4, 0x2e8150\nLDR             R3, [R3,#0x5C]                                         ; +0x1a6, 0x2e8152\nBLX             R3                                                     ; +0x1a8, 0x2e8154\nLDR             R2, [SP,#0x30+var_4]                                   ; +0x1aa, 0x2e8156\nLDR             R3, [R6]                                               ; +0x1ac, 0x2e8158\nCMP             R2, R3                                                 ; +0x1ae, 0x2e815a\nBEQ             loc_2E8162                                             ; +0x1b0, 0x2e815c\nBLX             __stack_chk_fail                                       ; +0x1b2, 0x2e815e\nADD             SP, SP, #0x30 ; '0'                                    ; +0x1b6, 0x2e8162\nVPOP            {D8}                                                   ; +0x1b8, 0x2e8164\nPOP             {R4-R6,PC}                                             ; +0x1bc, 0x2e8168", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}