{"type": "func", "start": 5372185072, "end": 5372185335, "name": "GJBaseGameLayer::updateGuideArt", "pseudocode": "// \n// GJBaseGameLayer::updateGuideArt from 0x1403509f0 to 0x140350af7 (263 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::update @ 0x140341c94\n// > GJBaseGameLayer::update @ 0x140341f22\n// > <???> @ 0x1408b88e0\n// > <???> @ 0x1408b8944\n// > <???> @ 0x140920258\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:47 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::updateGuideArt(__int64 a1)\n{\n  __m128 v1; // xmm0\n  __int64 result; // rax\n  unsigned int *v4; // rdi\n  __int64 **v5; // rdi\n  __int64 **i; // rbp\n  __int64 *v7; // rsi\n  __int64 v8; // rbx\n\n  result = *(_QWORD *)(a1 + 13656);\n  if ( result )\n  {\n    v4 = *(unsigned int **)(result + 56);\n    result = *v4;\n    if ( (_DWORD)result )\n    {\n      v5 = *((__int64 ***)v4 + 2);\n      for ( i = &v5[result - 1]; v5 <= i; ++v5 )\n      {\n        v7 = *v5;\n        if ( !*v5 )\n          break;\n        result = (*(__int64 (__fastcall **)(__int64 *))(*v7 + 504))(*v5);\n        if ( *(_BYTE *)(result + 773) )\n        {\n          if ( *(_DWORD *)(result + 1036) == 84 && *(_BYTE *)(*(_QWORD *)(a1 + 3512) + 2503LL) )\n          {\n            v8 = *v7;\n            (*(float (__fastcall **)(__int64))(*(_QWORD *)result + 360LL))(result);\n          }\n          else\n          {\n            v8 = *v7;\n            *(double *)v1.m128_u64 = (*(double (__fastcall **)(__int64))(*(_QWORD *)result + 360LL))(result);\n            v1.m128_u64[1] = _mm_xor_ps(v1, (__m128)0x80000000).m128_u64[1];\n          }\n          result = (*(__int64 (__fastcall **)(__int64 *))(v8 + 352))(v7);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::updateGuideArt from 0x1403509f0 to 0x140350af7 (263 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::update @ 0x140341c94\n; > GJBaseGameLayer::update @ 0x140341f22\n; > <???> @ 0x1408b88e0\n; > <???> @ 0x1408b8944\n; > <???> @ 0x140920258\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:47 +0000\n; \npush    r14                                                            ; +0x0, 0x1403509f0\nsub     rsp, 40h                                                       ; +0x2, 0x1403509f2\nmov     rax, [rcx+3558h]                                               ; +0x6, 0x1403509f6\nmov     r14, rcx                                                       ; +0xd, 0x1403509fd\ntest    rax, rax                                                       ; +0x10, 0x140350a00\njz      loc_140350AF0                                                  ; +0x13, 0x140350a03\nmov     [rsp+48h+arg_18], rdi                                          ; +0x19, 0x140350a09\nmov     rdi, [rax+38h]                                                 ; +0x1e, 0x140350a0e\nmov     eax, [rdi]                                                     ; +0x22, 0x140350a12\ntest    eax, eax                                                       ; +0x24, 0x140350a14\njz      loc_140350AEB                                                  ; +0x26, 0x140350a16\nmov     rdi, [rdi+10h]                                                 ; +0x2c, 0x140350a1c\nmov     [rsp+48h+arg_8], rbp                                           ; +0x30, 0x140350a20\nlea     rbp, [rax-1]                                                   ; +0x35, 0x140350a25\nlea     rbp, [rdi+rbp*8]                                               ; +0x39, 0x140350a29\ncmp     rdi, rbp                                                       ; +0x3d, 0x140350a2d\nja      loc_140350AE6                                                  ; +0x40, 0x140350a30\nmov     [rsp+48h+arg_10], rsi                                          ; +0x46, 0x140350a36\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x4b, 0x140350a3b\nmovss   xmm6, dword ptr cs:xmmword_140836CC0                           ; +0x50, 0x140350a40\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x58, 0x140350a48\nmovss   xmm7, cs:dword_1408358B8                                       ; +0x5d, 0x140350a4d\nmov     [rsp+48h+arg_0], rbx                                           ; +0x65, 0x140350a55\nnop     word ptr [rax+rax+00h]                                         ; +0x6a, 0x140350a5a\nmov     rsi, [rdi]                                                     ; +0x70, 0x140350a60\ntest    rsi, rsi                                                       ; +0x73, 0x140350a63\njz      short loc_140350AD2                                            ; +0x76, 0x140350a66\nmov     rax, [rsi]                                                     ; +0x78, 0x140350a68\nmov     rcx, rsi                                                       ; +0x7b, 0x140350a6b\ncall    qword ptr [rax+1F8h]                                           ; +0x7e, 0x140350a6e\nmov     rcx, rax                                                       ; +0x84, 0x140350a74\ncmp     byte ptr [rax+305h], 0                                         ; +0x87, 0x140350a77\njz      short loc_140350AC9                                            ; +0x8e, 0x140350a7e\ncmp     dword ptr [rax+40Ch], 54h ; 'T'                                ; +0x90, 0x140350a80\njnz     short loc_140350AAE                                            ; +0x97, 0x140350a87\nmov     rdx, [r14+0DB8h]                                               ; +0x99, 0x140350a89\ncmp     byte ptr [rdx+9C7h], 0                                         ; +0xa0, 0x140350a90\njz      short loc_140350AAE                                            ; +0xa7, 0x140350a97\nmov     rdx, [rax]                                                     ; +0xa9, 0x140350a99\nmov     rbx, [rsi]                                                     ; +0xac, 0x140350a9c\ncall    qword ptr [rdx+168h]                                           ; +0xaf, 0x140350a9f\nmovaps  xmm1, xmm7                                                     ; +0xb5, 0x140350aa5\nsubss   xmm1, xmm0                                                     ; +0xb8, 0x140350aa8\njmp     short loc_140350AC0                                            ; +0xbc, 0x140350aac\nmov     rax, [rax]                                                     ; +0xbe, 0x140350aae\nmov     rbx, [rsi]                                                     ; +0xc1, 0x140350ab1\ncall    qword ptr [rax+168h]                                           ; +0xc4, 0x140350ab4\nxorps   xmm0, xmm6                                                     ; +0xca, 0x140350aba\nmovaps  xmm1, xmm0                                                     ; +0xcd, 0x140350abd\nmov     rcx, rsi                                                       ; +0xd0, 0x140350ac0\ncall    qword ptr [rbx+160h]                                           ; +0xd3, 0x140350ac3\nadd     rdi, 8                                                         ; +0xd9, 0x140350ac9\ncmp     rdi, rbp                                                       ; +0xdd, 0x140350acd\njbe     short loc_140350A60                                            ; +0xe0, 0x140350ad0\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xe2, 0x140350ad2\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xe7, 0x140350ad7\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xec, 0x140350adc\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xf1, 0x140350ae1\nmov     rbp, [rsp+48h+arg_8]                                           ; +0xf6, 0x140350ae6\nmov     rdi, [rsp+48h+arg_18]                                          ; +0xfb, 0x140350aeb\nadd     rsp, 40h                                                       ; +0x100, 0x140350af0\npop     r14                                                            ; +0x104, 0x140350af4\nretn                                                                   ; +0x106, 0x140350af6", "xrefs": ["GJBaseGameLayer::update @ 0x140341c94", "GJBaseGameLayer::update @ 0x140341f22", "<???> @ 0x1408b88e0", "<???> @ 0x1408b8944", "<???> @ 0x140920258"], "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"}