	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iruserok_sa                    ## -- Begin function iruserok_sa
	.p2align	4, 0x90
_iruserok_sa:                           ## @iruserok_sa
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	movl	%ebx, %edx
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	$-1, %ebx
	cmpl	$4, %edx
	ja	LBB0_22
## %bb.1:
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	callq	_memcpy
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.2:
	movq	__PATH_HEQUIV@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	___ivaliduser_sa
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_fclose
LBB0_6:
	movq	___check_rhosts_file@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
LBB0_7:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_getpwnam
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	movq	%rax, %r12
	movl	8(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_strlcpy
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_strlcat
	xorl	%eax, %eax
	callq	_geteuid
	movq	%rax, %r15
	movq	(%r12), %rdi
	callq	_seteuid
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%r15, %rdi
	movq	%rax, %r15
	callq	_seteuid
	testq	%r15, %r15
	je	LBB0_22
## %bb.9:
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	movl	-96(%rbp), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movq	%r15, %rdi
	callq	_fileno
	leaq	-96(%rbp), %rsi
	movl	%eax, %edi
	callq	__fstat
	testq	%rax, %rax
	js	LBB0_14
## %bb.15:
	movq	-88(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	cmpq	(%r12), %rax
	jne	LBB0_17
LBB0_18:
	movq	_S_IWGRP@GOTPCREL(%rip), %rax
	movq	_S_IWOTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, -96(%rbp)
	je	LBB0_24
## %bb.19:
	leaq	L_.str.6(%rip), %rax
	jmp	LBB0_20
LBB0_10:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_20
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_12:
	leaq	L_.str.3(%rip), %rax
	jmp	LBB0_20
LBB0_14:
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.5(%rip), %rax
LBB0_20:
	movq	___rcmd_errstr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$-1, %ebx
LBB0_21:
	movq	%r15, %rdi
	callq	_fclose
LBB0_22:
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.23:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	___ivaliduser_sa
	xorl	%ebx, %ebx
	negq	%rax
	sbbl	%ebx, %ebx
	jmp	LBB0_21
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	__PATH_HEQUIV,8,3               ## @_PATH_HEQUIV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"re"

	.comm	___check_rhosts_file,8,3        ## @__check_rhosts_file
L_.str.1:                               ## @.str.1
	.asciz	"/.rhosts"

L_.str.2:                               ## @.str.2
	.asciz	".rhosts lstat failed"

L_.str.3:                               ## @.str.3
	.asciz	".rhosts not regular file"

L_.str.4:                               ## @.str.4
	.asciz	".rhosts fstat failed"

L_.str.5:                               ## @.str.5
	.asciz	"bad .rhosts owner"

	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.comm	_S_IWOTH,4,2                    ## @S_IWOTH
L_.str.6:                               ## @.str.6
	.asciz	".rhosts writeable by other than owner"

	.comm	___rcmd_errstr,8,3              ## @__rcmd_errstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iruserok_sa                    ; -- Begin function iruserok_sa
	.p2align	2
_iruserok_sa:                           ; @iruserok_sa
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x1, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	cmp	w21, #4
	b.hi	LBB0_15
; %bb.1:
	sub	x0, x29, #96
	mov	x2, x21
	bl	_memcpy
	cbnz	w22, LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, __PATH_HEQUIV@GOTPAGE
Lloh9:
	ldr	x8, [x8, __PATH_HEQUIV@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_5
; %bb.3:
	mov	x22, x0
	sub	x1, x29, #96
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	___ivaliduser_sa
	cbz	x0, LBB0_17
; %bb.4:
	mov	x0, x22
	bl	_fclose
LBB0_5:
Lloh13:
	adrp	x8, ___check_rhosts_file@GOTPAGE
Lloh14:
	ldr	x8, [x8, ___check_rhosts_file@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
LBB0_6:
	mov	x0, x20
	bl	_getpwnam
	cbz	x0, LBB0_15
; %bb.7:
	mov	x25, x0
	ldr	w1, [x0, #8]
	mov	x0, x23
	mov	x2, x24
	bl	_strlcpy
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_strlcat
	bl	_geteuid
	mov	x24, x0
	ldr	x0, [x25]
	bl	_seteuid
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_fopen
	mov	x22, x0
	mov	x0, x24
	bl	_seteuid
	cbz	x22, LBB0_15
; %bb.8:
	sub	x1, x29, #88
	mov	x0, x23
	bl	_lstat
	tbnz	x0, #63, LBB0_16
; %bb.9:
	ldur	w0, [x29, #-88]
	bl	_S_ISREG
	cbz	w0, LBB0_18
; %bb.10:
	mov	x0, x22
	bl	_fileno
	sub	x1, x29, #88
	bl	__fstat
	tbnz	x0, #63, LBB0_19
; %bb.11:
	ldur	x8, [x29, #-80]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_20
LBB0_13:
	ldur	w8, [x29, #-88]
Lloh20:
	adrp	x9, _S_IWGRP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _S_IWGRP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _S_IWOTH@GOTPAGE
Lloh24:
	ldr	x10, [x10, _S_IWOTH@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_25
; %bb.14:
Lloh26:
	adrp	x8, l_.str.6@PAGE
Lloh27:
	add	x8, x8, l_.str.6@PAGEOFF
	b	LBB0_21
LBB0_15:
	mov	w19, #-1
	b	LBB0_23
LBB0_16:
Lloh28:
	adrp	x8, l_.str.2@PAGE
Lloh29:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_17:
	mov	w19, #0
	b	LBB0_22
LBB0_18:
Lloh30:
	adrp	x8, l_.str.3@PAGE
Lloh31:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_21
LBB0_19:
Lloh32:
	adrp	x8, l_.str.4@PAGE
Lloh33:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh34:
	adrp	x8, l_.str.5@PAGE
Lloh35:
	add	x8, x8, l_.str.5@PAGEOFF
LBB0_21:
Lloh36:
	adrp	x9, ___rcmd_errstr@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___rcmd_errstr@GOTPAGEOFF]
Lloh38:
	str	x8, [x9]
	mov	w19, #-1
LBB0_22:
	mov	x0, x22
	bl	_fclose
LBB0_23:
	mov	sp, x26
	ldur	x8, [x29, #-72]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.24:
	mov	x0, x19
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_25:
	sub	x1, x29, #96
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	___ivaliduser_sa
	cmp	x0, #0
	csetm	w19, ne
	b	LBB0_22
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	__PATH_HEQUIV,8,3               ; @_PATH_HEQUIV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"re"

	.comm	___check_rhosts_file,8,3        ; @__check_rhosts_file
l_.str.1:                               ; @.str.1
	.asciz	"/.rhosts"

l_.str.2:                               ; @.str.2
	.asciz	".rhosts lstat failed"

l_.str.3:                               ; @.str.3
	.asciz	".rhosts not regular file"

l_.str.4:                               ; @.str.4
	.asciz	".rhosts fstat failed"

l_.str.5:                               ; @.str.5
	.asciz	"bad .rhosts owner"

	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.comm	_S_IWOTH,4,2                    ; @S_IWOTH
l_.str.6:                               ; @.str.6
	.asciz	".rhosts writeable by other than owner"

	.comm	___rcmd_errstr,8,3              ; @__rcmd_errstr
.subsections_via_symbols
