; ; AudioEffectsLayer::init from 0x50a618 to 0x50a874 (604 bytes) ; ; 1 xrefs: ; > AudioEffectsLayer::create @ 0x50a942 ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:51:27 +0000 ; PUSH.W {R4-R11,LR} ; +0x0, 0x50a618 SUB SP, SP, #0x44 ; +0x4, 0x50a61c LDR R4, =(__stack_chk_guard_ptr - 0x50A62C) ; +0x6, 0x50a61e ADD.W R9, SP, #0x44+var_34 ; +0x8, 0x50a620 MOV R5, R1 ; +0xc, 0x50a624 MOV R7, R0 ; +0xe, 0x50a626 ADD R4, PC; __stack_chk_guard_ptr ; +0x10, 0x50a628 LDR R4, [R4]; __stack_chk_guard ; +0x12, 0x50a62a MOV R1, R9 ; +0x14, 0x50a62c LDR R3, [R4] ; +0x16, 0x50a62e STR R3, [SP,#0x44+var_8] ; +0x18, 0x50a630 MOVS R3, #0 ; +0x1a, 0x50a632 STRB.W R3, [SP,#0x44+var_34] ; +0x1c, 0x50a634 STRB.W R3, [SP,#0x44+var_33] ; +0x20, 0x50a638 STRB.W R3, [SP,#0x44+var_32] ; +0x24, 0x50a63c STRB.W R3, [SP,#0x44+var_31] ; +0x28, 0x50a640 BL _ZN7cocos2d12CCLayerColor13initWithColorERKNS_10_ccColor4BE; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const&) ; +0x2c, 0x50a644 STR R4, [SP,#0x44+var_3C] ; +0x30, 0x50a648 STR R0, [SP,#0x44+var_44] ; +0x32, 0x50a64a CMP R0, #0 ; +0x34, 0x50a64c BEQ.W loc_50A846 ; +0x36, 0x50a64e LDRB R3, [R5] ; +0x3a, 0x50a652 ADD.W R11, SP, #0x44+var_2C ; +0x3c, 0x50a654 LSLS R0, R3, #0x1F ; +0x40, 0x50a658 MOV.W R3, #0 ; +0x42, 0x50a65a IT PL ; +0x46, 0x50a65e ADDPL R5, #1 ; +0x48, 0x50a660 STR R3, [SP,#0x44+var_2C] ; +0x4a, 0x50a662 IT MI ; +0x4c, 0x50a664 LDRMI R5, [R5,#8] ; +0x4e, 0x50a666 STR R3, [SP,#0x44+var_28] ; +0x50, 0x50a668 STR R3, [SP,#0x44+var_24] ; +0x52, 0x50a66a MOV R0, R5; char * ; +0x54, 0x50a66c BLX strlen ; +0x56, 0x50a66e MOV R1, R5 ; +0x5a, 0x50a672 MOV R2, R0 ; +0x5c, 0x50a674 MOV R0, R11 ; +0x5e, 0x50a676 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x60, 0x50a678 BL _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x64, 0x50a67c LDRB.W R6, [SP,#0x44+var_2C] ; +0x68, 0x50a680 STR R0, [SP,#0x44+var_40] ; +0x6c, 0x50a684 ANDS.W R0, R6, #1 ; +0x6e, 0x50a686 BEQ loc_50A6B8 ; +0x72, 0x50a68a LDR R3, [SP,#0x44+var_28] ; +0x74, 0x50a68c LDR R2, [SP,#0x44+var_24] ; +0x76, 0x50a68e CBZ R3, loc_50A6B0 ; +0x78, 0x50a690 ADD R3, R2 ; +0x7a, 0x50a692 MOV R1, R2 ; +0x7c, 0x50a694 CMP R1, R3 ; +0x7e, 0x50a696 MOV R4, R1 ; +0x80, 0x50a698 BEQ loc_50A6A8 ; +0x82, 0x50a69a LDRB R5, [R4] ; +0x84, 0x50a69c ADDS R1, #1 ; +0x86, 0x50a69e CMP R5, #0x7E ; '~' ; +0x88, 0x50a6a0 BNE loc_50A696 ; +0x8a, 0x50a6a2 SUBS R4, R4, R2 ; +0x8c, 0x50a6a4 B loc_50A6AC ; +0x8e, 0x50a6a6 MOV.W R4, #0xFFFFFFFF ; +0x90, 0x50a6a8 CBZ R0, loc_50A6C2 ; +0x94, 0x50a6ac B loc_50A6B4 ; +0x96, 0x50a6ae MOV.W R4, #0xFFFFFFFF ; +0x98, 0x50a6b0 LDR R6, [SP,#0x44+var_28] ; +0x9c, 0x50a6b4 B loc_50A6C4 ; +0x9e, 0x50a6b6 ASRS R3, R6, #1 ; +0xa0, 0x50a6b8 BNE.W loc_50A860 ; +0xa2, 0x50a6ba MOV.W R4, #0xFFFFFFFF ; +0xa6, 0x50a6be ASRS R6, R6, #1 ; +0xaa, 0x50a6c2 MOVS R5, #0 ; +0xac, 0x50a6c4 ADD.W R10, SP, #0x44+var_20 ; +0xae, 0x50a6c6 MOV R8, R5 ; +0xb2, 0x50a6ca LDRB.W R3, [SP,#0x44+var_2C] ; +0xb4, 0x50a6cc SUBS R2, R4, R5 ; +0xb8, 0x50a6d0 STR.W R8, [SP,#0x44+var_20] ; +0xba, 0x50a6d2 LSLS R1, R3, #0x1F ; +0xbe, 0x50a6d6 STR.W R8, [SP,#0x44+var_1C] ; +0xc0, 0x50a6d8 STR.W R8, [SP,#0x44+var_18] ; +0xc4, 0x50a6dc BPL loc_50A6EA ; +0xc8, 0x50a6e0 LDR R3, [SP,#0x44+var_28] ; +0xca, 0x50a6e2 CMP R5, R3 ; +0xcc, 0x50a6e4 BLS loc_50A724 ; +0xce, 0x50a6e6 B loc_50A6F0 ; +0xd0, 0x50a6e8 ASRS R3, R3, #1 ; +0xd2, 0x50a6ea CMP R5, R3 ; +0xd4, 0x50a6ec BLS loc_50A728 ; +0xd6, 0x50a6ee MOVS R0, #8; thrown_size ; +0xd8, 0x50a6f0 BL __cxa_allocate_exception ; +0xda, 0x50a6f2 LDR R1, =(aBasicString - 0x50A6FC); "basic_string" ; +0xde, 0x50a6f6 ADD R1, PC; "basic_string" ; +0xe0, 0x50a6f8 MOV R4, R0 ; +0xe2, 0x50a6fa BL _ZNSt11logic_errorC2EPKc; std::logic_error::logic_error(char const*) ; +0xe4, 0x50a6fc LDR R3, =(_ZTVSt12out_of_range_ptr - 0x50A70C) ; +0xe8, 0x50a700 MOV R0, R4; void * ; +0xea, 0x50a702 LDR R1, =(_ZTISt12out_of_range_ptr - 0x50A712) ; +0xec, 0x50a704 LDR R2, =(_ZNSt12length_errorD1Ev_ptr_0 - 0x50A718) ; +0xee, 0x50a706 ADD R3, PC; _ZTVSt12out_of_range_ptr ; +0xf0, 0x50a708 LDR R3, [R3]; `vtable for'std::out_of_range ... ; +0xf2, 0x50a70a ADDS R3, #8 ; +0xf4, 0x50a70c ADD R1, PC; _ZTISt12out_of_range_ptr ; +0xf6, 0x50a70e LDR R1, [R1]; lptinfo ; +0xf8, 0x50a710 STR R3, [R4] ; +0xfa, 0x50a712 ADD R2, PC; _ZNSt12length_errorD1Ev_ptr_0 ; +0xfc, 0x50a714 LDR R2, [R2]; std::length_error::~length_error() ; void (*)(void *) ; +0xfe, 0x50a716 BL __cxa_throw ; +0x100, 0x50a718 MOV R0, R4; void * ; +0x104, 0x50a71c BL __cxa_free_exception ; +0x106, 0x50a71e B loc_50A856 ; +0x10a, 0x50a722 LDR R1, [SP,#0x44+var_24] ; +0x10c, 0x50a724 B loc_50A72C ; +0x10e, 0x50a726 ADD.W R1, SP, #0x44+var_2C+1 ; +0x110, 0x50a728 SUBS R3, R3, R5 ; +0x114, 0x50a72c MOV R0, R10 ; +0x116, 0x50a72e CMP R2, R3 ; +0x118, 0x50a730 ADD R1, R5 ; +0x11a, 0x50a732 IT CS ; +0x11c, 0x50a734 MOVCS R2, R3 ; +0x11e, 0x50a736 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x120, 0x50a738 LDRB.W R3, [SP,#0x44+var_20] ; +0x124, 0x50a73c LSLS R0, R3, #0x1F ; +0x128, 0x50a740 BPL loc_50A74A ; +0x12a, 0x50a742 LDR R3, [SP,#0x44+var_1C] ; +0x12c, 0x50a744 CBNZ R3, loc_50A754 ; +0x12e, 0x50a746 B loc_50A750 ; +0x130, 0x50a748 LSRS R3, R3, #1 ; +0x132, 0x50a74a BNE loc_50A75C ; +0x134, 0x50a74c B loc_50A758 ; +0x136, 0x50a74e CMP R5, R6 ; +0x138, 0x50a750 BEQ loc_50A794 ; +0x13a, 0x50a752 LDR R1, [SP,#0x44+var_18] ; +0x13c, 0x50a754 B loc_50A760 ; +0x13e, 0x50a756 CMP R5, R6 ; +0x140, 0x50a758 BEQ loc_50A794 ; +0x142, 0x50a75a ADD.W R1, SP, #0x44+var_20+1 ; +0x144, 0x50a75c MOV R0, R1; char * ; +0x148, 0x50a760 STR R1, [SP,#0x44+var_38] ; +0x14a, 0x50a762 STR.W R8, [SP,#0x44+var_14] ; +0x14c, 0x50a764 ADD R5, SP, #0x44+var_14 ; +0x150, 0x50a768 STR.W R8, [SP,#0x44+var_10] ; +0x152, 0x50a76a STR.W R8, [SP,#0x44+var_C] ; +0x156, 0x50a76e BLX strlen ; +0x15a, 0x50a772 LDR R1, [SP,#0x44+var_38] ; +0x15e, 0x50a776 MOV R2, R0 ; +0x160, 0x50a778 MOV R0, R5 ; +0x162, 0x50a77a BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x164, 0x50a77c MOV R0, R5 ; +0x168, 0x50a780 BL _ZN7cocos2d8CCString6createERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCString::create(std::string const&) ; +0x16a, 0x50a782 MOV R1, R0; cocos2d::CCObject * ; +0x16e, 0x50a786 LDR R0, [SP,#0x44+var_40]; this ; +0x170, 0x50a788 BL _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x172, 0x50a78a MOV R0, R5 ; +0x176, 0x50a78e BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x178, 0x50a790 ADDS R1, R4, #1 ; +0x17c, 0x50a794 BEQ loc_50A7CC ; +0x17e, 0x50a796 LDRB.W R3, [SP,#0x44+var_2C] ; +0x180, 0x50a798 ADDS R5, R4, #1 ; +0x184, 0x50a79c LSLS R2, R3, #0x1F ; +0x186, 0x50a79e BPL loc_50A866 ; +0x188, 0x50a7a0 LDR R2, [SP,#0x44+var_24] ; +0x18a, 0x50a7a2 LDR R3, [SP,#0x44+var_28] ; +0x18c, 0x50a7a4 CMP R5, R3 ; +0x18e, 0x50a7a6 BCS loc_50A7C0 ; +0x190, 0x50a7a8 ADDS R1, R2, R5 ; +0x192, 0x50a7aa ADD R3, R2 ; +0x194, 0x50a7ac CMP R1, R3 ; +0x196, 0x50a7ae MOV R4, R1 ; +0x198, 0x50a7b0 BEQ loc_50A7C0 ; +0x19a, 0x50a7b2 LDRB R0, [R4] ; +0x19c, 0x50a7b4 ADDS R1, #1 ; +0x19e, 0x50a7b6 CMP R0, #0x7E ; '~' ; +0x1a0, 0x50a7b8 BNE loc_50A7AE ; +0x1a2, 0x50a7ba SUBS R4, R4, R2 ; +0x1a4, 0x50a7bc B loc_50A7C4 ; +0x1a6, 0x50a7be MOV.W R4, #0xFFFFFFFF ; +0x1a8, 0x50a7c0 MOV R0, R10 ; +0x1ac, 0x50a7c4 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1ae, 0x50a7c6 B loc_50A6CC ; +0x1b2, 0x50a7ca MOV R0, R10 ; +0x1b4, 0x50a7cc BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1b6, 0x50a7ce LDR R3, [SP,#0x44+var_40] ; +0x1ba, 0x50a7d2 MOV R0, R11 ; +0x1bc, 0x50a7d4 STR.W R3, [R7,#0x1BC] ; +0x1be, 0x50a7d6 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1c2, 0x50a7da LDR.W R0, [R7,#0x1BC]; this ; +0x1c6, 0x50a7de BL _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x1ca, 0x50a7e2 MOV R0, R7; this ; +0x1ce, 0x50a7e6 BL _ZN17AudioEffectsLayer14resetAudioVarsEv; AudioEffectsLayer::resetAudioVars(void) ; +0x1d0, 0x50a7e8 BL _ZN7cocos2d14CCTextureCache18sharedTextureCacheEv; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x1d4, 0x50a7ec LDR R1, =(aGjGamesheetPng - 0x50A7F8); "GJ_GameSheet.png" ; +0x1d8, 0x50a7f0 MOVS R2, #0; bool ; +0x1da, 0x50a7f2 ADD R1, PC; "GJ_GameSheet.png" ; +0x1dc, 0x50a7f4 BL _ZN7cocos2d14CCTextureCache8addImageEPKcb; cocos2d::CCTextureCache::addImage(char const*,bool) ; +0x1de, 0x50a7f6 MOVS R1, #(dword_1C+1); cocos2d::CCTexture2D * ; +0x1e2, 0x50a7fa BL _ZN7cocos2d17CCSpriteBatchNode17createWithTextureEPNS_11CCTexture2DEj; cocos2d::CCSpriteBatchNode::createWithTexture(cocos2d::CCTexture2D *,uint) ; +0x1e4, 0x50a7fc LDR R3, [R7] ; +0x1e8, 0x50a800 MOV R1, R0 ; +0x1ea, 0x50a802 STR.W R0, [R7,#0x1B8] ; +0x1ec, 0x50a804 MOV R0, R7 ; +0x1f0, 0x50a808 LDR.W R3, [R3,#0xE4] ; +0x1f2, 0x50a80a BLX R3 ; +0x1f6, 0x50a80e LDR R3, =(flt_BECAB0 - 0x50A816) ; +0x1f8, 0x50a810 ADD R3, PC; flt_BECAB0 ; +0x1fa, 0x50a812 ADDS R3, #(unk_BECAEC - 0xBECAB0) ; +0x1fc, 0x50a814 LDM.W R3, {R0,R1} ; +0x1fe, 0x50a816 STM.W R9, {R0,R1} ; +0x202, 0x50a81a LDR.W R0, [R7,#0x1B8] ; +0x206, 0x50a81e LDM.W R9, {R1,R2} ; +0x20a, 0x50a822 LDR R3, [R0] ; +0x20e, 0x50a826 LDR.W R3, [R3,#0x1C8] ; +0x210, 0x50a828 BLX R3 ; +0x214, 0x50a82c LDR R3, =0x3DCCCCCD ; +0x216, 0x50a82e STR.W R3, [R7,#0x1D0] ; +0x218, 0x50a830 B loc_50A846 ; +0x21c, 0x50a834 MOV R0, R5 ; +0x21e, 0x50a836 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x220, 0x50a838 B loc_50A83E ; +0x224, 0x50a83c MOV R0, R10 ; +0x226, 0x50a83e BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x228, 0x50a840 B loc_50A856 ; +0x22c, 0x50a844 LDR R3, [SP,#0x44+var_3C] ; +0x22e, 0x50a846 LDR R2, [SP,#0x44+var_8] ; +0x230, 0x50a848 LDR R0, [SP,#0x44+var_44] ; +0x232, 0x50a84a LDR R3, [R3] ; +0x234, 0x50a84c CMP R2, R3 ; +0x236, 0x50a84e BEQ loc_50A86E ; +0x238, 0x50a850 BLX __stack_chk_fail ; +0x23a, 0x50a852 MOV R0, R11 ; +0x23e, 0x50a856 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x240, 0x50a858 BL __cxa_end_cleanup ; +0x244, 0x50a85c ADD.W R2, SP, #0x44+var_2C+1 ; +0x248, 0x50a860 B loc_50A692 ; +0x24c, 0x50a864 ASRS R3, R3, #1 ; +0x24e, 0x50a866 ADD.W R2, SP, #0x44+var_2C+1 ; +0x250, 0x50a868 B loc_50A7A6 ; +0x254, 0x50a86c ADD SP, SP, #0x44 ; 'D' ; +0x256, 0x50a86e POP.W {R4-R11,PC} ; +0x258, 0x50a870