{"type": "func", "start": 8249936, "end": 8250132, "name": "DemonFilterSelectLayer::selectRating", "pseudocode": "// \n// DemonFilterSelectLayer::selectRating from 0x7de250 to 0x7de314 (196 bytes)\n// \n// 4 xrefs:\n// > DemonFilterSelectLayer::init @ 0x7e49c0\n// > <???> @ 0x520d8\n// > DemonFilterSelectLayer::init @ 0x7e4858\n// > <???> @ 0x1541c50\n// \n// This function is hookable on this platform (idp: arm, 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 12:54:25 +0000\n// \n\n__int64 __fastcall DemonFilterSelectLayer::selectRating(DemonFilterSelectLayer *this, cocos2d::CCObject *a2)\n{\n  unsigned int v3; // w19\n  __int64 result; // x0\n  __int64 v5; // x20\n  __int64 v6; // x22\n\n  v3 = 0;\n  *((_DWORD *)this + 170) = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 83));\n    if ( v3 >= (unsigned int)result )\n      break;\n    v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 83), v3);\n    v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1072LL))(v5);\n    (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5);\n    ++v3;\n    (*(void (**)(void))(*(_QWORD *)v6 + 960LL))();\n  }\n  return result;\n}", "assembly": "; \n; DemonFilterSelectLayer::selectRating from 0x7de250 to 0x7de314 (196 bytes)\n; \n; 4 xrefs:\n; > DemonFilterSelectLayer::init @ 0x7e49c0\n; > <???> @ 0x520d8\n; > DemonFilterSelectLayer::init @ 0x7e4858\n; > <???> @ 0x1541c50\n; \n; This function is hookable on this platform (idp: arm, 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 12:54:25 +0000\n; \nSTP             X29, X30, [SP,#-0x40+var_s0]!                          ; +0x0, 0x7de250\nMOV             X29, SP                                                ; +0x4, 0x7de254\nSTP             X23, X24, [SP,#var_s30]                                ; +0x8, 0x7de258\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x7de25c\nSTP             X21, X22, [SP,#var_s20]                                ; +0x10, 0x7de260\nMOV             X21, X0                                                ; +0x14, 0x7de264\nMOV             X0, X1                                                 ; +0x18, 0x7de268\nLDR             X1, [X1]                                               ; +0x1c, 0x7de26c\nADRL            X23, unk_1143DB0                                       ; +0x20, 0x7de270\nMOV             W19, #0                                                ; +0x28, 0x7de278\nADD             X24, X23, #(unk_1143DB8 - 0x1143DB0)                   ; +0x2c, 0x7de27c\nLDR             X1, [X1,#0x40]                                         ; +0x30, 0x7de280\nBLR             X1                                                     ; +0x34, 0x7de284\nSTR             W0, [X21,#0x2A8]                                       ; +0x38, 0x7de288\nB               loc_7DE29C                                             ; +0x3c, 0x7de28c\nLDR             X2, [X2,#0x3C0]                                        ; +0x40, 0x7de290\nADD             W19, W19, #1                                           ; +0x44, 0x7de294\nBLR             X2                                                     ; +0x48, 0x7de298\nLDR             X0, [X21,#0x298]; this                                 ; +0x4c, 0x7de29c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x50, 0x7de2a0\nCMP             W19, W0                                                ; +0x54, 0x7de2a4\nMOV             W1, W19; unsigned int                                  ; +0x58, 0x7de2a8\nB.CS            loc_7DE300                                             ; +0x5c, 0x7de2ac\nLDR             X0, [X21,#0x298]; this                                 ; +0x60, 0x7de2b0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x64, 0x7de2b4\nLDR             X1, [X0]                                               ; +0x68, 0x7de2b8\nMOV             X20, X0                                                ; +0x6c, 0x7de2bc\nLDR             X1, [X1,#0x430]                                        ; +0x70, 0x7de2c0\nBLR             X1                                                     ; +0x74, 0x7de2c4\nMOV             X22, X0                                                ; +0x78, 0x7de2c8\nLDR             X1, [X20]                                              ; +0x7c, 0x7de2cc\nMOV             X0, X20                                                ; +0x80, 0x7de2d0\nLDR             W20, [X21,#0x2A8]                                      ; +0x84, 0x7de2d4\nLDR             X1, [X1,#0x40]                                         ; +0x88, 0x7de2d8\nBLR             X1                                                     ; +0x8c, 0x7de2dc\nCMP             W20, W0                                                ; +0x90, 0x7de2e0\nLDR             X2, [X22]                                              ; +0x94, 0x7de2e4\nMOV             X1, X23                                                ; +0x98, 0x7de2e8\nMOV             X0, X22                                                ; +0x9c, 0x7de2ec\nB.NE            loc_7DE290                                             ; +0xa0, 0x7de2f0\nMOV             X0, X22                                                ; +0xa4, 0x7de2f4\nMOV             X1, X24                                                ; +0xa8, 0x7de2f8\nB               loc_7DE290                                             ; +0xac, 0x7de2fc\nLDP             X19, X20, [SP,#var_s10]                                ; +0xb0, 0x7de300\nLDP             X21, X22, [SP,#var_s20]                                ; +0xb4, 0x7de304\nLDP             X23, X24, [SP,#var_s30]                                ; +0xb8, 0x7de308\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0xbc, 0x7de30c\nRET                                                                    ; +0xc0, 0x7de310", "xrefs": ["DemonFilterSelectLayer::init @ 0x7e49c0", "<???> @ 0x520d8", "DemonFilterSelectLayer::init @ 0x7e4858", "<???> @ 0x1541c50"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}