	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikcp_setmtu                    ## -- Begin function ikcp_setmtu
	.p2align	4, 0x90
_ikcp_setmtu:                           ## @ikcp_setmtu
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	cmpl	$50, %esi
	jl	LBB0_5
## %bb.1:
	movl	%esi, %ebx
	movq	_IKCP_OVERHEAD@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	cmpl	%esi, %ecx
	jg	LBB0_5
## %bb.2:
	movq	%rdi, %r14
	addl	%ebx, %ecx
	leal	(%rcx,%rcx,2), %edi
	callq	_ikcp_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movl	%ebx, (%r14)
	subl	(%r12), %ebx
	movl	%ebx, 4(%r14)
	movq	8(%r14), %rdi
	callq	_ikcp_free
	movq	%r15, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movl	$-2, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IKCP_OVERHEAD,4,2              ## @IKCP_OVERHEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ikcp_setmtu                    ; -- Begin function ikcp_setmtu
	.p2align	2
_ikcp_setmtu:                           ; @ikcp_setmtu
	.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
	cmp	w1, #50
	b.lt	LBB0_2
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x22, _IKCP_OVERHEAD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IKCP_OVERHEAD@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w1
	b.le	LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
LBB0_4:
	mov	x19, x0
	add	w8, w8, w20
	add	w0, w8, w8, lsl #1
	bl	_ikcp_malloc
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x0
	str	w20, [x19]
	ldr	w8, [x22]
	sub	w8, w20, w8
	str	w8, [x19, #4]
	ldr	x0, [x19, #8]
	bl	_ikcp_free
	mov	w0, #0
	str	x21, [x19, #8]
	b	LBB0_3
LBB0_6:
	mov	w0, #-2
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IKCP_OVERHEAD,4,2              ; @IKCP_OVERHEAD
.subsections_via_symbols
