	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_semipermanent_depend_for_sp
_remove_semipermanent_depend_for_sp:    ## @remove_semipermanent_depend_for_sp
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%esi, %ebx
	movq	(%rdi), %r12
	movq	8(%rdi), %rax
	movslq	%esi, %r13
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rax
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r14
	movl	(%rax,%r14,4), %edx
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movl	%r13d, %esi
	callq	_get_next_switch
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	cmpl	%r14d, %r13d
	jne	LBB0_1
LBB0_26:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %r13d
	movslq	%r15d, %rax
	xorl	%r14d, %r14d
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	movq	(%r12,%rax,8), %rax
	movslq	%ebx, %r12
	movq	(%rax,%r12,8), %rax
	movslq	%r13d, %r15
	movq	(%rax,%r15,8), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_CL_ASSERT
	movl	(%rbx), %eax
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movq	(%rax,%r12,8), %rax
	movq	$0, (%rax,%r15,8)
	movq	%rbx, %rdi
	callq	_free
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r13d, %ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	decl	%eax
	movl	%eax, (%rbx)
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	cmpl	-60(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%r15d, %esi
	movq	%rbx, %r12
	callq	_get_next_switch
	movl	4(%rbx), %r10d
	testl	%r10d, %r10d
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rcx
	movq	8(%rbx), %r8
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rdx
	movq	(%rdx,%r15,8), %rdx
	cltq
	movq	(%rdx,%rax,8), %r11
	leaq	-1(%r10), %rdx
	movl	%r10d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rdx
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	xorl	%edi, %edi
	movl	$1, %r15d
	jmp	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	andl	$-4, %r10d
	leaq	56(%r8), %rbx
	xorl	%edx, %edx
	xorl	%edi, %edi
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	1(%rdx), %esi
	leal	2(%rdx), %ecx
	leal	3(%rdx), %eax
	cmpq	%r11, -48(%rbx)
	cmovel	%edx, %r14d
	cmovel	%r15d, %edi
	cmpq	%r11, -32(%rbx)
	cmovel	%esi, %r14d
	cmovel	%r15d, %edi
	cmpq	%r11, -16(%rbx)
	cmovel	%ecx, %r14d
	cmovel	%r15d, %edi
	cmpq	%r11, (%rbx)
	cmovel	%eax, %r14d
	cmovel	%r15d, %edi
	addq	$4, %rdx
	addq	$64, %rbx
	cmpq	%r10, %rdx
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r9, %r9
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %rax
	shlq	$4, %rax
	leaq	(%r8,%rax), %rcx
	addq	$8, %rcx
	shlq	$4, %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r11, (%rcx,%rbx)
	cmovel	%edx, %r14d
	cmovel	%r15d, %edi
	incl	%edx
	addq	$16, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_CL_ASSERT
	movq	8(%r12), %rcx
	movslq	%r14d, %r9
	movq	%r9, %rdx
	shlq	$4, %rdx
	movl	(%rcx,%rdx), %eax
	cmpl	$1, %eax
	jne	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %eax
	decl	%eax
	cmpl	%eax, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	subl	%r14d, %ebx
	movq	%r9, %r8
	testb	$1, %bl
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r9), %r8
	movq	%r8, %rdi
	shlq	$4, %rdi
	movq	8(%rcx,%rdi), %rbx
	movq	%rbx, 8(%rcx,%rdx)
	movl	(%rcx,%rdi), %edi
	movl	%edi, (%rcx,%rdx)
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %rdi
	notq	%r9
	addq	%rdi, %r9
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	subq	%r8, %rdi
	shlq	$4, %r8
	addq	%r8, %rcx
	addq	$40, %rcx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-16(%rcx), %rdx
	movq	%rdx, -32(%rcx)
	movl	-24(%rcx), %edx
	movl	%edx, -40(%rcx)
	movq	(%rcx), %rdx
	movq	%rdx, -16(%rcx)
	movl	-8(%rcx), %edx
	movl	%edx, -24(%rcx)
	addq	$32, %rcx
	addq	$-2, %rdi
	jne	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, 4(%r12)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%rdx, %rcx
	decl	%eax
	movl	%eax, (%rcx)
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%r15d, %esi
	callq	_get_next_switch
	movl	%eax, %r13d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_remove_semipermanent_depend_for_sp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_semipermanent_depend_for_sp
