	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csi_K
_csi_K:                                 ## @csi_K
	.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, %rbx
	cmpl	$2, %esi
	je	LBB0_7
## %bb.1:
	cmpl	$1, %esi
	je	LBB0_5
## %bb.2:
	testl	%esi, %esi
	jne	LBB0_12
## %bb.3:
	movl	(%rbx), %r14d
	subl	4(%rbx), %r14d
	movq	32(%rbx), %r15
	movq	%rbx, %rdi
	callq	_DO_UPDATE
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movq	24(%rbx), %rax
	movl	20(%rbx), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %edx
	subl	%edx, %r8d
	movq	%rbx, %rdi
	jmp	LBB0_10
LBB0_7:
	movq	32(%rbx), %r15
	movl	(%rbx), %r14d
	movl	4(%rbx), %eax
	addl	%eax, %eax
	subq	%rax, %r15
	movq	%rbx, %rdi
	callq	_DO_UPDATE
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	24(%rbx), %rax
	movl	(%rbx), %r8d
	movl	20(%rbx), %esi
	jmp	LBB0_9
LBB0_5:
	movq	32(%rbx), %r15
	movl	4(%rbx), %r14d
	leal	(%r14,%r14), %eax
	subq	%rax, %r15
	incl	%r14d
	movq	%rbx, %rdi
	callq	_DO_UPDATE
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movq	24(%rbx), %rax
	movl	4(%rbx), %r8d
	movl	20(%rbx), %esi
	incl	%r8d
LBB0_9:
	movq	%rbx, %rdi
	xorl	%edx, %edx
LBB0_10:
	movl	$1, %ecx
	callq	*(%rax)
LBB0_11:
	movl	16(%rbx), %esi
	addl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_scr_memsetw
	movq	$0, 8(%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_csi_K
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csi_K
_csi_K:                                 ; @csi_K
	.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
	cmp	w1, #2
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #1
	b.eq	LBB0_7
; %bb.2:
	cbnz	w1, LBB0_12
; %bb.3:
	ldp	w8, w9, [x19]
	sub	w21, w8, w9
	ldr	x20, [x19, #32]
	mov	x0, x19
	bl	_DO_UPDATE
	cbz	w0, LBB0_11
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w1, [x19, #20]
	ldp	w9, w2, [x19]
	sub	w4, w9, w2
	mov	x0, x19
	b	LBB0_10
LBB0_5:
	ldr	x8, [x19, #32]
	ldp	w21, w9, [x19]
	lsl	w9, w9, #1
	sub	x20, x8, x9
	mov	x0, x19
	bl	_DO_UPDATE
	cbz	w0, LBB0_11
; %bb.6:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w1, [x19, #20]
	ldr	w4, [x19]
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19, #32]
	ldr	w9, [x19, #4]
	lsl	w10, w9, #1
	sub	x20, x8, x10
	add	w21, w9, #1
	mov	x0, x19
	bl	_DO_UPDATE
	cbz	w0, LBB0_11
; %bb.8:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w1, [x19, #20]
	ldr	w9, [x19, #4]
	add	w4, w9, #1
LBB0_9:
	mov	x0, x19
	mov	w2, #0
LBB0_10:
	mov	w3, #1
	blr	x8
LBB0_11:
	ldr	w1, [x19, #16]
	lsl	w2, w21, #1
	mov	x0, x20
	bl	_scr_memsetw
	str	xzr, [x19, #8]
LBB0_12:
	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
	.no_dead_strip	_csi_K
.subsections_via_symbols
