{"type": "func", "start": 4296048592, "end": 4296048825, "name": "GJBaseGameLayer::playerTouchedObject", "pseudocode": "// \n// GJBaseGameLayer::playerTouchedObject from 0x100107fd0 to 0x1001080b9 (233 bytes)\n// \n// 0 xrefs:\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:21:32 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::playerTouchedObject(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v3; // r12\n  __int64 v4; // r13\n  int v5; // ecx\n  __int64 v6; // rax\n  _QWORD *v7; // r15\n  char *v8; // r14\n  int v9; // eax\n  int v10; // eax\n  __int64 v11; // rax\n  char *v12; // [rsp+8h] [rbp-38h]\n  int v13; // [rsp+14h] [rbp-2Ch]\n\n  v3 = *(unsigned int *)(a3 + 916);\n  v4 = *(unsigned int *)(a2 + 916);\n  v5 = *(_DWORD *)(a1 + 944);\n  v6 = *(_QWORD *)(a1 + 1176);\n  if ( v6 )\n  {\n    while ( 1 )\n    {\n      v8 = (char *)v6;\n      v9 = *(_DWORD *)(v6 + 28);\n      if ( (int)v3 < v9 )\n        goto LABEL_3;\n      if ( (int)v3 > v9 )\n      {\nLABEL_8:\n        v6 = *((_QWORD *)v8 + 1);\n        if ( !v6 )\n        {\n          v7 = v8 + 8;\n          goto LABEL_10;\n        }\n      }\n      else\n      {\n        v10 = *((_DWORD *)v8 + 8);\n        if ( (int)v4 >= v10 )\n        {\n          if ( (int)v4 <= v10 )\n            goto LABEL_13;\n          goto LABEL_8;\n        }\nLABEL_3:\n        v6 = *(_QWORD *)v8;\n        v7 = v8;\n        if ( !*(_QWORD *)v8 )\n          goto LABEL_10;\n      }\n    }\n  }\n  v7 = (_QWORD *)(a1 + 1176);\n  v8 = (char *)(a1 + 1176);\nLABEL_10:\n  v13 = *(_DWORD *)(a1 + 944);\n  v12 = v8;\n  v8 = (char *)operator new(0x28u);\n  *(_QWORD *)(v8 + 28) = v3 | (v4 << 32);\n  *((_DWORD *)v8 + 9) = 0;\n  *(_OWORD *)v8 = 0;\n  *((_QWORD *)v8 + 2) = v12;\n  *v7 = v8;\n  v11 = **(_QWORD **)(a1 + 1168);\n  if ( v11 )\n    *(_QWORD *)(a1 + 1168) = v11;\n  sub_10001B680(*(__int64 **)(a1 + 1176), (__int64 *)v8);\n  ++*(_QWORD *)(a1 + 1184);\n  v5 = v13;\nLABEL_13:\n  *((_DWORD *)v8 + 9) = v5;\n}", "assembly": "; \n; GJBaseGameLayer::playerTouchedObject from 0x100107fd0 to 0x1001080b9 (233 bytes)\n; \n; 0 xrefs:\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:21:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x100107fd0\nmov     rbp, rsp                                                       ; +0x1, 0x100107fd1\npush    r15                                                            ; +0x4, 0x100107fd4\npush    r14                                                            ; +0x6, 0x100107fd6\npush    r13                                                            ; +0x8, 0x100107fd8\npush    r12                                                            ; +0xa, 0x100107fda\npush    rbx                                                            ; +0xc, 0x100107fdc\nsub     rsp, 18h                                                       ; +0xd, 0x100107fdd\nmov     rbx, rdi                                                       ; +0x11, 0x100107fe1\nmov     r12d, [rdx+394h]                                               ; +0x14, 0x100107fe4\nmov     r13d, [rsi+394h]                                               ; +0x1b, 0x100107feb\nmov     ecx, [rdi+3B0h]                                                ; +0x22, 0x100107ff2\nmov     rax, [rdi+498h]                                                ; +0x28, 0x100107ff8\ntest    rax, rax                                                       ; +0x2f, 0x100107fff\njnz     short loc_10010801B                                            ; +0x32, 0x100108002\nlea     r15, [rbx+498h]                                                ; +0x34, 0x100108004\nmov     r14, r15                                                       ; +0x3b, 0x10010800b\njmp     short loc_100108040                                            ; +0x3e, 0x10010800e\nmov     rax, [r14]                                                     ; +0x40, 0x100108010\nmov     r15, r14                                                       ; +0x43, 0x100108013\ntest    rax, rax                                                       ; +0x46, 0x100108016\njz      short loc_100108040                                            ; +0x49, 0x100108019\nmov     r14, rax                                                       ; +0x4b, 0x10010801b\nmov     eax, [rax+1Ch]                                                 ; +0x4e, 0x10010801e\ncmp     r12d, eax                                                      ; +0x51, 0x100108021\njl      short loc_100108010                                            ; +0x54, 0x100108024\njg      short loc_100108033                                            ; +0x56, 0x100108026\nmov     eax, [r14+20h]                                                 ; +0x58, 0x100108028\ncmp     r13d, eax                                                      ; +0x5c, 0x10010802c\njl      short loc_100108010                                            ; +0x5f, 0x10010802f\njle     short loc_1001080A6                                            ; +0x61, 0x100108031\nmov     rax, [r14+8]                                                   ; +0x63, 0x100108033\ntest    rax, rax                                                       ; +0x67, 0x100108037\njnz     short loc_10010801B                                            ; +0x6a, 0x10010803a\nlea     r15, [r14+8]                                                   ; +0x6c, 0x10010803c\nmov     [rbp+var_2C], ecx                                              ; +0x70, 0x100108040\nmov     [rbp+var_38], r14                                              ; +0x73, 0x100108043\nshl     r13, 20h                                                       ; +0x77, 0x100108047\nmov     edi, 28h ; '('; __sz                                           ; +0x7b, 0x10010804b\ncall    __Znwm; operator new(ulong)                                    ; +0x80, 0x100108050\nmov     r14, rax                                                       ; +0x85, 0x100108055\nor      r13, r12                                                       ; +0x88, 0x100108058\nmov     [rax+1Ch], r13                                                 ; +0x8b, 0x10010805b\nmov     dword ptr [rax+24h], 0                                         ; +0x8f, 0x10010805f\nxorps   xmm0, xmm0                                                     ; +0x96, 0x100108066\nmovups  xmmword ptr [rax], xmm0                                        ; +0x99, 0x100108069\nmov     rax, [rbp+var_38]                                              ; +0x9c, 0x10010806c\nmov     [r14+10h], rax                                                 ; +0xa0, 0x100108070\nmov     [r15], r14                                                     ; +0xa4, 0x100108074\nmov     rax, [rbx+490h]                                                ; +0xa7, 0x100108077\nmov     rax, [rax]                                                     ; +0xae, 0x10010807e\ntest    rax, rax                                                       ; +0xb1, 0x100108081\njz      short loc_10010808D                                            ; +0xb4, 0x100108084\nmov     [rbx+490h], rax                                                ; +0xb6, 0x100108086\nmov     rdi, [rbx+498h]                                                ; +0xbd, 0x10010808d\nmov     rsi, r14                                                       ; +0xc4, 0x100108094\ncall    sub_10001B680                                                  ; +0xc7, 0x100108097\ninc     qword ptr [rbx+4A0h]                                           ; +0xcc, 0x10010809c\nmov     ecx, [rbp+var_2C]                                              ; +0xd3, 0x1001080a3\nmov     [r14+24h], ecx                                                 ; +0xd6, 0x1001080a6\nadd     rsp, 18h                                                       ; +0xda, 0x1001080aa\npop     rbx                                                            ; +0xde, 0x1001080ae\npop     r12                                                            ; +0xdf, 0x1001080af\npop     r13                                                            ; +0xe1, 0x1001080b1\npop     r14                                                            ; +0xe3, 0x1001080b3\npop     r15                                                            ; +0xe5, 0x1001080b5\npop     rbp                                                            ; +0xe7, 0x1001080b7\nretn                                                                   ; +0xe8, 0x1001080b8", "xrefs": [], "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"}