_remove_semipermanent_depend_for_sp:    ; @remove_semipermanent_depend_for_sp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	ldp	x26, x25, [x0]
	ldr	x8, [x25, w1, sxtw #3]
	ldr	x8, [x8]
	ldr	w2, [x8, w2, sxtw #2]
	bl	_get_next_switch
	cmp	w24, w19
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	x21, x0
	mov	w27, #0
	sxtw	x8, w19
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	sxtw	x28, w22
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x8, [x26, x28, lsl #3]
	ldr	x8, [x8, w24, sxtw #3]
	sxtw	x22, w21
	ldr	x23, [x8, w21, sxtw #3]
	cmp	x23, #0
	cset	w0, ne
	bl	_CL_ASSERT
	ldr	w8, [x23]
	subs	w8, w8, #1
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w24
	ldr	x9, [x26, x28, lsl #3]
	ldr	x8, [x9, x8, lsl #3]
	str	xzr, [x8, x22, lsl #3]
	mov	x0, x23
	bl	_free
	cmp	w22, w19
	b.ne	LBB0_20
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w8, [x23]
	cmp	w22, w19
	b.eq	LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, x22, lsl #3]
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x20
	mov	x1, x22
	bl	_get_next_switch
	ldr	w9, [x23, #4]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x0
	mov	x10, #0
	mov	w0, #0
	ldr	x11, [x26, x28, lsl #3]
	ldr	x12, [x23, #8]
	ldr	x11, [x11, x22, lsl #3]
	ldr	x8, [x11, w8, sxtw #3]
	add	x11, x12, #8
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x11], #16
	cmp	x12, x8
	csel	w27, w10, w27, eq
	csinc	w0, w0, wzr, ne
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_CL_ASSERT
	ldr	x9, [x23, #8]
	add	x8, x9, w27, sxtw #4
	ldr	w10, [x8]
	subs	w10, w10, #1
	b.ne	LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23, #4]
	sub	w8, w8, #1
	cmp	w27, w8
	b.ge	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x14, w27
	sxtw	x10, w8
	sub	x12, x10, x14
	mov	x11, x14
	cmp	x12, #2
	b.lo	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	and	x13, x12, #0xfffffffffffffffe
	add	x11, x13, x14
	add	x14, x9, x14, lsl #4
	add	x14, x14, #24
	mov	x15, x13
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x16, [x14]
	ldr	x17, [x14, #16]
	stur	x16, [x14, #-16]
	str	x17, [x14]
	ldur	w16, [x14, #-8]
	ldr	w17, [x14, #8]
	stur	w16, [x14, #-24]
	stur	w17, [x14, #-8]
	add	x14, x14, #32
	subs	x15, x15, #2
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x12, x13
	b.eq	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, x11, lsl #4
	add	x9, x9, #16
	sub	x10, x10, x11
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x9, #8]
	stur	x11, [x9, #-8]
	ldr	w11, [x9]
	stur	w11, [x9, #-16]
	add	x9, x9, #16
	subs	x10, x10, #1
	b.ne	LBB0_17
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w8, [x23, #4]
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, w19
	b.eq	LBB0_1
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, x22, lsl #3]
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x20
	mov	x1, x22
	bl	_get_next_switch
	mov	x24, x21
	mov	x21, x0
	b	LBB0_3
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w10, [x8]
	cmp	w22, w19
	b.ne	LBB0_20
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_remove_semipermanent_depend_for_sp
.subsections_via_symbols
