{"type": "func", "start": 4159772, "end": 4159882, "name": "CreateGuidelinesLayer::ccTouchBegan", "pseudocode": "// \n// CreateGuidelinesLayer::ccTouchBegan from 0x3f791c to 0x3f798a (110 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CreateGuidelinesLayer::ccTouchBegan @ 0x3f7998\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:47:18 +0000\n// \n\nint __fastcall CreateGuidelinesLayer::ccTouchBegan(int a1, int a2, int a3)\n{\n  int v4; // r0\n  void (__fastcall *v5)(int, _DWORD *); // r2\n  _DWORD v7[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v7[0] = a1;\n  v7[1] = a2;\n  v7[2] = a3;\n  if ( *(_BYTE *)(a1 + 552) && *(int *)(a1 + 556) <= 1000 )\n  {\n    (*(void (__fastcall **)(int))(*(_DWORD *)a1 + 688))(a1);\n    v4 = *(_DWORD *)(a1 + 544);\n    v5 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 480);\n    LOWORD(v7[0]) = -1;\n    BYTE2(v7[0]) = 0;\n    v5(v4, v7);\n    (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 544) + 80))(*(_DWORD *)(a1 + 544), 1063675494);\n    ++*(_DWORD *)(a1 + 556);\n  }\n  return 1;\n}", "assembly": "; \n; CreateGuidelinesLayer::ccTouchBegan from 0x3f791c to 0x3f798a (110 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CreateGuidelinesLayer::ccTouchBegan @ 0x3f7998\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:47:18 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x3F7924)                ; +0x0, 0x3f791c\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x2, 0x3f791e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3f7920\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3f7922\nMOV             R4, R0                                                 ; +0x8, 0x3f7924\nLDR             R2, [R3]                                               ; +0xa, 0x3f7926\nMOV             R5, R3                                                 ; +0xc, 0x3f7928\nSTR             R2, [SP,#0xC+var_8]                                    ; +0xe, 0x3f792a\nLDRB.W          R2, [R0,#0x228]                                        ; +0x10, 0x3f792c\nCBZ             R2, loc_3F7978                                         ; +0x14, 0x3f7930\nLDR.W           R3, [R0,#0x22C]                                        ; +0x16, 0x3f7932\nCMP.W           R3, #0x3E8                                             ; +0x1a, 0x3f7936\nBGT             loc_3F7978                                             ; +0x1e, 0x3f793a\nLDR             R3, [R0]                                               ; +0x20, 0x3f793c\nLDR.W           R3, [R3,#0x2B0]                                        ; +0x22, 0x3f793e\nBLX             R3                                                     ; +0x26, 0x3f7942\nLDR.W           R0, [R4,#0x220]                                        ; +0x28, 0x3f7944\nMOV             R1, SP                                                 ; +0x2c, 0x3f7948\nLDR             R3, [R0]                                               ; +0x2e, 0x3f794a\nLDR.W           R2, [R3,#0x1E0]                                        ; +0x30, 0x3f794c\nMOVS            R3, #0xFF                                              ; +0x34, 0x3f7950\nSTRB.W          R3, [SP,#0xC+var_C]                                    ; +0x36, 0x3f7952\nSTRB.W          R3, [SP,#0xC+var_B]                                    ; +0x3a, 0x3f7956\nMOVS            R3, #0                                                 ; +0x3e, 0x3f795a\nSTRB.W          R3, [SP,#0xC+var_A]                                    ; +0x40, 0x3f795c\nBLX             R2                                                     ; +0x44, 0x3f7960\nLDR.W           R0, [R4,#0x220]                                        ; +0x46, 0x3f7962\nLDR             R1, =0x3F666666                                        ; +0x4a, 0x3f7966\nLDR             R3, [R0]                                               ; +0x4c, 0x3f7968\nLDR             R3, [R3,#0x50]                                         ; +0x4e, 0x3f796a\nBLX             R3                                                     ; +0x50, 0x3f796c\nLDR.W           R3, [R4,#0x22C]                                        ; +0x52, 0x3f796e\nADDS            R3, #1                                                 ; +0x56, 0x3f7972\nSTR.W           R3, [R4,#0x22C]                                        ; +0x58, 0x3f7974\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x5c, 0x3f7978\nMOVS            R0, #1                                                 ; +0x5e, 0x3f797a\nLDR             R3, [R5]                                               ; +0x60, 0x3f797c\nCMP             R2, R3                                                 ; +0x62, 0x3f797e\nBEQ             loc_3F7986                                             ; +0x64, 0x3f7980\nBLX             __stack_chk_fail                                       ; +0x66, 0x3f7982\nADD             SP, SP, #0xC                                           ; +0x6a, 0x3f7986\nPOP             {R4,R5,PC}                                             ; +0x6c, 0x3f7988", "xrefs": ["`non-virtual thunk to'CreateGuidelinesLayer::ccTouchBegan @ 0x3f7998"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}