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