	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shell_escape
_shell_escape:                          ## @shell_escape
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_vfork
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.1:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	leaq	-28(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_wait
	cmpl	%ebx, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_3
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	callq	_error
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %r14
	cmovneq	%rax, %r14
	movl	$47, %esi
	movq	%r14, %rdi
	callq	_strrchr
	leaq	1(%rax), %rsi
	testq	%rax, %rax
	cmoveq	%r14, %rsi
	testq	%r15, %r15
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	movl	%eax, %edx
                                        ## kill: def $al killed $al killed $eax
	movq	%r14, %rdi
	callq	_execl
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	movl	%eax, %r8d
                                        ## kill: def $al killed $al killed $eax
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_execl
LBB0_8:
	movq	_gdb_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_safe_strerror
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_fprintf_unfiltered
	movl	(%r15), %edi
	callq	_gdb_flush
	movl	$127, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHELL"

L_.str.1:                               ## @.str.1
	.asciz	"/bin/sh"

L_.str.2:                               ## @.str.2
	.asciz	"-c"

	.comm	_gdb_stderr,4,2                 ## @gdb_stderr
L_.str.3:                               ## @.str.3
	.asciz	"Cannot execute %s: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.4:                               ## @.str.4
	.asciz	"Fork failed"

	.comm	_current_directory,4,2          ## @current_directory
	.no_dead_strip	_shell_escape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shell_escape
_shell_escape:                          ; @shell_escape
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_vfork
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x8, x0
	cbz	w20, LBB0_6
; %bb.2:
	add	x19, sp, #28
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_wait
	cmp	w0, w20
	ccmn	w0, #1, #4, ne
	b.ne	LBB0_3
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x0, l_.str.4@PAGE
Lloh1:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_error
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x20, x8, x0, eq
	mov	x21, x19
	mov	x19, x20
	mov	w1, #47
	mov	x0, x20
	bl	_strrchr
	cmp	x0, #0
	csinc	x1, x20, x0, eq
	cbnz	x21, LBB0_8
; %bb.7:
	mov	x2, #0
	b	LBB0_9
LBB0_8:
	mov	x8, x21
	mov	x9, sp
	stp	x21, xzr, [x9]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_execl
Lloh8:
	adrp	x21, _gdb_stderr@GOTPAGE
Lloh9:
	ldr	x21, [x21, _gdb_stderr@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_safe_strerror
	mov	x3, x0
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_fprintf_unfiltered
	ldr	w0, [x21]
	bl	_gdb_flush
	mov	w0, #127
	bl	__exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHELL"

l_.str.1:                               ; @.str.1
	.asciz	"/bin/sh"

l_.str.2:                               ; @.str.2
	.asciz	"-c"

	.comm	_gdb_stderr,4,2                 ; @gdb_stderr
l_.str.3:                               ; @.str.3
	.asciz	"Cannot execute %s: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.4:                               ; @.str.4
	.asciz	"Fork failed"

	.comm	_current_directory,4,2          ; @current_directory
	.no_dead_strip	_shell_escape
.subsections_via_symbols
