	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_shell
_exec_shell:                            ## @exec_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_extend_env
	xorl	%eax, %eax
	callq	_start_login_process
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
LBB0_2:
	xorl	%eax, %eax
	callq	_start_logout_process
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rdx
	testq	%rax, %rax
	cmoveq	%rbx, %rdx
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_asprintf
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	movq	-32(%rbp), %rsi
	movq	_env@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_execle
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	__PATH_BSHELL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warnx
	movq	(%r14), %rdi
	movl	(%r15), %ecx
	leaq	L_.str.4(%rip), %rsi
	xorl	%edx, %edx
	callq	_execle
	movq	(%r14), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_err
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"login process"

L_.str.1:                               ## @.str.1
	.asciz	"-%s"

L_.str.2:                               ## @.str.2
	.asciz	"Out of memory"

	.comm	_env,4,2                        ## @env
L_.str.3:                               ## @.str.3
	.asciz	"Can't exec %s, trying %s"

	.comm	__PATH_BSHELL,8,3               ## @_PATH_BSHELL
L_.str.4:                               ## @.str.4
	.asciz	"-sh"

L_.str.5:                               ## @.str.5
	.asciz	"%s"

	.no_dead_strip	_exec_shell
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_shell
_exec_shell:                            ; @exec_shell
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	mov	x0, #0
	bl	_extend_env
	bl	_start_login_process
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
LBB0_2:
	bl	_start_logout_process
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x2, x19, x0, eq
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	ldr	x1, [sp, #8]
Lloh6:
	adrp	x21, _env@GOTPAGE
Lloh7:
	ldr	x21, [x21, _env@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x2, #0
	bl	_execle
	cbz	w20, LBB0_6
; %bb.5:
Lloh8:
	adrp	x20, __PATH_BSHELL@GOTPAGE
Lloh9:
	ldr	x20, [x20, __PATH_BSHELL@GOTPAGEOFF]
	ldr	x2, [x20]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_warnx
	ldr	x0, [x20]
	ldr	w3, [x21]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, #0
	bl	_execle
	ldr	x2, [x20]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"login process"

l_.str.1:                               ; @.str.1
	.asciz	"-%s"

l_.str.2:                               ; @.str.2
	.asciz	"Out of memory"

	.comm	_env,4,2                        ; @env
l_.str.3:                               ; @.str.3
	.asciz	"Can't exec %s, trying %s"

	.comm	__PATH_BSHELL,8,3               ; @_PATH_BSHELL
l_.str.4:                               ; @.str.4
	.asciz	"-sh"

l_.str.5:                               ; @.str.5
	.asciz	"%s"

	.no_dead_strip	_exec_shell
.subsections_via_symbols
