{"type": "func", "start": 6443024032, "end": 6443024200, "name": "cocos2d::CCSprite::isFrameDisplayed", "pseudocode": "// \n// cocos2d::CCSprite::isFrameDisplayed from 0x18008bea0 to 0x18008bf48 (168 bytes)\n// \n// 9 xrefs:\n// > <???> @ 0x1800ebc68\n// > <???> @ 0x1800ec140\n// > <???> @ 0x1800eccc0\n// > <???> @ 0x180103b78\n// > <???> @ 0x180106b70\n// > <???> @ 0x18013d654\n// > <???> @ 0x18013d664\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5be0\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\nbool __fastcall cocos2d::CCSprite::isFrameDisplayed(cocos2d::CCSprite *this, struct cocos2d::CCSpriteFrame *a2)\n{\n  struct cocos2d::CCTexture2D *Texture; // rdi\n  int v5; // ebx\n  cocos2d::CCSize *PositionOffset; // rax\n  bool result; // al\n  cocos2d::CCRect v8; // [rsp+20h] [rbp-18h] BYREF\n\n  cocos2d::CCRect::CCRect(&v8, &a2->m_obRect);\n  result = false;\n  if ( cocos2d::CCRect::equals(&v8, &this->m_obRect) )\n  {\n    Texture = cocos2d::CCSpriteFrame::getTexture(a2);\n    v5 = ((__int64 (__fastcall *)(cocos2d::CCTexture2D *))this->m_pobTexture->getName)(this->m_pobTexture);\n    if ( ((unsigned int (__fastcall *)(struct cocos2d::CCTexture2D *))Texture->getName)(Texture) == v5 )\n    {\n      PositionOffset = (cocos2d::CCSize *)cocos2d::CCTMXObjectGroup::getPositionOffset((cocos2d::CCTMXObjectGroup *)a2);\n      if ( cocos2d::CCSize::equals(\n             PositionOffset,\n             (const struct cocos2d::CCSize *)&this->m_obUnflippedOffsetPositionFromCenter) )\n      {\n        return true;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCSprite::isFrameDisplayed from 0x18008bea0 to 0x18008bf48 (168 bytes)\n; \n; 9 xrefs:\n; > <???> @ 0x1800ebc68\n; > <???> @ 0x1800ec140\n; > <???> @ 0x1800eccc0\n; > <???> @ 0x180103b78\n; > <???> @ 0x180106b70\n; > <???> @ 0x18013d654\n; > <???> @ 0x18013d664\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5be0\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_8], rbx                                               ; +0x0, 0x18008bea0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x18008bea5\npush    rsi                                                            ; +0xa, 0x18008beaa\nsub     rsp, 30h                                                       ; +0xb, 0x18008beab\nmov     rsi, rdx                                                       ; +0xf, 0x18008beaf\nmov     rbp, rcx                                                       ; +0x12, 0x18008beb2\nadd     rdx, 5Ch ; '\\'; struct cocos2d::CCRect *                       ; +0x15, 0x18008beb5\nlea     rcx, [rsp+38h+var_18]; this                                    ; +0x19, 0x18008beb9\ncall    ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x1e, 0x18008bebe\nlea     rdx, [rbp+1A8h]; struct cocos2d::CCRect *                      ; +0x23, 0x18008bec3\nlea     rcx, [rsp+38h+var_18]; this                                    ; +0x2a, 0x18008beca\ncall    ?equals@CCRect@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCRect::equals(cocos2d::CCRect const &) ; +0x2f, 0x18008becf\ntest    al, al                                                         ; +0x34, 0x18008bed4\njz      short loc_18008BF36                                            ; +0x36, 0x18008bed6\nmov     rcx, rsi; this                                                 ; +0x38, 0x18008bed8\nmov     [rsp+38h+arg_0], rdi                                           ; +0x3b, 0x18008bedb\ncall    ?getTexture@CCSpriteFrame@cocos2d@@QEAAPEAVCCTexture2D@2@XZ; cocos2d::CCSpriteFrame::getTexture(void) ; +0x40, 0x18008bee0\nmov     rcx, [rbp+1A0h]                                                ; +0x45, 0x18008bee5\nmov     rdi, rax                                                       ; +0x4c, 0x18008beec\nmov     rdx, [rcx]                                                     ; +0x4f, 0x18008beef\ncall    qword ptr [rdx+60h]                                            ; +0x52, 0x18008bef2\nmov     rdx, [rdi]                                                     ; +0x55, 0x18008bef5\nmov     rcx, rdi                                                       ; +0x58, 0x18008bef8\nmov     ebx, eax                                                       ; +0x5b, 0x18008befb\ncall    qword ptr [rdx+60h]                                            ; +0x5d, 0x18008befd\nmov     rdi, [rsp+38h+arg_0]                                           ; +0x60, 0x18008bf00\ncmp     eax, ebx                                                       ; +0x65, 0x18008bf05\njnz     short loc_18008BF36                                            ; +0x67, 0x18008bf07\nmov     rcx, rsi; this                                                 ; +0x69, 0x18008bf09\ncall    ?getPositionOffset@CCTMXObjectGroup@cocos2d@@QEBAAEBVCCPoint@2@XZ; cocos2d::CCTMXObjectGroup::getPositionOffset(void) ; +0x6c, 0x18008bf0c\nmov     rcx, rax; this                                                 ; +0x71, 0x18008bf11\nlea     rdx, [rbp+1C4h]; struct cocos2d::CCSize *                      ; +0x74, 0x18008bf14\ncall    ?equals@CCSize@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCSize::equals(cocos2d::CCSize const &) ; +0x7b, 0x18008bf1b\ntest    al, al                                                         ; +0x80, 0x18008bf20\njz      short loc_18008BF36                                            ; +0x82, 0x18008bf22\nmov     al, 1                                                          ; +0x84, 0x18008bf24\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x86, 0x18008bf26\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x8b, 0x18008bf2b\nadd     rsp, 30h                                                       ; +0x90, 0x18008bf30\npop     rsi                                                            ; +0x94, 0x18008bf34\nretn                                                                   ; +0x95, 0x18008bf35\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x96, 0x18008bf36\nxor     al, al                                                         ; +0x9b, 0x18008bf3b\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x9d, 0x18008bf3d\nadd     rsp, 30h                                                       ; +0xa2, 0x18008bf42\npop     rsi                                                            ; +0xa6, 0x18008bf46\nretn                                                                   ; +0xa7, 0x18008bf47", "xrefs": ["<???> @ 0x1800ebc68", "<???> @ 0x1800ec140", "<???> @ 0x1800eccc0", "<???> @ 0x180103b78", "<???> @ 0x180106b70", "<???> @ 0x18013d654", "<???> @ 0x18013d664", "<???> @ 0x1801438a8", "<???> @ 0x1801b5be0"], "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"}