	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	_LC_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_setlocale
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_initcharset
	movl	$0, -28(%rbp)
	movq	_main_handler@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_setjmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	cmpl	$0, -28(%rbp)
	je	LBB0_5
## %bb.2:
	movq	_iflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_rootshell@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_exception@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EXEXIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_5:
	movq	_exitstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exitshell
LBB0_6:
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_reset
	movq	_exception@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EXINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_out2fmt_flush
LBB0_8:
	leaq	-40(%rbp), %rdi
	callq	_popstackmark
	movl	-28(%rbp), %eax
	cmpl	$1, %eax
	je	LBB0_16
## %bb.9:
	movl	-28(%rbp), %eax
	cmpl	$2, %eax
	je	LBB0_17
## %bb.10:
	movl	-28(%rbp), %eax
	cmpl	$3, %eax
	je	LBB0_22
	jmp	LBB0_26
LBB0_11:
	movq	_handler@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	xorl	%eax, %eax
	movl	%eax, %ebx
	callq	_getpid
	movq	_rootpid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_rootshell@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	%ebx, %eax
	callq	_initvar
	leaq	-40(%rbp), %rdi
	callq	_setstackmark
	leaq	-32(%rbp), %rdi
	callq	_setstackmark
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_procargs
	movq	_iflag@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_pwd_init
	cmpq	$0, (%rbx)
	je	LBB0_13
## %bb.12:
	movl	$1, %edi
	callq	_chkmail
LBB0_13:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	cmpb	$45, (%rax)
	jne	LBB0_17
## %bb.15:
	movl	$1, -28(%rbp)
	leaq	L_.str.2(%rip), %rdi
	callq	_read_profile
LBB0_16:
	movl	$2, -28(%rbp)
	movq	_privileged@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_read_profile
LBB0_17:
	movl	$3, -28(%rbp)
	movq	_privileged@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_22
## %bb.18:
	movq	_iflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.19:
	leaq	L_.str.5(%rip), %rdi
	callq	_lookupvar
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	cmpb	$0, (%rax)
	je	LBB0_22
## %bb.21:
	movq	%rax, %rdi
	movl	$3, -28(%rbp)
	callq	_read_profile
