	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function win32_spawn
_win32_spawn:                           ## @win32_spawn
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, %r13d
	movq	%rdx, %rbx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r15d
	cmpq	$0, (%r14,%rbx)
	leaq	8(%rbx), %rbx
	jne	LBB0_3
## %bb.4:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.6:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	addl	$-8, %ebx
	movl	%ebx, %edi
	callq	_alloca
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	_env_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$8, %edx
	callq	_qsort
	movl	%r15d, %r13d
	movl	$1, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r12,8), %rdi
	callq	_strlen
	addl	%eax, %ebx
	incl	%ebx
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_7
## %bb.8:
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, %r14
	cmpl	$2, %r15d
	movl	$1, %r12d
	cmovael	%r15d, %r12d
	xorl	%ebx, %ebx
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rsi
	movq	%rax, %rdi
	callq	_stpcpy
	incq	%rax
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_9
## %bb.10:
	movb	$0, (%rax)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_5:
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	callq	_find_executable
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:
	movq	%rbx, %rdi
	callq	_argv_to_cmdline
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	16(%rbp), %rbx
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r13d, %r9d
	pushq	%rbx
	pushq	%r12
	pushq	$0
	pushq	%r14
	callq	_CreateProcess
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_14
## %bb.17:
	movl	8(%rbx), %edi
	callq	_CloseHandle
	movq	%r15, %rdi
	callq	_free
	testq	%r14, %r14
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_free
LBB0_19:
	movq	(%rbx), %rbx
	jmp	LBB0_24
LBB0_20:
	testq	%r14, %r14
	je	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	callq	_free
LBB0_22:
	movq	$-1, %rbx
	testq	%r15, %r15
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_24
LBB0_14:
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_free
LBB0_16:
	movq	%r15, %rdi
	callq	_free
	movq	$-1, %rbx
LBB0_24:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_env_compare,4,2                ## @env_compare
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_win32_spawn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function win32_spawn
_win32_spawn:                           ; @win32_spawn
	.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, x6
	mov	x21, x5
	mov	x26, x4
	mov	x25, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	cbz	x3, LBB0_10
; %bb.1:
	mov	x8, #0
	mov	w20, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25, x8]
	add	w20, w20, #1
	add	x8, x8, #8
	cbnz	x9, LBB0_2
; %bb.3:
	cbz	w20, LBB0_9
; %bb.4:
	str	w21, [sp, #28]                  ; 4-byte Folded Spill
	mov	x21, x26
	sub	w28, w8, #8
	mov	x0, x28
	bl	_alloca
	mov	x27, x0
	mov	x1, x25
	mov	x2, x28
	bl	_memcpy
Lloh0:
	adrp	x8, _env_compare@GOTPAGE
Lloh1:
	ldr	x8, [x8, _env_compare@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x20
	mov	w2, #8
	bl	_qsort
	mov	w28, #1
	mov	x26, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25], #8
	bl	_strlen
	add	w8, w28, w0
	add	w28, w8, #1
	subs	x26, x26, #1
	b.ne	LBB0_5
; %bb.6:
	mov	x0, x28
	bl	_malloc
	mov	x25, x0
	cmp	w20, #1
	csinc	w20, w20, wzr, hi
	mov	x26, x21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x27], #8
	bl	_stpcpy
	add	x0, x0, #1
	subs	x20, x20, #1
	b.ne	LBB0_7
; %bb.8:
	strb	wzr, [x0]
	ldr	w21, [sp, #28]                  ; 4-byte Folded Reload
	b	LBB0_10
LBB0_9:
	mov	x25, #0
LBB0_10:
	mov	x0, x24
	mov	x1, x23
	bl	_find_executable
	mov	x23, x0
	cbz	x0, LBB0_16
; %bb.11:
	mov	x0, x22
	bl	_argv_to_cmdline
	cbz	x0, LBB0_16
; %bb.12:
	mov	x1, x0
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	str	x19, [sp, #8]
	str	w21, [sp]
	mov	x0, x23
	mov	x2, #0
	mov	x3, #0
	mov	x5, x26
	mov	x6, x25
	mov	x7, #0
	bl	_CreateProcess
	cbz	w0, LBB0_19
; %bb.13:
	ldr	w0, [x19, #8]
	bl	_CloseHandle
	mov	x0, x23
	bl	_free
	cbz	x25, LBB0_15
; %bb.14:
	mov	x0, x25
	bl	_free
LBB0_15:
	ldr	x0, [x19]
	b	LBB0_23
LBB0_16:
	cbz	x25, LBB0_18
; %bb.17:
	mov	x0, x25
	bl	_free
LBB0_18:
	cbnz	x23, LBB0_21
	b	LBB0_22
LBB0_19:
	cbz	x25, LBB0_21
; %bb.20:
	mov	x0, x25
	bl	_free
LBB0_21:
	mov	x0, x23
	bl	_free
LBB0_22:
	mov	x0, #-1
LBB0_23:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_env_compare,4,2                ; @env_compare
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_win32_spawn
.subsections_via_symbols
