	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__wind_stringprep_normalize     ## -- Begin function _wind_stringprep_normalize
	.p2align	4, 0x90
__wind_stringprep_normalize:            ## @_wind_stringprep_normalize
	.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
	movq	%rcx, %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	(,%rsi,4), %rax
	movq	_MAX_LENGTH_CANON@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, %rax
	cmovaq	%rax, %rdi
	movq	%rdi, -48(%rbp)
	shlq	$2, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_compat_decomp
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_canonical_reorder
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_combine
LBB0_6:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_1:
	movq	$0, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_LENGTH_CANON,8,3           ## @MAX_LENGTH_CANON
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__wind_stringprep_normalize     ; -- Begin function _wind_stringprep_normalize
	.p2align	2
__wind_stringprep_normalize:            ; @_wind_stringprep_normalize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x22, x1
	cbz	x1, LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x23, x0
Lloh0:
	adrp	x8, _MAX_LENGTH_CANON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_LENGTH_CANON@GOTPAGEOFF]
	lsl	x9, x22, #2
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	csel	x8, x9, x8, hi
	str	x8, [sp, #8]
	lsl	x0, x8, #2
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_compat_decomp
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_canonical_reorder
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_combine
LBB0_4:
	mov	x22, x0
	mov	x0, x21
	bl	_free
	b	LBB0_7
LBB0_5:
	str	xzr, [x19]
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LENGTH_CANON,8,3           ; @MAX_LENGTH_CANON
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
