{"type": "func", "start": 5370753616, "end": 5370753902, "name": "DpadMenu::arrowForTouch", "pseudocode": "// \n// DpadMenu::arrowForTouch from 0x1401f3250 to 0x1401f336e (286 bytes)\n// \n// 3 xrefs:\n// > DpadMenu::ccTouchBegan @ 0x1401f31a2\n// > DpadMenu::ccTouchMoved @ 0x1401f3204\n// > <???> @ 0x14091a9fc\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 11:28:08 +0000\n// \n\n__int64 __fastcall DpadMenu::arrowForTouch(float *a1, __int64 a2)\n{\n  __int64 Location; // rax\n  __int64 v4; // rax\n  __int32 v5; // xmm5_4\n  float v6; // xmm3_4\n  float v7; // xmm2_4\n  int v8; // eax\n  __int64 v9; // rbx\n  float v11; // [rsp+30h] [rbp+8h] BYREF\n  float v12; // [rsp+34h] [rbp+Ch]\n  char v13; // [rsp+40h] [rbp+18h] BYREF\n  char v14; // [rsp+48h] [rbp+20h] BYREF\n\n  Location = cocos2d::CCTouch::getLocation(a2, &v13);\n  cocos2d::CCNode::convertToNodeSpace(a1, &v14, Location);\n  cocos2d::CCPoint::operator-(v4, &v11, a1 + 120);\n  v5 = _mm_load_si128((const __m128i *)&xmmword_140836C90).m128i_i32[0];\n  if ( (a1[124] <= COERCE_FLOAT(LODWORD(v11) & v5) || a1[125] <= COERCE_FLOAT(LODWORD(v12) & v5))\n    && (v6 = COERCE_FLOAT(LODWORD(v11) & v5) / a1[122], v7 = COERCE_FLOAT(LODWORD(v12) & v5) / a1[123], v6 <= 1.0)\n    && v7 <= 1.0\n    && fminf(v6, v7) <= (float)(fmaxf(v6, v7) * 0.85000002)\n    && ((v8 = 0, v6 <= v7) ? (LOBYTE(v8) = v12 <= 0.0, v8 += 2) : (LOBYTE(v8) = v11 >= 0.0),\n        (v9 = *(_QWORD *)&a1[2 * v8 + 112]) != 0\n     && (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v9 + 344LL))(v9)\n     && (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v9 + 928LL))(v9)) )\n  {\n    return v9;\n  }\n  else\n  {\n    return 0;\n  }\n}", "assembly": "; \n; DpadMenu::arrowForTouch from 0x1401f3250 to 0x1401f336e (286 bytes)\n; \n; 3 xrefs:\n; > DpadMenu::ccTouchBegan @ 0x1401f31a2\n; > DpadMenu::ccTouchMoved @ 0x1401f3204\n; > <???> @ 0x14091a9fc\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 11:28:08 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401f3250\nsub     rsp, 20h                                                       ; +0x2, 0x1401f3252\nmov     rax, rdx                                                       ; +0x6, 0x1401f3256\nmov     rbx, rcx                                                       ; +0x9, 0x1401f3259\nmov     rcx, rax                                                       ; +0xc, 0x1401f325c\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xf, 0x1401f325f\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x14, 0x1401f3264\nlea     rdx, [rsp+28h+arg_18]                                          ; +0x1a, 0x1401f326a\nmov     rcx, rbx                                                       ; +0x1f, 0x1401f326f\nmov     r8, rax                                                        ; +0x22, 0x1401f3272\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x25, 0x1401f3275\nmov     rcx, rax                                                       ; +0x2b, 0x1401f327b\nlea     r8, [rbx+1E0h]                                                 ; +0x2e, 0x1401f327e\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x35, 0x1401f3285\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x3a, 0x1401f328a\nmovss   xmm3, [rsp+28h+arg_0]                                          ; +0x40, 0x1401f3290\nmovdqa  xmm5, cs:xmmword_140836C90                                     ; +0x46, 0x1401f3296\nmovss   xmm0, dword ptr [rbx+1F0h]                                     ; +0x4e, 0x1401f329e\nandps   xmm3, xmm5                                                     ; +0x56, 0x1401f32a6\ncomiss  xmm0, xmm3                                                     ; +0x59, 0x1401f32a9\nmovss   xmm4, [rsp+28h+arg_4]                                          ; +0x5c, 0x1401f32ac\njbe     short loc_1401F32CB                                            ; +0x62, 0x1401f32b2\nmovss   xmm0, dword ptr [rbx+1F4h]                                     ; +0x64, 0x1401f32b4\nmovaps  xmm1, xmm4                                                     ; +0x6c, 0x1401f32bc\nandps   xmm1, xmm5                                                     ; +0x6f, 0x1401f32bf\ncomiss  xmm0, xmm1                                                     ; +0x72, 0x1401f32c2\nja      loc_1401F3366                                                  ; +0x75, 0x1401f32c5\ndivss   xmm3, dword ptr [rbx+1E8h]                                     ; +0x7b, 0x1401f32cb\nmovss   xmm0, cs:flt_140835080                                         ; +0x83, 0x1401f32d3\nmovaps  xmm2, xmm4                                                     ; +0x8b, 0x1401f32db\ncomiss  xmm3, xmm0                                                     ; +0x8e, 0x1401f32de\nandps   xmm2, xmm5                                                     ; +0x91, 0x1401f32e1\ndivss   xmm2, dword ptr [rbx+1ECh]                                     ; +0x94, 0x1401f32e4\nja      short loc_1401F3366                                            ; +0x9c, 0x1401f32ec\ncomiss  xmm2, xmm0                                                     ; +0x9e, 0x1401f32ee\nja      short loc_1401F3366                                            ; +0xa1, 0x1401f32f1\nmovaps  xmm0, xmm3                                                     ; +0xa3, 0x1401f32f3\nmovaps  xmm1, xmm3                                                     ; +0xa6, 0x1401f32f6\nmaxss   xmm0, xmm2                                                     ; +0xa9, 0x1401f32f9\nminss   xmm1, xmm2                                                     ; +0xad, 0x1401f32fd\nmulss   xmm0, cs:dword_140835010                                       ; +0xb1, 0x1401f3301\ncomiss  xmm1, xmm0                                                     ; +0xb9, 0x1401f3309\nja      short loc_1401F3366                                            ; +0xbc, 0x1401f330c\nxor     eax, eax                                                       ; +0xbe, 0x1401f330e\nxorps   xmm0, xmm0                                                     ; +0xc0, 0x1401f3310\ncomiss  xmm3, xmm2                                                     ; +0xc3, 0x1401f3313\njbe     short loc_1401F3322                                            ; +0xc6, 0x1401f3316\ncomiss  xmm0, [rsp+28h+arg_0]                                          ; +0xc8, 0x1401f3318\nsetbe   al                                                             ; +0xcd, 0x1401f331d\njmp     short loc_1401F332B                                            ; +0xd0, 0x1401f3320\ncomiss  xmm4, xmm0                                                     ; +0xd2, 0x1401f3322\nsetbe   al                                                             ; +0xd5, 0x1401f3325\nadd     eax, 2                                                         ; +0xd8, 0x1401f3328\nmov     eax, eax                                                       ; +0xdb, 0x1401f332b\nmov     rbx, [rbx+rax*8+1C0h]                                          ; +0xdd, 0x1401f332d\ntest    rbx, rbx                                                       ; +0xe5, 0x1401f3335\njz      short loc_1401F3366                                            ; +0xe8, 0x1401f3338\nmov     rax, [rbx]                                                     ; +0xea, 0x1401f333a\nmov     rcx, rbx                                                       ; +0xed, 0x1401f333d\ncall    qword ptr [rax+158h]                                           ; +0xf0, 0x1401f3340\ntest    al, al                                                         ; +0xf6, 0x1401f3346\njz      short loc_1401F3366                                            ; +0xf8, 0x1401f3348\nmov     rcx, [rbx]                                                     ; +0xfa, 0x1401f334a\nmov     rdx, [rcx+3A0h]                                                ; +0xfd, 0x1401f334d\nmov     rcx, rbx                                                       ; +0x104, 0x1401f3354\ncall    rdx                                                            ; +0x107, 0x1401f3357\ntest    al, al                                                         ; +0x109, 0x1401f3359\njz      short loc_1401F3366                                            ; +0x10b, 0x1401f335b\nmov     rax, rbx                                                       ; +0x10d, 0x1401f335d\nadd     rsp, 20h                                                       ; +0x110, 0x1401f3360\npop     rbx                                                            ; +0x114, 0x1401f3364\nretn                                                                   ; +0x115, 0x1401f3365\nxor     eax, eax                                                       ; +0x116, 0x1401f3366\nadd     rsp, 20h                                                       ; +0x118, 0x1401f3368\npop     rbx                                                            ; +0x11c, 0x1401f336c\nretn                                                                   ; +0x11d, 0x1401f336d", "xrefs": ["DpadMenu::ccTouchBegan @ 0x1401f31a2", "DpadMenu::ccTouchMoved @ 0x1401f3204", "<???> @ 0x14091a9fc"], "is_objc": false, "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"}