	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doshell
_doshell:                               ## @doshell
	.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, %r14
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r15
	movq	__PATH_BSHELL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_master@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_close
	movq	_fscript@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fclose
	movq	_fmfname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_free
	movq	_slave@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_login_tty
	movq	_fname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	$1, %edx
	callq	_setenv
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_1
## %bb.2:
	testq	%r15, %r15
	cmovneq	%r15, %rbx
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_execl
	jmp	LBB0_3
LBB0_1:
	movq	%r14, %rsi
	callq	_execvp
	movq	(%r14), %rbx
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warn
	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
	.comm	_master,4,2                     ## @master
	.comm	_fscript,4,2                    ## @fscript
	.comm	_fmfname,4,2                    ## @fmfname
	.comm	_slave,4,2                      ## @slave
L_.str.1:                               ## @.str.1
	.asciz	"SCRIPT"

	.comm	_fname,4,2                      ## @fname
L_.str.2:                               ## @.str.2
	.asciz	"%s"

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

	.no_dead_strip	_doshell
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doshell
_doshell:                               ; @doshell
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x20, x0
Lloh2:
	adrp	x8, __PATH_BSHELL@GOTPAGE
Lloh3:
	ldr	x8, [x8, __PATH_BSHELL@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
Lloh5:
	adrp	x8, _master@GOTPAGE
Lloh6:
	ldr	x8, [x8, _master@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_close
Lloh8:
	adrp	x8, _fscript@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fscript@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_fclose
Lloh11:
	adrp	x8, _fmfname@GOTPAGE
Lloh12:
	ldr	x8, [x8, _fmfname@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_free
Lloh14:
	adrp	x8, _slave@GOTPAGE
Lloh15:
	ldr	x8, [x8, _slave@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_login_tty
Lloh17:
	adrp	x8, _fname@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fname@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_setenv
	ldr	x0, [x19]
	cbnz	x0, LBB0_2
; %bb.1:
	cmp	x20, #0
	csel	x19, x21, x20, eq
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x19
	mov	x3, #0
	bl	_execl
	b	LBB0_3
LBB0_2:
	mov	x1, x19
	bl	_execvp
	ldr	x19, [x19]
LBB0_3:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_warn
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHELL"

	.comm	__PATH_BSHELL,8,3               ; @_PATH_BSHELL
	.comm	_master,4,2                     ; @master
	.comm	_fscript,4,2                    ; @fscript
	.comm	_fmfname,4,2                    ; @fmfname
	.comm	_slave,4,2                      ; @slave
l_.str.1:                               ; @.str.1
	.asciz	"SCRIPT"

	.comm	_fname,4,2                      ; @fname
l_.str.2:                               ; @.str.2
	.asciz	"%s"

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

	.no_dead_strip	_doshell
.subsections_via_symbols
