; ; cocos2d::extension::CCHttpClient::availableThreadCount from 0x180018190 to 0x180018212 (130 bytes) ; ; 2 xrefs: ; > @ 0x18002fdf8 ; > @ 0x18004aaac ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x180018190 push rdi ; +0x5, 0x180018195 sub rsp, 20h ; +0x6, 0x180018196 mov rdi, [rcx+38h] ; +0xa, 0x18001819a lea rbx, [rdi+40h] ; +0xe, 0x18001819e mov rcx, rbx; _Mtx_t ; +0x12, 0x1800181a2 call cs:_Mtx_lock ; +0x15, 0x1800181a5 test eax, eax ; +0x1b, 0x1800181ab jz short loc_1800181BB ; +0x1d, 0x1800181ad mov ecx, 5 ; +0x1f, 0x1800181af call cs:?_Throw_Cpp_error@std@@YAXH@Z; std::_Throw_Cpp_error(int) ; +0x24, 0x1800181b4 int 3; Trap to Debugger ; +0x2a, 0x1800181ba mov eax, [rbx+4Ch] ; +0x2b, 0x1800181bb cmp eax, 7FFFFFFFh ; +0x2e, 0x1800181be jnz short loc_1800181D6 ; +0x33, 0x1800181c3 dec eax ; +0x35, 0x1800181c5 mov ecx, 6 ; +0x37, 0x1800181c7 mov [rbx+4Ch], eax ; +0x3c, 0x1800181cc call cs:?_Throw_Cpp_error@std@@YAXH@Z; std::_Throw_Cpp_error(int) ; +0x3f, 0x1800181cf int 3; Trap to Debugger ; +0x45, 0x1800181d5 mov rdx, [rdi+0E0h] ; +0x46, 0x1800181d6 xor ecx, ecx ; +0x4d, 0x1800181dd mov rax, [rdi+8] ; +0x4f, 0x1800181df sub rax, [rdi] ; +0x53, 0x1800181e3 add rdx, [rdi+38h] ; +0x56, 0x1800181e6 sar rax, 4 ; +0x5a, 0x1800181ea mov rdi, rax ; +0x5e, 0x1800181ee sub rdi, rdx ; +0x61, 0x1800181f1 cmp rax, rdx ; +0x64, 0x1800181f4 cmovbe rdi, rcx ; +0x67, 0x1800181f7 mov rcx, rbx; _Mtx_t ; +0x6b, 0x1800181fb call cs:_Mtx_unlock ; +0x6e, 0x1800181fe mov rbx, [rsp+28h+arg_0] ; +0x74, 0x180018204 mov rax, rdi ; +0x79, 0x180018209 add rsp, 20h ; +0x7c, 0x18001820c pop rdi ; +0x80, 0x180018210 retn ; +0x81, 0x180018211