{"type": "func", "start": 6443050736, "end": 6443050958, "name": "cocos2d::CCSpriteBatchNode::updateQuadFromSprite", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::updateQuadFromSprite from 0x1800926f0 to 0x1800927ce (222 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0474\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:22:08 +0000\n// \n\nvoid __fastcall cocos2d::CCSpriteBatchNode::updateQuadFromSprite(\n        cocos2d::CCSpriteBatchNode *this,\n        struct cocos2d::CCSprite *a2,\n        unsigned int a3)\n{\n  __int64 v6; // rsi\n  int v7; // edi\n  unsigned int v8; // edi\n  __int64 v9; // rax\n  __int64 v10; // rdx\n\n  while ( 1 )\n  {\n    if ( a3 < (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41)) )\n    {\n      v6 = *((_QWORD *)this + 41);\n      v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 72LL))(v6);\n      if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v6 + 80LL))(v6) != v7 )\n        break;\n    }\n    v8 = (4 * (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41)) + 4)\n       / 3;\n    if ( (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41)) < v8 )\n      cocos2d::CCTextureAtlas::resizeCapacity(*((cocos2d::CCTextureAtlas **)this + 41), v8);\n  }\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *, cocos2d::CCSpriteBatchNode *))(*(_QWORD *)a2 + 968LL))(a2, this);\n  v9 = *(_QWORD *)a2;\n  LOBYTE(v10) = 1;\n  *((_DWORD *)a2 + 90) = a3;\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v9 + 1048))(a2, v10);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 784LL))(a2);\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::updateQuadFromSprite from 0x1800926f0 to 0x1800927ce (222 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0474\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:22:08 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800926f0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800926f5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800926fa\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800926ff\npush    r14                                                            ; +0x14, 0x180092704\nsub     rsp, 20h                                                       ; +0x16, 0x180092706\nmov     ebp, r8d                                                       ; +0x1a, 0x18009270a\nmov     r14, rdx                                                       ; +0x1d, 0x18009270d\nmov     rbx, rcx                                                       ; +0x20, 0x180092710\nmov     rcx, [rbx+148h]                                                ; +0x23, 0x180092713\nmov     rax, [rcx]                                                     ; +0x2a, 0x18009271a\ncall    qword ptr [rax+50h]                                            ; +0x2d, 0x18009271d\ncmp     ebp, eax                                                       ; +0x30, 0x180092720\njnb     short loc_180092743                                            ; +0x32, 0x180092722\nmov     rsi, [rbx+148h]                                                ; +0x34, 0x180092724\nmov     rcx, rsi                                                       ; +0x3b, 0x18009272b\nmov     rax, [rsi]                                                     ; +0x3e, 0x18009272e\ncall    qword ptr [rax+48h]                                            ; +0x41, 0x180092731\nmov     rdx, [rsi]                                                     ; +0x44, 0x180092734\nmov     rcx, rsi                                                       ; +0x47, 0x180092737\nmov     edi, eax                                                       ; +0x4a, 0x18009273a\ncall    qword ptr [rdx+50h]                                            ; +0x4c, 0x18009273c\ncmp     eax, edi                                                       ; +0x4f, 0x18009273f\njnz     short loc_180092783                                            ; +0x51, 0x180092741\nmov     rcx, [rbx+148h]                                                ; +0x53, 0x180092743\nmov     rax, [rcx]                                                     ; +0x5a, 0x18009274a\ncall    qword ptr [rax+50h]                                            ; +0x5d, 0x18009274d\nlea     ecx, ds:4[rax*4]                                               ; +0x60, 0x180092750\nmov     eax, 0AAAAAAABh                                                ; +0x67, 0x180092757\nmul     ecx                                                            ; +0x6c, 0x18009275c\nmov     rcx, [rbx+148h]                                                ; +0x6e, 0x18009275e\nmov     edi, edx                                                       ; +0x75, 0x180092765\nshr     edi, 1                                                         ; +0x77, 0x180092767\nmov     rax, [rcx]                                                     ; +0x79, 0x180092769\ncall    qword ptr [rax+50h]                                            ; +0x7c, 0x18009276c\ncmp     eax, edi                                                       ; +0x7f, 0x18009276f\njnb     short loc_180092713                                            ; +0x81, 0x180092771\nmov     rcx, [rbx+148h]; this                                          ; +0x83, 0x180092773\nmov     edx, edi; unsigned int                                         ; +0x8a, 0x18009277a\ncall    ?resizeCapacity@CCTextureAtlas@cocos2d@@QEAA_NI@Z; cocos2d::CCTextureAtlas::resizeCapacity(uint) ; +0x8c, 0x18009277c\njmp     short loc_180092713                                            ; +0x91, 0x180092781\nmov     rax, [r14]                                                     ; +0x93, 0x180092783\nmov     rdx, rbx                                                       ; +0x96, 0x180092786\nmov     rcx, r14                                                       ; +0x99, 0x180092789\ncall    qword ptr [rax+3C8h]                                           ; +0x9c, 0x18009278c\nmov     rax, [r14]                                                     ; +0xa2, 0x180092792\nmov     dl, 1                                                          ; +0xa5, 0x180092795\nmov     rcx, r14                                                       ; +0xa7, 0x180092797\nmov     [r14+168h], ebp                                                ; +0xaa, 0x18009279a\ncall    qword ptr [rax+418h]                                           ; +0xb1, 0x1800927a1\nmov     rax, [r14]                                                     ; +0xb7, 0x1800927a7\nmov     rcx, r14                                                       ; +0xba, 0x1800927aa\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xbd, 0x1800927ad\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xc2, 0x1800927b2\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc7, 0x1800927b7\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xcc, 0x1800927bc\nadd     rsp, 20h                                                       ; +0xd1, 0x1800927c1\npop     r14                                                            ; +0xd5, 0x1800927c5\njmp     qword ptr [rax+310h]                                           ; +0xd7, 0x1800927c7", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c0474"], "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"}