	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unicode_normalize_kc           ## -- Begin function unicode_normalize_kc
	.p2align	4, 0x90
_unicode_normalize_kc:                  ## @unicode_normalize_kc
	.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
	movq	%rdi, %r14
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_1
## %bb.2:
	leaq	1(%r14), %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_get_decomposed_size
	addl	%eax, %r13d
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r13d, %r13d
LBB0_4:
	leal	1(%r13), %ebx
	movl	%ebx, %edi
	callq	_ALLOC
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	$0, -64(%rbp)
	movb	(%r14), %cl
	testb	%cl, %cl
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_10
## %bb.7:
	incq	%r14
	leaq	-56(%rbp), %r15
	leaq	-64(%rbp), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%cl, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_decompose_code
	movzbl	(%r14), %ecx
	incq	%r14
	testb	%cl, %cl
	jne	LBB0_8
## %bb.9:
	movq	-56(%rbp), %rax
LBB0_10:
	movslq	%r13d, %rcx
	movb	$0, (%rax,%rcx)
	xorl	%edi, %edi
	cmpl	-64(%rbp), %r13d
	sete	%dil
	callq	_Assert
	cmpl	$2, %r13d
	jl	LBB0_19
## %bb.11:
	movl	$1, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	incl	%ebx
	cmpl	%r13d, %ebx
	jge	LBB0_19
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movslq	%ebx, %r14
	movsbl	-1(%rax,%r14), %edi
	movsbl	(%rax,%r14), %r12d
	callq	_get_code_entry
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_get_code_entry
	testq	%r15, %r15
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%eax, %ecx
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax
	movzbl	-1(%rax,%r14), %ecx
	movzbl	(%rax,%r14), %edx
	movb	%dl, -1(%rax,%r14)
	movq	-56(%rbp), %rax
	movb	%cl, (%rax,%r14)
	leal	-2(%r14), %ebx
	cmpl	$2, %r14d
	cmovll	%r14d, %ebx
	jmp	LBB0_18
LBB0_19:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_ALLOC
	movq	-56(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	%rax, %rbx
	movb	(%rdi), %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movb	%al, (%rbx)
	movl	$1, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$2, %r13d
	jl	LBB0_30
## %bb.22:
	movl	%r13d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, %r14d
	movl	$1, %r13d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_23 Depth=1
	testl	%r12d, %r12d
	movzbl	%r15b, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movzbl	%cl, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %rax
	leal	1(%rcx), %ecx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movb	%r15b, (%rbx,%rax)
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	cmovel	%eax, %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	cmpl	$1, %r12d
	movl	$0, %r14d
	sbbl	%r14d, %r14d
	orl	%r12d, %r14d
	movl	%ecx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_29:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%r13
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_30
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movzbl	(%rax,%r13), %r15d
	movsbl	%r15b, %ebx
	movl	%ebx, %edi
	callq	_get_code_entry
	movl	$0, %r12d
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	(%rax), %r12d
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	cmpl	%r12d, %r14d
	jge	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movsbl	-48(%rbp), %edi                 ## 1-byte Folded Reload
	movl	%ebx, %esi
	leaq	-41(%rbp), %rdx
	callq	_recompose_code
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=1
	movzbl	-41(%rbp), %eax
	movslq	-60(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movb	%al, (%rbx,%rcx)
	movzbl	-41(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_29
LBB0_30:
	movslq	-72(%rbp), %rax                 ## 4-byte Folded Reload
	movb	$0, (%rbx,%rax)
	movq	-56(%rbp), %rdi
	jmp	LBB0_31
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_20:
	xorl	%ebx, %ebx
LBB0_31:
	callq	_FREE
LBB0_32:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unicode_normalize_kc           ; -- Begin function unicode_normalize_kc
	.p2align	2
_unicode_normalize_kc:                  ; @unicode_normalize_kc
	.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	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w22, #0
	add	x19, x20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_get_decomposed_size
	add	w22, w22, w0
	ldrb	w8, [x19], #1
	cbnz	w8, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	add	w19, w22, #1
	mov	x0, x19
	bl	_ALLOC
	str	x0, [sp, #8]
	cbz	x0, LBB0_27
; %bb.5:
	str	wzr, [sp, #4]
	ldrb	w8, [x20]
	cbz	w8, LBB0_9
; %bb.6:
	add	x20, x20, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_decompose_code
	ldrb	w8, [x20], #1
	cbnz	w8, LBB0_7
; %bb.8:
	ldr	x0, [sp, #8]
LBB0_9:
	strb	wzr, [x0, w22, sxtw]
	ldr	w8, [sp, #4]
	cmp	w22, w8
	cset	w0, eq
	bl	_Assert
	cmp	w22, #2
	b.lt	LBB0_16
; %bb.10:
	mov	w23, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w23, w23, #1
	cmp	w23, w22
	b.ge	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	sxtw	x24, w23
	sub	x25, x24, #1
	ldrsb	w0, [x8, x25]
	ldrsb	w21, [x8, x24]
	bl	_get_code_entry
	mov	x20, x0
	mov	x0, x21
	bl	_get_code_entry
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x0]
	cbz	w8, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x20]
	cmp	w9, #0
	ccmp	w9, w8, #4, ne
	b.le	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #8]
	ldrb	w9, [x8, x25]
	ldrb	w10, [x8, x24]
	strb	w10, [x8, x25]
	ldr	x8, [sp, #8]
	strb	w9, [x8, x24]
	sub	w8, w23, #2
	cmp	w23, #1
	csel	w23, w8, w23, gt
	b	LBB0_11
LBB0_16:
	mov	x0, x19
	bl	_ALLOC
	mov	x19, x0
	ldr	x0, [sp, #8]
	cbz	x19, LBB0_30
; %bb.17:
	ldrb	w21, [x0]
	strb	w21, [x19]
	cmp	w22, #2
	b.lt	LBB0_28
; %bb.18:
	mov	w23, #0
	mov	w24, #1
	mov	w26, #-1
	mov	w25, #1
	mov	w22, w22
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	strb	w20, [x19, w25, sxtw]
	cmp	w27, #0
	csel	w21, w20, w21, eq
	csel	w23, w25, w23, eq
	add	w25, w25, #1
	csinv	w26, w27, wzr, ne
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x24, x24, #1
	cmp	x22, x24
	b.eq	LBB0_29
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldrsb	w20, [x8, x24]
	mov	x0, x20
	bl	_get_code_entry
	cbz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w27, [x0]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	w27, #0
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	and	w20, w20, #0xff
	cmp	w26, w27
	b.ge	LBB0_19
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
	sxtb	w0, w21
	sxtb	w1, w20
	add	x2, sp, #3
	bl	_recompose_code
	cbz	x0, LBB0_19
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
	ldrb	w8, [sp, #3]
	strb	w8, [x19, w23, sxtw]
	ldrb	w21, [sp, #3]
	b	LBB0_20
LBB0_27:
	mov	x19, #0
	b	LBB0_31
LBB0_28:
	mov	w25, #1
LBB0_29:
	strb	wzr, [x19, w25, sxtw]
	ldr	x0, [sp, #8]
LBB0_30:
	bl	_FREE
LBB0_31:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
