	.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	%r14
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movl	$0, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$-5, %rax
	leaq	-128(%rbp), %rdi
	movq	%rax, %rsi
	callq	_strcpy
LBB0_2:
	leaq	-128(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_xX_main_Xx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_procfs@GOTPCREL(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_do_mount
	movq	_devptsfs@GOTPCREL(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_do_mount
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_run
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	negl	%edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	callq	_fprintf
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$112, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TERM"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.comm	_procfs,4,2                     ## @procfs
L_.str.2:                               ## @.str.2
	.asciz	"proc"

L_.str.3:                               ## @.str.3
	.asciz	"/proc"

	.comm	_devptsfs,4,2                   ## @devptsfs
L_.str.4:                               ## @.str.4
	.asciz	"devpts"

L_.str.5:                               ## @.str.5
	.asciz	"/dev/pts"

	.comm	_current,8,3                    ## @current
.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, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	str	wzr, [sp, #96]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_2
; %bb.1:
	sub	x1, x0, #5
	mov	x0, sp
	bl	_strcpy
LBB0_2:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_xX_main_Xx
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, _procfs@GOTPAGE
Lloh6:
	ldr	x0, [x0, _procfs@GOTPAGEOFF]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w3, #0
	bl	_do_mount
Lloh11:
	adrp	x0, _devptsfs@GOTPAGE
Lloh12:
	ldr	x0, [x0, _devptsfs@GOTPAGEOFF]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh15:
	adrp	x2, l_.str.5@PAGE
Lloh16:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w3, #0
	bl	_do_mount
Lloh17:
	adrp	x8, _current@GOTPAGE
Lloh18:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	bl	_cpu_run
	mov	w19, #0
	b	LBB0_5
LBB0_4:
	mov	x19, x0
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	neg	w0, w0
	bl	_strerror
	mov	x2, x0
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fprintf
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TERM"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.comm	_procfs,4,2                     ; @procfs
l_.str.2:                               ; @.str.2
	.asciz	"proc"

l_.str.3:                               ; @.str.3
	.asciz	"/proc"

	.comm	_devptsfs,4,2                   ; @devptsfs
l_.str.4:                               ; @.str.4
	.asciz	"devpts"

l_.str.5:                               ; @.str.5
	.asciz	"/dev/pts"

	.comm	_current,8,3                    ; @current
.subsections_via_symbols
