{"type": "func", "start": 4302358032, "end": 4302358214, "name": "DemonFilterSelectLayer::selectRating", "pseudocode": "// \n// DemonFilterSelectLayer::selectRating from 0x10070c610 to 0x10070c6c6 (182 bytes)\n// \n// 1 xrefs:\n// > DemonFilterSelectLayer::init @ 0x10070c3c6\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 12:36:03 +0000\n// \n\n__int64 __fastcall DemonFilterSelectLayer::selectRating(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  unsigned int v3; // r14d\n  __int64 v4; // r15\n  __int64 v5; // r12\n  int v6; // r13d\n  void *v7; // rsi\n\n  *(_DWORD *)(a1 + 680) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  result = sub_1007FEF90(*(_QWORD *)(a1 + 664));\n  if ( (_DWORD)result )\n  {\n    v3 = 0;\n    do\n    {\n      v4 = sub_1007FEFE0(*(_QWORD *)(a1 + 664), v3);\n      v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1072LL))(v4);\n      v6 = *(_DWORD *)(a1 + 680);\n      v7 = &unk_100A11D58;\n      if ( v6 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) )\n        v7 = &unk_100A11D5B;\n      (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v5 + 960LL))(v5, v7);\n      ++v3;\n      result = sub_1007FEF90(*(_QWORD *)(a1 + 664));\n    }\n    while ( v3 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; DemonFilterSelectLayer::selectRating from 0x10070c610 to 0x10070c6c6 (182 bytes)\n; \n; 1 xrefs:\n; > DemonFilterSelectLayer::init @ 0x10070c3c6\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 12:36:03 +0000\n; \npush    rbp                                                            ; +0x0, 0x10070c610\nmov     rbp, rsp                                                       ; +0x1, 0x10070c611\npush    r15                                                            ; +0x4, 0x10070c614\npush    r14                                                            ; +0x6, 0x10070c616\npush    r13                                                            ; +0x8, 0x10070c618\npush    r12                                                            ; +0xa, 0x10070c61a\npush    rbx                                                            ; +0xc, 0x10070c61c\npush    rax                                                            ; +0xd, 0x10070c61d\nmov     rbx, rdi                                                       ; +0xe, 0x10070c61e\nmov     rax, [rsi]                                                     ; +0x11, 0x10070c621\nmov     rdi, rsi                                                       ; +0x14, 0x10070c624\ncall    qword ptr [rax+40h]                                            ; +0x17, 0x10070c627\nmov     [rbx+2A8h], eax                                                ; +0x1a, 0x10070c62a\nmov     rdi, [rbx+298h]                                                ; +0x20, 0x10070c630\ncall    sub_1007FEF90                                                  ; +0x27, 0x10070c637\ntest    eax, eax                                                       ; +0x2c, 0x10070c63c\njz      short loc_10070C6B7                                            ; +0x2e, 0x10070c63e\nxor     r14d, r14d                                                     ; +0x30, 0x10070c640\nnop     word ptr [rax+rax+00000000h]                                   ; +0x33, 0x10070c643\nmov     rdi, [rbx+298h]                                                ; +0x40, 0x10070c650\nmov     esi, r14d                                                      ; +0x47, 0x10070c657\ncall    sub_1007FEFE0                                                  ; +0x4a, 0x10070c65a\nmov     r15, rax                                                       ; +0x4f, 0x10070c65f\nmov     rax, [rax]                                                     ; +0x52, 0x10070c662\nmov     rdi, r15                                                       ; +0x55, 0x10070c665\ncall    qword ptr [rax+430h]                                           ; +0x58, 0x10070c668\nmov     r12, rax                                                       ; +0x5e, 0x10070c66e\nmov     r13d, [rbx+2A8h]                                               ; +0x61, 0x10070c671\nmov     rax, [r15]                                                     ; +0x68, 0x10070c678\nmov     rdi, r15                                                       ; +0x6b, 0x10070c67b\ncall    qword ptr [rax+40h]                                            ; +0x6e, 0x10070c67e\ncmp     r13d, eax                                                      ; +0x71, 0x10070c681\nmov     rax, [r12]                                                     ; +0x74, 0x10070c684\nlea     rsi, unk_100A11D58                                             ; +0x78, 0x10070c688\nlea     rcx, unk_100A11D5B                                             ; +0x7f, 0x10070c68f\ncmovz   rsi, rcx                                                       ; +0x86, 0x10070c696\nmov     rdi, r12                                                       ; +0x8a, 0x10070c69a\ncall    qword ptr [rax+3C0h]                                           ; +0x8d, 0x10070c69d\ninc     r14d                                                           ; +0x93, 0x10070c6a3\nmov     rdi, [rbx+298h]                                                ; +0x96, 0x10070c6a6\ncall    sub_1007FEF90                                                  ; +0x9d, 0x10070c6ad\ncmp     r14d, eax                                                      ; +0xa2, 0x10070c6b2\njb      short loc_10070C650                                            ; +0xa5, 0x10070c6b5\nadd     rsp, 8                                                         ; +0xa7, 0x10070c6b7\npop     rbx                                                            ; +0xab, 0x10070c6bb\npop     r12                                                            ; +0xac, 0x10070c6bc\npop     r13                                                            ; +0xae, 0x10070c6be\npop     r14                                                            ; +0xb0, 0x10070c6c0\npop     r15                                                            ; +0xb2, 0x10070c6c2\npop     rbp                                                            ; +0xb4, 0x10070c6c4\nretn                                                                   ; +0xb5, 0x10070c6c5", "xrefs": ["DemonFilterSelectLayer::init @ 0x10070c3c6"], "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"}