{"type": "func", "start": 834516, "end": 834652, "name": "sub_CBBD4", "pseudocode": "// \n// sub_CBBD4 from 0xcbbd4 to 0xcbc5c (136 bytes)\n// \n// 1 xrefs:\n// > sub_56824 @ 0x569c4\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:14:48 +0000\n// \n\n__int64 __fastcall sub_CBBD4(__int64 a1, __int64 a2)\n{\n  __int16 v3; // w8\n  __int64 result; // x0\n  __int64 v6; // x0\n  __int64 v7; // x1\n\n  if ( !*(_QWORD *)(a1 + 168) )\n    return 0;\n  if ( !a2 )\n    return 31;\n  v3 = atomic_load((unsigned int *)(a1 + 100));\n  if ( (v3 & 0x100) != 0 )\n    return sub_CB674(a1, a2, 0);\n  result = sub_CD398(*(_QWORD *)(a1 + 168));\n  if ( !(_DWORD)result )\n  {\n    v6 = sub_CD4B0();\n    *(_QWORD *)(v7 + 8) = a1;\n    *(_QWORD *)(v7 + 16) = a2;\n    return sub_CD2F0(v6);\n  }\n  return result;\n}", "assembly": "; \n; sub_CBBD4 from 0xcbbd4 to 0xcbc5c (136 bytes)\n; \n; 1 xrefs:\n; > sub_56824 @ 0x569c4\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:14:48 +0000\n; \nSTR             X21, [SP,#-0x10+var_20]!                               ; +0x0, 0xcbbd4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0xcbbd8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0xcbbdc\nLDR             X8, [X0,#0xA8]                                         ; +0xc, 0xcbbe0\nADD             X29, SP, #0x20                                         ; +0x10, 0xcbbe4\nCBZ             X8, loc_CBC2C                                          ; +0x14, 0xcbbe8\nMOV             X20, X1                                                ; +0x18, 0xcbbec\nCBZ             X1, loc_CBC34                                          ; +0x1c, 0xcbbf0\nADD             X8, X0, #0x64 ; 'd'                                    ; +0x20, 0xcbbf4\nLDAR            W8, [X8]                                               ; +0x24, 0xcbbf8\nMOV             X19, X0                                                ; +0x28, 0xcbbfc\nTBNZ            W8, #8, loc_CBC40                                      ; +0x2c, 0xcbc00\nLDR             X0, [X19,#0xA8]                                        ; +0x30, 0xcbc04\nBL              sub_CD398                                              ; +0x34, 0xcbc08\nCBNZ            W0, loc_CBC38                                          ; +0x38, 0xcbc0c\nLDR             X8, [SP,#0x20+var_18]                                  ; +0x3c, 0xcbc10\nMOV             W9, #6                                                 ; +0x40, 0xcbc14\nMOV             W2, W21                                                ; +0x44, 0xcbc18\nBL              sub_CD4B0                                              ; +0x48, 0xcbc1c\nSTP             X19, X20, [X1,#8]                                      ; +0x4c, 0xcbc20\nBL              sub_CD2F0                                              ; +0x50, 0xcbc24\nB               loc_CBC38                                              ; +0x54, 0xcbc28\nMOV             W0, WZR                                                ; +0x58, 0xcbc2c\nB               loc_CBC38                                              ; +0x5c, 0xcbc30\nMOV             W0, #0x1F                                              ; +0x60, 0xcbc34\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x64, 0xcbc38\nB               loc_CD0AC                                              ; +0x68, 0xcbc3c\nMOV             X0, X19                                                ; +0x6c, 0xcbc40\nMOV             X1, X20                                                ; +0x70, 0xcbc44\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0xcbc48\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0xcbc4c\nMOV             W2, WZR                                                ; +0x7c, 0xcbc50\nLDR             X21, [SP+0x20+var_20],#0x30                            ; +0x80, 0xcbc54\nB               sub_CB674                                              ; +0x84, 0xcbc58", "xrefs": ["sub_56824 @ 0x569c4"], "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"}