	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exrc_isok
_exrc_isok:                             ## @exrc_isok
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_NOEXIST@GOTPCREL(%rip), %rbx
	jmp	LBB0_26
LBB0_2:
	xorl	%eax, %eax
	callq	_geteuid
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_12
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:
	cmpq	%rax, (%rbx)
	jne	LBB0_7
LBB0_12:
	movq	_S_IWGRP@GOTPCREL(%rip), %rax
	movq	_S_IWOTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	$2, %r13d
	testl	%ecx, 8(%rbx)
	jne	LBB0_8
## %bb.13:
	movq	_RCOK@GOTPCREL(%rip), %rbx
	jmp	LBB0_26
LBB0_7:
	xorl	%r13d, %r13d
	testl	%r14d, %r14d
	sete	%r13b
LBB0_8:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_msg_print
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
LBB0_17:
	cmpl	$2, %r13d
	je	LBB0_22
## %bb.18:
	cmpl	$1, %r13d
	je	LBB0_21
## %bb.19:
	testl	%r13d, %r13d
	jne	LBB0_24
## %bb.20:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_23
LBB0_9:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_getcwd
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rax, %r12
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_msg_print
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_join
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movq	%rax, %rbx
	movl	%r13d, %eax
	leaq	l_reltable.exrc_isok(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdx
	addq	%rcx, %rdx
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_msgq
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_15
LBB0_22:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_23
LBB0_21:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_23:
	movq	%r15, %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_msgq
	jmp	LBB0_24
LBB0_11:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_msgq
LBB0_15:
	movq	%r12, %rdi
	callq	_free
	cmpl	$0, -44(%rbp)
	je	LBB0_24
## %bb.16:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_FREE_SPACE
LBB0_24:
	movq	_NOPERM@GOTPCREL(%rip), %rbx
	cmpl	$0, -48(%rbp)
	je	LBB0_26
## %bb.25:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_FREE_SPACE
LBB0_26:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOEXIST,4,2                    ## @NOEXIST
	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.comm	_S_IWOTH,4,2                    ## @S_IWOTH
	.comm	_RCOK,4,2                       ## @RCOK
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.comm	_M_ERR,4,2                      ## @M_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"128|%s: not sourced: not owned by you or root"

L_.str.1:                               ## @.str.1
	.asciz	"129|%s: not sourced: not owned by you"

L_.str.2:                               ## @.str.2
	.asciz	"130|%s: not sourced: writeable by a user other than the owner"

	.comm	_NOPERM,4,2                     ## @NOPERM
	.no_dead_strip	_exrc_isok
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.exrc_isok
l_reltable.exrc_isok:
	.long	L_.str-l_reltable.exrc_isok
	.long	L_.str.1-l_reltable.exrc_isok
	.long	L_.str.2-l_reltable.exrc_isok

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exrc_isok
_exrc_isok:                             ; @exrc_isok
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x2
	bl	_stat
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NOEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NOEXIST@GOTPAGEOFF]
	b	LBB0_28
LBB0_2:
	bl	_geteuid
	cbz	w20, LBB0_4
; %bb.3:
	ldr	x8, [x22]
	cbz	x8, LBB0_7
LBB0_4:
	cbz	w23, LBB0_6
; %bb.5:
	cbz	x0, LBB0_7
LBB0_6:
	ldr	x8, [x22]
	cmp	x8, x0
	b.ne	LBB0_10
LBB0_7:
	ldr	w8, [x22, #8]
Lloh2:
	adrp	x9, _S_IWGRP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _S_IWGRP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _S_IWOTH@GOTPAGE
Lloh6:
	ldr	x10, [x10, _S_IWOTH@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	w24, #2
	b	LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _RCOK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RCOK@GOTPAGEOFF]
	b	LBB0_28
LBB0_10:
	cmp	w20, #0
	cset	w24, eq
LBB0_11:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_msg_print
	mov	x20, x0
	mov	x0, x21
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_16
LBB0_12:
	cmp	w24, #2
	b.eq	LBB0_19
; %bb.13:
	cmp	w24, #1
	b.eq	LBB0_20
; %bb.14:
	cbnz	w24, LBB0_25
; %bb.15:
Lloh10:
	adrp	x8, _M_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_21
LBB0_16:
	mov	w1, #0
	bl	_getcwd
	cbz	x0, LBB0_12
; %bb.17:
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_msg_print
	mov	x22, x0
	mov	x1, x20
	bl	_join
	cbz	x0, LBB0_22
; %bb.18:
	mov	x23, x0
Lloh15:
	adrp	x8, l_switch.table.exrc_isok@PAGE
Lloh16:
	add	x8, x8, l_switch.table.exrc_isok@PAGEOFF
	ldr	x2, [x8, w24, uxtw #3]
Lloh17:
	adrp	x8, _M_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	str	x0, [sp]
	mov	x0, x19
	bl	_msgq
	mov	x0, x23
	bl	_free
	b	LBB0_23
LBB0_19:
Lloh20:
	adrp	x8, _M_ERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh25:
	adrp	x8, _M_ERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh28:
	adrp	x2, l_.str.1@PAGE
Lloh29:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_21:
	mov	x0, x19
	bl	_msgq
	b	LBB0_25
LBB0_22:
Lloh30:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_msgq
LBB0_23:
	mov	x0, x21
	bl	_free
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_25
; %bb.24:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_FREE_SPACE
LBB0_25:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_27
; %bb.26:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_FREE_SPACE
LBB0_27:
Lloh33:
	adrp	x8, _NOPERM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NOPERM@GOTPAGEOFF]
LBB0_28:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_NOEXIST,4,2                    ; @NOEXIST
	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.comm	_S_IWOTH,4,2                    ; @S_IWOTH
	.comm	_RCOK,4,2                       ; @RCOK
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.comm	_M_ERR,4,2                      ; @M_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"128|%s: not sourced: not owned by you or root"

l_.str.1:                               ; @.str.1
	.asciz	"129|%s: not sourced: not owned by you"

l_.str.2:                               ; @.str.2
	.asciz	"130|%s: not sourced: writeable by a user other than the owner"

	.comm	_NOPERM,4,2                     ; @NOPERM
	.no_dead_strip	_exrc_isok
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.exrc_isok
l_switch.table.exrc_isok:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

.subsections_via_symbols
