{"type": "func", "start": 6442824672, "end": 6442824748, "name": "cocos2d::CCMenuItem::rect", "pseudocode": "// \n// cocos2d::CCMenuItem::rect from 0x18005b3e0 to 0x18005b42c (76 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCMenu::itemForTouch @ 0x18005975e\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2de4\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\nstruct cocos2d::CCRect *__fastcall cocos2d::CCMenuItem::rect(\n        struct cocos2d::CCRect *__return_ptr retstr,\n        cocos2d::CCRect *a2)\n{\n  cocos2d::CCRect::CCRect(\n    a2,\n    retstr[4].size.height - (float)(retstr[6].size.height * retstr[6].origin.y),\n    retstr[5].origin.x - (float)(retstr[7].origin.x * retstr[6].size.width),\n    retstr[6].size.height,\n    retstr[7].origin.x);\n  return a2;\n}", "assembly": "; \n; cocos2d::CCMenuItem::rect from 0x18005b3e0 to 0x18005b42c (76 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCMenu::itemForTouch @ 0x18005975e\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2de4\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    rbx                                                            ; +0x0, 0x18005b3e0\nsub     rsp, 30h                                                       ; +0x2, 0x18005b3e2\nmovss   xmm5, dword ptr [rcx+70h]                                      ; +0x6, 0x18005b3e6\nmov     rbx, rdx                                                       ; +0xb, 0x18005b3eb\nmovss   xmm3, dword ptr [rcx+6Ch]; float                               ; +0xe, 0x18005b3ee\nmovaps  xmm0, xmm5                                                     ; +0x13, 0x18005b3f3\nmulss   xmm0, dword ptr [rcx+68h]                                      ; +0x16, 0x18005b3f6\nmovaps  xmm4, xmm3                                                     ; +0x1b, 0x18005b3fb\nmulss   xmm4, dword ptr [rcx+64h]                                      ; +0x1e, 0x18005b3fe\nmovss   xmm2, dword ptr [rcx+50h]                                      ; +0x23, 0x18005b403\nmovss   xmm1, dword ptr [rcx+4Ch]                                      ; +0x28, 0x18005b408\nsubss   xmm2, xmm0; float                                              ; +0x2d, 0x18005b40d\nsubss   xmm1, xmm4; float                                              ; +0x31, 0x18005b411\nmovss   [rsp+38h+var_18], xmm5; float                                  ; +0x35, 0x18005b415\nmov     rcx, rdx; this                                                 ; +0x3b, 0x18005b41b\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x3e, 0x18005b41e\nmov     rax, rbx                                                       ; +0x43, 0x18005b423\nadd     rsp, 30h                                                       ; +0x46, 0x18005b426\npop     rbx                                                            ; +0x4a, 0x18005b42a\nretn                                                                   ; +0x4b, 0x18005b42b", "xrefs": ["cocos2d::CCMenu::itemForTouch @ 0x18005975e", "<???> @ 0x1801438a8", "<???> @ 0x1801b2de4"], "is_objc": false, "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"}