{"type": "func", "start": 5371975040, "end": 5371975279, "name": "GJBaseGameLayer::pickupItem", "pseudocode": "// \n// GJBaseGameLayer::pickupItem from 0x14031d580 to 0x14031d66f (239 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cff6\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031d0e5\n// > PlayLayer::loadFromCheckpoint @ 0x140516f50\n// > <???> @ 0x14091ec50\n// > <???> @ 0x14091ec5c\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::pickupItem(__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 + 13064), 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::pickupItem from 0x14031d580 to 0x14031d66f (239 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031cff6\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031d0e5\n; > PlayLayer::loadFromCheckpoint @ 0x140516f50\n; > <???> @ 0x14091ec50\n; > <???> @ 0x14091ec5c\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, 0x14031d580\npush    rdi                                                            ; +0x5, 0x14031d585\nsub     rsp, 60h                                                       ; +0x6, 0x14031d586\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14031d58a\nxor     rax, rsp                                                       ; +0x11, 0x14031d591\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x14031d594\nmov     rbx, rdx                                                       ; +0x19, 0x14031d599\nmov     rdi, rcx                                                       ; +0x1c, 0x14031d59c\nmov     edx, [rdx+710h]                                                ; +0x1f, 0x14031d59f\nlea     rcx, word_1406ED6F8                                            ; +0x25, 0x14031d5a5\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2c, 0x14031d5ac\nmov     rcx, rax                                                       ; +0x32, 0x14031d5b2\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x35, 0x14031d5b5\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x14031d5bb\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x3e, 0x14031d5be\nxorps   xmm1, xmm1                                                     ; +0x43, 0x14031d5c3\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x46, 0x14031d5c6\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4c, 0x14031d5cc\ninc     r8                                                             ; +0x53, 0x14031d5d3\ncmp     byte ptr [rax+r8], 0                                           ; +0x56, 0x14031d5d6\njnz     short loc_14031D5D3                                            ; +0x5b, 0x14031d5db\nmov     rdx, rax                                                       ; +0x5d, 0x14031d5dd\nlea     rcx, [rsp+68h+Block]                                           ; +0x60, 0x14031d5e0\ncall    sub_14003D230                                                  ; +0x65, 0x14031d5e5\nnop                                                                    ; +0x6a, 0x14031d5ea\nlea     r8, [rsp+68h+Block]                                            ; +0x6b, 0x14031d5eb\nmov     rdx, rbx                                                       ; +0x70, 0x14031d5f0\nmov     rcx, [rdi+3308h]                                               ; +0x73, 0x14031d5f3\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, 0x14031d5fa\nnop                                                                    ; +0x80, 0x14031d600\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x81, 0x14031d601\ncmp     rdx, 0Fh                                                       ; +0x86, 0x14031d606\njbe     short loc_14031D654                                            ; +0x8a, 0x14031d60a\ninc     rdx                                                            ; +0x8c, 0x14031d60c\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x8f, 0x14031d60f\nmov     rax, rcx                                                       ; +0x94, 0x14031d614\ncmp     rdx, 1000h                                                     ; +0x97, 0x14031d617\njb      short loc_14031D64F                                            ; +0x9e, 0x14031d61e\nadd     rdx, 27h ; '''                                                 ; +0xa0, 0x14031d620\nmov     rcx, [rcx-8]                                                   ; +0xa4, 0x14031d624\nsub     rax, rcx                                                       ; +0xa8, 0x14031d628\nsub     rax, 8                                                         ; +0xab, 0x14031d62b\ncmp     rax, 1Fh                                                       ; +0xaf, 0x14031d62f\njbe     short loc_14031D64F                                            ; +0xb3, 0x14031d633\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xb5, 0x14031d635\nxor     r9d, r9d; LineNo                                               ; +0xbe, 0x14031d63e\nxor     r8d, r8d; FileName                                             ; +0xc1, 0x14031d641\nxor     edx, edx; FunctionName                                         ; +0xc4, 0x14031d644\nxor     ecx, ecx; Expression                                           ; +0xc6, 0x14031d646\ncall    cs:_invoke_watson                                              ; +0xc8, 0x14031d648\ndb 0CCh                                                                ; +0xce, 0x14031d64e\ncall    j_j_free                                                       ; +0xcf, 0x14031d64f\nmov     rcx, [rsp+68h+var_18]                                          ; +0xd4, 0x14031d654\nxor     rcx, rsp; StackCookie                                          ; +0xd9, 0x14031d659\ncall    __security_check_cookie                                        ; +0xdc, 0x14031d65c\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xe1, 0x14031d661\nadd     rsp, 60h                                                       ; +0xe9, 0x14031d669\npop     rdi                                                            ; +0xed, 0x14031d66d\nretn                                                                   ; +0xee, 0x14031d66e", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x14031cff6", "GJBaseGameLayer::collisionCheckObjects @ 0x14031d0e5", "PlayLayer::loadFromCheckpoint @ 0x140516f50", "<???> @ 0x14091ec50", "<???> @ 0x14091ec5c"], "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"}