{"type": "func", "start": 4295272136, "end": 4295272288, "name": "GJUINode::touchTest", "pseudocode": "// \n// GJUINode::touchTest from 0x10004a6c8 to 0x10004a760 (152 bytes)\n// \n// 2 xrefs:\n// > UILayer::processUINodeTouch @ 0x10004a4dc\n// > UIOptionsLayer::ccTouchBegan @ 0x1002e4544\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::touchTest(GJUINode *a1, cocos2d::CCPoint a2)\n{\n  float *v2; // x1\n  __int64 *v3; // x20\n  int result; // w0\n  __int64 v6; // [xsp+8h] [xbp-18h] BYREF\n  cocos2d::CCPoint v7; // 0:s0.4,4:s1.4\n  cocos2d::CCPoint v8; // 0:s0.4,4:s1.4\n\n  v3 = (__int64 *)v2;\n  result = sub_100022C60((float *)&a1->m_rect.origin, v2);\n  if ( result )\n  {\n    if ( a1->m_oneButton )\n    {\n      return 1;\n    }\n    else if ( a1->m_modeB && (a1->m_snap || !a1->m_swiping) )\n    {\n      v8.x = sub_1000229B8(&v6, v3);\n      GJUINode::updateRangePos(a1, v8);\n      return 5;\n    }\n    else\n    {\n      v7.x = sub_1000229B8(&v6, v3);\n      return GJUINode::activeTouchTest(a1, v7);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJUINode::touchTest from 0x10004a6c8 to 0x10004a760 (152 bytes)\n; \n; 2 xrefs:\n; > UILayer::processUINodeTouch @ 0x10004a4dc\n; > UIOptionsLayer::ccTouchBegan @ 0x1002e4544\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, 0x10004a6c8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10004a6cc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10004a6d0\nADD             X29, SP, #0x20                                         ; +0xc, 0x10004a6d4\nMOV             X20, X1                                                ; +0x10, 0x10004a6d8\nMOV             X19, X0                                                ; +0x14, 0x10004a6dc\nADD             X0, X0, #0x150                                         ; +0x18, 0x10004a6e0\nBL              sub_100022C60                                          ; +0x1c, 0x10004a6e4\nCBZ             W0, loc_10004A750                                      ; +0x20, 0x10004a6e8\nLDRB            W8, [X19,#0x182]                                       ; +0x24, 0x10004a6ec\nTBZ             W8, #0, loc_10004A6FC                                  ; +0x28, 0x10004a6f0\nMOV             W0, #1                                                 ; +0x2c, 0x10004a6f4\nB               loc_10004A750                                          ; +0x30, 0x10004a6f8\nLDRB            W8, [X19,#0x17D]                                       ; +0x34, 0x10004a6fc\nCMP             W8, #1                                                 ; +0x38, 0x10004a700\nB.NE            loc_10004A718                                          ; +0x3c, 0x10004a704\nLDRB            W8, [X19,#0x17E]                                       ; +0x40, 0x10004a708\nTBNZ            W8, #0, loc_10004A734                                  ; +0x44, 0x10004a70c\nLDRB            W8, [X19,#0x17F]                                       ; +0x48, 0x10004a710\nTBZ             W8, #0, loc_10004A734                                  ; +0x4c, 0x10004a714\nADD             X0, SP, #0x20+var_18                                   ; +0x50, 0x10004a718\nMOV             X1, X20                                                ; +0x54, 0x10004a71c\nBL              sub_1000229B8                                          ; +0x58, 0x10004a720\nADD             X1, SP, #0x20+var_18                                   ; +0x5c, 0x10004a724\nMOV             X0, X19                                                ; +0x60, 0x10004a728\nBL              GJUINode__activeTouchTest                              ; +0x64, 0x10004a72c\nB               loc_10004A750                                          ; +0x68, 0x10004a730\nADD             X0, SP, #0x20+var_18                                   ; +0x6c, 0x10004a734\nMOV             X1, X20                                                ; +0x70, 0x10004a738\nBL              sub_1000229B8                                          ; +0x74, 0x10004a73c\nADD             X1, SP, #0x20+var_18                                   ; +0x78, 0x10004a740\nMOV             X0, X19                                                ; +0x7c, 0x10004a744\nBL              GJUINode__updateRangePos                               ; +0x80, 0x10004a748\nMOV             W0, #5                                                 ; +0x84, 0x10004a74c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x88, 0x10004a750\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x8c, 0x10004a754\nADD             SP, SP, #0x30 ; '0'                                    ; +0x90, 0x10004a758\nRET                                                                    ; +0x94, 0x10004a75c", "xrefs": ["UILayer::processUINodeTouch @ 0x10004a4dc", "UIOptionsLayer::ccTouchBegan @ 0x1002e4544"], "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"}