{"type": "func", "start": 4297284312, "end": 4297284440, "name": "-[CustomUITextField textRectForBounds:]", "pseudocode": "// \n// -[CustomUITextField textRectForBounds:] from 0x100235ad8 to 0x100235b58 (128 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100845f70\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\nCGRect __cdecl -[CustomUITextField textRectForBounds:](CustomUITextField *self, SEL a2, CGRect a3)\n{\n  double height; // d8\n  double width; // d9\n  double y; // d10\n  double x; // d11\n  cocos2d::CCEGLView *v7; // x0\n  double v8; // d12\n  double v9; // d0\n  float v10; // s2\n  double v13; // d3\n  CGRect result; // 0:d0.8,8:d1.8,16:d2.8,24:d3.8\n\n  height = a3.size.height;\n  width = a3.size.width;\n  y = a3.origin.y;\n  x = a3.origin.x;\n  v7 = cocos2d::CCEGLView::sharedOpenGLView();\n  v8 = (float)(cocos2d::CCEGLViewProtocol::getScaleX(v7) * 5.0);\n  objc_msgSend(+[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, \"sharedEGLView\"), \"contentScaleFactor\");\n  v10 = v8 / v9;\n  result.origin.x = x + v10;\n  result.origin.y = y + v10;\n  v13 = (float)(v10 + v10);\n  result.size.width = width - v13;\n  result.size.height = height - v13;\n  return result;\n}", "assembly": "; \n; -[CustomUITextField textRectForBounds:] from 0x100235ad8 to 0x100235b58 (128 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100845f70\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\nSTP             D13, D12, [SP,#-0x10+var_30]!                          ; +0x0, 0x100235ad8\nSTP             D11, D10, [SP,#0x30+var_20]                            ; +0x4, 0x100235adc\nSTP             D9, D8, [SP,#0x30+var_10]                              ; +0x8, 0x100235ae0\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100235ae4\nADD             X29, SP, #0x30                                         ; +0x10, 0x100235ae8\nFMOV            D8, D3                                                 ; +0x14, 0x100235aec\nFMOV            D9, D2                                                 ; +0x18, 0x100235af0\nFMOV            D10, D1                                                ; +0x1c, 0x100235af4\nFMOV            D11, D0                                                ; +0x20, 0x100235af8\nBL              cocos2d__CCEGLView__sharedOpenGLView                   ; +0x24, 0x100235afc\nBL              cocos2d__CCEGLViewProtocol__getScaleX                  ; +0x28, 0x100235b00\nFMOV            S1, #5.0                                               ; +0x2c, 0x100235b04\nFMUL            S0, S0, S1                                             ; +0x30, 0x100235b08\nFCVT            D12, S0                                                ; +0x34, 0x100235b0c\nADRP            X8, #classRef_EAGLView@PAGE                            ; +0x38, 0x100235b10\nLDR             X0, [X8,#classRef_EAGLView@PAGEOFF]; _OBJC_CLASS_$_EAGLView ; +0x3c, 0x100235b14\nBL              _objc_msgSend$sharedEGLView; +[EAGLView sharedEGLView] ... ; +0x40, 0x100235b18\nBL              _objc_msgSend$contentScaleFactor                       ; +0x44, 0x100235b1c\nFDIV            D0, D12, D0                                            ; +0x48, 0x100235b20\nFCVT            S2, D0                                                 ; +0x4c, 0x100235b24\nFCVT            D1, S2                                                 ; +0x50, 0x100235b28\nFADD            D0, D11, D1                                            ; +0x54, 0x100235b2c\nFADD            D1, D10, D1                                            ; +0x58, 0x100235b30\nFADD            S2, S2, S2                                             ; +0x5c, 0x100235b34\nFCVT            D3, S2                                                 ; +0x60, 0x100235b38\nFSUB            D2, D9, D3                                             ; +0x64, 0x100235b3c\nFSUB            D3, D8, D3                                             ; +0x68, 0x100235b40\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x6c, 0x100235b44\nLDP             D9, D8, [SP,#0x30+var_10]                              ; +0x70, 0x100235b48\nLDP             D11, D10, [SP,#0x30+var_20]                            ; +0x74, 0x100235b4c\nLDP             D13, D12, [SP+0x30+var_30],#0x40                       ; +0x78, 0x100235b50\nRET                                                                    ; +0x7c, 0x100235b54", "xrefs": ["<???> @ 0x100845f70"], "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"}