{"type": "func", "start": 5369464768, "end": 5369465057, "name": "AccountReviewPopup::onToggleRow", "pseudocode": "// \n// AccountReviewPopup::onToggleRow from 0x1400b87c0 to 0x1400b88e1 (289 bytes)\n// \n// 3 xrefs:\n// > AccountReviewPopup::buildReportedRows @ 0x1400b439b\n// > AccountReviewPopup::buildFilterRows @ 0x1400b5bd7\n// > <???> @ 0x140913778\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 11:26:16 +0000\n// \n\nvoid __fastcall AccountReviewPopup::onToggleRow(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  __int64 v4; // rcx\n  __int64 *v5; // rdx\n  int v6; // esi\n  __int64 *v7; // rax\n  __int64 *i; // r8\n  unsigned __int8 v9; // r15\n  __int64 v10; // rax\n  __int64 v11; // rcx\n  __int64 v12; // rax\n  int *v13; // r14\n  int v14; // edi\n  int *v15; // rbx\n  int v16; // ebx\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v5 = *(__int64 **)(a1 + 1432);\n  v6 = v3;\n  v7 = v5;\n  for ( i = (__int64 *)v5[1]; !*((_BYTE *)i + 25); i = (__int64 *)*i )\n  {\n    if ( *((_DWORD *)i + 7) >= v6 )\n      v7 = i;\n    else\n      i += 2;\n  }\n  if ( *((_BYTE *)v7 + 25) || v6 < *((_DWORD *)v7 + 7) )\n    v7 = *(__int64 **)(a1 + 1432);\n  v9 = v7 == v5;\n  v10 = cocos2d::CCDirector::sharedDirector(v4);\n  if ( !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 176LL))(v10)\n    || (v12 = cocos2d::CCDirector::sharedDirector(v11),\n        !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 176LL))(v12) + 152)) )\n  {\n    v15 = (int *)(a1 + 1352);\nLABEL_21:\n    AccountReviewPopup::applySelected(a1, v6, v9);\n    v13 = v15;\n    goto LABEL_22;\n  }\n  v13 = (int *)(a1 + 1352);\n  v14 = *(_DWORD *)(a1 + 1352);\n  v15 = (int *)(a1 + 1352);\n  if ( v14 < 0 || v14 == v6 )\n    goto LABEL_21;\n  if ( v14 >= v6 )\n  {\n    v16 = v6;\n    if ( v14 > v6 )\n      goto LABEL_17;\n  }\n  else\n  {\n    v16 = *(_DWORD *)(a1 + 1352);\n  }\n  v14 = v6;\nLABEL_17:\n  while ( v16 <= v14 )\n    AccountReviewPopup::applySelected(a1, v16++, v9);\nLABEL_22:\n  *v13 = v6;\n  AccountReviewPopup::updateSelectedLabel(a1);\n}", "assembly": "; \n; AccountReviewPopup::onToggleRow from 0x1400b87c0 to 0x1400b88e1 (289 bytes)\n; \n; 3 xrefs:\n; > AccountReviewPopup::buildReportedRows @ 0x1400b439b\n; > AccountReviewPopup::buildFilterRows @ 0x1400b5bd7\n; > <???> @ 0x140913778\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 11:26:16 +0000\n; \nmov     [rsp+arg_10], rbp                                              ; +0x0, 0x1400b87c0\npush    rsi                                                            ; +0x5, 0x1400b87c5\npush    r14                                                            ; +0x6, 0x1400b87c6\npush    r15                                                            ; +0x8, 0x1400b87c8\nsub     rsp, 20h                                                       ; +0xa, 0x1400b87ca\nmov     rax, [rdx]                                                     ; +0xe, 0x1400b87ce\nmov     rbp, rcx                                                       ; +0x11, 0x1400b87d1\nmov     rcx, rdx                                                       ; +0x14, 0x1400b87d4\ncall    qword ptr [rax+38h]                                            ; +0x17, 0x1400b87d7\nmov     rdx, [rbp+598h]                                                ; +0x1a, 0x1400b87da\nmov     esi, eax                                                       ; +0x21, 0x1400b87e1\nmov     rax, rdx                                                       ; +0x23, 0x1400b87e3\nmov     r8, [rdx+8]                                                    ; +0x26, 0x1400b87e6\ncmp     byte ptr [r8+19h], 0                                           ; +0x2a, 0x1400b87ea\njnz     short loc_1400B880A                                            ; +0x2f, 0x1400b87ef\ncmp     [r8+1Ch], esi                                                  ; +0x31, 0x1400b87f1\njge     short loc_1400B87FD                                            ; +0x35, 0x1400b87f5\nadd     r8, 10h                                                        ; +0x37, 0x1400b87f7\njmp     short loc_1400B8800                                            ; +0x3b, 0x1400b87fb\nmov     rax, r8                                                        ; +0x3d, 0x1400b87fd\nmov     r8, [r8]                                                       ; +0x40, 0x1400b8800\ncmp     byte ptr [r8+19h], 0                                           ; +0x43, 0x1400b8803\njz      short loc_1400B87F1                                            ; +0x48, 0x1400b8808\ncmp     byte ptr [rax+19h], 0                                          ; +0x4a, 0x1400b880a\njnz     short loc_1400B8815                                            ; +0x4e, 0x1400b880e\ncmp     esi, [rax+1Ch]                                                 ; +0x50, 0x1400b8810\njge     short loc_1400B8818                                            ; +0x53, 0x1400b8813\nmov     rax, rdx                                                       ; +0x55, 0x1400b8815\ncmp     rax, rdx                                                       ; +0x58, 0x1400b8818\nmov     [rsp+38h+arg_0], rbx                                           ; +0x5b, 0x1400b881b\nmov     [rsp+38h+arg_8], rdi                                           ; +0x60, 0x1400b8820\nsetz    r15b                                                           ; +0x65, 0x1400b8825\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x69, 0x1400b8829\nmov     rcx, [rax]                                                     ; +0x6f, 0x1400b882f\nmov     rdx, [rcx+0B0h]                                                ; +0x72, 0x1400b8832\nmov     rcx, rax                                                       ; +0x79, 0x1400b8839\ncall    rdx                                                            ; +0x7c, 0x1400b883c\ntest    rax, rax                                                       ; +0x7e, 0x1400b883e\njz      short loc_1400B88A6                                            ; +0x81, 0x1400b8841\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x83, 0x1400b8843\nmov     rcx, [rax]                                                     ; +0x89, 0x1400b8849\nmov     rdx, [rcx+0B0h]                                                ; +0x8c, 0x1400b884c\nmov     rcx, rax                                                       ; +0x93, 0x1400b8853\ncall    rdx                                                            ; +0x96, 0x1400b8856\ncmp     byte ptr [rax+98h], 0                                          ; +0x98, 0x1400b8858\njz      short loc_1400B88A6                                            ; +0x9f, 0x1400b885f\nlea     r14, [rbp+548h]                                                ; +0xa1, 0x1400b8861\nmov     edi, [r14]                                                     ; +0xa8, 0x1400b8868\nmov     rbx, r14                                                       ; +0xab, 0x1400b886b\ntest    edi, edi                                                       ; +0xae, 0x1400b886e\njs      short loc_1400B88AD                                            ; +0xb0, 0x1400b8870\ncmp     edi, esi                                                       ; +0xb2, 0x1400b8872\njz      short loc_1400B88AD                                            ; +0xb4, 0x1400b8874\njge     short loc_1400B887C                                            ; +0xb6, 0x1400b8876\nmov     ebx, edi                                                       ; +0xb8, 0x1400b8878\njmp     short loc_1400B8880                                            ; +0xba, 0x1400b887a\nmov     ebx, esi                                                       ; +0xbc, 0x1400b887c\njg      short loc_1400B8882                                            ; +0xbe, 0x1400b887e\nmov     edi, esi                                                       ; +0xc0, 0x1400b8880\ncmp     ebx, edi                                                       ; +0xc2, 0x1400b8882\njg      short loc_1400B88BE                                            ; +0xc4, 0x1400b8884\nnop     word ptr [rax+rax+00000000h]                                   ; +0xc6, 0x1400b8886\nmovzx   r8d, r15b                                                      ; +0xd0, 0x1400b8890\nmov     edx, ebx                                                       ; +0xd4, 0x1400b8894\nmov     rcx, rbp                                                       ; +0xd6, 0x1400b8896\ncall    AccountReviewPopup__applySelected                              ; +0xd9, 0x1400b8899\ninc     ebx                                                            ; +0xde, 0x1400b889e\ncmp     ebx, edi                                                       ; +0xe0, 0x1400b88a0\njle     short loc_1400B8890                                            ; +0xe2, 0x1400b88a2\njmp     short loc_1400B88BE                                            ; +0xe4, 0x1400b88a4\nlea     rbx, [rbp+548h]                                                ; +0xe6, 0x1400b88a6\nmovzx   r8d, r15b                                                      ; +0xed, 0x1400b88ad\nmov     edx, esi                                                       ; +0xf1, 0x1400b88b1\nmov     rcx, rbp                                                       ; +0xf3, 0x1400b88b3\ncall    AccountReviewPopup__applySelected                              ; +0xf6, 0x1400b88b6\nmov     r14, rbx                                                       ; +0xfb, 0x1400b88bb\nmov     rcx, rbp                                                       ; +0xfe, 0x1400b88be\nmov     [r14], esi                                                     ; +0x101, 0x1400b88c1\nmov     rdi, [rsp+38h+arg_8]                                           ; +0x104, 0x1400b88c4\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x109, 0x1400b88c9\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x10e, 0x1400b88ce\nadd     rsp, 20h                                                       ; +0x113, 0x1400b88d3\npop     r15                                                            ; +0x117, 0x1400b88d7\npop     r14                                                            ; +0x119, 0x1400b88d9\npop     rsi                                                            ; +0x11b, 0x1400b88db\njmp     AccountReviewPopup__updateSelectedLabel                        ; +0x11c, 0x1400b88dc", "xrefs": ["AccountReviewPopup::buildReportedRows @ 0x1400b439b", "AccountReviewPopup::buildFilterRows @ 0x1400b5bd7", "<???> @ 0x140913778"], "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"}