	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r13d
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TIOCGETA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	_TIOCGWINSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	_FIODGNAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	_LC_CTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_setlocale
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	_CAP_FCNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAP_FSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CAP_IOCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	_CAP_LOOKUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CAP_PWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-92(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_cap_rights_init
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_caph_rights_limit
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	movq	_CAP_FCNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAP_FSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	_CAP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CAP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-92(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_cap_rights_init
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_caph_rights_limit
	testq	%rax, %rax
	js	LBB0_13
## %bb.5:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-92(%rbp), %rsi
	callq	_caph_rights_limit
	testq	%rax, %rax
	js	LBB0_13
## %bb.6:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-92(%rbp), %rsi
	callq	_caph_rights_limit
	testq	%rax, %rax
	js	LBB0_13
## %bb.7:
	movl	(%r14), %ebx
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	callq	_nitems
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_caph_ioctls_limit
	testq	%rax, %rax
	js	LBB0_13
## %bb.8:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	callq	_nitems
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_caph_ioctls_limit
	testq	%rax, %rax
	js	LBB0_13
## %bb.9:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	callq	_nitems
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_caph_ioctls_limit
	testq	%rax, %rax
	js	LBB0_13
## %bb.10:
	movl	(%r14), %edi
	movq	_CAP_FCNTL_GETFL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_caph_fcntls_limit
	testq	%rax, %rax
	js	LBB0_13
## %bb.11:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_caph_fcntls_limit
	testq	%rax, %rax
	js	LBB0_13
## %bb.12:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_caph_fcntls_limit
	testq	%rax, %rax
	jns	LBB0_14
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_14:
	xorl	%eax, %eax
	callq	_caph_cache_catpages
	xorl	%eax, %eax
	callq	_caph_cache_tzdata
	xorl	%eax, %eax
	callq	_setutxent
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_getlogin
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_18
## %bb.15:
	movl	%ebx, %edi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	(%rax), %r12
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.4(%rip), %r12
LBB0_18:
	movl	%ebx, -96(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_caph_enter
	testq	%rax, %rax
	jns	LBB0_20
## %bb.19:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_20:
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %edi
	movq	%r15, %rsi
	callq	_getopt
	cmpl	$-1, %eax
	je	LBB0_23
## %bb.21:
	leaq	L_.str(%rip), %rbx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_usage
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_getopt
	cmpl	$-1, %eax
	jne	LBB0_22
LBB0_23:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_stdin@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_fileno
	movl	%eax, %edi
	callq	_isatty
	testq	%rax, %rax
	jne	LBB0_29
## %bb.24:
	movq	_stdout@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_fileno
	movl	%eax, %edi
	callq	_isatty
	testq	%rax, %rax
	jne	LBB0_29
## %bb.25:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_fileno
	movl	%eax, %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_26
LBB0_29:
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_fileno
	movl	%eax, %edi
	callq	_ttyname
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_31
## %bb.30:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_31:
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_33
## %bb.32:
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strlen
	cltq
	addq	%rax, %r12
LBB0_33:
	leaq	-88(%rbp), %rdx
	leaq	-100(%rbp), %rcx
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	$1, %r8d
	callq	_term_chk
	testq	%rax, %rax
	jne	LBB0_53
## %bb.34:
	subl	%r14d, %r13d
	cmpl	$0, -88(%rbp)
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	je	LBB0_35
## %bb.36:
	cmpl	$2, %r13d
	je	LBB0_39
LBB0_37:
	cmpl	$1, %r13d
	jne	LBB0_50
## %bb.38:
	movq	(%r15,%r14,8), %rsi
	movl	%ebx, %edi
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r12, %rcx
	movl	-96(%rbp), %r8d                 ## 4-byte Reload
	callq	_search_utmp
	movl	%ebx, %edi
	movq	%r14, %rsi
	jmp	LBB0_49
LBB0_35:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	cmpl	$2, %r13d
	jne	LBB0_37
LBB0_39:
	movq	8(%r15,%r14,8), %r13
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_41
## %bb.40:
	movq	8(%r15,%r14,8), %rsi
	jmp	LBB0_42
LBB0_50:
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_51
LBB0_41:
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strlen
	movslq	%eax, %rsi
	addq	8(%r15,%r14,8), %rsi
	movq	%rsi, 8(%r15,%r14,8)
LBB0_42:
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	movq	(%r15,%r14,8), %rdi
	callq	_utmp_chk
	testl	%eax, %eax
	je	LBB0_44
## %bb.43:
	movq	(%r15,%r14,8), %rdx
	movq	8(%r15,%r14,8), %rcx
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_44:
	movq	8(%r15,%r14,8), %rsi
	leaq	-88(%rbp), %rdx
	leaq	-100(%rbp), %rcx
	movl	%ebx, %edi
	movl	$1, %r8d
	callq	_term_chk
	testq	%rax, %rax
	jne	LBB0_53
## %bb.45:
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_48
## %bb.46:
	cmpl	$0, -88(%rbp)
	jne	LBB0_48
## %bb.47:
	movq	(%r15,%r14,8), %rdx
	movq	8(%r15,%r14,8), %rcx
	leaq	L_.str.10(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_48:
	movq	8(%r15,%r14,8), %rsi
	movl	%ebx, %edi
LBB0_49:
	movq	%r12, %rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	callq	_do_write
LBB0_51:
	xorl	%edi, %edi
	callq	_done
	movq	-128(%rbp), %rsp                ## 8-byte Reload
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_52
## %bb.28:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	_main.cold.1
	jmp	LBB0_27
LBB0_53:
	movl	$1, %edi
	callq	_exit
LBB0_52:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function main.cold.1
_main.cold.1:                           ## @main.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.6(%rip), %rsi
	pushq	$1
	popq	%rdi
	xorl	%eax, %eax
	callq	_errx
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_TIOCGETA,8,3                   ## @TIOCGETA
	.comm	_TIOCGWINSZ,8,3                 ## @TIOCGWINSZ
	.comm	_FIODGNAME,8,3                  ## @FIODGNAME
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_LC_CTYPE,4,2                   ## @LC_CTYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	__PATH_DEV,4,2                  ## @_PATH_DEV
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"open(/dev)"

	.comm	_CAP_FCNTL,4,2                  ## @CAP_FCNTL
	.comm	_CAP_FSTAT,4,2                  ## @CAP_FSTAT
	.comm	_CAP_IOCTL,4,2                  ## @CAP_IOCTL
	.comm	_CAP_LOOKUP,4,2                 ## @CAP_LOOKUP
	.comm	_CAP_PWRITE,4,2                 ## @CAP_PWRITE
L_.str.2:                               ## @.str.2
	.asciz	"can't limit devfd rights"

	.comm	_CAP_READ,4,2                   ## @CAP_READ
	.comm	_CAP_WRITE,4,2                  ## @CAP_WRITE
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.comm	_CAP_FCNTL_GETFL,4,2            ## @CAP_FCNTL_GETFL
L_.str.3:                               ## @.str.3
	.asciz	"can't limit stdio rights"

L_.str.4:                               ## @.str.4
	.asciz	"???"

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

	.comm	_optind,8,3                     ## @optind
	.comm	_stdin,4,2                      ## @stdin
	.comm	_stdout,4,2                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
L_.str.6:                               ## @.str.6
	.asciz	"can't find your tty"

L_.str.7:                               ## @.str.7
	.asciz	"can't find your tty's name"

L_.str.8:                               ## @.str.8
	.asciz	"you have write permission turned off"

L_.str.9:                               ## @.str.9
	.asciz	"%s is not logged in on %s"

L_.str.10:                              ## @.str.10
	.asciz	"%s has messages disabled on %s"

.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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x22, x1
	mov	x21, x0
	mov	x8, sp
	stur	x8, [x29, #-136]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _TIOCGETA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIOCGETA@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _TIOCGWINSZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TIOCGWINSZ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _FIODGNAME@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FIODGNAME@GOTPAGEOFF]
	stp	x8, x9, [x29, #-112]
Lloh11:
	ldr	x8, [x10]
	stur	x8, [x29, #-96]
Lloh12:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh17:
	adrp	x8, _LC_CTYPE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LC_CTYPE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_setlocale
Lloh22:
	adrp	x28, __PATH_DEV@GOTPAGE
Lloh23:
	ldr	x28, [x28, __PATH_DEV@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh24:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh29:
	adrp	x23, _CAP_FCNTL@GOTPAGE
Lloh30:
	ldr	x23, [x23, _CAP_FCNTL@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh31:
	adrp	x24, _CAP_FSTAT@GOTPAGE
Lloh32:
	ldr	x24, [x24, _CAP_FSTAT@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh33:
	adrp	x25, _CAP_IOCTL@GOTPAGE
Lloh34:
	ldr	x25, [x25, _CAP_IOCTL@GOTPAGEOFF]
	ldr	w3, [x25]
Lloh35:
	adrp	x8, _CAP_LOOKUP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CAP_LOOKUP@GOTPAGEOFF]
Lloh37:
	ldr	w4, [x8]
Lloh38:
	adrp	x8, _CAP_PWRITE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CAP_PWRITE@GOTPAGEOFF]
Lloh40:
	ldr	w5, [x8]
	sub	x0, x29, #116
	bl	_cap_rights_init
	sub	x1, x29, #116
	mov	x0, x19
	bl	_caph_rights_limit
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	ldr	w1, [x23]
	ldr	w2, [x24]
	ldr	w3, [x25]
Lloh43:
	adrp	x8, _CAP_READ@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CAP_READ@GOTPAGEOFF]
Lloh45:
	ldr	w4, [x8]
Lloh46:
	adrp	x8, _CAP_WRITE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CAP_WRITE@GOTPAGEOFF]
Lloh48:
	ldr	w5, [x8]
	sub	x0, x29, #116
	bl	_cap_rights_init
Lloh49:
	adrp	x25, _STDIN_FILENO@GOTPAGE
Lloh50:
	ldr	x25, [x25, _STDIN_FILENO@GOTPAGEOFF]
	ldr	w0, [x25]
	sub	x1, x29, #116
	bl	_caph_rights_limit
	tbnz	x0, #63, LBB0_13
; %bb.5:
Lloh51:
	adrp	x24, _STDOUT_FILENO@GOTPAGE
Lloh52:
	ldr	x24, [x24, _STDOUT_FILENO@GOTPAGEOFF]
	ldr	w0, [x24]
	sub	x1, x29, #116
	bl	_caph_rights_limit
	tbnz	x0, #63, LBB0_13
; %bb.6:
Lloh53:
	adrp	x26, _STDERR_FILENO@GOTPAGE
Lloh54:
	ldr	x26, [x26, _STDERR_FILENO@GOTPAGEOFF]
	ldr	w0, [x26]
	sub	x1, x29, #116
	bl	_caph_rights_limit
	tbnz	x0, #63, LBB0_13
; %bb.7:
	ldr	w23, [x25]
	sub	x0, x29, #112
	bl	_nitems
	mov	x2, x0
	sub	x1, x29, #112
	mov	x0, x23
	bl	_caph_ioctls_limit
	tbnz	x0, #63, LBB0_13
; %bb.8:
	ldr	w23, [x24]
	sub	x0, x29, #112
	bl	_nitems
	mov	x2, x0
	sub	x1, x29, #112
	mov	x0, x23
	bl	_caph_ioctls_limit
	tbnz	x0, #63, LBB0_13
; %bb.9:
	ldr	w23, [x26]
	sub	x0, x29, #112
	bl	_nitems
	mov	x2, x0
	sub	x1, x29, #112
	mov	x0, x23
	bl	_caph_ioctls_limit
	tbnz	x0, #63, LBB0_13
; %bb.10:
	ldr	w0, [x25]
Lloh55:
	adrp	x23, _CAP_FCNTL_GETFL@GOTPAGE
Lloh56:
	ldr	x23, [x23, _CAP_FCNTL_GETFL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_caph_fcntls_limit
	tbnz	x0, #63, LBB0_13
; %bb.11:
	ldr	w0, [x24]
	ldr	w1, [x23]
	bl	_caph_fcntls_limit
	tbnz	x0, #63, LBB0_13
; %bb.12:
	ldr	w0, [x26]
	ldr	w1, [x23]
	bl	_caph_fcntls_limit
	tbz	x0, #63, LBB0_14
LBB0_13:
Lloh57:
	adrp	x1, l_.str.3@PAGE
Lloh58:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_14:
	bl	_caph_cache_catpages
	bl	_caph_cache_tzdata
	bl	_setutxent
	bl	_getuid
	mov	x24, x0
	bl	_getlogin
	mov	x23, x0
	cbnz	x0, LBB0_17
; %bb.15:
	mov	x0, x24
	bl	_getpwuid
	cbz	x0, LBB0_38
; %bb.16:
	ldr	x23, [x0]
LBB0_17:
	bl	_caph_enter
	tbz	x0, #63, LBB0_19
LBB0_18:
Lloh59:
	adrp	x1, l_.str.5@PAGE
Lloh60:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_19:
Lloh61:
	adrp	x2, l_.str@PAGE
Lloh62:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.20:
Lloh63:
	adrp	x25, l_.str@PAGE
Lloh64:
	add	x25, x25, l_.str@PAGEOFF
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	bl	_usage
	mov	x0, x21
	mov	x1, x22
	mov	x2, x25
	bl	_getopt
	cmn	w0, #1
	b.ne	LBB0_21
LBB0_22:
Lloh65:
	adrp	x8, _optind@GOTPAGE
Lloh66:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh67:
	ldr	x27, [x8]
Lloh68:
	adrp	x25, _stdin@GOTPAGE
Lloh69:
	ldr	x25, [x25, _stdin@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_fileno
	bl	_isatty
	cbnz	x0, LBB0_25
; %bb.23:
Lloh70:
	adrp	x25, _stdout@GOTPAGE
Lloh71:
	ldr	x25, [x25, _stdout@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_fileno
	bl	_isatty
	cbnz	x0, LBB0_25
; %bb.24:
Lloh72:
	adrp	x25, _stderr@GOTPAGE
Lloh73:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_fileno
	bl	_isatty
	cbz	x0, LBB0_52
LBB0_25:
	ldr	w0, [x25]
	bl	_fileno
	bl	_ttyname
	mov	x25, x0
	cbnz	x0, LBB0_27
; %bb.26:
Lloh74:
	adrp	x1, l_.str.7@PAGE
Lloh75:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_27:
	ldr	w26, [x28]
	mov	x0, x26
	bl	_strlen
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_strncmp
	cbnz	w0, LBB0_29
; %bb.28:
	ldr	w0, [x28]
	bl	_strlen
	add	x25, x25, w0, sxtw
LBB0_29:
	sub	x2, x29, #124
	sub	x3, x29, #120
	mov	x0, x19
	mov	x1, x25
	mov	w4, #1
	bl	_term_chk
	cbnz	x0, LBB0_50
; %bb.30:
	add	x22, x22, x27, lsl #3
	sub	w21, w21, w27
	ldur	w8, [x29, #-124]
	cbz	w8, LBB0_34
; %bb.31:
	cmp	w21, #2
	b.eq	LBB0_35
LBB0_32:
	cmp	w21, #1
	b.ne	LBB0_37
; %bb.33:
	ldr	x1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x25
	mov	x4, x24
	bl	_search_utmp
	mov	x0, x19
	mov	x1, x20
	b	LBB0_47
LBB0_34:
Lloh76:
	adrp	x1, l_.str.8@PAGE
Lloh77:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_errx
	cmp	w21, #2
	b.ne	LBB0_32
LBB0_35:
	ldr	x20, [x22, #8]
	ldr	w21, [x28]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strncmp
	cbz	w0, LBB0_39
; %bb.36:
	ldr	x1, [x22, #8]
	b	LBB0_40
LBB0_37:
	bl	_usage
	b	LBB0_48
LBB0_38:
Lloh78:
	adrp	x23, l_.str.4@PAGE
Lloh79:
	add	x23, x23, l_.str.4@PAGEOFF
	bl	_caph_enter
	tbz	x0, #63, LBB0_19
	b	LBB0_18
LBB0_39:
	ldr	w0, [x28]
	bl	_strlen
	ldr	x8, [x22, #8]
	add	x1, x8, w0, sxtw
	str	x1, [x22, #8]
LBB0_40:
	ldr	x0, [x22]
	bl	_utmp_chk
	cbz	w0, LBB0_42
; %bb.41:
	ldp	x8, x9, [x22]
	stp	x8, x9, [sp, #-16]!
Lloh80:
	adrp	x1, l_.str.9@PAGE
Lloh81:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_errx
	add	sp, sp, #16
LBB0_42:
	ldr	x1, [x22, #8]
	sub	x2, x29, #124
	sub	x3, x29, #120
	mov	x0, x19
	mov	w4, #1
	bl	_term_chk
	cbnz	x0, LBB0_50
; %bb.43:
	cbz	w24, LBB0_46
; %bb.44:
	ldur	w8, [x29, #-124]
	cbnz	w8, LBB0_46
; %bb.45:
	ldp	x8, x9, [x22]
	stp	x8, x9, [sp, #-16]!
Lloh82:
	adrp	x1, l_.str.10@PAGE
Lloh83:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_errx
	add	sp, sp, #16
LBB0_46:
	ldr	x1, [x22, #8]
	mov	x0, x19
LBB0_47:
	mov	x2, x25
	mov	x3, x23
	bl	_do_write
LBB0_48:
	mov	w0, #0
	bl	_done
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh84:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh85:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh86:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_51
; %bb.49:
	mov	w0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_50:
	mov	w0, #1
	bl	_exit
LBB0_51:
	bl	___stack_chk_fail
LBB0_52:
	bl	_main.cold.1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function main.cold.1
_main.cold.1:                           ; @main.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh87:
	adrp	x1, l_.str.6@PAGE
Lloh88:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_errx
	brk	#0x1
	.loh AdrpAdd	Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_TIOCGETA,8,3                   ; @TIOCGETA
	.comm	_TIOCGWINSZ,8,3                 ; @TIOCGWINSZ
	.comm	_FIODGNAME,8,3                  ; @FIODGNAME
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_LC_CTYPE,4,2                   ; @LC_CTYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	__PATH_DEV,4,2                  ; @_PATH_DEV
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"open(/dev)"

	.comm	_CAP_FCNTL,4,2                  ; @CAP_FCNTL
	.comm	_CAP_FSTAT,4,2                  ; @CAP_FSTAT
	.comm	_CAP_IOCTL,4,2                  ; @CAP_IOCTL
	.comm	_CAP_LOOKUP,4,2                 ; @CAP_LOOKUP
	.comm	_CAP_PWRITE,4,2                 ; @CAP_PWRITE
l_.str.2:                               ; @.str.2
	.asciz	"can't limit devfd rights"

	.comm	_CAP_READ,4,2                   ; @CAP_READ
	.comm	_CAP_WRITE,4,2                  ; @CAP_WRITE
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.comm	_CAP_FCNTL_GETFL,4,2            ; @CAP_FCNTL_GETFL
l_.str.3:                               ; @.str.3
	.asciz	"can't limit stdio rights"

l_.str.4:                               ; @.str.4
	.asciz	"???"

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

	.comm	_optind,8,3                     ; @optind
	.comm	_stdin,4,2                      ; @stdin
	.comm	_stdout,4,2                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
l_.str.6:                               ; @.str.6
	.asciz	"can't find your tty"

l_.str.7:                               ; @.str.7
	.asciz	"can't find your tty's name"

l_.str.8:                               ; @.str.8
	.asciz	"you have write permission turned off"

l_.str.9:                               ; @.str.9
	.asciz	"%s is not logged in on %s"

l_.str.10:                              ; @.str.10
	.asciz	"%s has messages disabled on %s"

.subsections_via_symbols
