	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_init                       ## -- Begin function tcp_init
	.p2align	4, 0x90
_tcp_init:                              ## @tcp_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_g_out@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movslq	_tcp_init.cur_stream_id(%rip), %rbx
	leal	1(%rbx), %eax
	shlq	$5, %rbx
	leaq	(%r12,%rbx), %r14
	movq	_STREAM_COUNT@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, _tcp_init.cur_stream_id(%rip)
	movq	(%r12,%rbx), %rcx
	movq	8(%r12,%rbx), %rax
	cmpq	%rdi, %rcx
	jge	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	leaq	(%r12,%rbx), %r13
	addq	$8, %r13
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_xrealloc
	movq	%rax, (%r13)
	movq	%r15, (%r14)
	jmp	LBB0_3
LBB0_1:
	movq	%rcx, %r15
LBB0_3:
	movq	%rax, 24(%r12,%rbx)
	leaq	(%rax,%r15,4), %rax
	movq	%rax, 16(%r12,%rbx)
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_tcp_init.cur_stream_id,4,2 ## @tcp_init.cur_stream_id
	.comm	_g_out,8,3                      ## @g_out
	.comm	_STREAM_COUNT,4,2               ## @STREAM_COUNT
	.comm	_SCARD_LOCK_TCP,4,2             ## @SCARD_LOCK_TCP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_init                       ; -- Begin function tcp_init
	.p2align	2
_tcp_init:                              ; @tcp_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, _g_out@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_out@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	adrp	x9, _tcp_init.cur_stream_id@PAGE
	ldrsw	x10, [x9, _tcp_init.cur_stream_id@PAGEOFF]
	add	x19, x8, x10, lsl #5
	add	w8, w10, #1
Lloh3:
	adrp	x10, _STREAM_COUNT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _STREAM_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sdiv	w11, w8, w10
	msub	w8, w11, w10, w8
	str	w8, [x9, _tcp_init.cur_stream_id@PAGEOFF]
	ldr	x8, [x19]
	mov	x21, x19
	ldr	x0, [x21, #8]!
	cmp	x8, x20
	b.ge	LBB0_2
; %bb.1:
	mov	x1, x20
	bl	_xrealloc
	str	x0, [x21]
	str	x20, [x19]
	b	LBB0_3
LBB0_2:
	mov	x20, x8
LBB0_3:
	add	x8, x0, x20, lsl #2
	stp	x8, x0, [x19, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_tcp_init.cur_stream_id,4,2 ; @tcp_init.cur_stream_id
	.comm	_g_out,8,3                      ; @g_out
	.comm	_STREAM_COUNT,4,2               ; @STREAM_COUNT
	.comm	_SCARD_LOCK_TCP,4,2             ; @SCARD_LOCK_TCP
.subsections_via_symbols
