	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_tests                      ## -- Begin function run_tests
	.p2align	4, 0x90
_run_tests:                             ## @run_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
	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), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_printf
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi
	callq	_freeargv
	movq	%r13, %rdi
	callq	_freeargv
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_erase_test
	incl	%ebx
	movslq	%r14d, %rax
	movq	(%r12,%rax,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	leal	1(%r14), %r15d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_writeout_test
	movslq	%r15d, %rax
	leaq	(%r12,%rax,8), %rbx
	movq	%rbx, %rdi
	callq	_dupargv
	movq	%rax, -56(%rbp)
	addl	$2, %r14d
	movl	%r14d, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %r14d
	cmpq	$0, (%rbx,%rax,8)
	leaq	1(%rax), %rax
	leal	1(%r14), %ecx
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%rax), %ecx
	movl	%ecx, -44(%rbp)
	addl	%eax, %r15d
	movslq	%r15d, %rax
	movslq	%r14d, %rcx
	leaq	(%r12,%rcx,8), %rcx
	movl	$1, %r13d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, %r15d
	decq	%r13
	incl	%r14d
	cmpq	$0, (%rcx)
	leaq	8(%rcx), %rcx
	leal	1(%r15), %edx
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%rax,8), %rdi
	callq	_dupargv
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_run_replaces
	incq	%rbx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12,%rbx,8), %rdi
	callq	_run_replaces
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	-44(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_expandargv
	addl	-44(%rbp), %r13d
	movq	%r12, %r13
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_18
LBB0_15:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rax
	movq	(%rax,%r12,8), %rbx
	movq	(%r13,%r12,8), %r13
	movq	%r13, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	leaq	L_.str.1(%rip), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_printf
	incl	-60(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-44(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_expandargv
	addl	-44(%rbp), %r13d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_19
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_printf
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_19
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_23
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_24:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %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	"FAIL: test-expandargv-%d. Number of arguments don't match.\n"

L_.str.1:                               ## @.str.1
	.asciz	"FAIL: test-expandargv-%d. Arguments don't match.\n"

L_.str.2:                               ## @.str.2
	.asciz	"PASS: test-expandargv-%d.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_tests                      ; -- Begin function run_tests
	.p2align	2
_run_tests:                             ; @run_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
	ldr	x1, [x0]
	cbz	x1, LBB0_23
; %bb.1:
	mov	x20, x0
	mov	w24, #0
	mov	w8, #0
	mov	w21, #0
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_printf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #16]
	bl	_freeargv
	mov	x0, x25
	bl	_freeargv
	mov	x0, x21
	bl	_erase_test
	add	w21, w21, #1
	add	x8, x22, w28, uxtw
	add	x8, x8, x23
	ldr	x1, [x20, w8, sxtw #3]
	cbz	x1, LBB0_24
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	add	w28, w8, #1
	mov	x0, x21
	bl	_writeout_test
	add	x25, x20, w28, sxtw #3
	mov	x0, x25
	bl	_dupargv
	mov	x22, #0
	str	x0, [sp, #16]
	mov	x8, x28
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x25, x22, lsl #3]
	add	x22, x22, #1
	add	w8, w8, #1
	cbnz	x9, LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
	sub	w9, w22, #1
	str	w9, [sp, #28]
	add	w9, w28, w22
	sxtw	x9, w9
	add	x8, x20, w8, sxtw #3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x23
	ldr	x10, [x8, x23, lsl #3]
	add	x23, x23, #1
	cbnz	x10, LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x20, x9, lsl #3
	bl	_dupargv
	mov	x25, x0
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, #0
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #16]
	ldr	x0, [x8, x19, lsl #3]
	bl	_run_replaces
	add	x19, x19, #1
	ldrsw	x8, [sp, #28]
	cmp	x19, x8
	b.lt	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #1
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #28
	add	x1, sp, #16
	bl	_expandargv
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	cmp	w8, w23
	b.eq	LBB0_2
	b	LBB0_20
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	and	x19, x26, #0xffffffff
	mov	x20, x25
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x20], #8
	bl	_run_replaces
	subs	x19, x19, #1
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #28
	add	x1, sp, #16
	bl	_expandargv
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	cmp	w8, w23
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b.ne	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w24, [sp, #4]                   ; 4-byte Folded Spill
	mov	x24, #0
	mov	w19, #0
	and	x20, x26, #0xffffffff
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x24, x24, #1
	cmp	x20, x24
	b.eq	LBB0_21
LBB0_18:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #16]
	lsl	x9, x24, #3
	ldr	x26, [x8, x9]
	ldr	x27, [x25, x9]
	mov	x0, x27
	bl	_strlen
	mov	x2, x0
	mov	x0, x26
	mov	x1, x27
	bl	_strncmp
	cbz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_printf
	add	w19, w19, #1
	b	LBB0_17
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_printf
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w24, [sp, #4]                   ; 4-byte Folded Reload
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbz	w19, LBB0_2
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	b	LBB0_3
LBB0_23:
	mov	w24, #0
LBB0_24:
	mov	x0, x24
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FAIL: test-expandargv-%d. Number of arguments don't match.\n"

l_.str.1:                               ; @.str.1
	.asciz	"FAIL: test-expandargv-%d. Arguments don't match.\n"

l_.str.2:                               ; @.str.2
	.asciz	"PASS: test-expandargv-%d.\n"

.subsections_via_symbols
