{"type": "func", "start": 737492, "end": 737676, "name": "sub_B40D4", "pseudocode": "// \n// sub_B40D4 from 0xb40d4 to 0xb418c (184 bytes)\n// \n// 1 xrefs:\n// > sub_B418C @ 0xb4444\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\n__int64 __fastcall sub_B40D4(__int64 a1)\n{\n  __int64 i; // x8\n  __int64 v3; // x20\n  __int64 v4; // x8\n  __int64 v5; // x8\n  __int64 result; // x0\n\n  for ( i = 0; i != 128; i += 4 )\n    *(_DWORD *)(a1 + 544 + i) = 1065353216;\n  v3 = 0;\n  *(_DWORD *)(a1 + 672) = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 1744LL);\n  while ( 1 )\n  {\n    v4 = *(_QWORD *)(a1 + 232);\n    if ( v3 >= *(int *)(v4 + 96) )\n      break;\n    v5 = *(_QWORD *)(*(_QWORD *)(v4 + 104) + 8 * v3);\n    if ( *(_DWORD *)v5 == 2 )\n    {\n      result = sub_CBE2C(a1, (unsigned int)v3, *(_DWORD *)(v5 + 48) != 0);\n    }\n    else if ( *(_DWORD *)v5 )\n    {\n      result = 0;\n    }\n    else\n    {\n      result = sub_CBD5C(a1, (unsigned int)v3, *(float *)(v5 + 56));\n    }\n    ++v3;\n    if ( (_DWORD)result )\n      return result;\n  }\n  return 0;\n}", "assembly": "; \n; sub_B40D4 from 0xb40d4 to 0xb418c (184 bytes)\n; \n; 1 xrefs:\n; > sub_B418C @ 0xb4444\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0xb40d4\nMOV             X19, X0                                                ; +0x4, 0xb40d8\nMOV             X8, XZR                                                ; +0x8, 0xb40dc\nADD             X9, X0, #0x220                                         ; +0xc, 0xb40e0\nMOV             W10, #0x3F800000                                       ; +0x10, 0xb40e4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x14, 0xb40e8\nADD             X29, SP, #0x10                                         ; +0x18, 0xb40ec\nCMP             X8, #0x80                                              ; +0x1c, 0xb40f0\nB.EQ            loc_B4104                                              ; +0x20, 0xb40f4\nSTR             W10, [X9,X8]                                           ; +0x24, 0xb40f8\nADD             X8, X8, #4                                             ; +0x28, 0xb40fc\nB               loc_B40F0                                              ; +0x2c, 0xb4100\nLDR             X8, [X19,#0xA8]                                        ; +0x30, 0xb4104\nMOV             X20, XZR                                               ; +0x34, 0xb4108\nLDR             W8, [X8,#0x6D0]                                        ; +0x38, 0xb410c\nSTR             W8, [X19,#0x2A0]                                       ; +0x3c, 0xb4110\nLDR             X8, [X19,#0xE8]                                        ; +0x40, 0xb4114\nLDRSW           X9, [X8,#0x60]                                         ; +0x44, 0xb4118\nCMP             X20, X9                                                ; +0x48, 0xb411c\nB.GE            loc_B417C                                              ; +0x4c, 0xb4120\nLDR             X8, [X8,#0x68]                                         ; +0x50, 0xb4124\nLDR             X8, [X8,X20,LSL#3]                                     ; +0x54, 0xb4128\nLDR             W9, [X8]                                               ; +0x58, 0xb412c\nCMP             W9, #2                                                 ; +0x5c, 0xb4130\nB.EQ            loc_B4150                                              ; +0x60, 0xb4134\nCBNZ            W9, loc_B416C                                          ; +0x64, 0xb4138\nLDR             S0, [X8,#0x38]                                         ; +0x68, 0xb413c\nMOV             X0, X19                                                ; +0x6c, 0xb4140\nMOV             W1, W20                                                ; +0x70, 0xb4144\nBL              sub_CBD5C                                              ; +0x74, 0xb4148\nB               loc_B4170                                              ; +0x78, 0xb414c\nLDR             W8, [X8,#0x30]                                         ; +0x7c, 0xb4150\nMOV             X0, X19                                                ; +0x80, 0xb4154\nMOV             W1, W20                                                ; +0x84, 0xb4158\nCMP             W8, #0                                                 ; +0x88, 0xb415c\nCSET            W2, NE                                                 ; +0x8c, 0xb4160\nBL              sub_CBE2C                                              ; +0x90, 0xb4164\nB               loc_B4170                                              ; +0x94, 0xb4168\nMOV             W0, WZR                                                ; +0x98, 0xb416c\nADD             X20, X20, #1                                           ; +0x9c, 0xb4170\nCBZ             W0, loc_B4114                                          ; +0xa0, 0xb4174\nB               loc_B4180                                              ; +0xa4, 0xb4178\nMOV             W0, WZR                                                ; +0xa8, 0xb417c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xac, 0xb4180\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb0, 0xb4184\nRET                                                                    ; +0xb4, 0xb4188", "xrefs": ["sub_B418C @ 0xb4444"], "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"}