	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikcp_update                    ## -- Begin function ikcp_update
	.p2align	4, 0x90
_ikcp_update:                           ## @ikcp_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	%rsi, 16(%rdi)
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %rsi
	jmp	LBB0_3
LBB0_2:
	movl	$1, (%rbx)
	movq	%rax, 24(%rbx)
	movq	%rax, %rsi
LBB0_3:
	movq	%rax, %rdi
	callq	__itimediff
	leal	-10000(%rax), %ecx
	cmpl	$-20001, %ecx                   ## imm = 0xB1DF
	ja	LBB0_5
## %bb.4:
	movq	16(%rbx), %rdi
	movq	%rdi, %rsi
	jmp	LBB0_7
LBB0_5:
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	movq	16(%rbx), %rdi
	movq	24(%rbx), %rsi
LBB0_7:
	addq	8(%rbx), %rsi
	movq	%rsi, 24(%rbx)
	callq	__itimediff
	testq	%rax, %rax
	js	LBB0_9
## %bb.8:
	movq	8(%rbx), %rax
	addq	16(%rbx), %rax
	movq	%rax, 24(%rbx)
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ikcp_flush                     ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikcp_update                    ; -- Begin function ikcp_update
	.p2align	2
_ikcp_update:                           ; @ikcp_update
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
	str	x1, [x0, #16]
	ldr	w9, [x0]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	x1, [x19, #24]
	b	LBB0_3
LBB0_2:
	mov	w9, #1
	str	w9, [x19]
	str	x8, [x19, #24]
	mov	x1, x8
LBB0_3:
	mov	x0, x8
	bl	__itimediff
	mov	w8, #-10000
	mov	w9, #-20001
	add	w8, w0, w8
	cmp	w8, w9
	b.hi	LBB0_5
; %bb.4:
	ldr	x0, [x19, #16]
	mov	x8, x0
	b	LBB0_7
LBB0_5:
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldp	x0, x8, [x19, #16]
LBB0_7:
	ldr	x9, [x19, #8]
	add	x1, x8, x9
	str	x1, [x19, #24]
	bl	__itimediff
	tbnz	x0, #63, LBB0_9
; %bb.8:
	ldp	x9, x8, [x19, #8]
	add	x8, x9, x8
	str	x8, [x19, #24]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ikcp_flush
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
