{"type": "func", "start": 288384, "end": 288472, "name": "sub_46680", "pseudocode": "// \n// sub_46680 from 0x46680 to 0x466d8 (88 bytes)\n// \n// 0 xrefs:\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 sub_46680(int a1, int a2)\n{\n  int v4; // r6\n  _DWORD v6[2]; // [sp+4h] [bp-1Ch] BYREF\n  char v7; // [sp+Ch] [bp-14h]\n\n  v6[0] = *(_DWORD *)(a1 + 4);\n  v6[1] = 8;\n  v7 = 0;\n  sub_44998((int)v6);\n  v4 = sub_44CE8(a1, a2);\n  if ( !v4 )\n  {\n    if ( (*(_BYTE *)(a1 + 33) & 0x40) != 0 )\n      v4 = 0;\n    else\n      v4 = (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 128) + 44))(*(_DWORD *)(a1 + 128), a2);\n  }\n  sub_448CC((int)v6);\n  return v4;\n}", "assembly": "; \n; sub_46680 from 0x46680 to 0x466d8 (88 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x46680\nADD             R7, SP, #0xC                                           ; +0x2, 0x46682\nPUSH.W          {R11}                                                  ; +0x4, 0x46684\nSUB             SP, SP, #0x10                                          ; +0x8, 0x46688\nMOV             R4, R1                                                 ; +0xa, 0x4668a\nMOV             R5, R0                                                 ; +0xc, 0x4668c\nLDR             R0, [R0,#4]                                            ; +0xe, 0x4668e\nMOVS            R1, #8                                                 ; +0x10, 0x46690\nSTRD.W          R0, R1, [SP,#0x10+var_C]                               ; +0x12, 0x46692\nMOVS            R0, #0                                                 ; +0x16, 0x46696\nSTRB.W          R0, [SP,#0x10+var_4]                                   ; +0x18, 0x46698\nADD             R0, SP, #0x10+var_C                                    ; +0x1c, 0x4669c\nBL              sub_44998                                              ; +0x1e, 0x4669e\nMOV             R0, R5                                                 ; +0x22, 0x466a2\nMOV             R1, R4                                                 ; +0x24, 0x466a4\nBL              sub_44CE8                                              ; +0x26, 0x466a6\nMOV             R6, R0                                                 ; +0x2a, 0x466aa\nCBNZ            R0, loc_466C8                                          ; +0x2c, 0x466ac\nLDRB.W          R0, [R5,#0x21]                                         ; +0x2e, 0x466ae\nLSLS            R0, R0, #0x19                                          ; +0x32, 0x466b2\nBMI             loc_466C6                                              ; +0x34, 0x466b4\nLDR.W           R0, [R5,#0x80]                                         ; +0x36, 0x466b6\nLDR             R1, [R0]                                               ; +0x3a, 0x466ba\nLDR             R2, [R1,#0x2C]                                         ; +0x3c, 0x466bc\nMOV             R1, R4                                                 ; +0x3e, 0x466be\nBLX             R2                                                     ; +0x40, 0x466c0\nMOV             R6, R0                                                 ; +0x42, 0x466c2\nB               loc_466C8                                              ; +0x44, 0x466c4\nMOVS            R6, #0                                                 ; +0x46, 0x466c6\nADD             R0, SP, #0x10+var_C                                    ; +0x48, 0x466c8\nBL              sub_448CC                                              ; +0x4a, 0x466ca\nMOV             R0, R6                                                 ; +0x4e, 0x466ce\nADD             SP, SP, #0x10                                          ; +0x50, 0x466d0\nPOP.W           {R11}                                                  ; +0x52, 0x466d2\nPOP             {R4-R7,PC}                                             ; +0x56, 0x466d6", "xrefs": [], "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"}