; ; -[EditBoxImplMac initWithFrame:editBox:] from 0x1004a3f80 to 0x1004a410f (399 bytes) ; ; 1 xrefs: ; > @ 0x100bdcc20 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; 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 12:30:53 +0000 ; push rbp ; +0x0, 0x1004a3f80 mov rbp, rsp ; +0x1, 0x1004a3f81 push r15 ; +0x4, 0x1004a3f84 push r14 ; +0x6, 0x1004a3f86 push r13 ; +0x8, 0x1004a3f88 push r12 ; +0xa, 0x1004a3f8a push rbx ; +0xc, 0x1004a3f8c sub rsp, 38h ; +0xd, 0x1004a3f8d mov r14, rdx ; +0x11, 0x1004a3f91 mov [rbp+var_38.receiver], rdi ; +0x14, 0x1004a3f94 mov rax, cs:classRef_EditBoxImplMac_0 ; +0x18, 0x1004a3f98 mov [rbp+var_38.super_class], rax ; +0x1f, 0x1004a3f9f mov rsi, cs:selRef_init; SEL ; +0x23, 0x1004a3fa3 lea rdi, [rbp+var_38]; objc_super * ; +0x2a, 0x1004a3faa call _objc_msgSendSuper2; -[EditBoxImplMac init] ... ; +0x2e, 0x1004a3fae test rax, rax ; +0x33, 0x1004a3fb3 jz loc_1004A40FB ; +0x36, 0x1004a3fb6 mov rbx, rax ; +0x3c, 0x1004a3fbc lea r13, [rbp+arg_0] ; +0x3f, 0x1004a3fbf mov byte ptr [rax+18h], 0 ; +0x43, 0x1004a3fc3 mov rdi, cs:classRef_CustomNSTextField; Class ; +0x47, 0x1004a3fc7 call _objc_alloc ; +0x4e, 0x1004a3fce mov rsi, cs:selRef_initWithFrame_; SEL ; +0x53, 0x1004a3fd3 movupd xmm0, xmmword ptr [r13+0] ; +0x5a, 0x1004a3fda movups xmm1, xmmword ptr [r13+10h] ; +0x60, 0x1004a3fe0 movups [rsp+60h+var_50], xmm1 ; +0x65, 0x1004a3fe5 movupd [rsp+60h+var_60], xmm0 ; +0x6a, 0x1004a3fea mov r12, cs:_objc_msgSend_ptr ; +0x6f, 0x1004a3fef mov rdi, rax; id ; +0x76, 0x1004a3ff6 call r12 ; _objc_msgSend; -[CustomNSTextField initWithFrame:] ... ; +0x79, 0x1004a3ff9 mov rdi, rax; id ; +0x7c, 0x1004a3ffc call _objc_autorelease ; +0x7f, 0x1004a3fff mov rsi, cs:selRef_setTextField_; SEL ; +0x84, 0x1004a4004 mov rdi, rbx; id ; +0x8b, 0x1004a400b mov rdx, rax ; +0x8e, 0x1004a400e call r12 ; _objc_msgSend; -[EditBoxImplMac setTextField:] ... ; +0x91, 0x1004a4011 mov r15, [rbx+8] ; +0x94, 0x1004a4014 test r15, r15 ; +0x98, 0x1004a4018 jz loc_1004A40FB ; +0x9b, 0x1004a401b mov rdi, cs:classRef_NSColor; id ; +0xa1, 0x1004a4021 mov rsi, cs:selRef_whiteColor; SEL ; +0xa8, 0x1004a4028 call r12 ; _objc_msgSend; +[NSColor whiteColor] ... ; +0xaf, 0x1004a402f mov rsi, cs:selRef_setTextColor_; SEL ; +0xb2, 0x1004a4032 mov rdi, r15; id ; +0xb9, 0x1004a4039 mov rdx, rax ; +0xbc, 0x1004a403c call r12 ; _objc_msgSend; -[CustomNSTextField setTextColor:] ... ; +0xbf, 0x1004a403f mov rdi, cs:classRef_NSFont; id ; +0xc2, 0x1004a4042 movsd xmm0, qword ptr [r13+18h] ; +0xc9, 0x1004a4049 addsd xmm0, xmm0 ; +0xcf, 0x1004a404f divsd xmm0, cs:qword_100A0BAF0 ; +0xd3, 0x1004a4053 mov rsi, cs:selRef_systemFontOfSize_; SEL ; +0xdb, 0x1004a405b call r12 ; _objc_msgSend; +[NSFont systemFontOfSize:] ... ; +0xe2, 0x1004a4062 mov rdi, [rbx+8]; id ; +0xe5, 0x1004a4065 mov rsi, cs:selRef_setFont_; SEL ; +0xe9, 0x1004a4069 mov rdx, rax ; +0xf0, 0x1004a4070 call r12 ; _objc_msgSend; -[CustomNSTextField setFont:] ... ; +0xf3, 0x1004a4073 mov rdi, cs:classRef_NSColor; id ; +0xf6, 0x1004a4076 mov rsi, cs:selRef_clearColor; SEL ; +0xfd, 0x1004a407d call r12 ; _objc_msgSend; +[NSColor clearColor] ... ; +0x104, 0x1004a4084 mov rdi, [rbx+8]; id ; +0x107, 0x1004a4087 mov rsi, cs:selRef_setBackgroundColor_; SEL ; +0x10b, 0x1004a408b mov rdx, rax ; +0x112, 0x1004a4092 call r12 ; _objc_msgSend; -[CustomNSTextField setBackgroundColor:] ... ; +0x115, 0x1004a4095 mov rdi, [rbx+8]; id ; +0x118, 0x1004a4098 mov rsi, cs:selRef_setup; SEL ; +0x11c, 0x1004a409c call r12 ; _objc_msgSend; -[CustomNSTextField setup] ... ; +0x123, 0x1004a40a3 mov rdi, [rbx+8]; id ; +0x126, 0x1004a40a6 mov r15, cs:selRef_setDelegate_ ; +0x12a, 0x1004a40aa mov rsi, r15; SEL ; +0x131, 0x1004a40b1 mov rdx, rbx ; +0x134, 0x1004a40b4 call r12 ; _objc_msgSend; -[CustomNSTextField setDelegate:] ... ; +0x137, 0x1004a40b7 mov rdi, [rbx+8]; id ; +0x13a, 0x1004a40ba mov rsi, r15; SEL ; +0x13e, 0x1004a40be mov rdx, rbx ; +0x141, 0x1004a40c1 call r12 ; _objc_msgSend; -[CustomNSTextField setDelegate:] ... ; +0x144, 0x1004a40c4 mov rsi, cs:selRef_setEditBox_; SEL ; +0x147, 0x1004a40c7 mov rdi, rbx; id ; +0x14e, 0x1004a40ce mov rdx, r14 ; +0x151, 0x1004a40d1 call r12 ; _objc_msgSend; -[EditBoxImplMac setEditBox:] ... ; +0x154, 0x1004a40d4 mov rdi, cs:classRef_EAGLView; id ; +0x157, 0x1004a40d7 mov rsi, cs:selRef_sharedEGLView; SEL ; +0x15e, 0x1004a40de call r12 ; _objc_msgSend; +[EAGLView sharedEGLView] ... ; +0x165, 0x1004a40e5 mov rdx, [rbx+8] ; +0x168, 0x1004a40e8 mov rsi, cs:selRef_addSubview_; SEL ; +0x16c, 0x1004a40ec mov rdi, rax; id ; +0x173, 0x1004a40f3 call r12 ; _objc_msgSend ; +0x176, 0x1004a40f6 jmp short loc_1004A40FD ; +0x179, 0x1004a40f9 xor ebx, ebx ; +0x17b, 0x1004a40fb mov rax, rbx ; +0x17d, 0x1004a40fd add rsp, 38h ; +0x180, 0x1004a4100 pop rbx ; +0x184, 0x1004a4104 pop r12 ; +0x185, 0x1004a4105 pop r13 ; +0x187, 0x1004a4107 pop r14 ; +0x189, 0x1004a4109 pop r15 ; +0x18b, 0x1004a410b pop rbp ; +0x18d, 0x1004a410d retn ; +0x18e, 0x1004a410e