	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_cleanup_switches
_cache_cleanup_switches:                ## @cache_cleanup_switches
	.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
	cmpl	$0, 4(%rdi)
	je	LBB0_18
## %bb.1:
	movq	%rdi, %r14
	callq	_cl_qmap_head
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %r15
	je	LBB0_18
## %bb.2:
	movq	_FALSE@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_cl_qmap_end
	movq	%r13, %r15
	cmpq	%rax, %r13
	je	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_cl_qmap_next
	movq	%rax, %r13
	movl	(%rbx), %eax
	movl	(%r15), %ecx
	cmpq	$2, %rcx
	jb	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rdx
	movq	_TRUE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	leaq	-1(%rcx), %r8
	movl	$1, %edi
	cmpq	$4, %r8
	jb	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rdi
	andq	$-4, %rdi
	movd	%eax, %xmm8
	pshufd	$80, %xmm8, %xmm4               ## xmm4 = xmm8[0,0,1,1]
	movd	%r10d, %xmm0
	pshufd	$80, %xmm0, %xmm3               ## xmm3 = xmm0[0,0,1,1]
	leaq	-4(%rdi), %rsi
	movq	%rsi, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %rsi
	andq	$-2, %rsi
	xorl	%ebx, %ebx
	movdqa	%xmm4, %xmm6
	movdqa	%xmm4, %xmm1
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	8(%rdx,%rbx,8), %xmm0
	movdqu	24(%rdx,%rbx,8), %xmm4
	movdqu	40(%rdx,%rbx,8), %xmm5
	por	%xmm0, %xmm5
	movdqu	56(%rdx,%rbx,8), %xmm7
	por	%xmm4, %xmm7
	pcmpeqq	%xmm2, %xmm5
	pshufd	$232, %xmm5, %xmm0              ## xmm0 = xmm5[0,2,2,3]
	movdqa	%xmm3, %xmm4
	blendvps	%xmm0, %xmm6, %xmm4
	pcmpeqq	%xmm2, %xmm7
	pshufd	$232, %xmm7, %xmm0              ## xmm0 = xmm7[0,2,2,3]
	movdqa	%xmm3, %xmm5
	blendvps	%xmm0, %xmm1, %xmm5
	addq	$8, %rbx
	movaps	%xmm4, %xmm6
	movaps	%xmm5, %xmm1
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	shlq	$3, %rbx
	orq	$8, %rbx
	movdqu	(%rdx,%rbx), %xmm0
	movdqu	16(%rdx,%rbx), %xmm1
	pcmpeqq	%xmm2, %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	pcmpeqq	%xmm2, %xmm1
	pshufd	$232, %xmm1, %xmm1              ## xmm1 = xmm1[0,2,2,3]
	movdqa	%xmm3, %xmm6
	blendvps	%xmm0, %xmm4, %xmm6
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm5, %xmm3
	movaps	%xmm6, %xmm4
	movaps	%xmm3, %xmm5
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	pshufd	$80, %xmm8, %xmm1               ## xmm1 = xmm8[0,0,1,1]
	movaps	%xmm4, %xmm0
	pcmpeqd	%xmm1, %xmm0
	blendvps	%xmm0, %xmm5, %xmm4
	movq	%xmm4, %rsi
	movq	%xmm1, %rbx
	cmpq	%rbx, %rsi
	cmovnel	%r10d, %eax
	cmpq	%rdi, %r8
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	orq	$1, %rdi
	movq	_FALSE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rdx,%rdi,8)
	cmovnel	%r10d, %eax
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_14
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_cl_qmap_remove_item
	movq	%r15, %rdi
	callq	_cache_sw_destroy
	jmp	LBB0_17
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	movdqa	%xmm4, %xmm5
	pxor	%xmm2, %xmm2
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_cache_cleanup_switches
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_cleanup_switches
_cache_cleanup_switches:                ; @cache_cleanup_switches
	.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
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_14
; %bb.1:
	mov	x19, x0
	bl	_cl_qmap_head
	mov	x20, x0
	mov	x0, x19
	bl	_cl_qmap_end
	cmp	x20, x0
	b.eq	LBB0_14
; %bb.2:
Lloh0:
	adrp	x23, _FALSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _TRUE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_cl_qmap_end
	mov	x20, x21
	cmp	x21, x0
	b.eq	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	add	x22, x20, #4
	mov	x0, x22
	bl	_cl_qmap_next
	mov	x21, x0
	ldr	w8, [x23]
	ldr	w10, [x20]
	cmp	w10, #2
	b.lo	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x20, #8]
	ldr	w9, [x24]
	sub	x13, x10, #1
	cmp	x13, #8
	b.hs	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #1
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_cl_qmap_remove_item
	mov	x0, x20
	bl	_cache_sw_destroy
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	x14, x13, #0xfffffffffffffff8
	orr	x12, x14, #0x1
	dup.2s	v0, w8
	add	x15, x11, #40
	dup.2s	v2, w9
	mov	x16, x14
	fmov	d4, d0
	fmov	d3, d0
	fmov	d1, d0
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q5, q6, [x15, #-32]
	ldp	q7, q16, [x15], #64
	cmeq.2d	v5, v5, #0
	xtn.2s	v5, v5
	cmeq.2d	v6, v6, #0
	xtn.2s	v6, v6
	cmeq.2d	v7, v7, #0
	xtn.2s	v7, v7
	cmeq.2d	v16, v16, #0
	xtn.2s	v16, v16
	bif.8b	v0, v2, v5
	bif.8b	v4, v2, v6
	bif.8b	v3, v2, v7
	bif.8b	v1, v2, v16
	subs	x16, x16, #8
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	dup.2s	v2, w8
	cmeq.2s	v5, v0, v2
	bit.8b	v0, v4, v5
	cmeq.2s	v4, v0, v2
	bit.8b	v0, v3, v4
	cmeq.2s	v3, v0, v2
	bit.8b	v0, v1, v3
	fmov	x15, d0
	fmov	x16, d2
	cmp	x15, x16
	csel	w8, w8, w9, eq
	cmp	x13, x14
	b.eq	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, x12, lsl #3
	sub	x10, x10, x12
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x11], #8
	cmp	x12, #0
	csel	w8, w8, w9, eq
	subs	x10, x10, #1
	b.ne	LBB0_13
	b	LBB0_3
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_cache_cleanup_switches
.subsections_via_symbols
