	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function local_do_shell
_local_do_shell:                        ## @local_do_shell
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movb	(%rdi), %r12b
	xorl	%r15d, %r15d
	testb	%r12b, %r12b
	cmovneq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	cmpb	$0, (%rax)
	jne	LBB0_3
LBB0_2:
	movq	__PATH_BSHELL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_3:
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.5:
	testb	%r12b, %r12b
	jne	LBB0_6
## %bb.15:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_debug3
	movq	%r14, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_execl
	jmp	LBB0_16
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_fatal
LBB0_8:
	leaq	-44(%rbp), %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	je	LBB0_9
LBB0_13:
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	testl	%eax, %eax
	je	LBB0_14
## %bb.17:
	movl	-44(%rbp), %edi
	callq	_WEXITSTATUS
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	-44(%rbp), %edi
	callq	_WEXITSTATUS
	leaq	L_.str.8(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_19
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r14
	leaq	L_.str.6(%rip), %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	jne	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpq	(%r13), %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_strerror
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_fatal
	jmp	LBB0_12
LBB0_14:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_debug3
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_execl
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_fprintf
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHELL"

	.comm	__PATH_BSHELL,8,3               ## @_PATH_BSHELL
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't fork: %s"

	.comm	_errno,8,3                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"Executing %s -c \"%s\""

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

L_.str.4:                               ## @.str.4
	.asciz	"Executing %s"

	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"Couldn't execute \"%s\": %s\n"

	.comm	_EINTR,8,3                      ## @EINTR
L_.str.6:                               ## @.str.6
	.asciz	"Couldn't wait for child: %s"

L_.str.7:                               ## @.str.7
	.asciz	"Shell exited abnormally"

L_.str.8:                               ## @.str.8
	.asciz	"Shell exited with status %d"

	.no_dead_strip	_local_do_shell
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function local_do_shell
_local_do_shell:                        ; @local_do_shell
	.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
	ldrb	w22, [x0]
	cmp	w22, #0
	csel	x21, xzr, x0, eq
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbnz	w8, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, __PATH_BSHELL@GOTPAGE
Lloh3:
	ldr	x8, [x8, __PATH_BSHELL@GOTPAGEOFF]
Lloh4:
	ldr	x19, [x8]
LBB0_3:
	bl	_fork
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.4:
	cbnz	w20, LBB0_8
; %bb.5:
	cbnz	w22, LBB0_19
; %bb.6:
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_debug3
	mov	x0, x19
	mov	x1, x19
	mov	x2, #0
	b	LBB0_20
LBB0_7:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_8:
	add	x1, sp, #28
	mov	x0, x20
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.eq	LBB0_12
LBB0_9:
	ldr	w0, [sp, #28]
	bl	_WIFEXITED
	cbz	w0, LBB0_16
; %bb.10:
	ldr	w0, [sp, #28]
	bl	_WEXITSTATUS
	cbz	x0, LBB0_18
; %bb.11:
	ldr	w0, [sp, #28]
	bl	_WEXITSTATUS
	str	x0, [sp]
Lloh12:
	adrp	x0, l_.str.8@PAGE
Lloh13:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_17
LBB0_12:
Lloh14:
	adrp	x21, _errno@GOTPAGE
Lloh15:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
Lloh16:
	adrp	x22, _EINTR@GOTPAGE
Lloh17:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
Lloh18:
	adrp	x19, l_.str.6@PAGE
Lloh19:
	add	x19, x19, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x1, sp, #28
	mov	x0, x20
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.ne	LBB0_9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_strerror
	mov	x1, x0
	mov	x0, x19
	bl	_fatal
	b	LBB0_13
LBB0_16:
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_17:
	bl	_error
LBB0_18:
	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_19:
	str	x21, [sp]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_debug3
	stp	x21, xzr, [sp]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x19
LBB0_20:
	bl	_execl
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w20, [x8]
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	x0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_fprintf
	mov	w0, #1
	bl	__exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHELL"

	.comm	__PATH_BSHELL,8,3               ; @_PATH_BSHELL
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't fork: %s"

	.comm	_errno,8,3                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"Executing %s -c \"%s\""

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

l_.str.4:                               ; @.str.4
	.asciz	"Executing %s"

	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"Couldn't execute \"%s\": %s\n"

	.comm	_EINTR,8,3                      ; @EINTR
l_.str.6:                               ; @.str.6
	.asciz	"Couldn't wait for child: %s"

l_.str.7:                               ; @.str.7
	.asciz	"Shell exited abnormally"

l_.str.8:                               ; @.str.8
	.asciz	"Shell exited with status %d"

	.no_dead_strip	_local_do_shell
.subsections_via_symbols
