	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vector_take                    ## -- Begin function Vector_take
	.p2align	4, 0x90
_Vector_take:                           ## @Vector_take
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%edi, %edi
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	cmpl	%ebx, (%r15)
	setg	%dil
LBB0_2:
	callq	_assert
	movq	%r15, %rdi
	callq	_Vector_isConsistent
	movl	%eax, %edi
	callq	_assert
	movq	8(%r15), %rdi
	movslq	%ebx, %rcx
	movq	(%rdi,%rcx,8), %r14
	movl	(%r15), %esi
	decl	%esi
	movl	%esi, (%r15)
	cmpl	%ebx, %esi
	jle	LBB0_9
## %bb.3:
	movslq	%esi, %r8
	leaq	1(%rcx), %rdx
	movq	8(%rdi,%rcx,8), %rax
	movq	%rax, (%rdi,%rcx,8)
	cmpq	%r8, %rdx
	je	LBB0_9
## %bb.4:
	notl	%ebx
	addl	%esi, %ebx
	movq	%r8, %rsi
	subq	%rcx, %rsi
	addq	$-2, %rsi
	andq	$3, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	leaq	1(%rdx), %rcx
	movq	8(%rax,%rdx,8), %rdi
	movq	%rdi, (%rax,%rdx,8)
	movq	%rcx, %rdx
	decq	%rbx
	jne	LBB0_6
## %bb.7:
	cmpq	$3, %rsi
	jb	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	8(%rax,%rcx,8), %rdx
	movq	%rdx, (%rax,%rcx,8)
	movq	8(%r15), %rax
	movq	16(%rax,%rcx,8), %rdx
	movq	%rdx, 8(%rax,%rcx,8)
	movq	8(%r15), %rax
	movq	24(%rax,%rcx,8), %rdx
	movq	%rdx, 16(%rax,%rcx,8)
	movq	8(%r15), %rax
	movq	32(%rax,%rcx,8), %rdx
	movq	%rdx, 24(%rax,%rcx,8)
	leaq	4(%rcx), %rax
	movq	%rax, %rcx
	cmpq	%rax, %r8
	jne	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	callq	_Vector_isConsistent
	movl	%eax, %edi
	callq	_assert
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rdx, %rcx
	cmpq	$3, %rsi
	jae	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vector_take                    ; -- Begin function Vector_take
	.p2align	2
_Vector_take:                           ; @Vector_take
	.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	x21, x1
	mov	x19, x0
	tbnz	w1, #31, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, w21
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_assert
	mov	x0, x19
	bl	_Vector_isConsistent
	bl	_assert
	ldr	x9, [x19, #8]
	ldr	x20, [x9, w21, sxtw #3]
	ldr	w8, [x19]
	sub	w10, w8, #1
	str	w10, [x19]
	cmp	w10, w21
	b.le	LBB0_7
; %bb.4:
	sxtw	x8, w21
	sxtw	x10, w10
	add	x11, x8, #1
	ldr	x12, [x9, x11, lsl #3]
	str	x12, [x9, x8, lsl #3]
	cmp	x11, x10
	b.eq	LBB0_7
; %bb.5:
	sub	x9, x10, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #8]
	add	x10, x10, x8, lsl #3
	ldr	x11, [x10, #16]
	str	x11, [x10, #8]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x19
	bl	_Vector_isConsistent
	bl	_assert
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
