	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spawn_script
_spawn_script:                          ## @spawn_script
	.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	%r9d, %r12d
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	movq	__O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	__open
	movl	$-1, %r15d
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movl	%eax, %r13d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	5(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	addl	$4, %ebx
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	__read
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	__close
	cmpl	$4, %r12d
	jl	LBB0_11
## %bb.2:
	movl	%r12d, %eax
	movb	$0, (%r14,%rax)
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_11:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
LBB0_13:
	movl	%r14d, (%rbx)
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movslq	%r15d, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movabsq	$4294976000, %rax               ## imm = 0x100002200
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movb	$0, (%r12)
	movzbl	-1(%r12), %ecx
	cmpq	$32, %rcx
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	decq	%r12
	btq	%rcx, %rax
	jb	LBB0_5
LBB0_7:
	addq	$2, %r14
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %eax
	cmpb	$32, %al
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$9, %al
	je	LBB0_10
## %bb.12:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	leaq	-8(%rbx), %r12
	movq	%r14, %rdi
	callq	_backslashify
	movq	%r14, -8(%rbx)
	movq	%r14, %rdi
	movl	$92, %esi
	callq	_strrchr
	leaq	1(%rax), %rdi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	%r12, %rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r15
	callq	_win32_spawn
	addq	$16, %rsp
	movl	%eax, %r15d
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	testl	%eax, %eax
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	jns	LBB0_14
	jmp	LBB0_13
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	__O_RDONLY,4,2                  ## @_O_RDONLY
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#!"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_spawn_script
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spawn_script
_spawn_script:                          ; @spawn_script
	.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, #16
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
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	x27, _errno@GOTPAGE
Lloh4:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
	ldr	w28, [x27]
Lloh5:
	adrp	x8, __O_RDONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, __O_RDONLY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	__open
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x25, x0
	stur	w19, [x29, #-92]                ; 4-byte Folded Spill
	mov	x19, sp
Lloh8:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x8]
	add	w8, w12, #5
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	add	w2, w12, #4
	mov	x1, x24
	bl	__read
	mov	x26, x0
	mov	x0, x25
	bl	__close
	cmp	w26, #4
	b.lt	LBB0_4
; %bb.2:
	strb	wzr, [x24, w26, uxtw]
	mov	x0, x24
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.3:
	mov	x25, x0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_9
LBB0_4:
	mov	sp, x19
LBB0_5:
	mov	w0, #-1
LBB0_6:
	str	w28, [x27]
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.8:
	sxtw	x0, w0
	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_9:
	mov	w8, #1
	mov	x9, #8704
	movk	x9, #1, lsl #32
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	strb	wzr, [x25]
	ldrb	w10, [x25, #-1]!
	cmp	w10, #32
	lsl	x10, x8, x10
	and	x10, x10, x9
	ccmp	x10, #0, #4, ls
	b.ne	LBB0_10
; %bb.11:
	add	x24, x24, #2
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x24]
	cmp	w8, #32
	ccmp	w8, #9, #4, ne
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	b	LBB0_12
LBB0_14:
	mov	x0, x24
	bl	_backslashify
	str	x24, [x23, #-8]!
	mov	x0, x24
	mov	w1, #92
	bl	_strrchr
	add	x0, x0, #1
Lloh18:
	adrp	x8, _TRUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	ldur	w6, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_win32_spawn
                                        ; kill: def $w0 killed $w0 def $x0
	mov	sp, x19
	tbz	w0, #31, LBB0_7
	b	LBB0_6
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	__O_RDONLY,4,2                  ; @_O_RDONLY
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#!"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_spawn_script
.subsections_via_symbols
