{"type": "func", "start": 5368999040, "end": 5368999373, "name": "CCContentLayer::setPosition", "pseudocode": "// \n// CCContentLayer::setPosition from 0x140046c80 to 0x140046dcd (333 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140708140\n// > <???> @ 0x140885654\n// > <???> @ 0x140885698\n// > <???> @ 0x14090f9d4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:31 +0000\n// \n\nint __fastcall CCContentLayer::setPosition(cocos2d::CCNode *a1, const struct 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; // rdi\n  __int64 v11; // rbx\n  __int64 v12; // rdx\n  float v13; // xmm0_4\n\n  cocos2d::CCNode::setPosition(a1, a2);\n  v3 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 480LL))(a1);\n  v4 = v3;\n  if ( v3 )\n  {\n    v5 = 0;\n    for ( LODWORD(v3) = cocos2d::CCArray::count(v3); v5 < (unsigned int)v3; LODWORD(v3) = cocos2d::CCArray::count(v4) )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(v4, v5);\n      v7 = v6;\n      if ( *((_QWORD *)v6 + 52) )\n      {\n        v8 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v6 + 320LL))(v6) + 4);\n        v9 = *(float *)((*(__int64 (__fastcall **)(_QWORD *))(**((_QWORD **)v7 + 52) + 320LL))(*((_QWORD **)v7 + 52)) + 4);\n        v10 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 504LL))(v7);\n        v11 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 200LL))(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))(*(_QWORD *)v7 + 336LL))(v7, v12);\n      }\n      ++v5;\n    }\n  }\n  return (int)v3;\n}", "assembly": "; \n; CCContentLayer::setPosition from 0x140046c80 to 0x140046dcd (333 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140708140\n; > <???> @ 0x140885654\n; > <???> @ 0x140885698\n; > <???> @ 0x14090f9d4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:31 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140046c80\npush    r14                                                            ; +0x5, 0x140046c85\nsub     rsp, 50h                                                       ; +0x7, 0x140046c87\nmov     rbx, rcx                                                       ; +0xb, 0x140046c8b\ncall    cs:__imp_?setPosition@CCNode@cocos2d@@UEAAXAEBVCCPoint@2@@Z; cocos2d::CCNode::setPosition(cocos2d::CCPoint const &) ; +0xe, 0x140046c8e\nmov     rax, [rbx]                                                     ; +0x14, 0x140046c94\nmov     rcx, rbx                                                       ; +0x17, 0x140046c97\ncall    qword ptr [rax+1E0h]                                           ; +0x1a, 0x140046c9a\nmov     r14, rax                                                       ; +0x20, 0x140046ca0\ntest    rax, rax                                                       ; +0x23, 0x140046ca3\njz      loc_140046DC1                                                  ; +0x26, 0x140046ca6\nmov     [rsp+58h+arg_0], rbp                                           ; +0x2c, 0x140046cac\nmov     rcx, rax                                                       ; +0x31, 0x140046cb1\nxor     ebp, ebp                                                       ; +0x34, 0x140046cb4\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x36, 0x140046cb6\ntest    eax, eax                                                       ; +0x3c, 0x140046cbc\njz      loc_140046DBC                                                  ; +0x3e, 0x140046cbe\nmov     [rsp+58h+arg_8], rsi                                           ; +0x44, 0x140046cc4\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x49, 0x140046cc9\nmovss   xmm8, dword ptr cs:xmmword_140836CC0                           ; +0x4f, 0x140046ccf\nmov     [rsp+58h+arg_10], rdi                                          ; +0x58, 0x140046cd8\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x5d, 0x140046cdd\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x62, 0x140046ce2\nnop     word ptr [rax+rax+00000000h]                                   ; +0x67, 0x140046ce7\nmov     edx, ebp                                                       ; +0x70, 0x140046cf0\nmov     rcx, r14                                                       ; +0x72, 0x140046cf2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x75, 0x140046cf5\nmov     rsi, rax                                                       ; +0x7b, 0x140046cfb\ncmp     qword ptr [rax+1A0h], 0                                        ; +0x7e, 0x140046cfe\njz      loc_140046D8F                                                  ; +0x86, 0x140046d06\nmov     rcx, [rax]                                                     ; +0x8c, 0x140046d0c\nmov     rdx, [rcx+140h]                                                ; +0x8f, 0x140046d0f\nmov     rcx, rax                                                       ; +0x96, 0x140046d16\ncall    rdx                                                            ; +0x99, 0x140046d19\nmov     rcx, [rsi+1A0h]                                                ; +0x9b, 0x140046d1b\nmovss   xmm7, dword ptr [rax+4]                                        ; +0xa2, 0x140046d22\nmov     rdx, [rcx]                                                     ; +0xa7, 0x140046d27\ncall    qword ptr [rdx+140h]                                           ; +0xaa, 0x140046d2a\nmov     rcx, rsi                                                       ; +0xb0, 0x140046d30\nmovss   xmm6, dword ptr [rax+4]                                        ; +0xb3, 0x140046d33\nmov     rax, [rsi]                                                     ; +0xb8, 0x140046d38\ncall    qword ptr [rax+1F8h]                                           ; +0xbb, 0x140046d3b\nmov     rcx, [rsi]                                                     ; +0xc1, 0x140046d41\nmov     rdi, rax                                                       ; +0xc4, 0x140046d44\nmov     rdx, [rcx+0C8h]                                                ; +0xc7, 0x140046d47\nmov     rcx, rsi                                                       ; +0xce, 0x140046d4e\ncall    rdx                                                            ; +0xd1, 0x140046d51\nmov     rcx, [rdi]                                                     ; +0xd3, 0x140046d53\nmov     rbx, rax                                                       ; +0xd6, 0x140046d56\nmov     rdx, [rcx+0C8h]                                                ; +0xd9, 0x140046d59\nmov     rcx, rdi                                                       ; +0xe0, 0x140046d60\ncall    rdx                                                            ; +0xe3, 0x140046d63\nmovss   xmm0, dword ptr [rbx+4]                                        ; +0xe5, 0x140046d65\naddss   xmm0, dword ptr [rax+4]                                        ; +0xea, 0x140046d6a\ncomiss  xmm0, xmm6                                                     ; +0xef, 0x140046d6f\nja      short loc_140046D81                                            ; +0xf2, 0x140046d72\nxorps   xmm7, xmm8                                                     ; +0xf4, 0x140046d74\ncomiss  xmm7, xmm0                                                     ; +0xf8, 0x140046d78\nja      short loc_140046D81                                            ; +0xfb, 0x140046d7b\nmov     dl, 1                                                          ; +0xfd, 0x140046d7d\njmp     short loc_140046D83                                            ; +0xff, 0x140046d7f\nxor     edx, edx                                                       ; +0x101, 0x140046d81\nmov     rax, [rsi]                                                     ; +0x103, 0x140046d83\nmov     rcx, rsi                                                       ; +0x106, 0x140046d86\ncall    qword ptr [rax+150h]                                           ; +0x109, 0x140046d89\nmov     rcx, r14                                                       ; +0x10f, 0x140046d8f\ninc     ebp                                                            ; +0x112, 0x140046d92\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x114, 0x140046d94\ncmp     ebp, eax                                                       ; +0x11a, 0x140046d9a\njb      loc_140046CF0                                                  ; +0x11c, 0x140046d9c\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x122, 0x140046da2\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x128, 0x140046da8\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x12d, 0x140046dad\nmov     rdi, [rsp+58h+arg_10]                                          ; +0x132, 0x140046db2\nmov     rsi, [rsp+58h+arg_8]                                           ; +0x137, 0x140046db7\nmov     rbp, [rsp+58h+arg_0]                                           ; +0x13c, 0x140046dbc\nmov     rbx, [rsp+58h+arg_18]                                          ; +0x141, 0x140046dc1\nadd     rsp, 50h                                                       ; +0x146, 0x140046dc6\npop     r14                                                            ; +0x14a, 0x140046dca\nretn                                                                   ; +0x14c, 0x140046dcc", "xrefs": ["<???> @ 0x140708140", "<???> @ 0x140885654", "<???> @ 0x140885698", "<???> @ 0x14090f9d4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}