	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikcp_input                     ## -- Begin function ikcp_input
	.p2align	4, 0x90
_ikcp_input:                            ## @ikcp_input
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_IKCP_LOG_INPUT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_ikcp_canlog
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_ikcp_log
LBB0_2:
	movl	$-1, %r13d
	testq	%r12, %r12
	je	LBB0_52
## %bb.3:
	movq	_IKCP_OVERHEAD@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpl	%eax, %ebx
	jl	LBB0_52
## %bb.4:
	cltq
	cmpq	%rbx, %rax
	jle	LBB0_6
## %bb.5:
	movq	-112(%rbp), %rbx                ## 8-byte Reload
LBB0_41:
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	__itimediff
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jle	LBB0_52
## %bb.42:
	movl	16(%r15), %ecx
	movl	48(%r15), %edi
	cmpl	%ecx, %edi
	jge	LBB0_52
## %bb.43:
	movq	56(%r15), %rsi
	cmpl	64(%r15), %edi
	jge	LBB0_45
## %bb.44:
	incl	%edi
	movl	%edi, 48(%r15)
	addq	%rsi, 72(%r15)
	jmp	LBB0_50
LBB0_6:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_31:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ikcp_parse_data
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rax
	addq	%rax, %r12
	subq	%rax, %rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_39
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	-120(%rbp), %rsi
	callq	_ikcp_decode32u
	movq	-120(%rbp), %rcx
	cmpq	8(%r15), %rcx
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rdi
	leaq	-96(%rbp), %rsi
	callq	_ikcp_decode8u
	movq	%rax, %rdi
	leaq	-136(%rbp), %rsi
	callq	_ikcp_decode8u
	movq	%rax, %rdi
	leaq	-104(%rbp), %rsi
	callq	_ikcp_decode16u
	movq	%rax, %rdi
	leaq	-56(%rbp), %rsi
	callq	_ikcp_decode32u
	movq	%rax, %rdi
	leaq	-48(%rbp), %rsi
	callq	_ikcp_decode32u
	movq	%rax, %rdi
	leaq	-128(%rbp), %rsi
	callq	_ikcp_decode32u
	movq	%rax, %rdi
	leaq	-80(%rbp), %rsi
	callq	_ikcp_decode32u
	subq	(%r14), %rbx
	movq	%rax, %r12
	movq	-80(%rbp), %rax
	movl	$-2, %r13d
	cmpq	%rax, %rbx
	jl	LBB0_52
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	andl	$-2147483648, %eax              ## imm = 0x80000000
	testq	%rax, %rax
	jne	LBB0_52
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-96(%rbp), %rax
	movl	$-3, %r13d
	movq	_IKCP_CMD_PUSH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_IKCP_CMD_ACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_IKCP_CMD_WASK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_IKCP_CMD_WINS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_52
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-104(%rbp), %eax
	movl	%eax, 16(%r15)
	movq	-128(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ikcp_parse_una
	movq	%r15, %rdi
	callq	_ikcp_shrink_buf
	movq	-96(%rbp), %rax
	movq	_IKCP_CMD_ACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r15), %rdi
	movq	-56(%rbp), %rsi
	callq	__itimediff
	testq	%rax, %rax
	js	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r15), %rdi
	movq	-56(%rbp), %rsi
	callq	__itimediff
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ikcp_update_ack
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ikcp_parse_ack
	movq	%r15, %rdi
	callq	_ikcp_shrink_buf
	movq	-48(%rbp), %rdi
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	__itimediff
	testq	%rax, %rax
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_IKCP_CMD_PUSH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_IKCP_LOG_IN_DATA@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_ikcp_canlog
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %esi
	movq	-48(%rbp), %rcx
	movq	-56(%rbp), %r8
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_ikcp_log
LBB0_27:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rdi
	movq	40(%r15), %rsi
	addq	32(%r15), %rsi
	callq	__itimediff
	testq	%rax, %rax
	jns	LBB0_38
## %bb.28:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ikcp_ack_push
	movq	-48(%rbp), %rdi
	movq	32(%r15), %rsi
	callq	__itimediff
	testq	%rax, %rax
	js	LBB0_38
