{"type": "func", "start": 3049696, "end": 3050116, "name": "CCScrollLayerExt::ccTouchEnded", "pseudocode": "// \n// CCScrollLayerExt::ccTouchEnded from 0x2e88e0 to 0x2e8a84 (420 bytes)\n// \n// 2 xrefs:\n// > `non-virtual thunk to'CCScrollLayerExt::ccTouchEnded @ 0x2e8a9c\n// > TableView::ccTouchEnded @ 0x2ea59a\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::ccTouchEnded(CCScrollLayerExt *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCDirector *v5; // r0\n  float v6; // s16\n  float v7; // s15\n  float MinY; // r0\n  float m_peekLimitTop; // s18\n  float v10; // s16\n  float v11; // s17\n  const cocos2d::CCPoint *v12; // r0\n  float v13; // r5\n  CCScrollLayerExtDelegate *m_delegate; // r0\n  cocos2d::CCMoveBy *v15; // r0\n  cocos2d::CCEaseOut *v16; // r0\n  cocos2d::CCSequence *v17; // r8\n  cocos2d::CCFiniteTimeAction *v18; // r0\n  CCContentLayer *m_contentLayer; // r7\n  cocos2d::CCAction *v20; // r0\n  cocos2d::CCPoint v21; // [sp+4h] [bp-20h] BYREF\n  cocos2d::cc_timeval v22; // [sp+Ch] [bp-18h] BYREF\n  cocos2d::CCPoint v23; // [sp+14h] [bp-10h] BYREF\n  cocos2d::CCPoint v24; // [sp+1Ch] [bp-8h] BYREF\n  cocos2d::CCPoint v25; // [sp+24h] [bp+0h] BYREF\n\n  cocos2d::CCTouch::getLocationInView(&v21, a2);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::convertToGL(&v25, v5, &v21);\n  cocos2d::CCPoint::operator=(&v21, &v25);\n  if ( a2 != a1->m_touch )\n    goto LABEL_17;\n  cocos2d::CCTime::gettimeofdayCocos2d(&v22, nullptr);\n  v6 = cocos2d::ccpDistance(&v21, &a1->m_touchStartPosition);\n  v7 = cocos2d::CCTime::timersubCocos2d(&a1->m_timeValue, &v22);\n  if ( (float)(v6 / v7) < 0.5 )\n  {\n    CCScrollLayerExt::constraintContent(a1);\n    goto LABEL_17;\n  }\n  cocos2d::CCNode::stopAllActions(a1->m_contentLayer);\n  cocos2d::CCPoint::operator-(&v23, &v21, &a1->m_touchStartPosition);\n  if ( a1->m_disableVertical )\n  {\n    v23.y = 0.0;\n  }\n  else if ( a1->m_disableHorizontal )\n  {\n    v23.x = 0.0;\n  }\n  MinY = CCScrollLayerExt::getMinY(a1);\n  m_peekLimitTop = a1->m_peekLimitTop;\n  v10 = MinY;\n  v11 = CCScrollLayerExt::getMaxY(a1) + a1->m_peekLimitBottom;\n  v12 = a1->m_contentLayer->getPosition(a1->m_contentLayer);\n  cocos2d::CCPoint::CCPoint(&v24, v12);\n  if ( (float)(v24.y + v23.y) <= v11 )\n  {\n    if ( (float)(v24.y + v23.y) >= (float)(v10 - m_peekLimitTop) )\n    {\n      v13 = 0.3;\n      goto LABEL_13;\n    }\n    v23.y = (float)(v10 - m_peekLimitTop) - v24.y;\n  }\n  else\n  {\n    v23.y = v11 - v24.y;\n  }\n  v13 = 0.1;\nLABEL_13:\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n    m_delegate->scrllViewWillBeginDecelerating(m_delegate, a1);\n  CCScrollLayerExt::constraintContent(a1);\n  v15 = cocos2d::CCMoveBy::create(v13, &v23);\n  v16 = cocos2d::CCEaseOut::create(v15, 2.0);\n  v25.y = 0.0;\n  LODWORD(v25.x) = CCScrollLayerExt::constraintContent;\n  v17 = (cocos2d::CCSequence *)v16;\n  v18 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, CCScrollLayerExt::constraintContent, 0);\n  m_contentLayer = a1->m_contentLayer;\n  v20 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v17, v18, 0);\n  cocos2d::CCNode::runAction(m_contentLayer, v20);\n  a1->m_notAtEndOfScroll = 1;\nLABEL_17:\n  a1->m_touchDown = 0;\n  cocos2d::CCPoint::operator=(&a1->m_touchPosition, &stru_AC53F0);\n}", "assembly": "; \n; CCScrollLayerExt::ccTouchEnded from 0x2e88e0 to 0x2e8a84 (420 bytes)\n; \n; 2 xrefs:\n; > `non-virtual thunk to'CCScrollLayerExt::ccTouchEnded @ 0x2e8a9c\n; > TableView::ccTouchEnded @ 0x2ea59a\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.W          {R4-R9,LR}                                             ; +0x0, 0x2e88e0\nMOV             R4, R0                                                 ; +0x4, 0x2e88e4\nVPUSH           {D8-D9}                                                ; +0x6, 0x2e88e6\nMOV             R8, R1                                                 ; +0xa, 0x2e88ea\nLDR             R6, =(__stack_chk_guard_ptr - 0x2E88F2)                ; +0xc, 0x2e88ec\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x2e88ee\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x2e88f0\nSUB             SP, SP, #0x34                                          ; +0x12, 0x2e88f2\nLDR             R3, [R6]                                               ; +0x14, 0x2e88f4\nADD             R5, SP, #0x34+var_30                                   ; +0x16, 0x2e88f6\nADD             R7, SP, #0x24                                          ; +0x18, 0x2e88f8\nMOV             R0, R5; this                                           ; +0x1a, 0x2e88fa\nSTR             R3, [SP,#0x34+var_8]                                   ; +0x1c, 0x2e88fc\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x1e, 0x2e88fe\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x22, 0x2e8902\nMOV             R2, R5                                                 ; +0x26, 0x2e8906\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x28, 0x2e8908\nMOV             R0, R7; this                                           ; +0x2a, 0x2e890a\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x2c, 0x2e890c\nMOV             R0, R5                                                 ; +0x30, 0x2e8910\nMOV             R1, R7                                                 ; +0x32, 0x2e8912\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x34, 0x2e8914\nLDR.W           R3, [R4,#0x13C]                                        ; +0x38, 0x2e8918\nCMP             R8, R3                                                 ; +0x3c, 0x2e891c\nBNE.W           loc_2E8A5C                                             ; +0x3e, 0x2e891e\nADD.W           R8, SP, #0x34+var_28                                   ; +0x42, 0x2e8922\nADD.W           R9, R4, #0x148                                         ; +0x46, 0x2e8926\nMOVS            R1, #0                                                 ; +0x4a, 0x2e892a\nMOV             R0, R8                                                 ; +0x4c, 0x2e892c\nBL              _ZN7cocos2d6CCTime19gettimeofdayCocos2dEPNS_10cc_timevalEPv; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0x4e, 0x2e892e\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0x52, 0x2e8932\nMOV             R0, R5; this                                           ; +0x54, 0x2e8934\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0x56, 0x2e8936\nMOV             R1, R8                                                 ; +0x5a, 0x2e893a\nVMOV            S16, R0                                                ; +0x5c, 0x2e893c\nADD.W           R0, R4, #0x150                                         ; +0x60, 0x2e8940\nBL              _ZN7cocos2d6CCTime15timersubCocos2dEPNS_10cc_timevalES2_; cocos2d::CCTime::timersubCocos2d(cocos2d::cc_timeval *,cocos2d::cc_timeval *) ; +0x64, 0x2e8944\nVMOV            D7, R0, R1                                             ; +0x68, 0x2e8948\nVCVT.F32.F64    S15, D7                                                ; +0x6c, 0x2e894c\nVDIV.F32        S16, S16, S15                                          ; +0x70, 0x2e8950\nVMOV.F32        S15, #0.5                                              ; +0x74, 0x2e8954\nVCMPE.F32       S16, S15                                               ; +0x78, 0x2e8958\nVMRS            APSR_nzcv, FPSCR                                       ; +0x7c, 0x2e895c\nBLT             loc_2E8A56                                             ; +0x80, 0x2e8960\nADD.W           R8, SP, #0x34+var_20                                   ; +0x82, 0x2e8962\nLDR.W           R0, [R4,#0x168]; this                                  ; +0x86, 0x2e8966\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x8a, 0x2e896a\nMOV             R1, R5                                                 ; +0x8e, 0x2e896e\nMOV             R0, R8                                                 ; +0x90, 0x2e8970\nMOV             R2, R9                                                 ; +0x92, 0x2e8972\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x94, 0x2e8974\nLDRB.W          R3, [R4,#0x170]                                        ; +0x98, 0x2e8978\nCBZ             R3, loc_2E8984                                         ; +0x9c, 0x2e897c\nMOVS            R3, #0                                                 ; +0x9e, 0x2e897e\nSTR             R3, [SP,#0x34+var_1C]                                  ; +0xa0, 0x2e8980\nB               loc_2E898E                                             ; +0xa2, 0x2e8982\nLDRB.W          R3, [R4,#0x16F]                                        ; +0xa4, 0x2e8984\nCBZ             R3, loc_2E898E                                         ; +0xa8, 0x2e8988\nMOVS            R3, #0                                                 ; +0xaa, 0x2e898a\nSTR             R3, [SP,#0x34+var_20]                                  ; +0xac, 0x2e898c\nMOV             R0, R4; this                                           ; +0xae, 0x2e898e\nBL              _ZN16CCScrollLayerExt7getMinYEv; CCScrollLayerExt::getMinY(void) ; +0xb0, 0x2e8990\nVLDR            S18, [R4,#0x17C]                                       ; +0xb4, 0x2e8994\nVMOV            S16, R0                                                ; +0xb8, 0x2e8998\nMOV             R0, R4; this                                           ; +0xbc, 0x2e899c\nBL              _ZN16CCScrollLayerExt7getMaxYEv; CCScrollLayerExt::getMaxY(void) ; +0xbe, 0x2e899e\nVLDR            S17, [R4,#0x180]                                       ; +0xc2, 0x2e89a2\nVMOV            S15, R0                                                ; +0xc6, 0x2e89a6\nLDR.W           R0, [R4,#0x168]                                        ; +0xca, 0x2e89aa\nVADD.F32        S17, S15, S17                                          ; +0xce, 0x2e89ae\nLDR             R3, [R0]                                               ; +0xd2, 0x2e89b2\nLDR             R3, [R3,#0x60]                                         ; +0xd4, 0x2e89b4\nBLX             R3                                                     ; +0xd6, 0x2e89b6\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0xd8, 0x2e89b8\nADD             R0, SP, #0x34+var_18; this                             ; +0xda, 0x2e89ba\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xdc, 0x2e89bc\nVLDR            S13, [SP,#0x34+var_14]                                 ; +0xe0, 0x2e89c0\nVLDR            S14, [SP,#0x34+var_1C]                                 ; +0xe4, 0x2e89c4\nVADD.F32        S14, S13, S14                                          ; +0xe8, 0x2e89c8\nVCMPE.F32       S14, S17                                               ; +0xec, 0x2e89cc\nVMRS            APSR_nzcv, FPSCR                                       ; +0xf0, 0x2e89d0\nBLE             loc_2E89E0                                             ; +0xf4, 0x2e89d4\nVSUB.F32        S17, S17, S13                                          ; +0xf6, 0x2e89d6\nVSTR            S17, [SP,#0x34+var_1C]                                 ; +0xfa, 0x2e89da\nB               loc_2E89F6                                             ; +0xfe, 0x2e89de\nVSUB.F32        S15, S16, S18                                          ; +0x100, 0x2e89e0\nVCMPE.F32       S14, S15                                               ; +0x104, 0x2e89e4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x108, 0x2e89e8\nBPL             loc_2E89FA                                             ; +0x10c, 0x2e89ec\nVSUB.F32        S15, S15, S13                                          ; +0x10e, 0x2e89ee\nVSTR            S15, [SP,#0x34+var_1C]                                 ; +0x112, 0x2e89f2\nLDR             R5, =0x3DCCCCCD                                        ; +0x116, 0x2e89f6\nB               loc_2E89FC                                             ; +0x118, 0x2e89f8\nLDR             R5, =0x3E99999A                                        ; +0x11a, 0x2e89fa\nLDR.W           R0, [R4,#0x164]                                        ; +0x11c, 0x2e89fc\nCBZ             R0, loc_2E8A0A                                         ; +0x120, 0x2e8a00\nLDR             R3, [R0]                                               ; +0x122, 0x2e8a02\nMOV             R1, R4                                                 ; +0x124, 0x2e8a04\nLDR             R3, [R3]                                               ; +0x126, 0x2e8a06\nBLX             R3                                                     ; +0x128, 0x2e8a08\nMOV             R0, R4; this                                           ; +0x12a, 0x2e8a0a\nBL              _ZN16CCScrollLayerExt17constraintContentEv; CCScrollLayerExt::constraintContent(void) ; +0x12c, 0x2e8a0c\nMOV             R1, R8; float                                          ; +0x130, 0x2e8a10\nMOV             R0, R5; this                                           ; +0x132, 0x2e8a12\nMOVS            R5, #0                                                 ; +0x134, 0x2e8a14\nBL              _ZN7cocos2d8CCMoveBy6createEfRKNS_7CCPointE; cocos2d::CCMoveBy::create(float,cocos2d::CCPoint const&) ; +0x136, 0x2e8a16\nMOV.W           R1, #0x40000000; cocos2d::CCActionInterval *           ; +0x13a, 0x2e8a1a\nBL              _ZN7cocos2d9CCEaseOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseOut::create(cocos2d::CCActionInterval *,float) ; +0x13e, 0x2e8a1e\nLDR             R3, =(_ZN16CCScrollLayerExt17constraintContentEv_ptr - 0x2E8A2A) ; +0x142, 0x2e8a22\nSTR             R5, [SP,#0x34+var_C]                                   ; +0x144, 0x2e8a24\nADD             R3, PC; _ZN16CCScrollLayerExt17constraintContentEv_ptr ; +0x146, 0x2e8a26\nLDR             R3, [R3]; CCScrollLayerExt::constraintContent(void)    ; +0x148, 0x2e8a28\nSTR             R3, [SP,#0x34+var_10]                                  ; +0x14a, 0x2e8a2a\nLDM.W           R7, {R1,R2}                                            ; +0x14c, 0x2e8a2c\nMOV             R8, R0                                                 ; +0x150, 0x2e8a30\nMOV             R0, R4                                                 ; +0x152, 0x2e8a32\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x154, 0x2e8a34\nMOV             R2, R5                                                 ; +0x158, 0x2e8a38\nLDR.W           R7, [R4,#0x168]                                        ; +0x15a, 0x2e8a3a\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x15e, 0x2e8a3e\nMOV             R0, R8; this                                           ; +0x160, 0x2e8a40\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x162, 0x2e8a42\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x166, 0x2e8a46\nMOV             R0, R7; this                                           ; +0x168, 0x2e8a48\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x16a, 0x2e8a4a\nMOVS            R3, #1                                                 ; +0x16e, 0x2e8a4e\nSTRB.W          R3, [R4,#0x159]                                        ; +0x170, 0x2e8a50\nB               loc_2E8A5C                                             ; +0x174, 0x2e8a54\nMOV             R0, R4; this                                           ; +0x176, 0x2e8a56\nBL              _ZN16CCScrollLayerExt17constraintContentEv; CCScrollLayerExt::constraintContent(void) ; +0x178, 0x2e8a58\nLDR             R1, =(stru_AC53F0 - 0x2E8A6C)                          ; +0x17c, 0x2e8a5c\nMOVS            R3, #0                                                 ; +0x17e, 0x2e8a5e\nADD.W           R0, R4, #0x140                                         ; +0x180, 0x2e8a60\nSTRB.W          R3, [R4,#0x158]                                        ; +0x184, 0x2e8a64\nADD             R1, PC; stru_AC53F0                                    ; +0x188, 0x2e8a68\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x18a, 0x2e8a6a\nLDR             R2, [SP,#0x34+var_8]                                   ; +0x18e, 0x2e8a6e\nLDR             R3, [R6]                                               ; +0x190, 0x2e8a70\nCMP             R2, R3                                                 ; +0x192, 0x2e8a72\nBEQ             loc_2E8A7A                                             ; +0x194, 0x2e8a74\nBLX             __stack_chk_fail                                       ; +0x196, 0x2e8a76\nADD             SP, SP, #0x34 ; '4'                                    ; +0x19a, 0x2e8a7a\nVPOP            {D8-D9}                                                ; +0x19c, 0x2e8a7c\nPOP.W           {R4-R9,PC}                                             ; +0x1a0, 0x2e8a80", "xrefs": ["`non-virtual thunk to'CCScrollLayerExt::ccTouchEnded @ 0x2e8a9c", "TableView::ccTouchEnded @ 0x2ea59a"], "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"}