	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ikcp_ack_push
_ikcp_ack_push:                         ## @ikcp_ack_push
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movslq	(%rdi), %rax
	leaq	1(%rax), %rcx
	cmpq	%rcx, 8(%rdi)
	jae	LBB0_11
## %bb.1:
	movl	$8, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	addq	%rax, %rax
	cmpq	%rcx, %rbx
	jb	LBB0_2
## %bb.3:
	leaq	(,%rbx,8), %rdi
	callq	_ikcp_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %r13
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.5:
	cmpl	$0, (%r12)
	je	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rax,8), %ecx
	movl	%ecx, (%r13,%rax,8)
	movl	4(%rdi,%rax,8), %ecx
	movl	%ecx, 4(%r13,%rax,8)
	incq	%rax
	movslq	(%r12), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_7
LBB0_8:
	callq	_ikcp_free
LBB0_9:
	movq	%r13, 16(%r12)
	movq	%rbx, 8(%r12)
	movl	(%r12), %eax
	jmp	LBB0_10
LBB0_11:
	movq	16(%r12), %r13
LBB0_10:
	addl	%eax, %eax
	cltq
	movl	%r15d, (%r13,%rax,4)
	movl	%r14d, 4(%r13,%rax,4)
	incl	(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%edi, %edi
	callq	_assert
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ikcp_ack_push
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ikcp_ack_push
_ikcp_ack_push:                         ; @ikcp_ack_push
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldrsw	x8, [x0]
	add	x9, x8, #1
	ldr	x10, [x0, #8]
	cmp	x10, x9
	b.hs	LBB0_10
; %bb.1:
	mov	w8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	lsl	x8, x8, #1
	cmp	x23, x9
	b.lo	LBB0_2
; %bb.3:
	lsl	x0, x23, #3
	bl	_ikcp_malloc
	cbz	x0, LBB0_12
; %bb.4:
	mov	x22, x0
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.6:
	mov	x8, #0
	add	x9, x0, #4
	add	x10, x22, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x9, #-4]
	stur	w11, [x10, #-4]
	ldr	w11, [x9], #8
	str	w11, [x10], #8
	add	x8, x8, #1
	ldrsw	x11, [x19]
	cmp	x8, x11
	b.lo	LBB0_7
LBB0_8:
	bl	_ikcp_free
LBB0_9:
	stp	x23, x22, [x19, #8]
	ldr	w8, [x19]
	b	LBB0_11
LBB0_10:
	ldr	x22, [x19, #16]
LBB0_11:
	lsl	w8, w8, #1
	add	x8, x22, w8, sxtw #2
	stp	w21, w20, [x8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	_assert
	bl	_abort
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ikcp_ack_push
.subsections_via_symbols
