	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_vector_remove
_check_vector_remove:                   ## @check_vector_remove
	.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
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_vector_lock
	movq	_check_vector@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_5
## %bb.1:
	movq	8(%r14), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rax,%rbx,8)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %rsi
	jne	LBB0_2
## %bb.4:
	movl	%esi, %ebx
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
	movl	(%r14), %esi
LBB0_6:
	decl	%esi
	cmpl	%esi, %ebx
	jge	LBB0_12
## %bb.7:
	movl	%ebx, %edi
	movl	%esi, %r9d
	movl	%esi, %eax
	subl	%ebx, %eax
	movq	%rdi, %r8
	notq	%r8
	addq	%r9, %r8
	andq	$3, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rbx
	leaq	1(%rdi), %rdx
	movq	8(%rbx,%rdi,8), %rcx
	movq	%rcx, (%rbx,%rdi,8)
	movq	%rdx, %rdi
	decq	%rax
	jne	LBB0_9
## %bb.10:
	cmpq	$3, %r8
	jb	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	8(%rax,%rdx,8), %rcx
	movq	%rcx, (%rax,%rdx,8)
	movq	8(%r14), %rax
	movq	16(%rax,%rdx,8), %rcx
	movq	%rcx, 8(%rax,%rdx,8)
	movq	8(%r14), %rax
	movq	24(%rax,%rdx,8), %rcx
	movq	%rcx, 16(%rax,%rdx,8)
	movq	8(%r14), %rax
	movq	32(%rax,%rdx,8), %rcx
	movq	%rcx, 24(%rax,%rdx,8)
	leaq	4(%rdx), %rax
	movq	%rax, %rdx
	cmpq	%rax, %r9
	jne	LBB0_11
LBB0_12:
	movl	%esi, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vector_unlock                  ## TAILCALL
LBB0_8:
	movq	%rdi, %rdx
	cmpq	$3, %r8
	jae	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_check_vector,16,3              ## @check_vector
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no entry found"

	.no_dead_strip	_check_vector_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_vector_remove
_check_vector_remove:                   ; @check_vector_remove
	.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	x19, x0
	bl	_vector_lock
Lloh0:
	adrp	x20, _check_vector@GOTPAGE
Lloh1:
	ldr	x20, [x20, _check_vector@GOTPAGEOFF]
	ldr	w21, [x20]
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, #0
	ldr	x9, [x20, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x8, lsl #3]
	cmp	x10, x19
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x21, x8
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
	ldr	w9, [x20]
	b	LBB0_7
LBB0_6:
	mov	x9, x21
	mov	x21, x8
LBB0_7:
	sub	w8, w9, #1
	cmp	w21, w8
	b.ge	LBB0_10
; %bb.8:
	mov	w9, w21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, #8]
	add	x10, x10, x9, lsl #3
	add	x11, x9, #1
	ldr	x9, [x10, #8]
	str	x9, [x10]
	mov	x9, x11
	cmp	x8, x11
	b.ne	LBB0_9
LBB0_10:
	str	w8, [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
	b	_vector_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_check_vector,16,3              ; @check_vector
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no entry found"

	.no_dead_strip	_check_vector_remove
.subsections_via_symbols
