; ; EditorUI::onAssignNewGroupID from 0x140122550 to 0x140122659 (265 bytes) ; ; 2 xrefs: ; > EditorUI::keyDown @ 0x140125f7b ; > @ 0x1406c97f8 ; ; 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 ; mov [rsp+arg_8], rbx ; +0x0, 0x140122550 mov [rsp+arg_10], rbp ; +0x5, 0x140122555 push rsi ; +0xa, 0x14012255a push rdi ; +0xb, 0x14012255b push r14 ; +0xc, 0x14012255c sub rsp, 60h ; +0xe, 0x14012255e mov rbp, rcx ; +0x12, 0x140122562 mov rcx, [rcx+538h] ; +0x15, 0x140122565 test rcx, rcx ; +0x1c, 0x14012256c jz short loc_14012257C ; +0x1f, 0x14012256f call cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x21, 0x140122571 mov rdi, rax ; +0x27, 0x140122577 jmp short loc_140122583 ; +0x2a, 0x14012257a mov rdi, [rbp+340h] ; +0x2c, 0x14012257c mov rcx, rdi ; +0x33, 0x140122583 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x36, 0x140122586 test eax, eax ; +0x3c, 0x14012258c jz loc_140122644 ; +0x3e, 0x14012258e mov [rsp+78h+arg_0], 0 ; +0x44, 0x140122594 lea rdx, [rsp+78h+arg_0] ; +0x4f, 0x14012259f lea rcx, [rsp+78h+var_58] ; +0x57, 0x1401225a7 call sub_14005E660 ; +0x5c, 0x1401225ac nop ; +0x61, 0x1401225b1 lea rdx, [rsp+78h+var_58] ; +0x62, 0x1401225b2 mov rcx, [rbp+500h] ; +0x67, 0x1401225b7 call LevelEditorLayer__getNextFreeGroupID ; +0x6e, 0x1401225be mov r14d, eax ; +0x73, 0x1401225c3 lea rcx, [rsp+78h+var_40] ; +0x76, 0x1401225c6 call sub_14005D100 ; +0x7b, 0x1401225cb lea rcx, [rsp+78h+var_50] ; +0x80, 0x1401225d0 call sub_14005D870 ; +0x85, 0x1401225d5 xor ebx, ebx ; +0x8a, 0x1401225da mov rcx, rdi ; +0x8c, 0x1401225dc call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8f, 0x1401225df test eax, eax ; +0x95, 0x1401225e5 jz short loc_14012263C ; +0x97, 0x1401225e7 nop dword ptr [rax+00000000h] ; +0x99, 0x1401225e9 mov edx, ebx ; +0xa0, 0x1401225f0 mov rcx, rdi ; +0xa2, 0x1401225f2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa5, 0x1401225f5 mov rsi, rax ; +0xab, 0x1401225fb mov r8, [rax] ; +0xae, 0x1401225fe mov edx, r14d ; +0xb1, 0x140122601 mov rcx, rax ; +0xb4, 0x140122604 call qword ptr [r8+598h] ; +0xb7, 0x140122607 cmp eax, 1 ; +0xbe, 0x14012260e jnz short loc_14012262D ; +0xc1, 0x140122611 mov rcx, [rbp+500h] ; +0xc3, 0x140122613 mov r10, [rcx] ; +0xca, 0x14012261a xor r9d, r9d ; +0xcd, 0x14012261d mov r8d, r14d ; +0xd0, 0x140122620 mov rdx, rsi ; +0xd3, 0x140122623 call qword ptr [r10+480h] ; +0xd6, 0x140122626 inc ebx ; +0xdd, 0x14012262d mov rcx, rdi ; +0xdf, 0x14012262f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xe2, 0x140122632 cmp ebx, eax ; +0xe8, 0x140122638 jb short loc_1401225F0 ; +0xea, 0x14012263a mov rcx, rbp ; +0xec, 0x14012263c call EditorUI__updateObjectInfoLabel ; +0xef, 0x14012263f lea r11, [rsp+78h+var_18] ; +0xf4, 0x140122644 mov rbx, [r11+28h] ; +0xf9, 0x140122649 mov rbp, [r11+30h] ; +0xfd, 0x14012264d mov rsp, r11 ; +0x101, 0x140122651 pop r14 ; +0x104, 0x140122654 pop rdi ; +0x106, 0x140122656 pop rsi ; +0x107, 0x140122657 retn ; +0x108, 0x140122658