	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wind_stringprep                ## -- Begin function wind_stringprep
	.p2align	4, 0x90
_wind_stringprep:                       ## @wind_stringprep
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %r15
	leaq	(%rsi,%rsi,2), %rdi
	movq	%rdi, -64(%rbp)
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movl	%r8d, %r12d
	movq	%rsi, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r13
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movl	%r12d, %r8d
	callq	__wind_stringprep_map
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)
	movq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r13, %rdx
	callq	__wind_stringprep_normalize
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	__wind_stringprep_prohibited
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	__wind_stringprep_testbidi
	testl	%eax, %eax
	jne	LBB0_6
## %bb.11:
	movq	_WIND_PROFILE_LDAP_CASE_EXACT_ATTRIBUTE@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rdx
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	movq	%rdx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	__wind_ldap_case_exact_attribute
LBB0_6:
	movl	%eax, %ebx
LBB0_7:
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_10
LBB0_8:
	movq	$0, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	shll	$2, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WIND_PROFILE_LDAP_CASE_EXACT_ATTRIBUTE,4,2 ## @WIND_PROFILE_LDAP_CASE_EXACT_ATTRIBUTE
	.comm	_WIND_PROFILE_LDAP_CASE_EXACT_ASSERTION,4,2 ## @WIND_PROFILE_LDAP_CASE_EXACT_ASSERTION
	.comm	_WIND_PROFILE_LDAP_NUMERIC,4,2  ## @WIND_PROFILE_LDAP_NUMERIC
	.comm	_WIND_PROFILE_LDAP_TELEPHONE,4,2 ## @WIND_PROFILE_LDAP_TELEPHONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wind_stringprep                ; -- Begin function wind_stringprep
	.p2align	2
_wind_stringprep:                       ; @wind_stringprep
	.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	x20, x3
	mov	x23, x1
	add	x8, x1, x1, lsl #1
	str	x8, [sp, #8]
	cbz	x1, LBB0_10
; %bb.1:
	mov	x22, x4
	mov	x21, x2
	mov	x24, x0
	lsl	x0, x8, #2
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	add	x3, sp, #8
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	mov	x4, x22
	bl	__wind_stringprep_map
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x20]
	str	x8, [sp]
	ldr	x1, [sp, #8]
	mov	x3, sp
	mov	x0, x19
	mov	x2, x19
	bl	__wind_stringprep_normalize
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	x1, [sp]
	mov	x0, x19
	mov	x2, x22
	bl	__wind_stringprep_prohibited
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x1, [sp]
	mov	x0, x19
	mov	x2, x22
	bl	__wind_stringprep_testbidi
	cbnz	w0, LBB0_8
; %bb.6:
Lloh0:
	adrp	x8, _WIND_PROFILE_LDAP_CASE_EXACT_ATTRIBUTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIND_PROFILE_LDAP_CASE_EXACT_ATTRIBUTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x1, [sp]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.7:
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	__wind_ldap_case_exact_attribute
LBB0_8:
	mov	x23, x0
LBB0_9:
	mov	x0, x19
	bl	_free
	b	LBB0_12
LBB0_10:
	str	xzr, [x20]
	b	LBB0_12
LBB0_11:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
LBB0_12:
	mov	x0, x23
	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
LBB0_13:
	lsl	w2, w1, #2
	mov	x0, x21
	mov	x1, x19
	bl	_memcpy
	mov	w23, #0
	ldr	x8, [sp]
	str	x8, [x20]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WIND_PROFILE_LDAP_CASE_EXACT_ATTRIBUTE,4,2 ; @WIND_PROFILE_LDAP_CASE_EXACT_ATTRIBUTE
	.comm	_WIND_PROFILE_LDAP_CASE_EXACT_ASSERTION,4,2 ; @WIND_PROFILE_LDAP_CASE_EXACT_ASSERTION
	.comm	_WIND_PROFILE_LDAP_NUMERIC,4,2  ; @WIND_PROFILE_LDAP_NUMERIC
	.comm	_WIND_PROFILE_LDAP_TELEPHONE,4,2 ; @WIND_PROFILE_LDAP_TELEPHONE
.subsections_via_symbols