LBB0_22:
	movl	$4, -28(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_popstackmark
	movq	_minusc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.23:
	movq	_sflag@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpq	$0, (%rax)
	jne	LBB0_25
## %bb.24:
	movq	_EV_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_25:
	callq	_evalstring
LBB0_26:
	movq	_sflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_28
## %bb.27:
	movq	_minusc@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_29
LBB0_28:
	movl	$1, %edi
	callq	_cmdloop
LBB0_29:
	movq	_exitstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exitshell
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LC_ALL,4,2                     ## @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_main_handler,4,2               ## @main_handler
	.comm	_iflag,8,3                      ## @iflag
	.comm	_rootshell,4,2                  ## @rootshell
	.comm	_exception,8,3                  ## @exception
	.comm	_EXEXIT,8,3                     ## @EXEXIT
	.comm	_exitstatus,4,2                 ## @exitstatus
	.comm	_EXINT,8,3                      ## @EXINT
L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.comm	_FORCEINTON,4,2                 ## @FORCEINTON
	.comm	_handler,8,3                    ## @handler
	.comm	_rootpid,4,2                    ## @rootpid
	.comm	_INTOFF,4,2                     ## @INTOFF
	.comm	_INTON,4,2                      ## @INTON
L_.str.2:                               ## @.str.2
	.asciz	"/etc/profile"

	.comm	_privileged,8,3                 ## @privileged
L_.str.3:                               ## @.str.3
	.asciz	"${HOME-}/.profile"

L_.str.4:                               ## @.str.4
	.asciz	"/etc/suid_profile"

L_.str.5:                               ## @.str.5
	.asciz	"ENV"

	.comm	_minusc,8,3                     ## @minusc
	.comm	_sflag,8,3                      ## @sflag
	.comm	_EV_EXIT,4,2                    ## @EV_EXIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _LC_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LC_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_setlocale
	bl	_initcharset
	str	wzr, [sp, #12]
Lloh5:
	adrp	x26, _main_handler@GOTPAGE
Lloh6:
	ldr	x26, [x26, _main_handler@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_setjmp
Lloh7:
	adrp	x21, _exitstatus@GOTPAGE
Lloh8:
	ldr	x21, [x21, _exitstatus@GOTPAGEOFF]
Lloh9:
	adrp	x22, _minusc@GOTPAGE
Lloh10:
	ldr	x22, [x22, _minusc@GOTPAGEOFF]
Lloh11:
	adrp	x23, _sflag@GOTPAGE
Lloh12:
	ldr	x23, [x23, _sflag@GOTPAGEOFF]
Lloh13:
	adrp	x25, _privileged@GOTPAGE
Lloh14:
	ldr	x25, [x25, _privileged@GOTPAGEOFF]
Lloh15:
	adrp	x24, _iflag@GOTPAGE
Lloh16:
	ldr	x24, [x24, _iflag@GOTPAGEOFF]
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w8, [sp, #12]
Lloh17:
	adrp	x19, _exception@GOTPAGE
Lloh18:
	ldr	x19, [x19, _exception@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	x8, [x24]
Lloh19:
	adrp	x9, _rootshell@GOTPAGE
Lloh20:
	ldr	x9, [x9, _rootshell@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _EXEXIT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _EXEXIT@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
	ldr	w0, [x21]
	bl	_exitshell
LBB0_5:
	bl	_reset
	ldr	x8, [x19]
Lloh25:
	adrp	x9, _EXINT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _EXINT@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_out2fmt_flush
LBB0_7:
	add	x0, sp, #24
	bl	_popstackmark
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.eq	LBB0_15
; %bb.8:
	ldr	w8, [sp, #12]
	cmp	w8, #2
	b.eq	LBB0_16
; %bb.9:
	ldr	w8, [sp, #12]
	cmp	w8, #3
	b.eq	LBB0_21
	b	LBB0_23
LBB0_10:
Lloh30:
	adrp	x8, _handler@GOTPAGE
Lloh31:
	ldr	x8, [x8, _handler@GOTPAGEOFF]
Lloh32:
	str	x26, [x8]
	bl	_getpid
Lloh33:
	adrp	x8, _rootpid@GOTPAGE
Lloh34:
	ldr	x8, [x8, _rootpid@GOTPAGEOFF]
Lloh35:
	str	w0, [x8]
Lloh36:
	adrp	x8, _rootshell@GOTPAGE
Lloh37:
	ldr	x8, [x8, _rootshell@GOTPAGEOFF]
	mov	w9, #1
Lloh38:
	str	w9, [x8]
	bl	_initvar
	add	x0, sp, #24
	bl	_setstackmark
	add	x0, sp, #16
	bl	_setstackmark
	mov	x0, x20
	mov	x1, x19
	bl	_procargs
	ldr	x0, [x24]
	bl	_pwd_init
	ldr	x8, [x24]
	cbz	x8, LBB0_12
; %bb.11:
	mov	w0, #1
	bl	_chkmail
LBB0_12:
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.13:
	ldrb	w8, [x8]
	cmp	w8, #45
	b.ne	LBB0_16
; %bb.14:
	mov	w8, #1
	str	w8, [sp, #12]
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_read_profile
LBB0_15:
	mov	w8, #2
	str	w8, [sp, #12]
	ldr	x8, [x25]
Lloh41:
	adrp	x9, l_.str.4@PAGE
Lloh42:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh43:
	adrp	x10, l_.str.3@PAGE
Lloh44:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	bl	_read_profile
LBB0_16:
	mov	w8, #3
	str	w8, [sp, #12]
	ldr	x8, [x25]
	cbnz	x8, LBB0_21
; %bb.17:
	ldr	x8, [x24]
	cbz	x8, LBB0_21
; %bb.18:
Lloh45:
	adrp	x0, l_.str.5@PAGE
Lloh46:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_lookupvar
	cbz	x0, LBB0_21
; %bb.19:
	ldrb	w8, [x0]
	cbz	w8, LBB0_21
; %bb.20:
	mov	w8, #3
	str	w8, [sp, #12]
	bl	_read_profile
LBB0_21:
	mov	w8, #4
	str	w8, [sp, #12]
	add	x0, sp, #16
	bl	_popstackmark
	ldr	x0, [x22]
	cbz	x0, LBB0_23
; %bb.22:
	mov	w8, #0
	ldr	x9, [x23]
Lloh47:
	adrp	x10, _EV_EXIT@GOTPAGE
Lloh48:
	ldr	x10, [x10, _EV_EXIT@GOTPAGEOFF]
Lloh49:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w1, w10, w8, eq
	bl	_evalstring
LBB0_23:
	ldr	x8, [x23]
	cbnz	x8, LBB0_25
; %bb.24:
	ldr	x8, [x22]
	cbnz	x8, LBB0_26
LBB0_25:
	mov	w0, #1
	bl	_cmdloop
LBB0_26:
	ldr	w0, [x21]
	bl	_exitshell
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_LC_ALL,4,2                     ; @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_main_handler,4,2               ; @main_handler
	.comm	_iflag,8,3                      ; @iflag
	.comm	_rootshell,4,2                  ; @rootshell
	.comm	_exception,8,3                  ; @exception
	.comm	_EXEXIT,8,3                     ; @EXEXIT
	.comm	_exitstatus,4,2                 ; @exitstatus
	.comm	_EXINT,8,3                      ; @EXINT
l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.comm	_FORCEINTON,4,2                 ; @FORCEINTON
	.comm	_handler,8,3                    ; @handler
	.comm	_rootpid,4,2                    ; @rootpid
	.comm	_INTOFF,4,2                     ; @INTOFF
	.comm	_INTON,4,2                      ; @INTON
l_.str.2:                               ; @.str.2
	.asciz	"/etc/profile"

	.comm	_privileged,8,3                 ; @privileged
l_.str.3:                               ; @.str.3
	.asciz	"${HOME-}/.profile"

l_.str.4:                               ; @.str.4
	.asciz	"/etc/suid_profile"

l_.str.5:                               ; @.str.5
	.asciz	"ENV"

	.comm	_minusc,8,3                     ; @minusc
	.comm	_sflag,8,3                      ; @sflag
	.comm	_EV_EXIT,4,2                    ; @EV_EXIT
.subsections_via_symbols
