{"type": "func", "start": 3850936, "end": 3851042, "name": "DemonFilterSelectLayer::selectRating", "pseudocode": "// \n// DemonFilterSelectLayer::selectRating from 0x3ac2b8 to 0x3ac322 (106 bytes)\n// \n// 1 xrefs:\n// > DemonFilterSelectLayer::init @ 0x3ac71e\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  unsigned int v3; // r4\n  int v4; // r0\n  int v5; // r8\n  int v6; // r0\n  int m_currentDemon; // r10\n  int v8; // r7\n  void *v9; // r1\n\n  v3 = 0;\n  a1->m_currentDemon = a2->getTag(a2);\n  while ( v3 < cocos2d::CCArray::count(a1->m_demons) )\n  {\n    v4 = cocos2d::CCArray::objectAtIndex(a1->m_demons, v3++);\n    v5 = v4;\n    v6 = (*(int (__fastcall **)(int))(*(_DWORD *)v4 + 528))(v4);\n    m_currentDemon = a1->m_currentDemon;\n    v8 = v6;\n    if ( m_currentDemon == (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 32))(v5) )\n      v9 = &unk_9AA983;\n    else\n      v9 = &unk_9AA980;\n    (*(void (__fastcall **)(int, void *))(*(_DWORD *)v8 + 472))(v8, v9);\n  }\n}", "assembly": "; \n; DemonFilterSelectLayer::selectRating from 0x3ac2b8 to 0x3ac322 (106 bytes)\n; \n; 1 xrefs:\n; > DemonFilterSelectLayer::init @ 0x3ac71e\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\nLDR             R3, [R1]                                               ; +0x0, 0x3ac2b8\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x3ac2ba\nMOV             R5, R0                                                 ; +0x6, 0x3ac2be\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x3ac2c0\nMOV             R0, R1                                                 ; +0xa, 0x3ac2c2\nBLX             R3                                                     ; +0xc, 0x3ac2c4\nLDR             R6, =(unk_9AA980 - 0x3AC2D2)                           ; +0xe, 0x3ac2c6\nLDR.W           R9, =(unk_9AA980 - 0x3AC2D6)                           ; +0x10, 0x3ac2c8\nMOVS            R4, #0                                                 ; +0x14, 0x3ac2cc\nADD             R6, PC; unk_9AA980                                     ; +0x16, 0x3ac2ce\nADDS            R6, #(unk_9AA983 - 0x9AA980)                           ; +0x18, 0x3ac2d0\nADD             R9, PC; unk_9AA980                                     ; +0x1a, 0x3ac2d2\nSTR.W           R0, [R5,#0x1F8]                                        ; +0x1c, 0x3ac2d4\nLDR.W           R0, [R5,#0x1F0]; this                                  ; +0x20, 0x3ac2d8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x24, 0x3ac2dc\nCMP             R4, R0                                                 ; +0x28, 0x3ac2e0\nBCS             locret_3AC31E                                          ; +0x2a, 0x3ac2e2\nMOV             R1, R4; unsigned int                                   ; +0x2c, 0x3ac2e4\nLDR.W           R0, [R5,#0x1F0]; this                                  ; +0x2e, 0x3ac2e6\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x32, 0x3ac2ea\nADDS            R4, #1                                                 ; +0x36, 0x3ac2ee\nLDR             R3, [R0]                                               ; +0x38, 0x3ac2f0\nMOV             R8, R0                                                 ; +0x3a, 0x3ac2f2\nLDR.W           R3, [R3,#0x210]                                        ; +0x3c, 0x3ac2f4\nBLX             R3                                                     ; +0x40, 0x3ac2f8\nLDR.W           R3, [R8]                                               ; +0x42, 0x3ac2fa\nLDR.W           R10, [R5,#0x1F8]                                       ; +0x46, 0x3ac2fe\nLDR             R3, [R3,#0x20]                                         ; +0x4a, 0x3ac302\nMOV             R7, R0                                                 ; +0x4c, 0x3ac304\nMOV             R0, R8                                                 ; +0x4e, 0x3ac306\nBLX             R3                                                     ; +0x50, 0x3ac308\nLDR             R3, [R7]                                               ; +0x52, 0x3ac30a\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x54, 0x3ac30c\nCMP             R10, R0                                                ; +0x58, 0x3ac310\nMOV             R0, R7                                                 ; +0x5a, 0x3ac312\nITE NE                                                                 ; +0x5c, 0x3ac314\nMOVNE           R1, R9                                                 ; +0x5e, 0x3ac316\nMOVEQ           R1, R6                                                 ; +0x60, 0x3ac318\nBLX             R3                                                     ; +0x62, 0x3ac31a\nB               loc_3AC2D8                                             ; +0x64, 0x3ac31c\nPOP.W           {R4-R10,PC}                                            ; +0x66, 0x3ac31e", "xrefs": ["DemonFilterSelectLayer::init @ 0x3ac71e"], "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"}