	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test
_test:                                  ## @test
	.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	%esi, %r12d
	movq	%rdi, %rbx
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_LENGTH_CANON@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_strtok_r
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_parse_vector
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	leaq	-56(%rbp), %rdx
	xorl	%edi, %edi
	callq	_strtok_r
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	leaq	-56(%rbp), %rdx
	xorl	%edi, %edi
	callq	_strtok_r
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	leaq	-56(%rbp), %rdx
	xorl	%edi, %edi
	callq	_strtok_r
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:
	movq	%rax, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_parse_vector
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	leaq	-56(%rbp), %rdx
	xorl	%edi, %edi
	callq	_strtok_r
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	movq	%rbx, %r12
	movq	-56(%rbp), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movslq	(%r15), %rbx
	movq	%rbx, -72(%rbp)
	leaq	(,%rbx,4), %rdi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_9:
	leaq	-72(%rbp), %rcx
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	__wind_stringprep_normalize
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_17
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_11:
	cmpq	-72(%rbp), %r12
	jne	LBB0_12
## %bb.13:
	movq	%r12, %rdx
	shlq	$2, %rdx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	leaq	L_.str.6(%rip), %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_16
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.4(%rip), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
LBB0_16:
	movq	%r12, %rdx
	callq	_dump_vector
	movq	-72(%rbp), %rdx
	leaq	L_.str.5(%rip), %rdi
	movq	%r15, %rsi
	callq	_dump_vector
LBB0_17:
	movl	$1, %r12d
LBB0_18:
	movq	%r15, %rdi
	callq	_free
LBB0_19:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_LENGTH_CANON,4,2           ## @MAX_LENGTH_CANON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	";"

L_.str.1:                               ## @.str.1
	.asciz	"malloc"

L_.str.2:                               ## @.str.2
	.asciz	"wind_stringprep_normalize %s failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"%u: wrong out len (%s)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Expected"

L_.str.5:                               ## @.str.5
	.asciz	"Received"

L_.str.6:                               ## @.str.6
	.asciz	"%u: wrong out data (%s)\n"

	.no_dead_strip	_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test
_test:                                  ; @test
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x19, x1
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x22, _MAX_LENGTH_CANON@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAX_LENGTH_CANON@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #96
	bl	_strtok_r
	cbz	x0, LBB0_10
; %bb.1:
	mov	x1, x21
	bl	_parse_vector
	mov	x24, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #96
	mov	x0, #0
	bl	_strtok_r
	cbz	x0, LBB0_10
; %bb.2:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #96
	mov	x0, #0
	bl	_strtok_r
	cbz	x0, LBB0_10
; %bb.3:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #96
	mov	x0, #0
	bl	_strtok_r
	cbz	x0, LBB0_10
; %bb.4:
	mov	x1, x20
	bl	_parse_vector
	mov	x23, x0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #96
	mov	x0, #0
	bl	_strtok_r
	cbz	x0, LBB0_10
; %bb.5:
	ldur	x26, [x29, #-96]
	ldrsw	x27, [x22]
	stur	x27, [x29, #-104]
	lsl	x0, x27, #2
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_8
; %bb.6:
	cbz	w27, LBB0_8
; %bb.7:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	sub	x3, x29, #104
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	bl	__wind_stringprep_normalize
	cbz	w0, LBB0_13
; %bb.9:
	str	x26, [sp, #-16]!
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	b	LBB0_18
LBB0_10:
	mov	w19, #0
LBB0_11:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.12:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldur	x8, [x29, #-104]
	cmp	x23, x8
	b.ne	LBB0_16
; %bb.14:
	lsl	x2, x23, #2
	mov	x0, x20
	mov	x1, x22
	bl	_memcmp
	cbz	x0, LBB0_20
; %bb.15:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x19, x26, [sp, #-16]!
Lloh26:
	adrp	x0, l_.str.6@PAGE
Lloh27:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_17
LBB0_16:
	stp	x19, x26, [sp, #-16]!
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_17:
	bl	_printf
	add	sp, sp, #16
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	mov	x2, x23
	bl	_dump_vector
	ldur	x2, [x29, #-104]
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x22
	bl	_dump_vector
LBB0_18:
	mov	w19, #1
LBB0_19:
	mov	x0, x22
	bl	_free
	b	LBB0_11
LBB0_20:
	mov	w19, #0
	b	LBB0_19
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LENGTH_CANON,4,2           ; @MAX_LENGTH_CANON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	";"

l_.str.1:                               ; @.str.1
	.asciz	"malloc"

l_.str.2:                               ; @.str.2
	.asciz	"wind_stringprep_normalize %s failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"%u: wrong out len (%s)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Expected"

l_.str.5:                               ; @.str.5
	.asciz	"Received"

l_.str.6:                               ; @.str.6
	.asciz	"%u: wrong out data (%s)\n"

	.no_dead_strip	_test
.subsections_via_symbols
