; ; CurrencyRewardLayer::create from 0x4d36d4 to 0x4d3856 (386 bytes) ; ; 7 xrefs: ; > PlayLayer::showNewBest @ 0x310816 ; > GJGarageLayer::dialogClosed @ 0x404bb8 ; > EndLevelLayer::playEndEffect @ 0x42890e ; > ChallengesPage::claimItem @ 0x4cd126 ; > DailyLevelPage::claimLevelReward @ 0x4d576c ; > RewardUnlockLayer::playRewardEffect @ 0x4e945a ; > LevelListLayer::onClaimReward @ 0x58ecba ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; PUSH.W {R4-R11,LR} ; +0x0, 0x4d36d4 MOV R9, R3 ; +0x4, 0x4d36d8 LDR R5, =(__stack_chk_guard_ptr - 0x4D36E8) ; +0x6, 0x4d36da SUB SP, SP, #0x3C ; +0x8, 0x4d36dc MOV R8, R0 ; +0xa, 0x4d36de MOV.W R0, #0x1E0; unsigned int ; +0xc, 0x4d36e0 ADD R5, PC; __stack_chk_guard_ptr ; +0x10, 0x4d36e4 LDR R5, [R5]; __stack_chk_guard ; +0x12, 0x4d36e6 MOV R7, R1 ; +0x14, 0x4d36e8 MOV R6, R2 ; +0x16, 0x4d36ea LDR.W R10, [SP,#0x3C+arg_10] ; +0x18, 0x4d36ec LDR R3, [R5] ; +0x1c, 0x4d36f0 STR R3, [SP,#0x3C+var_8] ; +0x1e, 0x4d36f2 BL _Znwj; operator new(uint) ; +0x20, 0x4d36f4 MOV R4, R0 ; +0x24, 0x4d36f8 BL _ZN7cocos2d7CCLayerC2Ev; cocos2d::CCLayer::CCLayer(void) ; +0x26, 0x4d36fa LDR R3, =(_ZTV19CurrencyRewardLayer_ptr - 0x4D3708) ; +0x2a, 0x4d36fe ADD.W R0, R4, #0x1A0; this ; +0x2c, 0x4d3700 ADD R3, PC; _ZTV19CurrencyRewardLayer_ptr ; +0x30, 0x4d3704 LDR R3, [R3]; `vtable for'CurrencyRewardLayer ... ; +0x32, 0x4d3706 ADD.W R2, R3, #8 ; +0x34, 0x4d3708 STR R2, [R4] ; +0x38, 0x4d370c ADD.W R2, R3, #0x248 ; +0x3a, 0x4d370e STR.W R2, [R4,#0x108] ; +0x3e, 0x4d3712 ADD.W R2, R3, #0x280 ; +0x42, 0x4d3716 STR.W R2, [R4,#0x10C] ; +0x46, 0x4d371a ADD.W R2, R3, #0x28C ; +0x4a, 0x4d371e STR.W R2, [R4,#0x110] ; +0x4e, 0x4d3722 ADD.W R2, R3, #0x29C ; +0x52, 0x4d3726 ADD.W R3, R3, #0x2AC ; +0x56, 0x4d372a STR.W R2, [R4,#0x114] ; +0x5a, 0x4d372e STR.W R3, [R4,#0x118] ; +0x5e, 0x4d3732 MOVS R3, #0 ; +0x62, 0x4d3736 STR.W R3, [R4,#0x13C] ; +0x64, 0x4d3738 STR.W R3, [R4,#0x140] ; +0x68, 0x4d373c STR.W R3, [R4,#0x144] ; +0x6c, 0x4d3740 STR.W R3, [R4,#0x148] ; +0x70, 0x4d3744 STR.W R3, [R4,#0x150] ; +0x74, 0x4d3748 STR.W R3, [R4,#0x154] ; +0x78, 0x4d374c STR.W R3, [R4,#0x158] ; +0x7c, 0x4d3750 STR.W R3, [R4,#0x15C] ; +0x80, 0x4d3754 STR.W R3, [R4,#0x160] ; +0x84, 0x4d3758 STR.W R3, [R4,#0x168] ; +0x88, 0x4d375c STR.W R3, [R4,#0x16C] ; +0x8c, 0x4d3760 STR.W R3, [R4,#0x170] ; +0x90, 0x4d3764 STR.W R3, [R4,#0x174] ; +0x94, 0x4d3768 STR.W R3, [R4,#0x178] ; +0x98, 0x4d376c STR.W R3, [R4,#0x17C] ; +0x9c, 0x4d3770 STR.W R3, [R4,#0x180] ; +0xa0, 0x4d3774 STR.W R3, [R4,#0x184] ; +0xa4, 0x4d3778 STR.W R3, [R4,#0x188] ; +0xa8, 0x4d377c STR.W R3, [R4,#0x18C] ; +0xac, 0x4d3780 STR.W R3, [R4,#0x190] ; +0xb0, 0x4d3784 MOVS R3, #0 ; +0xb4, 0x4d3788 STR.W R3, [R4,#0x194] ; +0xb6, 0x4d378a STR.W R3, [R4,#0x198] ; +0xba, 0x4d378e MOV.W R3, #0x3F800000 ; +0xbe, 0x4d3792 STR.W R3, [R4,#0x19C] ; +0xc2, 0x4d3796 BL _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0xc6, 0x4d379a ADD.W R0, R4, #0x1A8; this ; +0xca, 0x4d379e BL _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0xce, 0x4d37a2 ADD.W R0, R4, #0x1B0; this ; +0xd2, 0x4d37a6 BL _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0xd6, 0x4d37aa ADD.W R0, R4, #0x1B8; this ; +0xda, 0x4d37ae BL _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0xde, 0x4d37b2 ADD.W R0, R4, #0x1C0; this ; +0xe2, 0x4d37b6 BL _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0xe6, 0x4d37ba ADD.W R0, R4, #0x1C8; this ; +0xea, 0x4d37be BL _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0xee, 0x4d37c2 ADD.W R11, SP, #0x3C+var_10 ; +0xf2, 0x4d37c6 MOVS R3, #0 ; +0xf6, 0x4d37ca MOV R1, R10; cocos2d::CCPoint * ; +0xf8, 0x4d37cc STRB.W R3, [R4,#0x1D0] ; +0xfa, 0x4d37ce STRB.W R3, [R4,#0x1D1] ; +0xfe, 0x4d37d2 MOV R0, R11; this ; +0x102, 0x4d37d6 STR.W R3, [R4,#0x1D4] ; +0x104, 0x4d37d8 STR.W R3, [R4,#0x1D8] ; +0x108, 0x4d37dc STR.W R3, [R4,#0x1DC] ; +0x10c, 0x4d37e0 BL _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x110, 0x4d37e4 LDR R3, [SP,#0x3C+arg_0] ; +0x114, 0x4d37e8 STR.W R9, [SP,#0x3C+var_3C]; int ; +0x116, 0x4d37ea MOV R0, R4; int ; +0x11a, 0x4d37ee STR.W R11, [SP,#0x3C+var_28]; int ; +0x11c, 0x4d37f0 MOV R1, R8; int ; +0x120, 0x4d37f4 STR R3, [SP,#0x3C+var_38]; int ; +0x122, 0x4d37f6 MOV R2, R7; int ; +0x124, 0x4d37f8 LDR R3, [SP,#0x3C+arg_4] ; +0x126, 0x4d37fa STR R3, [SP,#0x3C+var_34]; int ; +0x128, 0x4d37fc LDR R3, [SP,#0x3C+arg_8] ; +0x12a, 0x4d37fe STR R3, [SP,#0x3C+var_30]; int ; +0x12c, 0x4d3800 LDR R3, [SP,#0x3C+arg_C] ; +0x12e, 0x4d3802 STR R3, [SP,#0x3C+var_2C]; int ; +0x130, 0x4d3804 LDR R3, [SP,#0x3C+arg_10.y] ; +0x132, 0x4d3806 STR R3, [SP,#0x3C+var_24]; int ; +0x134, 0x4d3808 LDR R3, [SP,#0x3C+arg_18] ; +0x136, 0x4d380a STR R3, [SP,#0x3C+var_20]; float ; +0x138, 0x4d380c LDR R3, [SP,#0x3C+arg_1C] ; +0x13a, 0x4d380e STR R3, [SP,#0x3C+var_1C]; float ; +0x13c, 0x4d3810 MOV R3, R6; int ; +0x13e, 0x4d3812 BL _ZN19CurrencyRewardLayer4initEiiii18CurrencySpriteTypeiS0_iN7cocos2d7CCPointE18CurrencyRewardTypeff; CurrencyRewardLayer::init(int,int,int,int,CurrencySpriteType,int,CurrencySpriteType,int,cocos2d::CCPoint,CurrencyRewardType,float,float) ; +0x140, 0x4d3814 MOV R6, R0 ; +0x144, 0x4d3818 CBZ R0, loc_4D382E ; +0x146, 0x4d381a MOV R0, R4; this ; +0x148, 0x4d381c BL _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x14a, 0x4d381e B loc_4D3838 ; +0x14e, 0x4d3822 MOV R0, R4; this ; +0x150, 0x4d3824 BL _ZN7cocos2d7CCLayerD2Ev; cocos2d::CCLayer::~CCLayer() ; +0x152, 0x4d3826 B loc_4D3846 ; +0x156, 0x4d382a B loc_4D384C ; +0x158, 0x4d382c LDR R3, [R4] ; +0x15a, 0x4d382e MOV R0, R4 ; +0x15c, 0x4d3830 MOV R4, R6 ; +0x15e, 0x4d3832 LDR R3, [R3,#8] ; +0x160, 0x4d3834 BLX R3 ; +0x162, 0x4d3836 LDR R2, [SP,#0x3C+var_8] ; +0x164, 0x4d3838 MOV R0, R4 ; +0x166, 0x4d383a LDR R3, [R5] ; +0x168, 0x4d383c CMP R2, R3 ; +0x16a, 0x4d383e BEQ loc_4D3850 ; +0x16c, 0x4d3840 BLX __stack_chk_fail ; +0x16e, 0x4d3842 MOV R0, R4; p ; +0x172, 0x4d3846 BL _ZdlPv; operator delete(void *) ; +0x174, 0x4d3848 BL __cxa_end_cleanup ; +0x178, 0x4d384c ADD SP, SP, #0x3C ; '<' ; +0x17c, 0x4d3850 POP.W {R4-R11,PC} ; +0x17e, 0x4d3852