## %bb.29:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ikcp_segment_new
	movq	%rax, %r13
	movq	-120(%rbp), %rax
	movq	%rax, 64(%r13)
	movq	-96(%rbp), %rax
	movq	%rax, 56(%r13)
	movq	-136(%rbp), %rax
	movq	%rax, 48(%r13)
	movq	-104(%rbp), %rax
	movq	%rax, 40(%r13)
	movq	-56(%rbp), %rax
	movq	%rax, 32(%r13)
	movq	-48(%rbp), %rax
	movq	%rax, 24(%r13)
	movq	-128(%rbp), %rax
	movq	%rax, 16(%r13)
	movq	-80(%rbp), %rdx
	movq	%rdx, 8(%r13)
	testq	%rdx, %rdx
	jle	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_memcpy
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_IKCP_CMD_WASK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_IKCP_ASK_TELL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 80(%r15)
	movq	_IKCP_LOG_IN_PROBE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_ikcp_canlog
	testq	%rax, %rax
	je	LBB0_38
## %bb.34:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_ikcp_log
	jmp	LBB0_38
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_IKCP_LOG_IN_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ikcp_canlog
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	testq	%rax, %rax
	je	LBB0_38
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_IKCP_LOG_IN_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-48(%rbp), %r14
	movq	24(%r15), %rdi
	movq	-56(%rbp), %rsi
	callq	__itimediff
	movq	88(%r15), %r9
	movq	%r15, %rdi
	movl	%r13d, %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rcx
	movq	_IKCP_OVERHEAD@GOTPCREL(%rip), %r14
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_ikcp_log
	jmp	LBB0_38
LBB0_35:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_IKCP_CMD_WINS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_52
## %bb.36:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_IKCP_LOG_IN_WINS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_ikcp_canlog
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %esi
	movq	-104(%rbp), %rcx
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_ikcp_log
	jmp	LBB0_38
LBB0_8:
	movl	$-1, %r13d
	jmp	LBB0_52
LBB0_39:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_41
## %bb.40:
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_ikcp_parse_fastack
	jmp	LBB0_41
LBB0_45:
	movq	72(%r15), %rbx
	cmpq	%rsi, %rbx
	cmovleq	%rsi, %rbx
	movslq	%edi, %r8
	movq	%rsi, %rax
	imulq	%rsi, %rax
	movq	%rax, %rdx
	orq	%rbx, %rdx
	shrq	$32, %rdx
	je	LBB0_46
## %bb.47:
	cqto
	idivq	%rbx
	jmp	LBB0_48
LBB0_46:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
LBB0_48:
	leaq	15(%rsi), %rdx
	testq	%rsi, %rsi
	cmovnsq	%rsi, %rdx
	sarq	$4, %rdx
	addq	%rdx, %rbx
	addq	%rax, %rbx
	movq	%rbx, 72(%r15)
	incq	%r8
	movq	%rsi, %rax
	imulq	%r8, %rax
	cmpq	%rbx, %rax
	jg	LBB0_50
## %bb.49:
	movl	%r8d, 48(%r15)
	movl	%r8d, %edi
LBB0_50:
	cmpl	%ecx, %edi
	jle	LBB0_52
## %bb.51:
	movslq	%ecx, %rax
	movl	%ecx, 48(%r15)
	imulq	%rax, %rsi
	movq	%rsi, 72(%r15)
LBB0_52:
	movl	%r13d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IKCP_LOG_INPUT,4,2             ## @IKCP_LOG_INPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[RI] %d bytes"

	.comm	_IKCP_OVERHEAD,8,3              ## @IKCP_OVERHEAD
	.comm	_IKCP_CMD_PUSH,8,3              ## @IKCP_CMD_PUSH
	.comm	_IKCP_CMD_ACK,8,3               ## @IKCP_CMD_ACK
	.comm	_IKCP_CMD_WASK,8,3              ## @IKCP_CMD_WASK
	.comm	_IKCP_CMD_WINS,8,3              ## @IKCP_CMD_WINS
	.comm	_IKCP_LOG_IN_ACK,4,2            ## @IKCP_LOG_IN_ACK
	.comm	_IKCP_LOG_IN_DATA,4,2           ## @IKCP_LOG_IN_DATA
