{"type": "func", "start": 6443133856, "end": 6443133945, "name": "cocos2d::CCTextureAtlas::removeQuadAtIndex", "pseudocode": "// \n// cocos2d::CCTextureAtlas::removeQuadAtIndex from 0x1800a6ba0 to 0x1800a6bf9 (89 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x18008eeac\n// > cocos2d::CCTMXLayer::removeTileAt @ 0x1800acc7f\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b7d88\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 __fastcall cocos2d::CCTextureAtlas::removeQuadAtIndex(cocos2d::CCTextureAtlas *this, int a2)\n{\n  if ( this->m_uTotalQuads - a2 == 1 )\n  {\n    --this->m_uTotalQuads;\n    this->m_bDirty = 1;\n  }\n  else\n  {\n    memmove(&this->m_pQuads[a2], &this->m_pQuads[a2 + 1], 96LL * (this->m_uTotalQuads - a2 - 1));\n    --this->m_uTotalQuads;\n    this->m_bDirty = 1;\n  }\n}", "assembly": "; \n; cocos2d::CCTextureAtlas::removeQuadAtIndex from 0x1800a6ba0 to 0x1800a6bf9 (89 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x18008eeac\n; > cocos2d::CCTMXLayer::removeTileAt @ 0x1800acc7f\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b7d88\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    rbx                                                            ; +0x0, 0x1800a6ba0\nsub     rsp, 20h                                                       ; +0x2, 0x1800a6ba2\nmov     eax, [rcx+4Ch]                                                 ; +0x6, 0x1800a6ba6\nmov     rbx, rcx                                                       ; +0x9, 0x1800a6ba9\nsub     eax, edx                                                       ; +0xc, 0x1800a6bac\nmov     r10d, edx                                                      ; +0xe, 0x1800a6bae\nsub     eax, 1                                                         ; +0x11, 0x1800a6bb1\njz      short loc_1800A6BEC                                            ; +0x14, 0x1800a6bb4\nlea     r8, [rax+rax*2]                                                ; +0x16, 0x1800a6bb6\nlea     eax, [r10+1]                                                   ; +0x1a, 0x1800a6bba\nshl     r8, 5; Size                                                    ; +0x1e, 0x1800a6bbe\nlea     rdx, [rax+rax*2]                                               ; +0x22, 0x1800a6bc2\nshl     rdx, 5                                                         ; +0x26, 0x1800a6bc6\nadd     rdx, [rcx+60h]; Src                                            ; +0x2a, 0x1800a6bca\nlea     rcx, [r10+r10*2]                                               ; +0x2e, 0x1800a6bce\nshl     rcx, 5                                                         ; +0x32, 0x1800a6bd2\nadd     rcx, [rbx+60h]; void *                                         ; +0x36, 0x1800a6bd6\ncall    memmove                                                        ; +0x3a, 0x1800a6bda\ndec     dword ptr [rbx+4Ch]                                            ; +0x3f, 0x1800a6bdf\nmov     byte ptr [rbx+48h], 1                                          ; +0x42, 0x1800a6be2\nadd     rsp, 20h                                                       ; +0x46, 0x1800a6be6\npop     rbx                                                            ; +0x4a, 0x1800a6bea\nretn                                                                   ; +0x4b, 0x1800a6beb\ndec     dword ptr [rcx+4Ch]                                            ; +0x4c, 0x1800a6bec\nmov     byte ptr [rcx+48h], 1                                          ; +0x4f, 0x1800a6bef\nadd     rsp, 20h                                                       ; +0x53, 0x1800a6bf3\npop     rbx                                                            ; +0x57, 0x1800a6bf7\nretn                                                                   ; +0x58, 0x1800a6bf8", "xrefs": ["cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x18008eeac", "cocos2d::CCTMXLayer::removeTileAt @ 0x1800acc7f", "<???> @ 0x1801438a8", "<???> @ 0x1801b7d88"], "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"}