{"type": "func", "start": 5373170224, "end": 5373170411, "name": "DemonFilterSelectLayer::selectRating", "pseudocode": "// \n// DemonFilterSelectLayer::selectRating from 0x140441230 to 0x1404412eb (187 bytes)\n// \n// 5 xrefs:\n// > DemonFilterSelectLayer::init @ 0x1404411c9\n// > DemonFilterSelectLayer::init @ 0x140440f80\n// > <???> @ 0x1408cb514\n// > <???> @ 0x1408cb524\n// > <???> @ 0x14092708c\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:32:21 +0000\n// \n\nunsigned int __fastcall DemonFilterSelectLayer::selectRating(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  cocos2d::CCArray *v4; // rcx\n  unsigned int v5; // ebx\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v7; // rsi\n  __int64 v8; // rdi\n  int v9; // eax\n  void *v10; // rdx\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = *(cocos2d::CCArray **)(a1 + 664);\n  v5 = 0;\n  *(_DWORD *)(a1 + 680) = v3;\n  result = cocos2d::CCArray::count(v4);\n  if ( result )\n  {\n    do\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 664), v5);\n      v8 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 952LL))(v7);\n      v9 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 56LL))(v7);\n      v10 = &unk_140703BBC;\n      if ( *(_DWORD *)(a1 + 680) == v9 )\n        v10 = &unk_140703BC0;\n      (**(void (__fastcall ***)(__int64, void *))(v8 + 320))(v8 + 320, v10);\n      ++v5;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664));\n    }\n    while ( v5 < result );\n  }\n  return result;\n}", "assembly": "; \n; DemonFilterSelectLayer::selectRating from 0x140441230 to 0x1404412eb (187 bytes)\n; \n; 5 xrefs:\n; > DemonFilterSelectLayer::init @ 0x1404411c9\n; > DemonFilterSelectLayer::init @ 0x140440f80\n; > <???> @ 0x1408cb514\n; > <???> @ 0x1408cb524\n; > <???> @ 0x14092708c\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:32:21 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140441230\npush    rbp                                                            ; +0x5, 0x140441235\nsub     rsp, 20h                                                       ; +0x6, 0x140441236\nmov     rax, [rdx]                                                     ; +0xa, 0x14044123a\nmov     rbp, rcx                                                       ; +0xd, 0x14044123d\nmov     rcx, rdx                                                       ; +0x10, 0x140441240\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x140441243\nmov     rcx, [rbp+298h]                                                ; +0x16, 0x140441246\nxor     ebx, ebx                                                       ; +0x1d, 0x14044124d\nmov     [rbp+2A8h], eax                                                ; +0x1f, 0x14044124f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25, 0x140441255\ntest    eax, eax                                                       ; +0x2b, 0x14044125b\njz      loc_1404412E0                                                  ; +0x2d, 0x14044125d\nmov     [rsp+28h+arg_0], rsi                                           ; +0x33, 0x140441263\nmov     [rsp+28h+arg_8], rdi                                           ; +0x38, 0x140441268\nnop     dword ptr [rax]                                                ; +0x3d, 0x14044126d\nmov     rcx, [rbp+298h]                                                ; +0x40, 0x140441270\nmov     edx, ebx                                                       ; +0x47, 0x140441277\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x140441279\nmov     rsi, rax                                                       ; +0x4f, 0x14044127f\nmov     rcx, [rax]                                                     ; +0x52, 0x140441282\nmov     rdx, [rcx+3B8h]                                                ; +0x55, 0x140441285\nmov     rcx, rax                                                       ; +0x5c, 0x14044128c\ncall    rdx                                                            ; +0x5f, 0x14044128f\nmov     rcx, [rsi]                                                     ; +0x61, 0x140441291\nmov     rdi, rax                                                       ; +0x64, 0x140441294\nmov     rdx, [rcx+38h]                                                 ; +0x67, 0x140441297\nmov     rcx, rsi                                                       ; +0x6b, 0x14044129b\ncall    rdx                                                            ; +0x6e, 0x14044129e\nlea     rcx, [rdi+140h]                                                ; +0x70, 0x1404412a0\nlea     rdx, unk_140703BBC                                             ; +0x77, 0x1404412a7\nmov     r8, [rcx]                                                      ; +0x7e, 0x1404412ae\ncmp     [rbp+2A8h], eax                                                ; +0x81, 0x1404412b1\njnz     short loc_1404412C0                                            ; +0x87, 0x1404412b7\nlea     rdx, unk_140703BC0                                             ; +0x89, 0x1404412b9\ncall    qword ptr [r8]                                                 ; +0x90, 0x1404412c0\nmov     rcx, [rbp+298h]                                                ; +0x93, 0x1404412c3\ninc     ebx                                                            ; +0x9a, 0x1404412ca\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9c, 0x1404412cc\ncmp     ebx, eax                                                       ; +0xa2, 0x1404412d2\njb      short loc_140441270                                            ; +0xa4, 0x1404412d4\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xa6, 0x1404412d6\nmov     rsi, [rsp+28h+arg_0]                                           ; +0xab, 0x1404412db\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xb0, 0x1404412e0\nadd     rsp, 20h                                                       ; +0xb5, 0x1404412e5\npop     rbp                                                            ; +0xb9, 0x1404412e9\nretn                                                                   ; +0xba, 0x1404412ea", "xrefs": ["DemonFilterSelectLayer::init @ 0x1404411c9", "DemonFilterSelectLayer::init @ 0x140440f80", "<???> @ 0x1408cb514", "<???> @ 0x1408cb524", "<???> @ 0x14092708c"], "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"}