{"type": "func", "start": 5371975280, "end": 5371975519, "name": "GJBaseGameLayer::logPickupItem", "pseudocode": "// \n// GJBaseGameLayer::logPickupItem from 0x14031d670 to 0x14031d75f (239 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cfdc\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031d0cb\n// > PlayLayer::loadFromCheckpoint @ 0x140516f36\n// > <???> @ 0x14091ec68\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:21 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::logPickupItem(__int64 a1, __int64 a2)\n{\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  size_t v6; // r8\n  void *v7; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v9; // [rsp+40h] [rbp-28h]\n\n  v4 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a2 + 1808));\n  CString = cocos2d::CCString::getCString(v4);\n  *(_OWORD *)Block = 0;\n  v9 = 0;\n  v6 = -1;\n  do\n    ++v6;\n  while ( CString[v6] );\n  sub_14003D230(Block, CString, v6);\n  cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 13072), a2, Block);\n  if ( *((_QWORD *)&v9 + 1) > 0xFu )\n  {\n    v7 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v9 + 1) + 1LL) >= 0x1000 )\n    {\n      v7 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v7);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::logPickupItem from 0x14031d670 to 0x14031d75f (239 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031cfdc\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031d0cb\n; > PlayLayer::loadFromCheckpoint @ 0x140516f36\n; > <???> @ 0x14091ec68\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:21 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14031d670\npush    rdi                                                            ; +0x5, 0x14031d675\nsub     rsp, 60h                                                       ; +0x6, 0x14031d676\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14031d67a\nxor     rax, rsp                                                       ; +0x11, 0x14031d681\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x14031d684\nmov     rbx, rdx                                                       ; +0x19, 0x14031d689\nmov     rdi, rcx                                                       ; +0x1c, 0x14031d68c\nmov     edx, [rdx+710h]                                                ; +0x1f, 0x14031d68f\nlea     rcx, word_1406ED6F8                                            ; +0x25, 0x14031d695\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2c, 0x14031d69c\nmov     rcx, rax                                                       ; +0x32, 0x14031d6a2\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x35, 0x14031d6a5\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x14031d6ab\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x3e, 0x14031d6ae\nxorps   xmm1, xmm1                                                     ; +0x43, 0x14031d6b3\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x46, 0x14031d6b6\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4c, 0x14031d6bc\ninc     r8                                                             ; +0x53, 0x14031d6c3\ncmp     byte ptr [rax+r8], 0                                           ; +0x56, 0x14031d6c6\njnz     short loc_14031D6C3                                            ; +0x5b, 0x14031d6cb\nmov     rdx, rax                                                       ; +0x5d, 0x14031d6cd\nlea     rcx, [rsp+68h+Block]                                           ; +0x60, 0x14031d6d0\ncall    sub_14003D230                                                  ; +0x65, 0x14031d6d5\nnop                                                                    ; +0x6a, 0x14031d6da\nlea     r8, [rsp+68h+Block]                                            ; +0x6b, 0x14031d6db\nmov     rdx, rbx                                                       ; +0x70, 0x14031d6e0\nmov     rcx, [rdi+3310h]                                               ; +0x73, 0x14031d6e3\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x7a, 0x14031d6ea\nnop                                                                    ; +0x80, 0x14031d6f0\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x81, 0x14031d6f1\ncmp     rdx, 0Fh                                                       ; +0x86, 0x14031d6f6\njbe     short loc_14031D744                                            ; +0x8a, 0x14031d6fa\ninc     rdx                                                            ; +0x8c, 0x14031d6fc\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x8f, 0x14031d6ff\nmov     rax, rcx                                                       ; +0x94, 0x14031d704\ncmp     rdx, 1000h                                                     ; +0x97, 0x14031d707\njb      short loc_14031D73F                                            ; +0x9e, 0x14031d70e\nadd     rdx, 27h ; '''                                                 ; +0xa0, 0x14031d710\nmov     rcx, [rcx-8]                                                   ; +0xa4, 0x14031d714\nsub     rax, rcx                                                       ; +0xa8, 0x14031d718\nsub     rax, 8                                                         ; +0xab, 0x14031d71b\ncmp     rax, 1Fh                                                       ; +0xaf, 0x14031d71f\njbe     short loc_14031D73F                                            ; +0xb3, 0x14031d723\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xb5, 0x14031d725\nxor     r9d, r9d; LineNo                                               ; +0xbe, 0x14031d72e\nxor     r8d, r8d; FileName                                             ; +0xc1, 0x14031d731\nxor     edx, edx; FunctionName                                         ; +0xc4, 0x14031d734\nxor     ecx, ecx; Expression                                           ; +0xc6, 0x14031d736\ncall    cs:_invoke_watson                                              ; +0xc8, 0x14031d738\ndb 0CCh                                                                ; +0xce, 0x14031d73e\ncall    j_j_free                                                       ; +0xcf, 0x14031d73f\nmov     rcx, [rsp+68h+var_18]                                          ; +0xd4, 0x14031d744\nxor     rcx, rsp; StackCookie                                          ; +0xd9, 0x14031d749\ncall    __security_check_cookie                                        ; +0xdc, 0x14031d74c\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xe1, 0x14031d751\nadd     rsp, 60h                                                       ; +0xe9, 0x14031d759\npop     rdi                                                            ; +0xed, 0x14031d75d\nretn                                                                   ; +0xee, 0x14031d75e", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x14031cfdc", "GJBaseGameLayer::collisionCheckObjects @ 0x14031d0cb", "PlayLayer::loadFromCheckpoint @ 0x140516f36", "<???> @ 0x14091ec68"], "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"}