{"type": "func", "start": 4295272288, "end": 4295272400, "name": "GJUINode::activeTouchTest", "pseudocode": "// \n// GJUINode::activeTouchTest from 0x10004a760 to 0x10004a7d0 (112 bytes)\n// \n// 2 xrefs:\n// > UILayer::processUINodeTouch @ 0x10004a464\n// > GJUINode::touchTest @ 0x10004a72c\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\nint __fastcall GJUINode::activeTouchTest(GJUINode *a1, cocos2d::CCPoint a2)\n{\n  __int64 *v2; // x1\n  __int64 v5; // [xsp+8h] [xbp-18h] BYREF\n  cocos2d::CCPoint v6; // 0:s0.4,4:s1.4\n\n  if ( a1->m_modeB )\n  {\n    v6.x = sub_1000229B8(&v5, v2);\n    return GJUINode::activeRangeTouchTest(a1, v6);\n  }\n  else if ( fabsf(*(float *)v2) >= a1->m_deadzone )\n  {\n    if ( *(float *)v2 >= 0.0 )\n      return 3;\n    else\n      return 2;\n  }\n  else\n  {\n    return 5;\n  }\n}", "assembly": "; \n; GJUINode::activeTouchTest from 0x10004a760 to 0x10004a7d0 (112 bytes)\n; \n; 2 xrefs:\n; > UILayer::processUINodeTouch @ 0x10004a464\n; > GJUINode::touchTest @ 0x10004a72c\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x10004a760\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10004a764\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10004a768\nADD             X29, SP, #0x20                                         ; +0xc, 0x10004a76c\nMOV             X19, X0                                                ; +0x10, 0x10004a770\nLDRB            W8, [X0,#0x17D]                                        ; +0x14, 0x10004a774\nTBZ             W8, #0, loc_10004A794                                  ; +0x18, 0x10004a778\nADD             X0, SP, #0x20+var_18                                   ; +0x1c, 0x10004a77c\nBL              sub_1000229B8                                          ; +0x20, 0x10004a780\nADD             X1, SP, #0x20+var_18                                   ; +0x24, 0x10004a784\nMOV             X0, X19                                                ; +0x28, 0x10004a788\nBL              GJUINode__activeRangeTouchTest                         ; +0x2c, 0x10004a78c\nB               loc_10004A7C0                                          ; +0x30, 0x10004a790\nLDR             S0, [X1]                                               ; +0x34, 0x10004a794\nFABS            S1, S0                                                 ; +0x38, 0x10004a798\nLDR             S2, [X19,#0x178]                                       ; +0x3c, 0x10004a79c\nFCMP            S1, S2                                                 ; +0x40, 0x10004a7a0\nB.PL            loc_10004A7B0                                          ; +0x44, 0x10004a7a4\nMOV             W0, #5                                                 ; +0x48, 0x10004a7a8\nB               loc_10004A7C0                                          ; +0x4c, 0x10004a7ac\nFCMP            S0, #0.0                                               ; +0x50, 0x10004a7b0\nMOV             W8, #3                                                 ; +0x54, 0x10004a7b4\nMOV             W9, #2                                                 ; +0x58, 0x10004a7b8\nCSEL            W0, W9, W8, LT                                         ; +0x5c, 0x10004a7bc\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0x10004a7c0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0x10004a7c4\nADD             SP, SP, #0x30 ; '0'                                    ; +0x68, 0x10004a7c8\nRET                                                                    ; +0x6c, 0x10004a7cc", "xrefs": ["UILayer::processUINodeTouch @ 0x10004a464", "GJUINode::touchTest @ 0x10004a72c"], "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"}