{"type": "func", "start": 4649700, "end": 4649790, "name": "GJBaseGameLayer::hasItem", "pseudocode": "// \n// GJBaseGameLayer::hasItem from 0x46f2e4 to 0x46f33e (90 bytes)\n// \n// 1 xrefs:\n// > EndLevelLayer::customSetup @ 0x429e26\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool GJBaseGameLayer::hasItem(GJBaseGameLayer *a1, int a2)\n{\n  cocos2d::CCDictionary *m_collectedItems; // r6\n  cocos2d::CCString *v3; // r0\n  char *CString; // r0\n  int v5; // r6\n  bool result; // r0\n  std::string v7; // [sp+8h] [bp-8h] BYREF\n\n  m_collectedItems = a1->m_collectedItems;\n  v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)a2);\n  CString = (char *)cocos2d::CCString::getCString(v3);\n  sub_776584((int)&v7, CString);\n  v5 = cocos2d::CCDictionary::objectForKey(m_collectedItems, &v7);\n  sub_774008(&v7);\n  result = v5;\n  if ( v5 )\n    return 1;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::hasItem from 0x46f2e4 to 0x46f33e (90 bytes)\n; \n; 1 xrefs:\n; > EndLevelLayer::customSetup @ 0x429e26\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R0-R6,LR}                                             ; +0x0, 0x46f2e4\nADD             R5, SP, #0x10+var_8                                    ; +0x2, 0x46f2e6\nLDR             R4, =(__stack_chk_guard_ptr - 0x46F2EE)                ; +0x4, 0x46f2e8\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x6, 0x46f2ea\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x8, 0x46f2ec\nLDR             R3, [R4]                                               ; +0xa, 0x46f2ee\nSTR             R3, [SP,#0x10+var_4]                                   ; +0xc, 0x46f2f0\nMOVW            R3, #0x2AE0                                            ; +0xe, 0x46f2f2\nLDR             R6, [R0,R3]                                            ; +0x12, 0x46f2f6\nLDR             R0, =(aI - 0x46F2FE); \"%i\"                             ; +0x14, 0x46f2f8\nADD             R0, PC; \"%i\"                                           ; +0x16, 0x46f2fa\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x18, 0x46f2fc\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1c, 0x46f300\nADD             R2, SP, #0x10+var_C                                    ; +0x20, 0x46f304\nMOV             R1, R0; char *                                         ; +0x22, 0x46f306\nMOV             R0, R5; int                                            ; +0x24, 0x46f308\nBL              sub_776584                                             ; +0x26, 0x46f30a\nMOV             R0, R6                                                 ; +0x2a, 0x46f30e\nMOV             R1, R5                                                 ; +0x2c, 0x46f310\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x2e, 0x46f312\nMOV             R6, R0                                                 ; +0x32, 0x46f316\nMOV             R0, R5                                                 ; +0x34, 0x46f318\nBL              sub_774008                                             ; +0x36, 0x46f31a\nMOVS            R0, R6                                                 ; +0x3a, 0x46f31e\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x3c, 0x46f320\nLDR             R3, [R4]                                               ; +0x3e, 0x46f322\nIT NE                                                                  ; +0x40, 0x46f324\nMOVNE           R0, #1                                                 ; +0x42, 0x46f326\nCMP             R2, R3                                                 ; +0x44, 0x46f328\nBEQ             loc_46F33A                                             ; +0x46, 0x46f32a\nBLX             __stack_chk_fail                                       ; +0x48, 0x46f32c\nMOV             R0, R5                                                 ; +0x4c, 0x46f330\nBL              sub_774008                                             ; +0x4e, 0x46f332\nBL              __cxa_end_cleanup                                      ; +0x52, 0x46f336\nADD             SP, SP, #0x10                                          ; +0x56, 0x46f33a\nPOP             {R4-R6,PC}                                             ; +0x58, 0x46f33c", "xrefs": ["EndLevelLayer::customSetup @ 0x429e26"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}