{"type": "func", "start": 4295325256, "end": 4295325456, "name": "DemonFilterSelectLayer::selectRating", "pseudocode": "// \n// DemonFilterSelectLayer::selectRating from 0x100057648 to 0x100057710 (200 bytes)\n// \n// 2 xrefs:\n// > DemonFilterSelectLayer::init @ 0x1000575f8\n// > DemonFilterSelectLayer::init @ 0x1000573b8\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 DemonFilterSelectLayer::selectRating(DemonFilterSelectLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x20\n  __int64 v4; // x21\n  __int64 v5; // x22\n  int m_currentDemon; // w25\n  void *v7; // x1\n\n  a1->m_currentDemon = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  if ( (unsigned int)sub_10024A36C(a1->m_demons) )\n  {\n    v3 = 0;\n    do\n    {\n      v4 = sub_10024A388(a1->m_demons, v3);\n      v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1056LL))(v4);\n      m_currentDemon = a1->m_currentDemon;\n      if ( m_currentDemon == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) )\n        v7 = &unk_100635CBB;\n      else\n        v7 = &unk_100635CB8;\n      (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v5 + 944LL))(v5, v7);\n      v3 = (unsigned int)(v3 + 1);\n    }\n    while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(a1->m_demons) );\n  }\n}", "assembly": "; \n; DemonFilterSelectLayer::selectRating from 0x100057648 to 0x100057710 (200 bytes)\n; \n; 2 xrefs:\n; > DemonFilterSelectLayer::init @ 0x1000575f8\n; > DemonFilterSelectLayer::init @ 0x1000573b8\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\nSTP             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x100057648\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x10005764c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x100057650\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x100057654\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x100057658\nADD             X29, SP, #0x40                                         ; +0x14, 0x10005765c\nMOV             X19, X0                                                ; +0x18, 0x100057660\nLDR             X8, [X1]                                               ; +0x1c, 0x100057664\nLDR             X8, [X8,#0x40]                                         ; +0x20, 0x100057668\nMOV             X0, X1                                                 ; +0x24, 0x10005766c\nBLR             X8                                                     ; +0x28, 0x100057670\nSTR             W0, [X19,#0x288]                                       ; +0x2c, 0x100057674\nLDR             X0, [X19,#0x278]                                       ; +0x30, 0x100057678\nBL              sub_10024A36C                                          ; +0x34, 0x10005767c\nCBZ             W0, loc_1000576F8                                      ; +0x38, 0x100057680\nMOV             W20, #0                                                ; +0x3c, 0x100057684\nADRL            X23, unk_100635CB8                                     ; +0x40, 0x100057688\nADRL            X24, unk_100635CBB                                     ; +0x48, 0x100057690\nLDR             X0, [X19,#0x278]                                       ; +0x50, 0x100057698\nMOV             X1, X20                                                ; +0x54, 0x10005769c\nBL              sub_10024A388                                          ; +0x58, 0x1000576a0\nMOV             X21, X0                                                ; +0x5c, 0x1000576a4\nLDR             X8, [X0]                                               ; +0x60, 0x1000576a8\nLDR             X8, [X8,#0x420]                                        ; +0x64, 0x1000576ac\nBLR             X8                                                     ; +0x68, 0x1000576b0\nMOV             X22, X0                                                ; +0x6c, 0x1000576b4\nLDR             W25, [X19,#0x288]                                      ; +0x70, 0x1000576b8\nLDR             X8, [X21]                                              ; +0x74, 0x1000576bc\nLDR             X8, [X8,#0x40]                                         ; +0x78, 0x1000576c0\nMOV             X0, X21                                                ; +0x7c, 0x1000576c4\nBLR             X8                                                     ; +0x80, 0x1000576c8\nLDR             X8, [X22]                                              ; +0x84, 0x1000576cc\nLDR             X8, [X8,#0x3B0]                                        ; +0x88, 0x1000576d0\nCMP             W25, W0                                                ; +0x8c, 0x1000576d4\nCSEL            X1, X24, X23, EQ                                       ; +0x90, 0x1000576d8\nMOV             X0, X22                                                ; +0x94, 0x1000576dc\nBLR             X8                                                     ; +0x98, 0x1000576e0\nADD             W20, W20, #1                                           ; +0x9c, 0x1000576e4\nLDR             X0, [X19,#0x278]                                       ; +0xa0, 0x1000576e8\nBL              sub_10024A36C                                          ; +0xa4, 0x1000576ec\nCMP             W20, W0                                                ; +0xa8, 0x1000576f0\nB.CC            loc_100057698                                          ; +0xac, 0x1000576f4\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xb0, 0x1000576f8\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xb4, 0x1000576fc\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xb8, 0x100057700\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xbc, 0x100057704\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0xc0, 0x100057708\nRET                                                                    ; +0xc4, 0x10005770c", "xrefs": ["DemonFilterSelectLayer::init @ 0x1000575f8", "DemonFilterSelectLayer::init @ 0x1000573b8"], "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"}