{"type": "func", "start": 3967560, "end": 3967814, "name": "CCScrollLayerExt::updateScrollDecay", "pseudocode": "// \n// CCScrollLayerExt::updateScrollDecay from 0x3c8a48 to 0x3c8b46 (254 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:36 +0000\n// \n\nint __fastcall CCScrollLayerExt::updateScrollDecay(CCScrollLayerExt *this, float a2)\n{\n  float v3; // s14\n  float v4; // s16\n  float v5; // s14\n  float v6; // s13\n  int v7; // r0\n  int v8; // r9\n  float MinY; // s16\n  float v10; // r0\n  int result; // r0\n  _BYTE v12[4]; // [sp+4h] [bp-18h] BYREF\n  float v13; // [sp+8h] [bp-14h]\n  _DWORD v14[2]; // [sp+Ch] [bp-10h] BYREF\n\n  v3 = *((float *)this + 98);\n  v4 = (float)(v3 * a2) * 15.0;\n  v5 = v3 - v4;\n  v6 = fabsf(v5);\n  if ( v6 < 0.1 )\n    *((_DWORD *)this + 98) = 0;\n  else\n    *((float *)this + 98) = v5;\n  v7 = *((_DWORD *)this + 91);\n  if ( v6 < 0.1 )\n    v4 = v4 + v5;\n  v8 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 96))(v7);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, v4);\n  cocos2d::CCPoint::operator+(v12, v8, v14);\n  MinY = CCScrollLayerExt::getMinY(this);\n  v10 = COERCE_FLOAT(CCScrollLayerExt::getMaxY(this));\n  if ( v13 >= MinY )\n  {\n    if ( v13 <= v10 )\n      goto LABEL_11;\n    v13 = v10;\n  }\n  else\n  {\n    v13 = MinY;\n  }\n  *((_DWORD *)this + 98) = 0;\nLABEL_11:\n  result = (*(int (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 91) + 92))(*((_DWORD *)this + 91), v12);\n  if ( *((float *)this + 98) == 0.0 )\n  {\n    v14[1] = 0;\n    v14[0] = CCScrollLayerExt::updateScrollDecay;\n    result = cocos2d::CCNode::unschedule(this, CCScrollLayerExt::updateScrollDecay, 0);\n    *((_BYTE *)this + 396) = 0;\n  }\n  return result;\n}", "assembly": "; \n; CCScrollLayerExt::updateScrollDecay from 0x3c8a48 to 0x3c8b46 (254 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:36 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x3c8a48\nVMOV            S15, R1                                                ; +0x4, 0x3c8a4c\nVPUSH           {D8}                                                   ; +0x8, 0x3c8a50\nMOV             R4, R0                                                 ; +0xc, 0x3c8a54\nLDR             R3, =(__stack_chk_guard_ptr - 0x3C8A62)                ; +0xe, 0x3c8a56\nMOVS            R7, #0                                                 ; +0x10, 0x3c8a58\nVMOV.F32        S16, #15.0                                             ; +0x12, 0x3c8a5a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x16, 0x3c8a5e\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x18, 0x3c8a60\nVLDR            S14, [R0,#0x188]                                       ; +0x1a, 0x3c8a62\nSUB             SP, SP, #0x1C                                          ; +0x1e, 0x3c8a66\nLDR             R2, [R3]                                               ; +0x20, 0x3c8a68\nMOV             R6, R3                                                 ; +0x22, 0x3c8a6a\nADD             R5, SP, #0x1C+var_10                                   ; +0x24, 0x3c8a6c\nADD.W           R8, SP, #0x1C+var_18                                   ; +0x26, 0x3c8a6e\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x2a, 0x3c8a72\nVMUL.F32        S15, S14, S15                                          ; +0x2c, 0x3c8a74\nVMUL.F32        S16, S15, S16                                          ; +0x30, 0x3c8a78\nVLDR            S15, =0.1                                              ; +0x34, 0x3c8a7c\nVSUB.F32        S14, S14, S16                                          ; +0x38, 0x3c8a80\nVABS.F32        S13, S14                                               ; +0x3c, 0x3c8a84\nVCMPE.F32       S13, S15                                               ; +0x40, 0x3c8a88\nVMRS            APSR_nzcv, FPSCR                                       ; +0x44, 0x3c8a8c\nITEE PL                                                                ; +0x48, 0x3c8a90\nVSTRPL          S14, [R0,#0x188]                                       ; +0x4a, 0x3c8a92\nMOVMI           R3, #0                                                 ; +0x4e, 0x3c8a96\nSTRMI.W         R3, [R0,#0x188]                                        ; +0x50, 0x3c8a98\nLDR.W           R0, [R0,#0x16C]                                        ; +0x54, 0x3c8a9c\nIT MI                                                                  ; +0x58, 0x3c8aa0\nVADDMI.F32      S16, S16, S14                                          ; +0x5a, 0x3c8aa2\nLDR             R3, [R0]                                               ; +0x5e, 0x3c8aa6\nLDR             R3, [R3,#0x60]                                         ; +0x60, 0x3c8aa8\nBLX             R3                                                     ; +0x62, 0x3c8aaa\nMOV             R1, R7; float                                          ; +0x64, 0x3c8aac\nVMOV            R2, S16; float                                         ; +0x66, 0x3c8aae\nMOV             R9, R0                                                 ; +0x6a, 0x3c8ab2\nMOV             R0, R5; this                                           ; +0x6c, 0x3c8ab4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x6e, 0x3c8ab6\nMOV             R1, R9                                                 ; +0x72, 0x3c8aba\nMOV             R2, R5                                                 ; +0x74, 0x3c8abc\nMOV             R0, R8                                                 ; +0x76, 0x3c8abe\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x78, 0x3c8ac0\nMOV             R0, R4; this                                           ; +0x7c, 0x3c8ac4\nBL              _ZN16CCScrollLayerExt7getMinYEv; CCScrollLayerExt::getMinY(void) ; +0x7e, 0x3c8ac6\nVMOV            S16, R0                                                ; +0x82, 0x3c8aca\nMOV             R0, R4; this                                           ; +0x86, 0x3c8ace\nBL              _ZN16CCScrollLayerExt7getMaxYEv; CCScrollLayerExt::getMaxY(void) ; +0x88, 0x3c8ad0\nVLDR            S14, [SP,#0x1C+var_14]                                 ; +0x8c, 0x3c8ad4\nVCMPE.F32       S14, S16                                               ; +0x90, 0x3c8ad8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x94, 0x3c8adc\nVMOV            S15, R0                                                ; +0x98, 0x3c8ae0\nBPL             loc_3C8AEC                                             ; +0x9c, 0x3c8ae4\nVSTR            S16, [SP,#0x1C+var_14]                                 ; +0x9e, 0x3c8ae6\nB               loc_3C8AF8                                             ; +0xa2, 0x3c8aea\nVCMPE.F32       S14, S15                                               ; +0xa4, 0x3c8aec\nVMRS            APSR_nzcv, FPSCR                                       ; +0xa8, 0x3c8af0\nBLE             loc_3C8AFC                                             ; +0xac, 0x3c8af4\nSTR             R0, [SP,#0x1C+var_14]                                  ; +0xae, 0x3c8af6\nSTR.W           R7, [R4,#0x188]                                        ; +0xb0, 0x3c8af8\nLDR.W           R0, [R4,#0x16C]                                        ; +0xb4, 0x3c8afc\nMOV             R1, R8                                                 ; +0xb8, 0x3c8b00\nLDR             R3, [R0]                                               ; +0xba, 0x3c8b02\nLDR             R3, [R3,#0x5C]                                         ; +0xbc, 0x3c8b04\nBLX             R3                                                     ; +0xbe, 0x3c8b06\nVLDR            S15, [R4,#0x188]                                       ; +0xc0, 0x3c8b08\nVCMP.F32        S15, #0.0                                              ; +0xc4, 0x3c8b0c\nVMRS            APSR_nzcv, FPSCR                                       ; +0xc8, 0x3c8b10\nBNE             loc_3C8B30                                             ; +0xcc, 0x3c8b14\nLDR             R3, =(_ZN16CCScrollLayerExt17updateScrollDecayEf_ptr - 0x3C8B22) ; +0xce, 0x3c8b16\nMOVS            R7, #0                                                 ; +0xd0, 0x3c8b18\nMOV             R0, R4                                                 ; +0xd2, 0x3c8b1a\nSTR             R7, [SP,#0x1C+var_C]                                   ; +0xd4, 0x3c8b1c\nADD             R3, PC; _ZN16CCScrollLayerExt17updateScrollDecayEf_ptr ; +0xd6, 0x3c8b1e\nLDR             R3, [R3]; CCScrollLayerExt::updateScrollDecay(float)   ; +0xd8, 0x3c8b20\nSTR             R3, [SP,#0x1C+var_10]                                  ; +0xda, 0x3c8b22\nLDM.W           R5, {R1,R2}                                            ; +0xdc, 0x3c8b24\nBL              _ZN7cocos2d6CCNode10unscheduleEMNS_8CCObjectEFvfE; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0xe0, 0x3c8b28\nSTRB.W          R7, [R4,#0x18C]                                        ; +0xe4, 0x3c8b2c\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xe8, 0x3c8b30\nLDR             R3, [R6]                                               ; +0xea, 0x3c8b32\nCMP             R2, R3                                                 ; +0xec, 0x3c8b34\nBEQ             loc_3C8B3C                                             ; +0xee, 0x3c8b36\nBLX             __stack_chk_fail                                       ; +0xf0, 0x3c8b38\nADD             SP, SP, #0x1C                                          ; +0xf4, 0x3c8b3c\nVPOP            {D8}                                                   ; +0xf6, 0x3c8b3e\nPOP.W           {R4-R9,PC}                                             ; +0xfa, 0x3c8b42", "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"}