	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_fileio_mode_to_target
_remote_fileio_mode_to_target:          ## @remote_fileio_mode_to_target
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_S_IFREG@GOTPCREL(%rip), %rcx
	movq	_FILEIO_S_IFREG@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rdx
	movd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movq	_S_IXUSR@GOTPCREL(%rip), %rdx
	pinsrd	$1, (%rdx), %xmm0
	movq	_S_IRGRP@GOTPCREL(%rip), %rdx
	pinsrd	$2, (%rdx), %xmm0
	movq	_S_IWGRP@GOTPCREL(%rip), %rdx
	pinsrd	$3, (%rdx), %xmm0
	movq	_S_IFDIR@GOTPCREL(%rip), %rdx
	movd	(%rdx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movq	_S_IFCHR@GOTPCREL(%rip), %rdx
	pinsrd	$1, (%rcx), %xmm1
	movq	_S_IRUSR@GOTPCREL(%rip), %rcx
	pinsrd	$2, (%rdx), %xmm1
	pinsrd	$3, (%rcx), %xmm1
	movq	_FILEIO_S_IFDIR@GOTPCREL(%rip), %rdx
	movq	_FILEIO_S_IFCHR@GOTPCREL(%rip), %rcx
	movd	(%rdx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movq	_FILEIO_S_IWUSR@GOTPCREL(%rip), %rdx
	pinsrd	$1, (%rax), %xmm2
	movq	_FILEIO_S_IXUSR@GOTPCREL(%rip), %rax
	movd	(%rdx), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	movq	_FILEIO_S_IRGRP@GOTPCREL(%rip), %rdx
	movd	%edi, %xmm4
	pinsrd	$1, (%rax), %xmm3
	pshufd	$0, %xmm4, %xmm4                ## xmm4 = xmm4[0,0,0,0]
	movq	_S_IXGRP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	je	LBB0_2
## %bb.1:
	movq	_FILEIO_S_IXGRP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_FILEIO_S_IRUSR@GOTPCREL(%rip), %rsi
	pand	%xmm4, %xmm1
	pand	%xmm4, %xmm0
	pxor	%xmm4, %xmm4
	pinsrd	$2, (%rcx), %xmm2
	pinsrd	$2, (%rdx), %xmm3
	movq	_FILEIO_S_IWGRP@GOTPCREL(%rip), %rdx
	movq	_S_IROTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edi, %ecx
	je	LBB0_4
## %bb.3:
	movq	_FILEIO_S_IROTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	pinsrd	$3, (%rsi), %xmm2
	pinsrd	$3, (%rdx), %xmm3
	pcmpeqd	%xmm4, %xmm0
	pcmpeqd	%xmm4, %xmm1
	movq	_S_IWOTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%edi, %edx
	je	LBB0_6
## %bb.5:
	movq	_FILEIO_S_IWOTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	pandn	%xmm3, %xmm0
	pandn	%xmm2, %xmm1
	movq	_S_IXOTH@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edi
	je	LBB0_8
## %bb.7:
	movq	_FILEIO_S_IXOTH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
LBB0_8:
	por	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	por	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %esi
	orl	%ecx, %eax
	orl	%edx, %eax
	orl	%edi, %eax
	orl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_FILEIO_S_IFREG,4,2             ## @FILEIO_S_IFREG
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_FILEIO_S_IFDIR,4,2             ## @FILEIO_S_IFDIR
	.comm	_S_IFCHR,4,2                    ## @S_IFCHR
	.comm	_FILEIO_S_IFCHR,4,2             ## @FILEIO_S_IFCHR
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_FILEIO_S_IRUSR,4,2             ## @FILEIO_S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_FILEIO_S_IWUSR,4,2             ## @FILEIO_S_IWUSR
	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
	.comm	_FILEIO_S_IXUSR,4,2             ## @FILEIO_S_IXUSR
	.comm	_S_IRGRP,4,2                    ## @S_IRGRP
	.comm	_FILEIO_S_IRGRP,4,2             ## @FILEIO_S_IRGRP
	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.comm	_FILEIO_S_IWGRP,4,2             ## @FILEIO_S_IWGRP
	.comm	_S_IXGRP,4,2                    ## @S_IXGRP
	.comm	_FILEIO_S_IXGRP,4,2             ## @FILEIO_S_IXGRP
	.comm	_S_IROTH,4,2                    ## @S_IROTH
	.comm	_FILEIO_S_IROTH,4,2             ## @FILEIO_S_IROTH
	.comm	_S_IWOTH,4,2                    ## @S_IWOTH
	.comm	_FILEIO_S_IWOTH,4,2             ## @FILEIO_S_IWOTH
	.comm	_S_IXOTH,4,2                    ## @S_IXOTH
	.comm	_FILEIO_S_IXOTH,4,2             ## @FILEIO_S_IXOTH
	.no_dead_strip	_remote_fileio_mode_to_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remote_fileio_mode_to_target
_remote_fileio_mode_to_target:          ; @remote_fileio_mode_to_target
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _S_IFREG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IFREG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FILEIO_S_IFREG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FILEIO_S_IFREG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
Lloh6:
	adrp	x9, _S_IFDIR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S_IFDIR@GOTPAGEOFF]
Lloh8:
	adrp	x10, _FILEIO_S_IFDIR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _FILEIO_S_IFDIR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
Lloh12:
	adrp	x10, _S_IFCHR@GOTPAGE
Lloh13:
	ldr	x10, [x10, _S_IFCHR@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh14:
	ldr	w9, [x10]
Lloh15:
	adrp	x10, _FILEIO_S_IFCHR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FILEIO_S_IFCHR@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _S_IRUSR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _S_IRUSR@GOTPAGEOFF]
Lloh20:
	adrp	x10, _FILEIO_S_IRUSR@GOTPAGE
Lloh21:
	ldr	x10, [x10, _FILEIO_S_IRUSR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
Lloh24:
	adrp	x10, _S_IWUSR@GOTPAGE
Lloh25:
	ldr	x10, [x10, _S_IWUSR@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh26:
	ldr	w9, [x10]
Lloh27:
	adrp	x10, _FILEIO_S_IWUSR@GOTPAGE
Lloh28:
	ldr	x10, [x10, _FILEIO_S_IWUSR@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _S_IXUSR@GOTPAGE
Lloh31:
	ldr	x9, [x9, _S_IXUSR@GOTPAGEOFF]
Lloh32:
	adrp	x10, _FILEIO_S_IXUSR@GOTPAGE
Lloh33:
	ldr	x10, [x10, _FILEIO_S_IXUSR@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
Lloh36:
	adrp	x10, _S_IRGRP@GOTPAGE
Lloh37:
	ldr	x10, [x10, _S_IRGRP@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh38:
	ldr	w9, [x10]
Lloh39:
	adrp	x10, _FILEIO_S_IRGRP@GOTPAGE
Lloh40:
	ldr	x10, [x10, _FILEIO_S_IRGRP@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh42:
	adrp	x9, _S_IWGRP@GOTPAGE
Lloh43:
	ldr	x9, [x9, _S_IWGRP@GOTPAGEOFF]
Lloh44:
	adrp	x10, _FILEIO_S_IWGRP@GOTPAGE
Lloh45:
	ldr	x10, [x10, _FILEIO_S_IWGRP@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
Lloh47:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
Lloh48:
	adrp	x10, _S_IXGRP@GOTPAGE
Lloh49:
	ldr	x10, [x10, _S_IXGRP@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh50:
	ldr	w9, [x10]
Lloh51:
	adrp	x10, _FILEIO_S_IXGRP@GOTPAGE
Lloh52:
	ldr	x10, [x10, _FILEIO_S_IXGRP@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh54:
	adrp	x9, _S_IROTH@GOTPAGE
Lloh55:
	ldr	x9, [x9, _S_IROTH@GOTPAGEOFF]
Lloh56:
	adrp	x10, _FILEIO_S_IROTH@GOTPAGE
Lloh57:
	ldr	x10, [x10, _FILEIO_S_IROTH@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
Lloh59:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
Lloh60:
	adrp	x10, _S_IWOTH@GOTPAGE
Lloh61:
	ldr	x10, [x10, _S_IWOTH@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh62:
	ldr	w9, [x10]
Lloh63:
	adrp	x10, _FILEIO_S_IWOTH@GOTPAGE
Lloh64:
	ldr	x10, [x10, _FILEIO_S_IWOTH@GOTPAGEOFF]
Lloh65:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh66:
	adrp	x9, _S_IXOTH@GOTPAGE
Lloh67:
	ldr	x9, [x9, _S_IXOTH@GOTPAGEOFF]
Lloh68:
	adrp	x10, _FILEIO_S_IXOTH@GOTPAGE
Lloh69:
	ldr	x10, [x10, _FILEIO_S_IXOTH@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x9]
Lloh71:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh70
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh58
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_FILEIO_S_IFREG,4,2             ; @FILEIO_S_IFREG
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_FILEIO_S_IFDIR,4,2             ; @FILEIO_S_IFDIR
	.comm	_S_IFCHR,4,2                    ; @S_IFCHR
	.comm	_FILEIO_S_IFCHR,4,2             ; @FILEIO_S_IFCHR
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_FILEIO_S_IRUSR,4,2             ; @FILEIO_S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_FILEIO_S_IWUSR,4,2             ; @FILEIO_S_IWUSR
	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
	.comm	_FILEIO_S_IXUSR,4,2             ; @FILEIO_S_IXUSR
	.comm	_S_IRGRP,4,2                    ; @S_IRGRP
	.comm	_FILEIO_S_IRGRP,4,2             ; @FILEIO_S_IRGRP
	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.comm	_FILEIO_S_IWGRP,4,2             ; @FILEIO_S_IWGRP
	.comm	_S_IXGRP,4,2                    ; @S_IXGRP
	.comm	_FILEIO_S_IXGRP,4,2             ; @FILEIO_S_IXGRP
	.comm	_S_IROTH,4,2                    ; @S_IROTH
	.comm	_FILEIO_S_IROTH,4,2             ; @FILEIO_S_IROTH
	.comm	_S_IWOTH,4,2                    ; @S_IWOTH
	.comm	_FILEIO_S_IWOTH,4,2             ; @FILEIO_S_IWOTH
	.comm	_S_IXOTH,4,2                    ; @S_IXOTH
	.comm	_FILEIO_S_IXOTH,4,2             ; @FILEIO_S_IXOTH
	.no_dead_strip	_remote_fileio_mode_to_target
.subsections_via_symbols
