{"type": "func", "start": 4297684124, "end": 4297684228, "name": "GJBaseGameLayer::recordAction", "pseudocode": "// \n// GJBaseGameLayer::recordAction from 0x10029749c to 0x100297504 (104 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::handleButton @ 0x100296fb0\n// \n// This function is hookable on this platform (idp: arm, 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:02:06 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::recordAction(__int64 result, int a2, unsigned __int8 a3, char a4)\n{\n  __int64 v4; // x29\n  __int64 v5; // x30\n  int v6; // [xsp+0h] [xbp-20h] BYREF\n  __int64 v7; // [xsp+4h] [xbp-1Ch]\n  int v8; // [xsp+Ch] [xbp-14h]\n  __int64 v9; // [xsp+10h] [xbp-10h]\n  __int64 v10; // [xsp+18h] [xbp-8h]\n\n  if ( *(_BYTE *)(result + 12744) == 1 && *(_QWORD *)(result + 12856) - *(_QWORD *)(result + 12848) <= 0xF423F0u )\n  {\n    v9 = v4;\n    v10 = v5;\n    v8 = 0;\n    v6 = a2;\n    v7 = a3;\n    BYTE1(v7) = a4;\n    return sub_10029D6CC(result + 12848, &v6);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::recordAction from 0x10029749c to 0x100297504 (104 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::handleButton @ 0x100296fb0\n; \n; This function is hookable on this platform (idp: arm, 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:02:06 +0000\n; \nMOV             W8, #0x31C8                                            ; +0x0, 0x10029749c\nLDRB            W8, [X0,X8]                                            ; +0x4, 0x1002974a0\nCMP             W8, #1                                                 ; +0x8, 0x1002974a4\nB.NE            locret_100297500                                       ; +0xc, 0x1002974a8\nLDR             X8, [X0,#0x3238]                                       ; +0x10, 0x1002974ac\nLDR             X9, [X0,#0x3230]                                       ; +0x14, 0x1002974b0\nSUB             X8, X8, X9                                             ; +0x18, 0x1002974b4\nMOV             W9, #0xF423F0                                          ; +0x1c, 0x1002974b8\nCMP             X8, X9                                                 ; +0x24, 0x1002974c0\nB.HI            locret_100297500                                       ; +0x28, 0x1002974c4\nSUB             SP, SP, #0x20 ; ' '                                    ; +0x2c, 0x1002974c8\nSTP             X29, X30, [SP,#0x20+var_10]                            ; +0x30, 0x1002974cc\nADD             X29, SP, #0x20+var_10                                  ; +0x34, 0x1002974d0\nMOV             W8, #0x3230                                            ; +0x38, 0x1002974d4\nSTUR            XZR, [SP,#0x20+var_1C]                                 ; +0x3c, 0x1002974d8\nSTR             WZR, [SP,#0x20+var_14]                                 ; +0x40, 0x1002974dc\nSTR             W1, [SP,#0x20+var_20]                                  ; +0x44, 0x1002974e0\nSTRB            W2, [SP,#0x20+var_1C]                                  ; +0x48, 0x1002974e4\nSTRB            W3, [SP,#0x20+var_1C+1]                                ; +0x4c, 0x1002974e8\nADD             X0, X0, X8                                             ; +0x50, 0x1002974ec\nMOV             X1, SP                                                 ; +0x54, 0x1002974f0\nBL              sub_10029D6CC                                          ; +0x58, 0x1002974f4\nLDP             X29, X30, [SP,#0x20+var_10]                            ; +0x5c, 0x1002974f8\nADD             SP, SP, #0x20 ; ' '                                    ; +0x60, 0x1002974fc\nRET                                                                    ; +0x64, 0x100297500", "xrefs": ["GJBaseGameLayer::handleButton @ 0x100296fb0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}