	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__tmain                         ## -- Begin function _tmain
	.p2align	4, 0x90
__tmain:                                ## @_tmain
	.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	$856, %rsp                      ## imm = 0x358
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %ebx
	cmpl	$2, %edi
	jl	LBB0_36
## %bb.1:
	movq	%rsi, %r13
	movl	%edi, %r15d
	movl	%edi, %r12d
	movl	$1, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r14,8), %rdi
	callq	__tcslen
	cltq
	addq	%rax, %rbx
	incq	%rbx
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_2
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.4:
	movq	8(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	__tcsstr
	cmpl	$3, %r15d
	jne	LBB0_20
## %bb.5:
	testq	%rax, %rax
	je	LBB0_20
## %bb.6:
	movq	16(%r13), %rsi
	leaq	-560(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strcpy
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcat
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	__tpopen
	testq	%rax, %rax
	je	LBB0_28
## %bb.7:
	movq	%rax, %r14
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_27
## %bb.8:
	leaq	-560(%rbp), %r12
	leaq	-304(%rbp), %r15
	movq	%r14, -872(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	__pclose
	movq	-872(%rbp), %r14                ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_27
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	cmpb	$32, -176(%rbp)
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r13), %rsi
	movq	%r12, %rdi
	callq	_strcpy
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcat
	movq	%r12, %rdi
	leaq	-172(%rbp), %rsi
	callq	_strcat
	leaq	-864(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strcat
	movq	%rbx, %rdi
	callq	_OutputDebugStringA
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	__popen
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	%r15, %rdi
	callq	_puts
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	%r15, %rdi
	callq	_OutputDebugStringA
LBB0_16:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	$128, %esi
	movq	%rbx, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_9
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%rax, %r14
	movb	$0, (%rax)
	movq	%r15, %rdi
	callq	_puts
	movb	$10, (%r14)
	jmp	LBB0_15
LBB0_19:
	movl	$-1, %ebx
	jmp	LBB0_36
LBB0_20:
	movq	8(%r13), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	__tcsstr
	cmpl	$3, %r15d
	jne	LBB0_29
## %bb.21:
	testq	%rax, %rax
	je	LBB0_29
## %bb.22:
	movq	16(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	__tpopen
	testq	%rax, %rax
	je	LBB0_28
## %bb.23:
	movq	%rax, %r14
	leaq	-864(%rbp), %rdi
	movl	$128, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_27
## %bb.24:
	leaq	-864(%rbp), %rbx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_OutputDebugStringA
	movq	%rbx, %rdi
	movl	$128, %esi
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	jne	LBB0_25
LBB0_27:
	movq	%r14, %rdi
	callq	__pclose
LBB0_28:
	xorl	%ebx, %ebx
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	movl	%ebx, %eax
	addq	$856, %rsp                      ## imm = 0x358
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	incq	%rbx
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapAlloc
	testq	%rax, %rax
	movl	$-1, %ebx
	je	LBB0_36
## %bb.30:
	movq	%rax, -872(%rbp)                ## 8-byte Spill
	movl	$1, %eax
	subq	%r12, %rax
	movq	%rax, -880(%rbp)                ## 8-byte Spill
	movl	$2, %r14d
	xorl	%r15d, %r15d
	movq	%r13, -888(%rbp)                ## 8-byte Spill
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_33 Depth=1
	movl	$10, %edi
	callq	__T
	movb	%al, (%r13,%r15)
	xorl	%edi, %edi
	callq	__T
	movb	%al, 1(%r13,%r15)
LBB0_32:                                ##   in Loop: Header=BB0_33 Depth=1
	incq	%r15
	movq	-880(%rbp), %rax                ## 8-byte Reload
	addq	%r14, %rax
	incq	%rax
	incq	%r14
	cmpq	$2, %rax
	movq	-888(%rbp), %r13                ## 8-byte Reload
	je	LBB0_35
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%r13,%r14,8), %rdi
	callq	__tcslen
	movslq	%eax, %rbx
	movq	%r13, %rax
	movq	-872(%rbp), %r13                ## 8-byte Reload
	leaq	(%r15,%r13), %rdi
	movq	-8(%rax,%r14,8), %rsi
	movq	%rbx, %rdx
	callq	__tcsncpy
	addq	%rbx, %r15
	cmpq	%r12, %r14
	jae	LBB0_31
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movl	$32, %edi
	callq	__T
	movb	%al, (%r13,%r15)
	jmp	LBB0_32
LBB0_35:
	movq	-872(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	__putts
	movq	%r14, %rdi
	callq	_OutputDebugString
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
	jmp	LBB0_36
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--winetest"

L_.str.1:                               ## @.str.1
	.asciz	" --list"

L_.str.2:                               ## @.str.2
	.asciz	"r"

L_.str.3:                               ## @.str.3
	.asciz	" "

L_.str.4:                               ## @.str.4
	.asciz	"\n\nRunning "

L_.str.5:                               ## @.str.5
	.asciz	"--process"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__tmain                         ; -- Begin function _tmain
	.p2align	2
__tmain:                                ; @_tmain
	.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, #832
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cmp	w0, #2
	b.lt	LBB0_32
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	mov	w22, w0
	add	x23, x1, #8
	sub	x24, x22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23], #8
	bl	__tcslen
	add	w8, w0, #1
	add	x21, x21, w8, sxtw
	subs	x24, x24, #1
	b.ne	LBB0_2
; %bb.3:
	cbz	x21, LBB0_32
; %bb.4:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	__tcsstr
	cmp	w20, #3
	b.ne	LBB0_19
; %bb.5:
	cbz	x0, LBB0_19
; %bb.6:
	ldr	x1, [x19, #16]
	add	x0, sp, #313
	bl	_strcpy
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #313
	bl	_strcat
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #313
	bl	__tpopen
	cbz	x0, LBB0_35
; %bb.7:
	mov	x20, x0
	sub	x22, x29, #216
	sub	x0, x29, #216
	mov	w1, #128
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_25
; %bb.8:
Lloh9:
	adrp	x21, l_.str.3@PAGE
Lloh10:
	add	x21, x21, l_.str.3@PAGEOFF
	add	x22, x22, #4
Lloh11:
	adrp	x23, l_.str.4@PAGE
Lloh12:
	add	x23, x23, l_.str.4@PAGEOFF
	mov	w27, #10
Lloh13:
	adrp	x24, l_.str.2@PAGE
Lloh14:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	__pclose
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x0, x29, #216
	mov	w1, #128
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_25
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldurb	w8, [x29, #-216]
	cmp	w8, #32
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x1, [x19, #16]
	add	x0, sp, #313
	bl	_strcpy
	add	x0, sp, #313
	mov	x1, x21
	bl	_strcat
	add	x0, sp, #313
	mov	x1, x22
	bl	_strcat
	add	x0, sp, #13
	mov	x1, x23
	bl	_strcpy
	add	x0, sp, #13
	add	x1, sp, #313
	bl	_strcat
	add	x0, sp, #13
	bl	_OutputDebugStringA
	add	x0, sp, #313
	mov	x1, x24
	bl	__popen
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x25, x0
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x0, sp, #568
	bl	_puts
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x0, sp, #568
	bl	_OutputDebugStringA
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #568
	mov	w1, #128
	mov	x2, x25
	bl	_fgets
	cbz	x0, LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	add	x0, sp, #568
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x26, x0
	strb	wzr, [x0]
	add	x0, sp, #568
	bl	_puts
	strb	w27, [x26]
	b	LBB0_15
LBB0_19:
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	__tcsstr
	cmp	w20, #3
	b.ne	LBB0_26
; %bb.20:
	cbz	x0, LBB0_26
; %bb.21:
	ldr	x0, [x19, #16]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	__tpopen
	cbz	x0, LBB0_35
; %bb.22:
	mov	x19, x0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #13
	mov	w1, #128
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_33
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x0, sp, #13
	bl	_puts
	add	x0, sp, #13
	bl	_OutputDebugStringA
	b	LBB0_23
LBB0_25:
	mov	x0, x20
	b	LBB0_34
LBB0_26:
	bl	_GetProcessHeap
	add	x2, x21, #1
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_32
; %bb.27:
	mov	x20, x0
	mov	x24, #0
	mov	w23, #1
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	w0, #10
	bl	__T
	strb	w0, [x20, x21]
	mov	w0, #0
	bl	__T
	add	x24, x21, #1
	strb	w0, [x20, x24]
	cmp	x22, x23
	b.eq	LBB0_31
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	lsl	x25, x23, #3
	ldr	x0, [x19, x25]
	bl	__tcslen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	add	x0, x20, x24
	ldr	x1, [x19, x25]
	mov	x2, x21
	bl	__tcsncpy
	add	x21, x24, x21
	add	x23, x23, #1
	cmp	x23, x22
	b.hs	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	w0, #32
	bl	__T
	strb	w0, [x20, x21]
	add	x24, x21, #1
	cmp	x22, x23
	b.ne	LBB0_29
LBB0_31:
	mov	x0, x20
	bl	__putts
	mov	x0, x20
	bl	_OutputDebugString
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
	b	LBB0_35
LBB0_32:
	mov	w0, #-1
	b	LBB0_36
LBB0_33:
	mov	x0, x19
LBB0_34:
	bl	__pclose
LBB0_35:
	mov	w0, #0
LBB0_36:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.37:
	add	sp, sp, #832
	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_38:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--winetest"

l_.str.1:                               ; @.str.1
	.asciz	" --list"

l_.str.2:                               ; @.str.2
	.asciz	"r"

l_.str.3:                               ; @.str.3
	.asciz	" "

l_.str.4:                               ; @.str.4
	.asciz	"\n\nRunning "

l_.str.5:                               ; @.str.5
	.asciz	"--process"

.subsections_via_symbols
