{"type": "func", "start": 5054788, "end": 5054856, "name": "CurrencyRewardLayer::createUnlockObject", "pseudocode": "// \n// CurrencyRewardLayer::createUnlockObject from 0x4d2144 to 0x4d2188 (68 bytes)\n// \n// 2 xrefs:\n// > GJGarageLayer::dialogClosed @ 0x404bfe\n// > RewardUnlockLayer::playRewardEffect @ 0x4e9576\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 CurrencyRewardLayer::createUnlockObject(\n        CurrencyRewardLayer *a1,\n        cocos2d::CCSprite *a2,\n        cocos2d::CCPoint a3,\n        float a4)\n{\n  float y; // r8\n  cocos2d::CCPoint v7; // [sp+0h] [bp-18h]\n  float v8; // [sp+8h] [bp-10h]\n  cocos2d::CCPoint v9; // [sp+Ch] [bp-Ch] BYREF\n\n  y = a3.y;\n  cocos2d::CCPoint::CCPoint(&v9, (const cocos2d::CCPoint *)LODWORD(a3.x));\n  LODWORD(v7.x) = &v9;\n  v7.y = y;\n  CurrencyRewardLayer::createObjectsFull(a1, Icon, 1, a2, v7, v8);\n}", "assembly": "; \n; CurrencyRewardLayer::createUnlockObject from 0x4d2144 to 0x4d2188 (68 bytes)\n; \n; 2 xrefs:\n; > GJGarageLayer::dialogClosed @ 0x404bfe\n; > RewardUnlockLayer::playRewardEffect @ 0x4e9576\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.W          {R4-R8,LR}                                             ; +0x0, 0x4d2144\nSUB             SP, SP, #0x18                                          ; +0x4, 0x4d2148\nLDR             R4, =(__stack_chk_guard_ptr - 0x4D2156)                ; +0x6, 0x4d214a\nMOV             R8, R3                                                 ; +0x8, 0x4d214c\nADD             R5, SP, #0x18+var_C                                    ; +0xa, 0x4d214e\nMOV             R7, R0                                                 ; +0xc, 0x4d2150\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4d2152\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x4d2154\nMOV             R6, R1                                                 ; +0x12, 0x4d2156\nMOV             R0, R5; this                                           ; +0x14, 0x4d2158\nMOV             R1, R2; cocos2d::CCPoint *                             ; +0x16, 0x4d215a\nLDR             R3, [R4]                                               ; +0x18, 0x4d215c\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1a, 0x4d215e\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1c, 0x4d2160\nMOVS            R2, #1; int                                            ; +0x20, 0x4d2164\nMOV             R3, R6; bool                                           ; +0x22, 0x4d2166\nSTR             R5, [SP,#0x18+var_18]; int                             ; +0x24, 0x4d2168\nMOV             R0, R7; int                                            ; +0x26, 0x4d216a\nSTR.W           R8, [SP,#0x18+var_14]; float                           ; +0x28, 0x4d216c\nMOVS            R1, #0; int                                            ; +0x2c, 0x4d2170\nBL              _ZN19CurrencyRewardLayer17createObjectsFullE18CurrencySpriteTypeiPN7cocos2d8CCSpriteENS1_7CCPointEf; CurrencyRewardLayer::createObjectsFull(CurrencySpriteType,int,cocos2d::CCSprite *,cocos2d::CCPoint,float) ; +0x2e, 0x4d2172\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x32, 0x4d2176\nLDR             R3, [R4]                                               ; +0x34, 0x4d2178\nCMP             R2, R3                                                 ; +0x36, 0x4d217a\nBEQ             loc_4D2182                                             ; +0x38, 0x4d217c\nBLX             __stack_chk_fail                                       ; +0x3a, 0x4d217e\nADD             SP, SP, #0x18                                          ; +0x3e, 0x4d2182\nPOP.W           {R4-R8,PC}                                             ; +0x40, 0x4d2184", "xrefs": ["GJGarageLayer::dialogClosed @ 0x404bfe", "RewardUnlockLayer::playRewardEffect @ 0x4e9576"], "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"}