	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_sh_tests
_write_sh_tests:                        ## @write_sh_tests
	.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
	movl	%esi, %r15d
	movq	%rdi, %rsi
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_str.16(%rip), %rdi
	callq	_puts
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$1, %r15d
	jne	LBB0_2
## %bb.1:
	leaq	L_str.23(%rip), %rbx
	leaq	L_str.22(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	cmpl	$2, %r15d
	jne	LBB0_5
## %bb.3:
	leaq	L_str.18(%rip), %rdi
	callq	_puts
	leaq	L_str.19(%rip), %rdi
	callq	_puts
	leaq	L_str.21(%rip), %rbx
	leaq	L_str.20(%rip), %rdi
LBB0_4:
	callq	_puts
	movq	%rbx, %rdi
	callq	_puts
LBB0_5:
	movq	_testcases@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_nitems
	testq	%rax, %rax
	je	LBB0_21
## %bb.6:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12,%r13), %rdx
	movq	8(%r12,%r13), %rcx
	xorl	%eax, %eax
	callq	_printf
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movq	(%rbx), %rdi
	callq	_nitems
	addq	$32, %r13
	cmpq	%rax, %r14
	jae	LBB0_21
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r12
	movq	(%r12,%r13), %rdi
	movl	$39, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12,%r13), %rdi
	movl	$39, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 16(%r12,%r13)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12,%r13), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_20
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$1, %r15d
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 16(%r12,%r13)
	leaq	L_.str.11(%rip), %rdi
	jne	LBB0_20
	jmp	LBB0_17
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$2, %r15d
	jne	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r12,%r13), %rax
	leaq	L_.str.14(%rip), %rdi
	movq	_FNM_NOESCAPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r12,%r13), %rax
	leaq	L_.str.12(%rip), %rsi
	movq	_FNM_NOMATCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	testq	%rax, %rax
	jne	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12,%r13), %rdi
	movl	$92, %esi
	callq	_strchr
	leaq	L_.str.14(%rip), %rdi
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_17
LBB0_21:
	leaq	L_str.17(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"# Generated by %s -s %d, do not edit.\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed() { printf '%%s\\n' \"Failed: $1 '$2' '$3'\"; failures=x$failures; }\n"

	.comm	_testcases,8,3                  ## @testcases
L_.str.10:                              ## @.str.10
	.asciz	"\\"

L_.str.11:                              ## @.str.11
	.asciz	"test%smatch '%s' '%s'\n"

	.comm	_FNM_NOMATCH,8,3                ## @FNM_NOMATCH
L_.str.12:                              ## @.str.12
	.asciz	"no"

L_.str.13:                              ## @.str.13
	.space	1

	.comm	_FNM_NOESCAPE,8,3               ## @FNM_NOESCAPE
L_.str.14:                              ## @.str.14
	.asciz	"netest%smatch '%s' '%s'\n"

L_str:                                  ## @str
	.asciz	"# $FreeBSD$"

L_str.16:                               ## @str.16
	.asciz	"failures="

L_str.17:                               ## @str.17
	.asciz	"[ -z \"$failures\" ]"

L_str.18:                               ## @str.18
	.asciz	"# We do not treat a backslash specially in this case,"

L_str.19:                               ## @str.19
	.asciz	"# but this is not the case in all shells."

L_str.20:                               ## @str.20
	.asciz	"netestmatch() { case $2 in $1) ;; *) failed netestmatch \"$@\";; esac; }"

L_str.21:                               ## @str.21
	.asciz	"netestnomatch() { case $2 in $1) failed netestnomatch \"$@\";; esac; }"

L_str.22:                               ## @str.22
	.asciz	"testmatch() { eval \"case \\$2 in ''$1) ;; *) failed testmatch \\\"\\$@\\\";; esac\"; }"

L_str.23:                               ## @str.23
	.asciz	"testnomatch() { eval \"case \\$2 in ''$1) failed testnomatch \\\"\\$@\\\";; esac\"; }"

	.no_dead_strip	_write_sh_tests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_sh_tests
_write_sh_tests:                        ; @write_sh_tests
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	stp	x0, x19, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh2:
	adrp	x0, l_str@PAGE
Lloh3:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh4:
	adrp	x0, l_str.16@PAGE
Lloh5:
	add	x0, x0, l_str.16@PAGEOFF
	bl	_puts
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	cmp	w19, #1
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x20, l_str.23@PAGE
Lloh9:
	add	x20, x20, l_str.23@PAGEOFF
Lloh10:
	adrp	x0, l_str.22@PAGE
Lloh11:
	add	x0, x0, l_str.22@PAGEOFF
	b	LBB0_4
LBB0_2:
	cmp	w19, #2
	b.ne	LBB0_5
; %bb.3:
Lloh12:
	adrp	x0, l_str.18@PAGE
Lloh13:
	add	x0, x0, l_str.18@PAGEOFF
	bl	_puts
Lloh14:
	adrp	x0, l_str.19@PAGE
Lloh15:
	add	x0, x0, l_str.19@PAGEOFF
	bl	_puts
Lloh16:
	adrp	x20, l_str.21@PAGE
Lloh17:
	add	x20, x20, l_str.21@PAGEOFF
Lloh18:
	adrp	x0, l_str.20@PAGE
Lloh19:
	add	x0, x0, l_str.20@PAGEOFF
LBB0_4:
	bl	_puts
	mov	x0, x20
	bl	_puts
LBB0_5:
Lloh20:
	adrp	x21, _testcases@GOTPAGE
Lloh21:
	ldr	x21, [x21, _testcases@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_nitems
	cbz	x0, LBB0_21
; %bb.6:
	mov	x22, #0
	mov	x23, #0
Lloh22:
	adrp	x20, l_.str.10@PAGE
Lloh23:
	add	x20, x20, l_.str.10@PAGEOFF
Lloh24:
	adrp	x25, _FNM_NOMATCH@GOTPAGE
Lloh25:
	ldr	x25, [x25, _FNM_NOMATCH@GOTPAGEOFF]
Lloh26:
	adrp	x26, l_.str.13@PAGE
Lloh27:
	add	x26, x26, l_.str.13@PAGEOFF
Lloh28:
	adrp	x27, l_.str.12@PAGE
Lloh29:
	add	x27, x27, l_.str.12@PAGEOFF
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
Lloh30:
	adrp	x0, l_.str.14@PAGE
Lloh31:
	add	x0, x0, l_.str.14@PAGEOFF
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x28, x22
	ldr	x9, [x8, #24]
	ldr	x10, [x25]
	cmp	x9, x10
	csel	x9, x27, x26, eq
	ldr	x8, [x8]
	ldr	x10, [x24, #8]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
	bl	_printf
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	ldr	x0, [x21]
	bl	_nitems
	add	x22, x22, #32
	cmp	x23, x0
	b.hs	LBB0_21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x21]
	ldr	x0, [x28, x22]
	mov	w1, #39
	bl	_strchr
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x28, x22
	ldr	x0, [x24, #8]
	mov	w1, #39
	bl	_strchr
	cbnz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x24, #16]
	cbnz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x28, x22]
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	w19, #1
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x24, #16]
	cbnz	x8, LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh32:
	adrp	x0, l_.str.11@PAGE
Lloh33:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_8
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	w19, #2
	b.ne	LBB0_9
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x24, #16]
Lloh34:
	adrp	x9, _FNM_NOESCAPE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _FNM_NOESCAPE@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
Lloh37:
	adrp	x0, l_.str.14@PAGE
Lloh38:
	add	x0, x0, l_.str.14@PAGEOFF
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	cbnz	x8, LBB0_9
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x28, x22]
	mov	w1, #92
	bl	_strchr
	cbnz	x0, LBB0_9
	b	LBB0_7
LBB0_21:
Lloh39:
	adrp	x0, l_str.17@PAGE
Lloh40:
	add	x0, x0, l_str.17@PAGEOFF
	bl	_puts
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"# Generated by %s -s %d, do not edit.\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed() { printf '%%s\\n' \"Failed: $1 '$2' '$3'\"; failures=x$failures; }\n"

	.comm	_testcases,8,3                  ; @testcases
l_.str.10:                              ; @.str.10
	.asciz	"\\"

l_.str.11:                              ; @.str.11
	.asciz	"test%smatch '%s' '%s'\n"

	.comm	_FNM_NOMATCH,8,3                ; @FNM_NOMATCH
l_.str.12:                              ; @.str.12
	.asciz	"no"

l_.str.13:                              ; @.str.13
	.space	1

	.comm	_FNM_NOESCAPE,8,3               ; @FNM_NOESCAPE
l_.str.14:                              ; @.str.14
	.asciz	"netest%smatch '%s' '%s'\n"

l_str:                                  ; @str
	.asciz	"# $FreeBSD$"

l_str.16:                               ; @str.16
	.asciz	"failures="

l_str.17:                               ; @str.17
	.asciz	"[ -z \"$failures\" ]"

l_str.18:                               ; @str.18
	.asciz	"# We do not treat a backslash specially in this case,"

l_str.19:                               ; @str.19
	.asciz	"# but this is not the case in all shells."

l_str.20:                               ; @str.20
	.asciz	"netestmatch() { case $2 in $1) ;; *) failed netestmatch \"$@\";; esac; }"

l_str.21:                               ; @str.21
	.asciz	"netestnomatch() { case $2 in $1) failed netestnomatch \"$@\";; esac; }"

l_str.22:                               ; @str.22
	.asciz	"testmatch() { eval \"case \\$2 in ''$1) ;; *) failed testmatch \\\"\\$@\\\";; esac\"; }"

l_str.23:                               ; @str.23
	.asciz	"testnomatch() { eval \"case \\$2 in ''$1) failed testnomatch \\\"\\$@\\\";; esac\"; }"

	.no_dead_strip	_write_sh_tests
.subsections_via_symbols
