{"type": "func", "start": 5368983520, "end": 5368983840, "name": "CCContentLayer::setPosition", "pseudocode": "// \n// CCContentLayer::setPosition from 0x140042fe0 to 0x140043120 (320 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14052d548\n// > <???> @ 0x1406625b4\n// > <???> @ 0x1406625f8\n// > <???> @ 0x1406c44c4\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 CCContentLayer::setPosition(CCContentLayer *a1, const cocos2d::CCPoint *a2)\n{\n  cocos2d::CCArray *v3; // rax\n  cocos2d::CCArray *v4; // r14\n  unsigned int v5; // ebp\n  struct cocos2d::CCObject *v6; // rax\n  struct cocos2d::CCObject *v7; // rsi\n  float v8; // xmm7_4\n  float v9; // xmm6_4\n  __int64 v10; // rbx\n  __int64 v11; // rdi\n  __int64 v12; // rdx\n  float v13; // xmm0_4\n\n  cocos2d::CCNode::setPosition(a1, a2);\n  v3 = a1->getChildren(a1);\n  v4 = v3;\n  if ( v3 )\n  {\n    v5 = 0;\n    if ( cocos2d::CCArray::count(v3) )\n    {\n      do\n      {\n        v6 = cocos2d::CCArray::objectAtIndex(v4, v5);\n        v7 = v6;\n        if ( *(_QWORD *)&v6[7].m_uAutoReleaseCount )\n        {\n          v8 = *(float *)(((__int64 (__fastcall *)(struct cocos2d::CCObject *))v6->__vftable[4].isEqual)(v6) + 4);\n          v9 = *(float *)((*(__int64 (__fastcall **)(_QWORD *))(**(_QWORD **)&v7[7].m_uAutoReleaseCount + 304LL))(*(_QWORD **)&v7[7].m_uAutoReleaseCount)\n                        + 4);\n          v10 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v7->__vftable[6].getTag)(v7);\n          v11 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v7->__vftable[2].getTag)(v7);\n          v13 = *(float *)(v11 + 4) + *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 200LL))(v10) + 4);\n          if ( v13 > v9 || (float)-v8 > v13 )\n            v12 = 0;\n          else\n            LOBYTE(v12) = 1;\n          ((void (__fastcall *)(struct cocos2d::CCObject *, __int64))v7->__vftable[4].update)(v7, v12);\n        }\n        ++v5;\n      }\n      while ( v5 < cocos2d::CCArray::count(v4) );\n    }\n  }\n}", "assembly": "; \n; CCContentLayer::setPosition from 0x140042fe0 to 0x140043120 (320 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14052d548\n; > <???> @ 0x1406625b4\n; > <???> @ 0x1406625f8\n; > <???> @ 0x1406c44c4\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\nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140042fe0\npush    r14                                                            ; +0x5, 0x140042fe5\nsub     rsp, 50h                                                       ; +0x7, 0x140042fe7\nmov     rbx, rcx                                                       ; +0xb, 0x140042feb\ncall    cs:__imp_?setPosition@CCNode@cocos2d@@UEAAXAEBVCCPoint@2@@Z; cocos2d::CCNode::setPosition(cocos2d::CCPoint const &) ; +0xe, 0x140042fee\nmov     rax, [rbx]                                                     ; +0x14, 0x140042ff4\nmov     rcx, rbx                                                       ; +0x17, 0x140042ff7\ncall    qword ptr [rax+1D0h]                                           ; +0x1a, 0x140042ffa\nmov     r14, rax                                                       ; +0x20, 0x140043000\ntest    rax, rax                                                       ; +0x23, 0x140043003\njz      loc_140043114                                                  ; +0x26, 0x140043006\nmov     [rsp+58h+arg_0], rbp                                           ; +0x2c, 0x14004300c\nmov     rcx, rax                                                       ; +0x31, 0x140043011\nxor     ebp, ebp                                                       ; +0x34, 0x140043014\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x36, 0x140043016\ntest    eax, eax                                                       ; +0x3c, 0x14004301c\njz      loc_14004310F                                                  ; +0x3e, 0x14004301e\nmov     [rsp+58h+arg_8], rsi                                           ; +0x44, 0x140043024\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x49, 0x140043029\nmovss   xmm8, dword ptr cs:xmmword_1406243F0                           ; +0x4f, 0x14004302f\nmov     [rsp+58h+arg_10], rdi                                          ; +0x58, 0x140043038\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x5d, 0x14004303d\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x62, 0x140043042\nnop     word ptr [rax+rax+00000000h]                                   ; +0x67, 0x140043047\nmov     edx, ebp                                                       ; +0x70, 0x140043050\nmov     rcx, r14                                                       ; +0x72, 0x140043052\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x75, 0x140043055\nmov     rsi, rax                                                       ; +0x7b, 0x14004305b\ncmp     qword ptr [rax+1A0h], 0                                        ; +0x7e, 0x14004305e\njz      short loc_1400430E2                                            ; +0x86, 0x140043066\nmov     rdx, [rax]                                                     ; +0x88, 0x140043068\nmov     rcx, rax                                                       ; +0x8b, 0x14004306b\ncall    qword ptr [rdx+130h]                                           ; +0x8e, 0x14004306e\nmov     rcx, [rsi+1A0h]                                                ; +0x94, 0x140043074\nmovss   xmm7, dword ptr [rax+4]                                        ; +0x9b, 0x14004307b\nmov     rdx, [rcx]                                                     ; +0xa0, 0x140043080\ncall    qword ptr [rdx+130h]                                           ; +0xa3, 0x140043083\nmov     rcx, rsi                                                       ; +0xa9, 0x140043089\nmovss   xmm6, dword ptr [rax+4]                                        ; +0xac, 0x14004308c\nmov     rax, [rsi]                                                     ; +0xb1, 0x140043091\ncall    qword ptr [rax+1E8h]                                           ; +0xb4, 0x140043094\nmov     rdx, [rsi]                                                     ; +0xba, 0x14004309a\nmov     rcx, rsi                                                       ; +0xbd, 0x14004309d\nmov     rbx, rax                                                       ; +0xc0, 0x1400430a0\ncall    qword ptr [rdx+0C8h]                                           ; +0xc3, 0x1400430a3\nmov     rdx, [rbx]                                                     ; +0xc9, 0x1400430a9\nmov     rcx, rbx                                                       ; +0xcc, 0x1400430ac\nmov     rdi, rax                                                       ; +0xcf, 0x1400430af\ncall    qword ptr [rdx+0C8h]                                           ; +0xd2, 0x1400430b2\nmovss   xmm0, dword ptr [rdi+4]                                        ; +0xd8, 0x1400430b8\naddss   xmm0, dword ptr [rax+4]                                        ; +0xdd, 0x1400430bd\ncomiss  xmm0, xmm6                                                     ; +0xe2, 0x1400430c2\nja      short loc_1400430D4                                            ; +0xe5, 0x1400430c5\nxorps   xmm7, xmm8                                                     ; +0xe7, 0x1400430c7\ncomiss  xmm7, xmm0                                                     ; +0xeb, 0x1400430cb\nja      short loc_1400430D4                                            ; +0xee, 0x1400430ce\nmov     dl, 1                                                          ; +0xf0, 0x1400430d0\njmp     short loc_1400430D6                                            ; +0xf2, 0x1400430d2\nxor     edx, edx                                                       ; +0xf4, 0x1400430d4\nmov     rax, [rsi]                                                     ; +0xf6, 0x1400430d6\nmov     rcx, rsi                                                       ; +0xf9, 0x1400430d9\ncall    qword ptr [rax+140h]                                           ; +0xfc, 0x1400430dc\nmov     rcx, r14                                                       ; +0x102, 0x1400430e2\ninc     ebp                                                            ; +0x105, 0x1400430e5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x107, 0x1400430e7\ncmp     ebp, eax                                                       ; +0x10d, 0x1400430ed\njb      loc_140043050                                                  ; +0x10f, 0x1400430ef\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x115, 0x1400430f5\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x11b, 0x1400430fb\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x120, 0x140043100\nmov     rdi, [rsp+58h+arg_10]                                          ; +0x125, 0x140043105\nmov     rsi, [rsp+58h+arg_8]                                           ; +0x12a, 0x14004310a\nmov     rbp, [rsp+58h+arg_0]                                           ; +0x12f, 0x14004310f\nmov     rbx, [rsp+58h+arg_18]                                          ; +0x134, 0x140043114\nadd     rsp, 50h                                                       ; +0x139, 0x140043119\npop     r14                                                            ; +0x13d, 0x14004311d\nretn                                                                   ; +0x13f, 0x14004311f", "xrefs": ["<???> @ 0x14052d548", "<???> @ 0x1406625b4", "<???> @ 0x1406625f8", "<???> @ 0x1406c44c4"], "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"}