{"type": "func", "start": 414732, "end": 414808, "name": "sub_6540C", "pseudocode": "// \n// sub_6540C from 0x6540c to 0x65458 (76 bytes)\n// \n// 1 xrefs:\n// > sub_6537C @ 0x653b8\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 12:13:55 +0000\n// \n\n__int64 __fastcall sub_6540C(int a1, __int64 *a2)\n{\n  unsigned int v2; // w0\n  __int64 v4; // x0\n\n  v2 = 16 * a1;\n  if ( v2 - 1 >= 0x3FFFFFFF )\n  {\n    v4 = *a2;\n  }\n  else\n  {\n    v4 = sub_65188(v2);\n    *a2 = v4;\n  }\n  if ( v4 )\n    return 0;\n  else\n    return 38;\n}", "assembly": "; \n; sub_6540C from 0x6540c to 0x65458 (76 bytes)\n; \n; 1 xrefs:\n; > sub_6537C @ 0x653b8\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 12:13:55 +0000\n; \nSTR             X19, [SP,#-0x10+var_10]!                               ; +0x0, 0x6540c\nLSL             W0, W0, #4                                             ; +0x4, 0x65410\nSUB             W8, W0, #1                                             ; +0x8, 0x65414\nMOV             W9, #0x3FFFFFFF                                        ; +0xc, 0x65418\nCMP             W8, W9                                                 ; +0x10, 0x6541c\nMOV             X19, X1                                                ; +0x14, 0x65420\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x18, 0x65424\nADD             X29, SP, #0x10                                         ; +0x1c, 0x65428\nB.CS            loc_6543C                                              ; +0x20, 0x6542c\nBL              sub_65188                                              ; +0x24, 0x65430\nSTR             X0, [X19]                                              ; +0x28, 0x65434\nB               loc_65440                                              ; +0x2c, 0x65438\nLDR             X0, [X19]                                              ; +0x30, 0x6543c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x34, 0x65440\nCMP             X0, #0                                                 ; +0x38, 0x65444\nMOV             W8, #0x26 ; '&'                                        ; +0x3c, 0x65448\nCSEL            W0, W8, WZR, EQ                                        ; +0x40, 0x6544c\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x44, 0x65450\nRET                                                                    ; +0x48, 0x65454", "xrefs": ["sub_6537C @ 0x653b8"], "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"}