{"type": "func", "start": 4299352768, "end": 4299352901, "name": "CCScrollLayerExt::setContentOffset", "pseudocode": "// \n// CCScrollLayerExt::setContentOffset from 0x10042eac0 to 0x10042eb45 (133 bytes)\n// \n// 1 xrefs:\n// > CustomListView::setupList @ 0x10024de6e\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall CCScrollLayerExt::setContentOffset(CCScrollLayerExt *a1, cocos2d::CCPoint a2, bool a3)\n{\n  int v3; // edx\n  cocos2d::CCMoveTo *v4; // rax\n  cocos2d::CCEaseOut *v5; // r14\n  cocos2d::CCCallFunc *v6; // rax\n  CCContentLayer *m_contentLayer; // rbx\n  cocos2d::CCSequence *v8; // rax\n\n  if ( v3 )\n  {\n    v4 = cocos2d::CCMoveTo::create(0.30000001, (const cocos2d::CCPoint *)a3);\n    v5 = cocos2d::CCEaseOut::create(v4, 3.0);\n    v6 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)CCScrollLayerExt::constraintContent);\n    m_contentLayer = a1->m_contentLayer;\n    v8 = sub_1003B5760(v5, v6, 0);\n    cocos2d::CCNode::runAction(m_contentLayer, v8);\n  }\n  else\n  {\n    ((void (__fastcall *)(CCContentLayer *, bool, double))a1->m_contentLayer->setPosition)(\n      a1->m_contentLayer,\n      a3,\n      *(double *)&a2);\n    CCScrollLayerExt::doConstraintContent(a1, 0);\n  }\n}", "assembly": "; \n; CCScrollLayerExt::setContentOffset from 0x10042eac0 to 0x10042eb45 (133 bytes)\n; \n; 1 xrefs:\n; > CustomListView::setupList @ 0x10024de6e\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    rbp                                                            ; +0x0, 0x10042eac0\nmov     rbp, rsp                                                       ; +0x1, 0x10042eac1\npush    r14                                                            ; +0x4, 0x10042eac4\npush    rbx                                                            ; +0x6, 0x10042eac6\nmov     rbx, rdi                                                       ; +0x7, 0x10042eac7\ntest    edx, edx                                                       ; +0xa, 0x10042eaca\njz      short loc_10042EB27                                            ; +0xc, 0x10042eacc\nmovss   xmm0, cs:dword_100815420                                       ; +0xe, 0x10042eace\nmov     rdi, rsi                                                       ; +0x16, 0x10042ead6\ncall    cocos2d__CCMoveTo__create                                      ; +0x19, 0x10042ead9\nmovss   xmm0, cs:flt_100815320                                         ; +0x1e, 0x10042eade\nmov     rdi, rax                                                       ; +0x26, 0x10042eae6\ncall    cocos2d__CCEaseOut__create                                     ; +0x29, 0x10042eae9\nmov     r14, rax                                                       ; +0x2e, 0x10042eaee\nlea     rsi, CCScrollLayerExt__constraintContent                       ; +0x31, 0x10042eaf1\nmov     rdi, rbx                                                       ; +0x38, 0x10042eaf8\nxor     edx, edx                                                       ; +0x3b, 0x10042eafb\ncall    cocos2d__CCCallFunc__create                                    ; +0x3d, 0x10042eafd\nmov     rbx, [rbx+1E0h]                                                ; +0x42, 0x10042eb02\nmov     rdi, r14                                                       ; +0x49, 0x10042eb09\nmov     rsi, rax                                                       ; +0x4c, 0x10042eb0c\nxor     edx, edx                                                       ; +0x4f, 0x10042eb0f\nxor     eax, eax                                                       ; +0x51, 0x10042eb11\ncall    sub_1003B5760                                                  ; +0x53, 0x10042eb13\nmov     rdi, rbx                                                       ; +0x58, 0x10042eb18\nmov     rsi, rax                                                       ; +0x5b, 0x10042eb1b\npop     rbx                                                            ; +0x5e, 0x10042eb1e\npop     r14                                                            ; +0x5f, 0x10042eb1f\npop     rbp                                                            ; +0x61, 0x10042eb21\njmp     cocos2d__CCNode__runAction                                     ; +0x62, 0x10042eb22\nmov     rdi, [rbx+1E0h]                                                ; +0x67, 0x10042eb27\nmov     rax, [rdi]                                                     ; +0x6e, 0x10042eb2e\ncall    qword ptr [rax+0B8h]                                           ; +0x71, 0x10042eb31\nmov     rdi, rbx                                                       ; +0x77, 0x10042eb37\nxor     esi, esi                                                       ; +0x7a, 0x10042eb3a\npop     rbx                                                            ; +0x7c, 0x10042eb3c\npop     r14                                                            ; +0x7d, 0x10042eb3d\npop     rbp                                                            ; +0x7f, 0x10042eb3f\njmp     CCScrollLayerExt__doConstraintContent                          ; +0x80, 0x10042eb40", "xrefs": ["CustomListView::setupList @ 0x10024de6e"], "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"}