{"type": "func", "start": 4299862240, "end": 4299862639, "name": "-[EditBoxImplMac initWithFrame:editBox:]", "pseudocode": "// \n// -[EditBoxImplMac initWithFrame:editBox:] from 0x1004ab0e0 to 0x1004ab26f (399 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10099ab80\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nEditBoxImplMac *__cdecl -[EditBoxImplMac initWithFrame:editBox:](EditBoxImplMac *self, SEL a2, CGRect a3, void *a4)\n{\n  EditBoxImplMac *v5; // rax\n  EditBoxImplMac *v6; // rbx\n  CustomNSTextField *v7; // rax\n  __int64 v8; // rdx\n  __int64 v9; // rcx\n  __int64 v10; // r8\n  __int64 v11; // r9\n  CustomNSTextField *v12; // rax\n  CustomNSTextField *v13; // rax\n  CustomNSTextField *textField; // r15\n  NSColor *v15; // rax\n  NSFont *v16; // rax\n  NSColor *v17; // rax\n  id v18; // rax\n  objc_super v20; // [rsp+28h] [rbp-38h] BYREF\n\n  v20.receiver = self;\n  v20.super_class = (Class)&OBJC_CLASS___EditBoxImplMac;\n  v5 = -[EditBoxImplMac init](&v20, \"init\");\n  if ( !v5 )\n    return nullptr;\n  v6 = v5;\n  v5->editState_ = 0;\n  v7 = objc_alloc(&OBJC_CLASS___CustomNSTextField);\n  v12 = -[CustomNSTextField initWithFrame:](\n          v7,\n          \"initWithFrame:\",\n          v8,\n          v9,\n          v10,\n          v11,\n          *(_QWORD *)&a3.origin.x,\n          *(_QWORD *)&a3.origin.y,\n          *(_QWORD *)&a3.size.width,\n          *(_QWORD *)&a3.size.height);\n  v13 = objc_autorelease(v12);\n  -[EditBoxImplMac setTextField:](v6, \"setTextField:\", v13);\n  textField = v6->textField_;\n  if ( !textField )\n    return nullptr;\n  v15 = +[NSColor whiteColor](&OBJC_CLASS___NSColor, \"whiteColor\");\n  -[CustomNSTextField setTextColor:](textField, \"setTextColor:\", v15);\n  v16 = +[NSFont systemFontOfSize:](&OBJC_CLASS___NSFont, \"systemFontOfSize:\", (a3.size.height + a3.size.height) / 3.0);\n  -[CustomNSTextField setFont:](v6->textField_, \"setFont:\", v16);\n  v17 = +[NSColor clearColor](&OBJC_CLASS___NSColor, \"clearColor\");\n  -[CustomNSTextField setBackgroundColor:](v6->textField_, \"setBackgroundColor:\", v17);\n  -[CustomNSTextField setup](v6->textField_, \"setup\");\n  -[CustomNSTextField setDelegate:](v6->textField_, \"setDelegate:\", v6);\n  -[CustomNSTextField setDelegate:](v6->textField_, \"setDelegate:\", v6);\n  -[EditBoxImplMac setEditBox:](v6, \"setEditBox:\", a4);\n  v18 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, \"sharedEGLView\");\n  objc_msgSend(v18, \"addSubview:\", v6->textField_);\n  return v6;\n}", "assembly": "; \n; -[EditBoxImplMac initWithFrame:editBox:] from 0x1004ab0e0 to 0x1004ab26f (399 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10099ab80\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1004ab0e0\nmov     rbp, rsp                                                       ; +0x1, 0x1004ab0e1\npush    r15                                                            ; +0x4, 0x1004ab0e4\npush    r14                                                            ; +0x6, 0x1004ab0e6\npush    r13                                                            ; +0x8, 0x1004ab0e8\npush    r12                                                            ; +0xa, 0x1004ab0ea\npush    rbx                                                            ; +0xc, 0x1004ab0ec\nsub     rsp, 38h                                                       ; +0xd, 0x1004ab0ed\nmov     r14, rdx                                                       ; +0x11, 0x1004ab0f1\nmov     [rbp+var_38.receiver], rdi                                     ; +0x14, 0x1004ab0f4\nmov     rax, cs:classRef_EditBoxImplMac_0                              ; +0x18, 0x1004ab0f8\nmov     [rbp+var_38.super_class], rax                                  ; +0x1f, 0x1004ab0ff\nmov     rsi, cs:selRef_init; SEL                                       ; +0x23, 0x1004ab103\nlea     rdi, [rbp+var_38]; objc_super *                                ; +0x2a, 0x1004ab10a\ncall    _objc_msgSendSuper2; -[EditBoxImplMac init] ...                ; +0x2e, 0x1004ab10e\ntest    rax, rax                                                       ; +0x33, 0x1004ab113\njz      loc_1004AB25B                                                  ; +0x36, 0x1004ab116\nmov     rbx, rax                                                       ; +0x3c, 0x1004ab11c\nlea     r13, [rbp+arg_0]                                               ; +0x3f, 0x1004ab11f\nmov     byte ptr [rax+18h], 0                                          ; +0x43, 0x1004ab123\nmov     rdi, cs:classRef_CustomNSTextField; Class                      ; +0x47, 0x1004ab127\ncall    _objc_alloc                                                    ; +0x4e, 0x1004ab12e\nmov     rsi, cs:selRef_initWithFrame_; SEL                             ; +0x53, 0x1004ab133\nmovupd  xmm0, xmmword ptr [r13+0]                                      ; +0x5a, 0x1004ab13a\nmovups  xmm1, xmmword ptr [r13+10h]                                    ; +0x60, 0x1004ab140\nmovups  [rsp+60h+var_50], xmm1                                         ; +0x65, 0x1004ab145\nmovupd  [rsp+60h+var_60], xmm0                                         ; +0x6a, 0x1004ab14a\nmov     r12, cs:_objc_msgSend_ptr                                      ; +0x6f, 0x1004ab14f\nmov     rdi, rax; id                                                   ; +0x76, 0x1004ab156\ncall    r12 ; _objc_msgSend; -[CustomNSTextField initWithFrame:] ...   ; +0x79, 0x1004ab159\nmov     rdi, rax; id                                                   ; +0x7c, 0x1004ab15c\ncall    _objc_autorelease                                              ; +0x7f, 0x1004ab15f\nmov     rsi, cs:selRef_setTextField_; SEL                              ; +0x84, 0x1004ab164\nmov     rdi, rbx; id                                                   ; +0x8b, 0x1004ab16b\nmov     rdx, rax                                                       ; +0x8e, 0x1004ab16e\ncall    r12 ; _objc_msgSend; -[EditBoxImplMac setTextField:] ...       ; +0x91, 0x1004ab171\nmov     r15, [rbx+8]                                                   ; +0x94, 0x1004ab174\ntest    r15, r15                                                       ; +0x98, 0x1004ab178\njz      loc_1004AB25B                                                  ; +0x9b, 0x1004ab17b\nmov     rdi, cs:classRef_NSColor; id                                   ; +0xa1, 0x1004ab181\nmov     rsi, cs:selRef_whiteColor; SEL                                 ; +0xa8, 0x1004ab188\ncall    r12 ; _objc_msgSend; +[NSColor whiteColor] ...                 ; +0xaf, 0x1004ab18f\nmov     rsi, cs:selRef_setTextColor_; SEL                              ; +0xb2, 0x1004ab192\nmov     rdi, r15; id                                                   ; +0xb9, 0x1004ab199\nmov     rdx, rax                                                       ; +0xbc, 0x1004ab19c\ncall    r12 ; _objc_msgSend; -[CustomNSTextField setTextColor:] ...    ; +0xbf, 0x1004ab19f\nmov     rdi, cs:classRef_NSFont; id                                    ; +0xc2, 0x1004ab1a2\nmovsd   xmm0, qword ptr [r13+18h]                                      ; +0xc9, 0x1004ab1a9\naddsd   xmm0, xmm0                                                     ; +0xcf, 0x1004ab1af\ndivsd   xmm0, cs:qword_10081D4B0                                       ; +0xd3, 0x1004ab1b3\nmov     rsi, cs:selRef_systemFontOfSize_; SEL                          ; +0xdb, 0x1004ab1bb\ncall    r12 ; _objc_msgSend; +[NSFont systemFontOfSize:] ...           ; +0xe2, 0x1004ab1c2\nmov     rdi, [rbx+8]; id                                               ; +0xe5, 0x1004ab1c5\nmov     rsi, cs:selRef_setFont_; SEL                                   ; +0xe9, 0x1004ab1c9\nmov     rdx, rax                                                       ; +0xf0, 0x1004ab1d0\ncall    r12 ; _objc_msgSend; -[CustomNSTextField setFont:] ...         ; +0xf3, 0x1004ab1d3\nmov     rdi, cs:classRef_NSColor; id                                   ; +0xf6, 0x1004ab1d6\nmov     rsi, cs:selRef_clearColor; SEL                                 ; +0xfd, 0x1004ab1dd\ncall    r12 ; _objc_msgSend; +[NSColor clearColor] ...                 ; +0x104, 0x1004ab1e4\nmov     rdi, [rbx+8]; id                                               ; +0x107, 0x1004ab1e7\nmov     rsi, cs:selRef_setBackgroundColor_; SEL                        ; +0x10b, 0x1004ab1eb\nmov     rdx, rax                                                       ; +0x112, 0x1004ab1f2\ncall    r12 ; _objc_msgSend; -[CustomNSTextField setBackgroundColor:] ... ; +0x115, 0x1004ab1f5\nmov     rdi, [rbx+8]; id                                               ; +0x118, 0x1004ab1f8\nmov     rsi, cs:selRef_setup; SEL                                      ; +0x11c, 0x1004ab1fc\ncall    r12 ; _objc_msgSend; -[CustomNSTextField setup] ...            ; +0x123, 0x1004ab203\nmov     rdi, [rbx+8]; id                                               ; +0x126, 0x1004ab206\nmov     r15, cs:selRef_setDelegate_                                    ; +0x12a, 0x1004ab20a\nmov     rsi, r15; SEL                                                  ; +0x131, 0x1004ab211\nmov     rdx, rbx                                                       ; +0x134, 0x1004ab214\ncall    r12 ; _objc_msgSend; -[CustomNSTextField setDelegate:] ...     ; +0x137, 0x1004ab217\nmov     rdi, [rbx+8]; id                                               ; +0x13a, 0x1004ab21a\nmov     rsi, r15; SEL                                                  ; +0x13e, 0x1004ab21e\nmov     rdx, rbx                                                       ; +0x141, 0x1004ab221\ncall    r12 ; _objc_msgSend; -[CustomNSTextField setDelegate:] ...     ; +0x144, 0x1004ab224\nmov     rsi, cs:selRef_setEditBox_; SEL                                ; +0x147, 0x1004ab227\nmov     rdi, rbx; id                                                   ; +0x14e, 0x1004ab22e\nmov     rdx, r14                                                       ; +0x151, 0x1004ab231\ncall    r12 ; _objc_msgSend; -[EditBoxImplMac setEditBox:] ...         ; +0x154, 0x1004ab234\nmov     rdi, cs:classRef_EAGLView; id                                  ; +0x157, 0x1004ab237\nmov     rsi, cs:selRef_sharedEGLView; SEL                              ; +0x15e, 0x1004ab23e\ncall    r12 ; _objc_msgSend; +[EAGLView sharedEGLView] ...             ; +0x165, 0x1004ab245\nmov     rdx, [rbx+8]                                                   ; +0x168, 0x1004ab248\nmov     rsi, cs:selRef_addSubview_; SEL                                ; +0x16c, 0x1004ab24c\nmov     rdi, rax; id                                                   ; +0x173, 0x1004ab253\ncall    r12 ; _objc_msgSend                                            ; +0x176, 0x1004ab256\njmp     short loc_1004AB25D                                            ; +0x179, 0x1004ab259\nxor     ebx, ebx                                                       ; +0x17b, 0x1004ab25b\nmov     rax, rbx                                                       ; +0x17d, 0x1004ab25d\nadd     rsp, 38h                                                       ; +0x180, 0x1004ab260\npop     rbx                                                            ; +0x184, 0x1004ab264\npop     r12                                                            ; +0x185, 0x1004ab265\npop     r13                                                            ; +0x187, 0x1004ab267\npop     r14                                                            ; +0x189, 0x1004ab269\npop     r15                                                            ; +0x18b, 0x1004ab26b\npop     rbp                                                            ; +0x18d, 0x1004ab26d\nretn                                                                   ; +0x18e, 0x1004ab26e", "xrefs": ["<???> @ 0x10099ab80"], "is_objc": true, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}