{"type": "func", "start": 4649600, "end": 4649692, "name": "GJBaseGameLayer::pickupItem", "pseudocode": "// \n// GJBaseGameLayer::pickupItem from 0x46f280 to 0x46f2dc (92 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::loadFromCheckpoint @ 0x31f6bc\n// > GJBaseGameLayer::collisionCheckObjects @ 0x492ae4\n// > GJBaseGameLayer::collisionCheckObjects @ 0x492b3e\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\nvoid GJBaseGameLayer::pickupItem(GJBaseGameLayer *a1, EffectGameObject *a2)\n{\n  cocos2d::CCDictionary *m_collectedItems; // r7\n  cocos2d::CCString *v4; // r0\n  char *CString; // r0\n  _BYTE v6[4]; // [sp+8h] [bp-Ch] BYREF\n\n  m_collectedItems = a1->m_collectedItems;\n  v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%i\",\n                              (const char *)a2->m_secretCoinID);\n  CString = (char *)cocos2d::CCString::getCString(v4);\n  sub_776584((int)v6, CString);\n  cocos2d::CCDictionary::setObject((int)m_collectedItems, a2);\n  sub_774008(v6);\n}", "assembly": "; \n; GJBaseGameLayer::pickupItem from 0x46f280 to 0x46f2dc (92 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::loadFromCheckpoint @ 0x31f6bc\n; > GJBaseGameLayer::collisionCheckObjects @ 0x492ae4\n; > GJBaseGameLayer::collisionCheckObjects @ 0x492b3e\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            {R4-R7,LR}                                             ; +0x0, 0x46f280\nSUB             SP, SP, #0x14                                          ; +0x2, 0x46f282\nLDR             R4, =(__stack_chk_guard_ptr - 0x46F292)                ; +0x4, 0x46f284\nMOV             R6, R1                                                 ; +0x6, 0x46f286\nLDR.W           R1, [R1,#0x640]; char *                                ; +0x8, 0x46f288\nADD             R5, SP, #0x14+var_C                                    ; +0xc, 0x46f28c\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x46f28e\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x46f290\nLDR             R3, [R4]                                               ; +0x12, 0x46f292\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x14, 0x46f294\nMOVW            R3, #0x2AE0                                            ; +0x16, 0x46f296\nLDR             R7, [R0,R3]                                            ; +0x1a, 0x46f29a\nLDR             R0, =(aI - 0x46F2A2); \"%i\"                             ; +0x1c, 0x46f29c\nADD             R0, PC; \"%i\"                                           ; +0x1e, 0x46f29e\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x20, 0x46f2a0\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x24, 0x46f2a4\nADD             R2, SP, #0x14+var_10                                   ; +0x28, 0x46f2a8\nMOV             R1, R0; char *                                         ; +0x2a, 0x46f2aa\nMOV             R0, R5; int                                            ; +0x2c, 0x46f2ac\nBL              sub_776584                                             ; +0x2e, 0x46f2ae\nMOV             R0, R7; int                                            ; +0x32, 0x46f2b2\nMOV             R1, R6; this                                           ; +0x34, 0x46f2b4\nMOV             R2, R5                                                 ; +0x36, 0x46f2b6\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKSs; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x38, 0x46f2b8\nMOV             R0, R5                                                 ; +0x3c, 0x46f2bc\nBL              sub_774008                                             ; +0x3e, 0x46f2be\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x42, 0x46f2c2\nLDR             R3, [R4]                                               ; +0x44, 0x46f2c4\nCMP             R2, R3                                                 ; +0x46, 0x46f2c6\nBEQ             loc_46F2D8                                             ; +0x48, 0x46f2c8\nBLX             __stack_chk_fail                                       ; +0x4a, 0x46f2ca\nMOV             R0, R5                                                 ; +0x4e, 0x46f2ce\nBL              sub_774008                                             ; +0x50, 0x46f2d0\nBL              __cxa_end_cleanup                                      ; +0x54, 0x46f2d4\nADD             SP, SP, #0x14                                          ; +0x58, 0x46f2d8\nPOP             {R4-R7,PC}                                             ; +0x5a, 0x46f2da", "xrefs": ["PlayLayer::loadFromCheckpoint @ 0x31f6bc", "GJBaseGameLayer::collisionCheckObjects @ 0x492ae4", "GJBaseGameLayer::collisionCheckObjects @ 0x492b3e"], "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"}