L_.str.1:                               ## @.str.1
	.asciz	"input ack: sn=%lu rtt=%ld rto=%ld"

L_.str.2:                               ## @.str.2
	.asciz	"input psh: sn=%lu ts=%lu"

	.comm	_IKCP_ASK_TELL,4,2              ## @IKCP_ASK_TELL
	.comm	_IKCP_LOG_IN_PROBE,4,2          ## @IKCP_LOG_IN_PROBE
L_.str.3:                               ## @.str.3
	.asciz	"input probe"

	.comm	_IKCP_LOG_IN_WINS,4,2           ## @IKCP_LOG_IN_WINS
L_.str.4:                               ## @.str.4
	.asciz	"input wins: %lu"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikcp_input                     ; -- Begin function ikcp_input
	.p2align	2
_ikcp_input:                            ; @ikcp_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x28, x2
	mov	x27, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x20, _IKCP_LOG_INPUT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IKCP_LOG_INPUT@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ikcp_canlog
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	str	x28, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ikcp_log
LBB0_2:
	mov	w0, #-1
	cbz	x27, LBB0_49
; %bb.3:
Lloh4:
	adrp	x26, _IKCP_OVERHEAD@GOTPAGE
Lloh5:
	ldr	x26, [x26, _IKCP_OVERHEAD@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	w28, w8
	b.lt	LBB0_49
; %bb.4:
	cmp	x28, w8, sxtw
	b.ge	LBB0_9
LBB0_5:
	ldr	x0, [x19]
	mov	x1, x21
	bl	__itimediff
	cmp	x0, #1
	b.lt	LBB0_48
; %bb.6:
	ldr	w10, [x19, #48]
	ldr	w8, [x19, #16]
	cmp	w10, w8
	b.ge	LBB0_48
; %bb.7:
	ldr	x9, [x19, #56]
	ldr	w11, [x19, #64]
	cmp	w10, w11
	b.ge	LBB0_44
; %bb.8:
	add	w10, w10, #1
	str	w10, [x19, #48]
	ldr	x11, [x19, #72]
	add	x11, x11, x9
	str	x11, [x19, #72]
	b	LBB0_46
LBB0_9:
	stp	x21, xzr, [sp, #32]             ; 16-byte Folded Spill
	mov	w20, #0
	mov	x22, #0
Lloh6:
	adrp	x25, _IKCP_CMD_PUSH@GOTPAGE
Lloh7:
	ldr	x25, [x25, _IKCP_CMD_PUSH@GOTPAGEOFF]
Lloh8:
	adrp	x24, _IKCP_CMD_ACK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _IKCP_CMD_ACK@GOTPAGEOFF]
Lloh10:
	adrp	x23, _IKCP_CMD_WASK@GOTPAGE
Lloh11:
	ldr	x23, [x23, _IKCP_CMD_WASK@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w20, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #88]
	add	x27, x27, x8
	ldrsw	x9, [x26]
	sub	x28, x21, x8
	cmp	x28, x9
	b.lt	LBB0_42
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #72
	mov	x0, x27
	bl	_ikcp_decode32u
	ldr	x8, [sp, #72]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_40
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x1, sp, #56
	bl	_ikcp_decode8u
	add	x1, sp, #48
	bl	_ikcp_decode8u
	add	x1, sp, #64
	bl	_ikcp_decode16u
	sub	x1, x29, #88
	bl	_ikcp_decode32u
	add	x1, sp, #96
	bl	_ikcp_decode32u
	add	x1, sp, #80
	bl	_ikcp_decode32u
	add	x1, sp, #88
	bl	_ikcp_decode32u
	ldr	x8, [x26]
	ldr	x9, [sp, #88]
	and	x10, x9, #0x80000000
	sub	x21, x28, x8
	cmp	x21, x9
	ccmp	x10, #0, #0, ge
	b.ne	LBB0_41
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #56]
	ldr	x9, [x25]
	ldr	x10, [x24]
	ldr	x11, [x23]
Lloh12:
	adrp	x12, _IKCP_CMD_WINS@GOTPAGE
Lloh13:
	ldr	x12, [x12, _IKCP_CMD_WINS@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_39
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x27, x0
	ldr	x8, [sp, #64]
	str	w8, [x19, #16]
	ldr	x1, [sp, #80]
	mov	x0, x19
	bl	_ikcp_parse_una
	mov	x0, x19
	bl	_ikcp_shrink_buf
	ldr	x8, [sp, #56]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x19, #24]
	ldur	x1, [x29, #-88]
	bl	__itimediff
	tbnz	x0, #63, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x19, #24]
	ldur	x1, [x29, #-88]
	bl	__itimediff
	mov	x1, x0
	mov	x0, x19
	bl	_ikcp_update_ack
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x1, [sp, #96]
	mov	x0, x19
	bl	_ikcp_parse_ack
	mov	x0, x19
	bl	_ikcp_shrink_buf
	ldr	x0, [sp, #96]
Lloh15:
	adrp	x28, _IKCP_LOG_IN_DATA@GOTPAGE
Lloh16:
	ldr	x28, [x28, _IKCP_LOG_IN_DATA@GOTPAGEOFF]
	cbz	w20, LBB0_32
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x1, x22
	bl	__itimediff
	cmp	x0, #1
	b.lt	LBB0_33
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x22, [sp, #96]
	ldur	x8, [x29, #-88]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_33
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh17:
	adrp	x28, _IKCP_LOG_IN_DATA@GOTPAGE
Lloh18:
	ldr	x28, [x28, _IKCP_LOG_IN_DATA@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_ikcp_canlog
	cbz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x28]
	ldr	x8, [sp, #96]
	ldur	x9, [x29, #-88]
	stp	x8, x9, [sp]
	mov	x0, x19
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_ikcp_log
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [sp, #96]
	ldp	x8, x9, [x19, #32]
	add	x1, x9, x8
	bl	__itimediff
	tbz	x0, #63, LBB0_11
; %bb.25:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x1, [sp, #96]
	ldur	x2, [x29, #-88]
	mov	x0, x19
	bl	_ikcp_ack_push
	ldr	x0, [sp, #96]
	ldr	x1, [x19, #32]
	bl	__itimediff
	tbnz	x0, #63, LBB0_11
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x1, [sp, #88]
	mov	x0, x19
	bl	_ikcp_segment_new
	mov	x28, x0
	ldr	x8, [sp, #72]
	ldr	x9, [sp, #56]
	stp	x9, x8, [x0, #56]
	ldr	x8, [sp, #48]
	ldr	x9, [sp, #64]
	stp	x9, x8, [x0, #40]
	ldur	x8, [x29, #-88]
	ldp	x2, x9, [sp, #88]
	stp	x9, x8, [x0, #24]
	ldr	x8, [sp, #80]
	stp	x2, x8, [x0, #8]
	cmp	x2, #1
	b.lt	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x28]
	mov	x1, x27
	bl	_memcpy
LBB0_28:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x28
	bl	_ikcp_parse_data
	b	LBB0_11
LBB0_29:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_35
; %bb.30:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh21:
	adrp	x8, _IKCP_ASK_TELL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IKCP_ASK_TELL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #80]
	orr	w8, w9, w8
	str	w8, [x19, #80]
Lloh24:
	adrp	x28, _IKCP_LOG_IN_PROBE@GOTPAGE
Lloh25:
	ldr	x28, [x28, _IKCP_LOG_IN_PROBE@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_ikcp_canlog
	cbz	x0, LBB0_11
; %bb.31:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x28]
	mov	x0, x19
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_38
LBB0_32:                                ;   in Loop: Header=BB0_12 Depth=1
	ldur	x8, [x29, #-88]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	x22, x0
LBB0_33:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh28:
	adrp	x8, _IKCP_LOG_IN_ACK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IKCP_LOG_IN_ACK@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ikcp_canlog
	cbz	x0, LBB0_10
; %bb.34:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w28, [x28]
	ldr	x20, [sp, #96]
	ldr	x0, [x19, #24]
	ldur	x1, [x29, #-88]
	bl	__itimediff
	ldr	x8, [x19, #88]
	stp	x0, x8, [sp, #8]
	str	x20, [sp]
	mov	x0, x19
	mov	x1, x28
Lloh31:
	adrp	x2, l_.str.1@PAGE
Lloh32:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_ikcp_log
	b	LBB0_10
LBB0_35:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh33:
	adrp	x9, _IKCP_CMD_WINS@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IKCP_CMD_WINS@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh36:
	adrp	x28, _IKCP_LOG_IN_WINS@GOTPAGE
Lloh37:
	ldr	x28, [x28, _IKCP_LOG_IN_WINS@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_ikcp_canlog
	cbz	x0, LBB0_11
; %bb.37:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x28]
	ldr	x8, [sp, #64]
	str	x8, [sp]
	mov	x0, x19
Lloh38:
	adrp	x2, l_.str.4@PAGE
Lloh39:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_38:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_ikcp_log
	b	LBB0_11
LBB0_39:
	mov	w0, #-3
	b	LBB0_49
LBB0_40:
	mov	w0, #-1
	b	LBB0_49
LBB0_41:
	mov	w0, #-2
	b	LBB0_49
LBB0_42:
	ldr	x21, [sp, #32]                  ; 8-byte Folded Reload
	cbz	w20, LBB0_5
; %bb.43:
	mov	x0, x19
	mov	x1, x22
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	bl	_ikcp_parse_fastack
	b	LBB0_5
LBB0_44:
	sxtw	x11, w10
	ldr	x12, [x19, #72]
	cmp	x12, x9
	csel	x12, x12, x9, gt
	mul	x13, x9, x9
	sdiv	x13, x13, x12
	add	x14, x9, #15
	cmp	x9, #0
	csel	x14, x14, x9, lt
	add	x12, x12, x14, asr #4
	add	x11, x11, #1
	mul	x14, x9, x11
	add	x12, x12, x13
	cmp	x14, x12
	str	x12, [x19, #72]
	b.gt	LBB0_46
; %bb.45:
	str	w11, [x19, #48]
	mov	x10, x11
LBB0_46:
	cmp	w10, w8
	b.le	LBB0_48
; %bb.47:
	mov	w0, #0
	sxtw	x10, w8
	str	w8, [x19, #48]
	mul	x8, x9, x10
	str	x8, [x19, #72]
	b	LBB0_49
LBB0_48:
	mov	w0, #0
LBB0_49:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_IKCP_LOG_INPUT,4,2             ; @IKCP_LOG_INPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[RI] %d bytes"

	.comm	_IKCP_OVERHEAD,8,3              ; @IKCP_OVERHEAD
	.comm	_IKCP_CMD_PUSH,8,3              ; @IKCP_CMD_PUSH
	.comm	_IKCP_CMD_ACK,8,3               ; @IKCP_CMD_ACK
	.comm	_IKCP_CMD_WASK,8,3              ; @IKCP_CMD_WASK
	.comm	_IKCP_CMD_WINS,8,3              ; @IKCP_CMD_WINS
	.comm	_IKCP_LOG_IN_ACK,4,2            ; @IKCP_LOG_IN_ACK
	.comm	_IKCP_LOG_IN_DATA,4,2           ; @IKCP_LOG_IN_DATA
l_.str.1:                               ; @.str.1
	.asciz	"input ack: sn=%lu rtt=%ld rto=%ld"

l_.str.2:                               ; @.str.2
	.asciz	"input psh: sn=%lu ts=%lu"

	.comm	_IKCP_ASK_TELL,4,2              ; @IKCP_ASK_TELL
	.comm	_IKCP_LOG_IN_PROBE,4,2          ; @IKCP_LOG_IN_PROBE
l_.str.3:                               ; @.str.3
	.asciz	"input probe"

	.comm	_IKCP_LOG_IN_WINS,4,2           ; @IKCP_LOG_IN_WINS
l_.str.4:                               ; @.str.4
	.asciz	"input wins: %lu"

.subsections_via_symbols
