; ; GameLevelOptionsLayer::create from 0x1402a0a80 to 0x1402a0bd8 (344 bytes) ; ; 3 xrefs: ; > EditLevelLayer::onLevelOptions @ 0x1400d6a0b ; > LevelInfoLayer::onLevelOptions @ 0x1402fee87 ; > @ 0x1406d1f70 ; ; 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_0], rbx ; +0x0, 0x1402a0a80 push rdi ; +0x5, 0x1402a0a85 sub rsp, 20h ; +0x6, 0x1402a0a86 mov rdi, rcx ; +0xa, 0x1402a0a8a mov ecx, 3F8h; Size ; +0xd, 0x1402a0a8d call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x12, 0x1402a0a92 mov rbx, rax ; +0x17, 0x1402a0a97 mov [rsp+28h+arg_8], rax ; +0x1a, 0x1402a0a9a mov rcx, rax ; +0x1f, 0x1402a0a9f call GJOptionsLayer__GJOptionsLayer ; +0x22, 0x1402a0aa2 lea rax, ??_7GameLevelOptionsLayer@@6B@; const GameLevelOptionsLayer::`vftable' ; +0x27, 0x1402a0aa7 mov [rbx], rax ; +0x2e, 0x1402a0aae lea rax, ??_7GameLevelOptionsLayer@@6B@_0; const GameLevelOptionsLayer::`vftable' ; +0x31, 0x1402a0ab1 mov [rbx+140h], rax ; +0x38, 0x1402a0ab8 lea rax, ??_7GameLevelOptionsLayer@@6B@_1; const GameLevelOptionsLayer::`vftable' ; +0x3f, 0x1402a0abf mov [rbx+148h], rax ; +0x46, 0x1402a0ac6 lea rax, ??_7GameLevelOptionsLayer@@6B@_2; const GameLevelOptionsLayer::`vftable' ; +0x4d, 0x1402a0acd mov [rbx+150h], rax ; +0x54, 0x1402a0ad4 lea rax, ??_7GameLevelOptionsLayer@@6B@_3; const GameLevelOptionsLayer::`vftable' ; +0x5b, 0x1402a0adb mov [rbx+158h], rax ; +0x62, 0x1402a0ae2 lea rax, ??_7GameLevelOptionsLayer@@6B@_4; const GameLevelOptionsLayer::`vftable' ; +0x69, 0x1402a0ae9 mov [rbx+160h], rax ; +0x70, 0x1402a0af0 lea rax, ??_7GameLevelOptionsLayer@@6B@_5; const GameLevelOptionsLayer::`vftable' ; +0x77, 0x1402a0af7 mov [rbx+198h], rax ; +0x7e, 0x1402a0afe lea rax, ??_7GameLevelOptionsLayer@@6B@_6; const GameLevelOptionsLayer::`vftable' ; +0x85, 0x1402a0b05 mov [rbx+1B0h], rax ; +0x8c, 0x1402a0b0c lea rax, ??_7GameLevelOptionsLayer@@6B@_7; const GameLevelOptionsLayer::`vftable' ; +0x93, 0x1402a0b13 mov [rbx+278h], rax ; +0x9a, 0x1402a0b1a lea rax, ??_7GameLevelOptionsLayer@@6B@_8; const GameLevelOptionsLayer::`vftable' ; +0xa1, 0x1402a0b21 mov [rbx+280h], rax ; +0xa8, 0x1402a0b28 lea rax, ??_7GameLevelOptionsLayer@@6B@_9; const GameLevelOptionsLayer::`vftable' ; +0xaf, 0x1402a0b2f mov [rbx+288h], rax ; +0xb6, 0x1402a0b36 mov qword ptr [rbx+3F0h], 0 ; +0xbd, 0x1402a0b3d mov dword ptr [rbx+3A8h], 42200000h ; +0xc8, 0x1402a0b48 mov dword ptr [rbx+3BCh], 3ECCCCCDh ; +0xd2, 0x1402a0b52 test rdi, rdi ; +0xdc, 0x1402a0b5c jz short loc_1402A0B71 ; +0xdf, 0x1402a0b5f mov [rbx+3F0h], rdi ; +0xe1, 0x1402a0b61 mov rcx, rdi ; +0xe8, 0x1402a0b68 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xeb, 0x1402a0b6b mov edx, 2 ; +0xf1, 0x1402a0b71 mov rcx, rbx ; +0xf6, 0x1402a0b76 call GJOptionsLayer__init ; +0xf9, 0x1402a0b79 mov rcx, rbx ; +0xfe, 0x1402a0b7e test al, al ; +0x101, 0x1402a0b81 jz short loc_1402A0BBF ; +0x103, 0x1402a0b83 mov byte ptr [rbx+2CCh], 1 ; +0x105, 0x1402a0b85 mov rdx, [rbx] ; +0x10c, 0x1402a0b8c call qword ptr [rdx+428h] ; +0x10f, 0x1402a0b8f mov rdx, [rbx] ; +0x115, 0x1402a0b95 mov rcx, rbx ; +0x118, 0x1402a0b98 call qword ptr [rdx+450h] ; +0x11b, 0x1402a0b9b mov byte ptr [rbx+2CCh], 0 ; +0x121, 0x1402a0ba1 mov rcx, rbx ; +0x128, 0x1402a0ba8 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x12b, 0x1402a0bab mov rax, rbx ; +0x131, 0x1402a0bb1 mov rbx, [rsp+28h+arg_0] ; +0x134, 0x1402a0bb4 add rsp, 20h ; +0x139, 0x1402a0bb9 pop rdi ; +0x13d, 0x1402a0bbd retn ; +0x13e, 0x1402a0bbe mov r8, [rbx] ; +0x13f, 0x1402a0bbf mov edx, 1 ; +0x142, 0x1402a0bc2 call qword ptr [r8+8] ; +0x147, 0x1402a0bc7 xor eax, eax ; +0x14b, 0x1402a0bcb mov rbx, [rsp+28h+arg_0] ; +0x14d, 0x1402a0bcd add rsp, 20h ; +0x152, 0x1402a0bd2 pop rdi ; +0x156, 0x1402a0bd6 retn ; +0x157, 0x1402a0bd7