{"type": "func", "start": 5372245616, "end": 5372245695, "name": "GJColorSetupLayer::onPage", "pseudocode": "// \n// GJColorSetupLayer::onPage from 0x14035f670 to 0x14035f6bf (79 bytes)\n// \n// 2 xrefs:\n// > GJColorSetupLayer::init @ 0x14035f074\n// > <???> @ 0x1409212a8\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:30:52 +0000\n// \n\n__int64 __fastcall GJColorSetupLayer::onPage(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  int v4; // edx\n  int v5; // ecx\n  int v6; // edx\n  int v7; // edx\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = 1;\n  if ( v3 )\n    v4 = -1;\n  v5 = 0;\n  v6 = *(_DWORD *)(a1 + 720) + v4;\n  if ( v6 >= 0 )\n    v5 = v6;\n  v7 = *(_DWORD *)(a1 + 728) - 1;\n  if ( v7 >= v5 )\n    v7 = v5;\n  *(_DWORD *)(a1 + 720) = v7;\n  return GJColorSetupLayer::showPage(a1);\n}", "assembly": "; \n; GJColorSetupLayer::onPage from 0x14035f670 to 0x14035f6bf (79 bytes)\n; \n; 2 xrefs:\n; > GJColorSetupLayer::init @ 0x14035f074\n; > <???> @ 0x1409212a8\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:30:52 +0000\n; \npush    rbx                                                            ; +0x0, 0x14035f670\nsub     rsp, 20h                                                       ; +0x2, 0x14035f672\nmov     rax, [rdx]                                                     ; +0x6, 0x14035f676\nmov     rbx, rcx                                                       ; +0x9, 0x14035f679\nmov     rcx, rdx                                                       ; +0xc, 0x14035f67c\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x14035f67f\nmov     ecx, 0FFFFFFFFh                                                ; +0x12, 0x14035f682\nmov     edx, 1                                                         ; +0x17, 0x14035f687\ntest    eax, eax                                                       ; +0x1c, 0x14035f68c\ncmovnz  edx, ecx                                                       ; +0x1e, 0x14035f68e\nmov     ecx, 0                                                         ; +0x21, 0x14035f691\nadd     edx, [rbx+2D0h]                                                ; +0x26, 0x14035f696\ncmovns  ecx, edx                                                       ; +0x2c, 0x14035f69c\nmov     edx, [rbx+2D8h]                                                ; +0x2f, 0x14035f69f\ndec     edx                                                            ; +0x35, 0x14035f6a5\ncmp     edx, ecx                                                       ; +0x37, 0x14035f6a7\ncmovge  edx, ecx                                                       ; +0x39, 0x14035f6a9\nmov     rcx, rbx                                                       ; +0x3c, 0x14035f6ac\nmov     [rbx+2D0h], edx                                                ; +0x3f, 0x14035f6af\nadd     rsp, 20h                                                       ; +0x45, 0x14035f6b5\npop     rbx                                                            ; +0x49, 0x14035f6b9\njmp     GJColorSetupLayer__showPage                                    ; +0x4a, 0x14035f6ba", "xrefs": ["GJColorSetupLayer::init @ 0x14035f074", "<???> @ 0x1409212a8"], "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"}