	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikcp_create                    ## -- Begin function ikcp_create
	.p2align	4, 0x90
_ikcp_create:                           ## @ikcp_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movl	$4, %edi
	callq	_ikcp_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	%r15d, 352(%rax)
	movq	%r14, 344(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 288(%rax)
	movups	%xmm0, 304(%rax)
	movups	%xmm0, 320(%rax)
	movq	$0, 336(%rax)
	movq	_IKCP_WND_SND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 280(%rbx)
	movq	_IKCP_WND_RCV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 272(%rbx)
	movq	%rax, 264(%rbx)
	movups	%xmm0, 240(%rbx)
	movq	$0, 256(%rbx)
	movq	_IKCP_MTU_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_IKCP_OVERHEAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	movl	%edx, 4(%rbx)
	movq	$0, 232(%rbx)
	addl	%eax, %ecx
	leal	(%rcx,%rcx,2), %edi
	callq	_ikcp_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	228(%rbx), %rdi
	callq	_iqueue_init
	leaq	224(%rbx), %rdi
	callq	_iqueue_init
	leaq	220(%rbx), %rdi
	callq	_iqueue_init
	movq	%rbx, %rdi
	addq	$216, %rdi
	callq	_iqueue_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 136(%rbx)
	movups	%xmm0, 152(%rbx)
	movups	%xmm0, 168(%rbx)
	movups	%xmm0, 184(%rbx)
	movups	%xmm0, 200(%rbx)
	movq	_IKCP_RTO_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 132(%rbx)
	movq	_IKCP_RTO_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%rbx)
	movq	$0, 120(%rbx)
	movq	_IKCP_INTERVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 112(%rbx)
	movq	%rax, 104(%rbx)
	movups	%xmm0, 80(%rbx)
	movq	$0, 96(%rbx)
	movq	_IKCP_THRESH_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	$0, 64(%rbx)
	movq	_IKCP_FASTACK_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movups	%xmm0, 40(%rbx)
	movq	_IKCP_DEADLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movups	%xmm0, 16(%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_ikcp_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IKCP_WND_SND,4,2               ## @IKCP_WND_SND
	.comm	_IKCP_WND_RCV,8,3               ## @IKCP_WND_RCV
	.comm	_IKCP_MTU_DEF,4,2               ## @IKCP_MTU_DEF
	.comm	_IKCP_OVERHEAD,4,2              ## @IKCP_OVERHEAD
	.comm	_IKCP_RTO_DEF,4,2               ## @IKCP_RTO_DEF
	.comm	_IKCP_RTO_MIN,4,2               ## @IKCP_RTO_MIN
	.comm	_IKCP_INTERVAL,8,3              ## @IKCP_INTERVAL
	.comm	_IKCP_THRESH_INIT,4,2           ## @IKCP_THRESH_INIT
	.comm	_IKCP_FASTACK_LIMIT,4,2         ## @IKCP_FASTACK_LIMIT
	.comm	_IKCP_DEADLINK,4,2              ## @IKCP_DEADLINK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikcp_create                    ; -- Begin function ikcp_create
	.p2align	2
_ikcp_create:                           ; @ikcp_create
	.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, x1
	mov	x21, x0
	mov	w0, #4
	bl	_ikcp_malloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	str	w21, [x19, #352]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #288]
	str	q0, [x19, #320]
	stp	xzr, x20, [x19, #336]
Lloh0:
	adrp	x8, _IKCP_WND_SND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IKCP_WND_SND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #280]
Lloh3:
	adrp	x8, _IKCP_WND_RCV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IKCP_WND_RCV@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #264]
Lloh6:
	adrp	x8, _IKCP_MTU_DEF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IKCP_MTU_DEF@GOTPAGEOFF]
	stp	xzr, xzr, [x19, #248]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh9:
	adrp	x9, _IKCP_OVERHEAD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IKCP_OVERHEAD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	sub	w10, w8, w9
	str	w10, [x19, #4]
	stp	xzr, xzr, [x19, #232]
	add	w8, w9, w8
	add	w0, w8, w8, lsl #1
	bl	_ikcp_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.2:
	add	x0, x19, #228
	bl	_iqueue_init
	add	x0, x19, #224
	bl	_iqueue_init
	add	x0, x19, #220
	bl	_iqueue_init
	add	x0, x19, #216
	bl	_iqueue_init
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #136]
	stur	q0, [x19, #152]
	stur	q0, [x19, #168]
	stur	q0, [x19, #184]
	stur	q0, [x19, #200]
Lloh12:
	adrp	x8, _IKCP_RTO_DEF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IKCP_RTO_DEF@GOTPAGEOFF]
Lloh14:
	adrp	x9, _IKCP_RTO_MIN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IKCP_RTO_MIN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #128]
Lloh18:
	adrp	x8, _IKCP_INTERVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IKCP_INTERVAL@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	stp	x8, xzr, [x19, #112]
	stp	xzr, x8, [x19, #96]
	stp	xzr, xzr, [x19, #80]
Lloh21:
	adrp	x8, _IKCP_THRESH_INIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IKCP_THRESH_INIT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #72]
	str	xzr, [x19, #64]
Lloh24:
	adrp	x8, _IKCP_FASTACK_LIMIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IKCP_FASTACK_LIMIT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	stp	xzr, xzr, [x19, #40]
Lloh27:
	adrp	x8, _IKCP_DEADLINK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IKCP_DEADLINK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	stp	xzr, xzr, [x19, #16]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_ikcp_free
	mov	x19, #0
LBB0_4:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IKCP_WND_SND,4,2               ; @IKCP_WND_SND
	.comm	_IKCP_WND_RCV,8,3               ; @IKCP_WND_RCV
	.comm	_IKCP_MTU_DEF,4,2               ; @IKCP_MTU_DEF
	.comm	_IKCP_OVERHEAD,4,2              ; @IKCP_OVERHEAD
	.comm	_IKCP_RTO_DEF,4,2               ; @IKCP_RTO_DEF
	.comm	_IKCP_RTO_MIN,4,2               ; @IKCP_RTO_MIN
	.comm	_IKCP_INTERVAL,8,3              ; @IKCP_INTERVAL
	.comm	_IKCP_THRESH_INIT,4,2           ; @IKCP_THRESH_INIT
	.comm	_IKCP_FASTACK_LIMIT,4,2         ; @IKCP_FASTACK_LIMIT
	.comm	_IKCP_DEADLINK,4,2              ; @IKCP_DEADLINK
.subsections_via_symbols
