{"type": "func", "start": 5371953040, "end": 5371953221, "name": "DemonFilterSelectLayer::selectRating", "pseudocode": "// \n// DemonFilterSelectLayer::selectRating from 0x140317f90 to 0x140318045 (181 bytes)\n// \n// 5 xrefs:\n// > DemonFilterSelectLayer::init @ 0x140317f2c\n// > DemonFilterSelectLayer::init @ 0x140317cfd\n// > <???> @ 0x140692cfc\n// > <???> @ 0x140692d0c\n// > <???> @ 0x1406d49c4\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 DemonFilterSelectLayer::selectRating(DemonFilterSelectLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // eax\n  cocos2d::CCArray *m_demons; // rcx\n  unsigned int v5; // ebx\n  struct cocos2d::CCObject *v6; // rsi\n  __int64 v7; // rdi\n  int v8; // eax\n  void *v9; // rdx\n\n  v3 = a2->getTag(a2);\n  m_demons = a1->m_demons;\n  v5 = 0;\n  a1->m_currentDemon = v3;\n  if ( cocos2d::CCArray::count(m_demons) )\n  {\n    do\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(a1->m_demons, v5);\n      v7 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v6->__vftable[13].copyWithZone)(v6);\n      v8 = v6->getTag(v6);\n      v9 = &unk_140529B58;\n      if ( a1->m_currentDemon == v8 )\n        v9 = &unk_140529B5C;\n      (**(void (__fastcall ***)(__int64, void *))(v7 + 320))(v7 + 320, v9);\n      ++v5;\n    }\n    while ( v5 < cocos2d::CCArray::count(a1->m_demons) );\n  }\n}", "assembly": "; \n; DemonFilterSelectLayer::selectRating from 0x140317f90 to 0x140318045 (181 bytes)\n; \n; 5 xrefs:\n; > DemonFilterSelectLayer::init @ 0x140317f2c\n; > DemonFilterSelectLayer::init @ 0x140317cfd\n; > <???> @ 0x140692cfc\n; > <???> @ 0x140692d0c\n; > <???> @ 0x1406d49c4\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_10], rbx                                              ; +0x0, 0x140317f90\npush    rbp                                                            ; +0x5, 0x140317f95\nsub     rsp, 20h                                                       ; +0x6, 0x140317f96\nmov     rax, [rdx]                                                     ; +0xa, 0x140317f9a\nmov     rbp, rcx                                                       ; +0xd, 0x140317f9d\nmov     rcx, rdx                                                       ; +0x10, 0x140317fa0\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x140317fa3\nmov     rcx, [rbp+278h]                                                ; +0x16, 0x140317fa6\nxor     ebx, ebx                                                       ; +0x1d, 0x140317fad\nmov     [rbp+288h], eax                                                ; +0x1f, 0x140317faf\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25, 0x140317fb5\ntest    eax, eax                                                       ; +0x2b, 0x140317fbb\njz      short loc_14031803A                                            ; +0x2d, 0x140317fbd\nmov     [rsp+28h+arg_0], rsi                                           ; +0x2f, 0x140317fbf\nmov     [rsp+28h+arg_8], rdi                                           ; +0x34, 0x140317fc4\nnop     dword ptr [rax+00000000h]                                      ; +0x39, 0x140317fc9\nmov     rcx, [rbp+278h]                                                ; +0x40, 0x140317fd0\nmov     edx, ebx                                                       ; +0x47, 0x140317fd7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x140317fd9\nmov     rcx, rax                                                       ; +0x4f, 0x140317fdf\nmov     rsi, rax                                                       ; +0x52, 0x140317fe2\nmov     rdx, [rax]                                                     ; +0x55, 0x140317fe5\ncall    qword ptr [rdx+3A8h]                                           ; +0x58, 0x140317fe8\nmov     rdx, [rsi]                                                     ; +0x5e, 0x140317fee\nmov     rcx, rsi                                                       ; +0x61, 0x140317ff1\nmov     rdi, rax                                                       ; +0x64, 0x140317ff4\ncall    qword ptr [rdx+38h]                                            ; +0x67, 0x140317ff7\nlea     rcx, [rdi+140h]                                                ; +0x6a, 0x140317ffa\nlea     rdx, unk_140529B58                                             ; +0x71, 0x140318001\nmov     r8, [rcx]                                                      ; +0x78, 0x140318008\ncmp     [rbp+288h], eax                                                ; +0x7b, 0x14031800b\njnz     short loc_14031801A                                            ; +0x81, 0x140318011\nlea     rdx, unk_140529B5C                                             ; +0x83, 0x140318013\ncall    qword ptr [r8]                                                 ; +0x8a, 0x14031801a\nmov     rcx, [rbp+278h]                                                ; +0x8d, 0x14031801d\ninc     ebx                                                            ; +0x94, 0x140318024\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x96, 0x140318026\ncmp     ebx, eax                                                       ; +0x9c, 0x14031802c\njb      short loc_140317FD0                                            ; +0x9e, 0x14031802e\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xa0, 0x140318030\nmov     rsi, [rsp+28h+arg_0]                                           ; +0xa5, 0x140318035\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xaa, 0x14031803a\nadd     rsp, 20h                                                       ; +0xaf, 0x14031803f\npop     rbp                                                            ; +0xb3, 0x140318043\nretn                                                                   ; +0xb4, 0x140318044", "xrefs": ["DemonFilterSelectLayer::init @ 0x140317f2c", "DemonFilterSelectLayer::init @ 0x140317cfd", "<???> @ 0x140692cfc", "<???> @ 0x140692d0c", "<???> @ 0x1406d49c4"], "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"}