{"type": "func", "start": 4296995344, "end": 4296995496, "name": "GJColorSetupLayer::onPage", "pseudocode": "// \n// GJColorSetupLayer::onPage from 0x1001ef210 to 0x1001ef2a8 (152 bytes)\n// \n// 2 xrefs:\n// > GJColorSetupLayer::init @ 0x1001eed1e\n// > GJColorSetupLayer::init @ 0x1001eedef\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:26:32 +0000\n// \n\n__int64 __fastcall GJColorSetupLayer::onPage(__int64 a1, __int64 a2)\n{\n  int v2; // eax\n  int v3; // r14d\n  double v4; // xmm0_8\n\n  v2 = *(_DWORD *)(a1 + 720) + ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 0 ? -1 : 1);\n  if ( v2 <= 0 )\n    v2 = 0;\n  v3 = *(_DWORD *)(a1 + 728) - 1;\n  if ( v3 >= v2 )\n    v3 = v2;\n  *(_DWORD *)(a1 + 720) = v3;\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 736) + 344LL))(*(_QWORD *)(a1 + 736), v3 != 0);\n  v4 = (*(double (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 744) + 344LL))(\n         *(_QWORD *)(a1 + 744),\n         *(_DWORD *)(a1 + 728) - 1 != v3);\n  *(_DWORD *)(*(_QWORD *)(a1 + 680) + 420LL) = v3;\n  return GJColorSetupLayer::updateSpriteColors(a1, v4);\n}", "assembly": "; \n; GJColorSetupLayer::onPage from 0x1001ef210 to 0x1001ef2a8 (152 bytes)\n; \n; 2 xrefs:\n; > GJColorSetupLayer::init @ 0x1001eed1e\n; > GJColorSetupLayer::init @ 0x1001eedef\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:26:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001ef210\nmov     rbp, rsp                                                       ; +0x1, 0x1001ef211\npush    r14                                                            ; +0x4, 0x1001ef214\npush    rbx                                                            ; +0x6, 0x1001ef216\nmov     rbx, rdi                                                       ; +0x7, 0x1001ef217\nmov     rax, [rsi]                                                     ; +0xa, 0x1001ef21a\nmov     rdi, rsi                                                       ; +0xd, 0x1001ef21d\ncall    qword ptr [rax+40h]                                            ; +0x10, 0x1001ef220\nxor     ecx, ecx                                                       ; +0x13, 0x1001ef223\nneg     eax                                                            ; +0x15, 0x1001ef225\nmov     eax, 0                                                         ; +0x17, 0x1001ef227\nsbb     eax, eax                                                       ; +0x1c, 0x1001ef22c\nor      eax, 1                                                         ; +0x1e, 0x1001ef22e\nadd     eax, [rbx+2D0h]                                                ; +0x21, 0x1001ef231\ntest    eax, eax                                                       ; +0x27, 0x1001ef237\ncmovle  eax, ecx                                                       ; +0x29, 0x1001ef239\nmov     r14d, [rbx+2D8h]                                               ; +0x2c, 0x1001ef23c\ndec     r14d                                                           ; +0x33, 0x1001ef243\ncmp     r14d, eax                                                      ; +0x36, 0x1001ef246\ncmovge  r14d, eax                                                      ; +0x39, 0x1001ef249\nmov     [rbx+2D0h], r14d                                               ; +0x3d, 0x1001ef24d\nmov     rdi, [rbx+2E0h]                                                ; +0x44, 0x1001ef254\nxor     esi, esi                                                       ; +0x4b, 0x1001ef25b\ntest    r14d, r14d                                                     ; +0x4d, 0x1001ef25d\nsetnz   sil                                                            ; +0x50, 0x1001ef260\nmov     rax, [rdi]                                                     ; +0x54, 0x1001ef264\ncall    qword ptr [rax+158h]                                           ; +0x57, 0x1001ef267\nmov     rdi, [rbx+2E8h]                                                ; +0x5d, 0x1001ef26d\nmov     eax, [rbx+2D8h]                                                ; +0x64, 0x1001ef274\ndec     eax                                                            ; +0x6a, 0x1001ef27a\nxor     esi, esi                                                       ; +0x6c, 0x1001ef27c\ncmp     eax, r14d                                                      ; +0x6e, 0x1001ef27e\nsetnz   sil                                                            ; +0x71, 0x1001ef281\nmov     rax, [rdi]                                                     ; +0x75, 0x1001ef285\ncall    qword ptr [rax+158h]                                           ; +0x78, 0x1001ef288\nmov     rax, [rbx+2A8h]                                                ; +0x7e, 0x1001ef28e\nmov     [rax+1A4h], r14d                                               ; +0x85, 0x1001ef295\nmov     rdi, rbx                                                       ; +0x8c, 0x1001ef29c\npop     rbx                                                            ; +0x8f, 0x1001ef29f\npop     r14                                                            ; +0x90, 0x1001ef2a0\npop     rbp                                                            ; +0x92, 0x1001ef2a2\njmp     GJColorSetupLayer__updateSpriteColors                          ; +0x93, 0x1001ef2a3", "xrefs": ["GJColorSetupLayer::init @ 0x1001eed1e", "GJColorSetupLayer::init @ 0x1001eedef"], "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"}