	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_cdg_for_sp
_generate_cdg_for_sp:                   ## @generate_cdg_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	$56, %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, %r13d
	movl	(%rdi), %r14d
	movq	16(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movslq	%esi, %r12
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r12,8), %rax
	movq	(%rax), %rax
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rbx
	movl	(%rax,%rbx,4), %edx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	callq	_get_next_switch
	xorl	%ecx, %ecx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpl	%ebx, %r12d
	je	LBB0_24
## %bb.1:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	shll	$4, %r14d
	addl	$24, %r14d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movslq	%r15d, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	%eax, %r14d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movslq	%r13d, %rcx
	movq	(%rax,%rcx,8), %r12
	movslq	%r14d, %r10
	movq	(%r12,%r10,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r10, %r14
	movl	$1, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movl	%r13d, (%rax)
	movq	%r14, %r10
	movl	%r10d, 4(%rax)
	movl	$1, 8(%rax)
	movq	%rax, (%r12,%r14,8)
	movl	-52(%rbp), %r14d                ## 4-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	32(%rbx)
	testq	%r15, %r15
	je	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	12(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r9d
	movq	24(%r15), %r8
	cmpl	$1, %r9d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	xorl	%edi, %edi
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r9b
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	shlq	$4, %rsi
	cmpq	%rbx, 8(%r8,%rsi)
	je	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%edi, %edi
	jne	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	%rbx, 8(%rcx,%rdx)
	incl	(%rcx,%rdx)
	incl	%eax
	movl	%eax, 12(%r15)
	xorl	%edi, %edi
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	setl	%dil
	movl	%r14d, %r12d
	movq	%r10, %r14
	callq	_CL_ASSERT
	movq	%r14, %r10
	movl	%r12d, %r14d
	cmpl	$0, 8(%r15)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r15)
	jmp	LBB0_22
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, %edx
	andl	$-2, %edx
	xorl	%esi, %esi
	movq	%r8, %rcx
	xorl	%edi, %edi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=2
	addq	$2, %rsi
	addq	$32, %rcx
	cmpq	%rsi, %rdx
	je	LBB0_16
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, 8(%rcx)
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpq	%rbx, 24(%rcx)
	jne	LBB0_15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=2
	incl	(%rcx)
	movl	$1, %edi
	cmpq	%rbx, 24(%rcx)
	jne	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	incl	16(%rcx)
	movl	$1, %edi
	jmp	LBB0_15
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	(%r8,%rsi)
	movl	$1, %edi
	testl	%edi, %edi
	je	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r10,8), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %r13d
	xorl	%edi, %edi
	movq	_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	setne	%dil
	callq	_CL_ASSERT
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_get_next_switch
	movq	%rbx, %r15
	movl	%r14d, %r13d
	jmp	LBB0_2
LBB0_23:
	xorl	%ecx, %ecx
	jmp	LBB0_24
LBB0_4:
	movl	$-1, %ecx
LBB0_24:
	movl	%ecx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NONE,4,2                       ## @NONE
	.no_dead_strip	_generate_cdg_for_sp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_cdg_for_sp
_generate_cdg_for_sp:                   ; @generate_cdg_for_sp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	w21, [x0]
	ldp	x8, x26, [x0, #8]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x26, w1, sxtw #3]
	ldr	x8, [x8]
	ldr	w2, [x8, w2, sxtw #2]
	bl	_get_next_switch
	cmp	w24, w19
	b.ne	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	mov	x25, #0
	sxtw	x8, w19
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	lsl	w8, w21, #4
	add	w8, w8, #24
	stp	w8, w21, [sp, #8]               ; 8-byte Folded Spill
	sxtw	x21, w22
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8, x21, lsl #3]
	mov	x22, x0
	ldr	x28, [x8, w24, sxtw #3]
	sxtw	x27, w22
	ldr	x23, [x28, w0, sxtw #3]
	cbnz	x23, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
	bl	_calloc
	cbz	x0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	stp	w24, w22, [x0]
	mov	w8, #1
	str	w8, [x0, #8]
	str	x0, [x28, x27, lsl #3]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23, #32]
	add	w8, w8, #1
	str	w8, [x23, #32]
	cbz	x25, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25, #12]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #0
	ldr	x9, [x25, #24]
	mov	x11, x8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x9, x9, #16
	subs	x11, x11, #1
	b.eq	LBB0_13
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x9, #8]
	cmp	x12, x23
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	mov	w10, #1
	b	LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w10, LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x9, w8
	ldr	x10, [x25, #24]
	add	x9, x10, x9, lsl #4
	str	x23, [x9, #8]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	add	w8, w8, #1
	str	w8, [x25, #12]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w9
	cset	w0, lt
	bl	_CL_ASSERT
	ldr	w8, [x25, #8]
	cbnz	w8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25, #16]
	add	w8, w8, #1
	str	w8, [x25, #16]
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, w19
	b.eq	LBB0_1
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26, x27, lsl #3]
	ldr	x8, [x8]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w24, [x8, x9, lsl #2]
Lloh0:
	adrp	x8, _NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, w8
	cset	w0, ne
	bl	_CL_ASSERT
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	bl	_get_next_switch
	mov	x25, x23
	mov	x24, x22
	b	LBB0_4
LBB0_18:
	mov	w0, #-1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NONE,4,2                       ; @NONE
	.no_dead_strip	_generate_cdg_for_sp
.subsections_via_symbols
