{"type": "func", "start": 4805176, "end": 4805282, "name": "DemonFilterSelectLayer::selectRating", "pseudocode": "// \n// DemonFilterSelectLayer::selectRating from 0x495238 to 0x4952a2 (106 bytes)\n// \n// 1 xrefs:\n// > DemonFilterSelectLayer::init @ 0x495fb6\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:41 +0000\n// \n\nunsigned int __fastcall DemonFilterSelectLayer::selectRating(DemonFilterSelectLayer *this, cocos2d::CCObject *a2)\n{\n  unsigned int v3; // r4\n  unsigned int result; // r0\n  int v5; // r0\n  int v6; // r8\n  int v7; // r0\n  int v8; // r10\n  int v9; // r7\n  void *v10; // r1\n\n  v3 = 0;\n  *((_DWORD *)this + 132) = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 130));\n    if ( v3 >= result )\n      break;\n    v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 130), v3++);\n    v6 = v5;\n    v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 536))(v5);\n    v8 = *((_DWORD *)this + 132);\n    v9 = v7;\n    if ( v8 == (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 32))(v6) )\n      v10 = &unk_BEBFFF;\n    else\n      v10 = &unk_BEBFFC;\n    (*(void (__fastcall **)(int, void *))(*(_DWORD *)v9 + 480))(v9, v10);\n  }\n  return result;\n}", "assembly": "; \n; DemonFilterSelectLayer::selectRating from 0x495238 to 0x4952a2 (106 bytes)\n; \n; 1 xrefs:\n; > DemonFilterSelectLayer::init @ 0x495fb6\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:41 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x495238\nMOV             R5, R0                                                 ; +0x4, 0x49523c\nLDR             R3, [R1]                                               ; +0x6, 0x49523e\nMOV             R0, R1                                                 ; +0x8, 0x495240\nLDR             R6, =(unk_BEBFFC - 0x495250)                           ; +0xa, 0x495242\nMOVS            R4, #0                                                 ; +0xc, 0x495244\nLDR.W           R9, =(unk_BEBFFC - 0x495256)                           ; +0xe, 0x495246\nLDR             R3, [R3,#0x20]                                         ; +0x12, 0x49524a\nADD             R6, PC; unk_BEBFFC                                     ; +0x14, 0x49524c\nBLX             R3                                                     ; +0x16, 0x49524e\nADDS            R6, #(unk_BEBFFF - 0xBEBFFC)                           ; +0x18, 0x495250\nADD             R9, PC; unk_BEBFFC                                     ; +0x1a, 0x495252\nSTR.W           R0, [R5,#0x210]                                        ; +0x1c, 0x495254\nLDR.W           R0, [R5,#0x208]; this                                  ; +0x20, 0x495258\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x24, 0x49525c\nCMP             R4, R0                                                 ; +0x28, 0x495260\nBCS             locret_49529E                                          ; +0x2a, 0x495262\nMOV             R1, R4; unsigned int                                   ; +0x2c, 0x495264\nLDR.W           R0, [R5,#0x208]; this                                  ; +0x2e, 0x495266\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x32, 0x49526a\nADDS            R4, #1                                                 ; +0x36, 0x49526e\nLDR             R3, [R0]                                               ; +0x38, 0x495270\nMOV             R8, R0                                                 ; +0x3a, 0x495272\nLDR.W           R3, [R3,#0x218]                                        ; +0x3c, 0x495274\nBLX             R3                                                     ; +0x40, 0x495278\nLDR.W           R3, [R8]                                               ; +0x42, 0x49527a\nLDR.W           R10, [R5,#0x210]                                       ; +0x46, 0x49527e\nLDR             R3, [R3,#0x20]                                         ; +0x4a, 0x495282\nMOV             R7, R0                                                 ; +0x4c, 0x495284\nMOV             R0, R8                                                 ; +0x4e, 0x495286\nBLX             R3                                                     ; +0x50, 0x495288\nLDR             R3, [R7]                                               ; +0x52, 0x49528a\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x54, 0x49528c\nCMP             R10, R0                                                ; +0x58, 0x495290\nMOV             R0, R7                                                 ; +0x5a, 0x495292\nITE NE                                                                 ; +0x5c, 0x495294\nMOVNE           R1, R9                                                 ; +0x5e, 0x495296\nMOVEQ           R1, R6                                                 ; +0x60, 0x495298\nBLX             R3                                                     ; +0x62, 0x49529a\nB               loc_495258                                             ; +0x64, 0x49529c\nPOP.W           {R4-R10,PC}                                            ; +0x66, 0x49529e", "xrefs": ["DemonFilterSelectLayer::init @ 0x495fb6"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}