; ; CollisionBlockPopup::onNextItemID from 0x4cdfdc to 0x4ce07c (160 bytes) ; ; 0 xrefs: ; ; 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-R9,LR} ; +0x0, 0x4cdfdc SUB SP, SP, #0x24 ; +0x4, 0x4cdfe0 LDR R7, =(__stack_chk_guard_ptr - 0x4CDFEC) ; +0x6, 0x4cdfe2 MOV R8, R0 ; +0x8, 0x4cdfe4 MOVS R5, #0 ; +0xa, 0x4cdfe6 ADD R7, PC; __stack_chk_guard_ptr ; +0xc, 0x4cdfe8 LDR R7, [R7]; __stack_chk_guard ; +0xe, 0x4cdfea LDR R3, [R7] ; +0x10, 0x4cdfec STR R3, [SP,#0x24+var_8] ; +0x12, 0x4cdfee BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14, 0x4cdff0 MOVS R1, #0xA ; +0x18, 0x4cdff4 MOV.W R3, #0x3F800000 ; +0x1a, 0x4cdff6 STR R5, [SP,#0x24+var_1C] ; +0x1e, 0x4cdffa STR R5, [SP,#0x24+var_18] ; +0x20, 0x4cdffc STR R3, [SP,#0x24+var_14] ; +0x22, 0x4cdffe STR R5, [SP,#0x24+var_10] ; +0x24, 0x4ce000 LDR.W R9, [R0,#0x170] ; +0x26, 0x4ce002 ADD R0, SP, #0x24+var_14 ; +0x2a, 0x4ce006 BL sub_773A14 ; +0x2c, 0x4ce008 CMP R0, #1 ; +0x30, 0x4ce00c STR R0, [SP,#0x24+var_20] ; +0x32, 0x4ce00e BNE loc_4CE01A ; +0x34, 0x4ce010 ADD R6, SP, #0x24+var_4 ; +0x36, 0x4ce012 STR.W R5, [R6,#-8]! ; +0x38, 0x4ce014 B loc_4CE036 ; +0x3c, 0x4ce018 CMP.W R0, #0x40000000 ; +0x3e, 0x4ce01a BCC loc_4CE024 ; +0x42, 0x4ce01e BL sub_772FB4 ; +0x44, 0x4ce020 LSLS R4, R0, #2 ; +0x48, 0x4ce024 MOV R0, R4; unsigned int ; +0x4a, 0x4ce026 BL _Znwj; operator new(uint) ; +0x4c, 0x4ce028 MOV R1, R5; int ; +0x50, 0x4ce02c MOV R2, R4; size_t ; +0x52, 0x4ce02e MOV R6, R0 ; +0x54, 0x4ce030 BLX memset ; +0x56, 0x4ce032 ADD R4, SP, #0x24+var_4 ; +0x5a, 0x4ce036 MOV R0, R9 ; +0x5c, 0x4ce038 STR.W R6, [R4,#-0x20]! ; +0x5e, 0x4ce03a MOV R1, R4 ; +0x62, 0x4ce03e BL _ZN16LevelEditorLayer18getNextFreeBlockIDERKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE; LevelEditorLayer::getNextFreeBlockID(std::unordered_set const&) ; +0x64, 0x4ce040 STR.W R0, [R8,#0x200] ; +0x68, 0x4ce044 MOV R0, R4 ; +0x6c, 0x4ce048 BL _ZNSt10_HashtableIiiSaIiENSt8__detail9_IdentityESt8equal_toIiESt4hashIiENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEED2Ev; std::_Hashtable,std::__detail::_Identity,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable() ; +0x6e, 0x4ce04a MOV R0, R8; this ; +0x72, 0x4ce04e BL _ZN19CollisionBlockPopup12updateItemIDEv; CollisionBlockPopup::updateItemID(void) ; +0x74, 0x4ce050 MOV R0, R8; this ; +0x78, 0x4ce054 BL _ZN19CollisionBlockPopup17updateEditorLabelEv; CollisionBlockPopup::updateEditorLabel(void) ; +0x7a, 0x4ce056 MOV R0, R8; this ; +0x7e, 0x4ce05a BL _ZN19CollisionBlockPopup20updateTextInputLabelEv; CollisionBlockPopup::updateTextInputLabel(void) ; +0x80, 0x4ce05c LDR R2, [SP,#0x24+var_8] ; +0x84, 0x4ce060 LDR R3, [R7] ; +0x86, 0x4ce062 CMP R2, R3 ; +0x88, 0x4ce064 BEQ loc_4CE076 ; +0x8a, 0x4ce066 BLX __stack_chk_fail ; +0x8c, 0x4ce068 MOV R0, R4 ; +0x90, 0x4ce06c BL _ZNSt10_HashtableIiiSaIiENSt8__detail9_IdentityESt8equal_toIiESt4hashIiENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEED2Ev; std::_Hashtable,std::__detail::_Identity,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable() ; +0x92, 0x4ce06e BL __cxa_end_cleanup ; +0x96, 0x4ce072 ADD SP, SP, #0x24 ; '$' ; +0x9a, 0x4ce076 POP.W {R4-R9,PC} ; +0x9c, 0x4ce078