	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_fileio_mode_to_host
_remote_fileio_mode_to_host:            ## @remote_fileio_mode_to_host
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	xorl	%r8d, %r8d
	movl	$0, %r9d
	testl	%esi, %esi
	jne	LBB0_7
## %bb.1:
	movq	_FILEIO_S_IFREG@GOTPCREL(%rip), %rcx
	xorl	%r9d, %r9d
	movl	$0, %eax
	testq	%rdi, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	movq	_FILEIO_S_IFDIR@GOTPCREL(%rip), %rcx
	testq	%rdi, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_S_IFDIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
LBB0_5:
	orl	%eax, %r9d
	movq	_FILEIO_S_IFCHR@GOTPCREL(%rip), %rax
	testq	%rdi, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_S_IFCHR@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
LBB0_7:
	movq	_FILEIO_S_IRUSR@GOTPCREL(%rip), %rcx
	movl	$0, %eax
	testq	%rdi, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movq	_FILEIO_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	$0, %esi
	testq	%rdi, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_11:
	movq	_FILEIO_S_IXUSR@GOTPCREL(%rip), %rcx
	movl	$0, %r11d
	testq	%rdi, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_S_IXUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
LBB0_13:
	movq	_FILEIO_S_IRGRP@GOTPCREL(%rip), %rdx
	movl	$0, %ecx
	testq	%rdi, (%rdx)
	je	LBB0_15
## %bb.14:
	movq	_S_IRGRP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_15:
	movq	_FILEIO_S_IWGRP@GOTPCREL(%rip), %r10
	movl	$0, %edx
	testq	%rdi, (%r10)
	je	LBB0_17
## %bb.16:
	movq	_S_IWGRP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_17:
	movq	_FILEIO_S_IXGRP@GOTPCREL(%rip), %rbx
	movl	$0, %r10d
	testq	%rdi, (%rbx)
	je	LBB0_19
## %bb.18:
	movq	_S_IXGRP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r10d
LBB0_19:
	orl	%r9d, %eax
	orl	%r11d, %esi
	orl	%edx, %ecx
	movq	_FILEIO_S_IROTH@GOTPCREL(%rip), %rbx
	movl	$0, %edx
	testq	%rdi, (%rbx)
	je	LBB0_21
## %bb.20:
	movq	_S_IROTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_21:
	orl	%esi, %eax
	orl	%r10d, %ecx
	movq	_FILEIO_S_IWOTH@GOTPCREL(%rip), %rbx
	movl	$0, %esi
	testq	%rdi, (%rbx)
	je	LBB0_23
## %bb.22:
	movq	_S_IWOTH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_23:
	orl	%esi, %edx
	orl	%ecx, %eax
	movq	_FILEIO_S_IXOTH@GOTPCREL(%rip), %rcx
	testq	%rdi, (%rcx)
	je	LBB0_25
## %bb.24:
	movq	_S_IXOTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
LBB0_25:
	orl	%r8d, %edx
	orl	%edx, %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FILEIO_S_IFREG,8,3             ## @FILEIO_S_IFREG
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_FILEIO_S_IFDIR,8,3             ## @FILEIO_S_IFDIR
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_FILEIO_S_IFCHR,8,3             ## @FILEIO_S_IFCHR
	.comm	_S_IFCHR,4,2                    ## @S_IFCHR
	.comm	_FILEIO_S_IRUSR,8,3             ## @FILEIO_S_IRUSR
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_FILEIO_S_IWUSR,8,3             ## @FILEIO_S_IWUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_FILEIO_S_IXUSR,8,3             ## @FILEIO_S_IXUSR
	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
	.comm	_FILEIO_S_IRGRP,8,3             ## @FILEIO_S_IRGRP
	.comm	_S_IRGRP,4,2                    ## @S_IRGRP
	.comm	_FILEIO_S_IWGRP,8,3             ## @FILEIO_S_IWGRP
	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.comm	_FILEIO_S_IXGRP,8,3             ## @FILEIO_S_IXGRP
	.comm	_S_IXGRP,4,2                    ## @S_IXGRP
	.comm	_FILEIO_S_IROTH,8,3             ## @FILEIO_S_IROTH
	.comm	_S_IROTH,4,2                    ## @S_IROTH
	.comm	_FILEIO_S_IWOTH,8,3             ## @FILEIO_S_IWOTH
	.comm	_S_IWOTH,4,2                    ## @S_IWOTH
	.comm	_FILEIO_S_IXOTH,8,3             ## @FILEIO_S_IXOTH
	.comm	_S_IXOTH,4,2                    ## @S_IXOTH
	.no_dead_strip	_remote_fileio_mode_to_host
.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_host
_remote_fileio_mode_to_host:            ; @remote_fileio_mode_to_host
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _FILEIO_S_IFREG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FILEIO_S_IFREG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _S_IFREG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S_IFREG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	x8, x0
Lloh6:
	adrp	x8, _FILEIO_S_IFDIR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FILEIO_S_IFDIR@GOTPAGEOFF]
	csel	w9, wzr, w9, eq
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x10, _S_IFDIR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _S_IFDIR@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	x8, x0
	csel	w8, wzr, w10, eq
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _FILEIO_S_IFCHR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FILEIO_S_IFCHR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	tst	x9, x0
	b.eq	LBB0_4
; %bb.3:
Lloh15:
	adrp	x9, _S_IFCHR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _S_IFCHR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_4:
Lloh18:
	adrp	x9, _FILEIO_S_IRUSR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FILEIO_S_IRUSR@GOTPAGEOFF]
Lloh20:
	adrp	x10, _S_IRUSR@GOTPAGE
Lloh21:
	ldr	x10, [x10, _S_IRUSR@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	ldr	w10, [x10]
	tst	x9, x0
	csel	w9, wzr, w10, eq
Lloh24:
	adrp	x10, _FILEIO_S_IWUSR@GOTPAGE
Lloh25:
	ldr	x10, [x10, _FILEIO_S_IWUSR@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh26:
	ldr	x9, [x10]
Lloh27:
	adrp	x10, _S_IWUSR@GOTPAGE
Lloh28:
	ldr	x10, [x10, _S_IWUSR@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	x9, x0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _FILEIO_S_IXUSR@GOTPAGE
Lloh31:
	ldr	x9, [x9, _FILEIO_S_IXUSR@GOTPAGEOFF]
Lloh32:
	adrp	x10, _S_IXUSR@GOTPAGE
Lloh33:
	ldr	x10, [x10, _S_IXUSR@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
Lloh35:
	ldr	w10, [x10]
	tst	x9, x0
	csel	w9, wzr, w10, eq
Lloh36:
	adrp	x10, _FILEIO_S_IRGRP@GOTPAGE
Lloh37:
	ldr	x10, [x10, _FILEIO_S_IRGRP@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh38:
	ldr	x9, [x10]
Lloh39:
	adrp	x10, _S_IRGRP@GOTPAGE
Lloh40:
	ldr	x10, [x10, _S_IRGRP@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	tst	x9, x0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh42:
	adrp	x9, _FILEIO_S_IWGRP@GOTPAGE
Lloh43:
	ldr	x9, [x9, _FILEIO_S_IWGRP@GOTPAGEOFF]
Lloh44:
	adrp	x10, _S_IWGRP@GOTPAGE
Lloh45:
	ldr	x10, [x10, _S_IWGRP@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
Lloh47:
	ldr	w10, [x10]
	tst	x9, x0
	csel	w9, wzr, w10, eq
Lloh48:
	adrp	x10, _FILEIO_S_IXGRP@GOTPAGE
Lloh49:
	ldr	x10, [x10, _FILEIO_S_IXGRP@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh50:
	ldr	x9, [x10]
Lloh51:
	adrp	x10, _S_IXGRP@GOTPAGE
Lloh52:
	ldr	x10, [x10, _S_IXGRP@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	tst	x9, x0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh54:
	adrp	x9, _FILEIO_S_IROTH@GOTPAGE
Lloh55:
	ldr	x9, [x9, _FILEIO_S_IROTH@GOTPAGEOFF]
Lloh56:
	adrp	x10, _S_IROTH@GOTPAGE
Lloh57:
	ldr	x10, [x10, _S_IROTH@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
Lloh59:
	ldr	w10, [x10]
	tst	x9, x0
	csel	w9, wzr, w10, eq
Lloh60:
	adrp	x10, _FILEIO_S_IWOTH@GOTPAGE
Lloh61:
	ldr	x10, [x10, _FILEIO_S_IWOTH@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh62:
	ldr	x9, [x10]
Lloh63:
	adrp	x10, _S_IWOTH@GOTPAGE
Lloh64:
	ldr	x10, [x10, _S_IWOTH@GOTPAGEOFF]
Lloh65:
	ldr	w10, [x10]
	tst	x9, x0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh66:
	adrp	x9, _FILEIO_S_IXOTH@GOTPAGE
Lloh67:
	ldr	x9, [x9, _FILEIO_S_IXOTH@GOTPAGEOFF]
Lloh68:
	adrp	x10, _S_IXOTH@GOTPAGE
Lloh69:
	ldr	x10, [x10, _S_IXOTH@GOTPAGEOFF]
Lloh70:
	ldr	x9, [x9]
Lloh71:
	ldr	w10, [x10]
	tst	x9, x0
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
	ret
	.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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_FILEIO_S_IFREG,8,3             ; @FILEIO_S_IFREG
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_FILEIO_S_IFDIR,8,3             ; @FILEIO_S_IFDIR
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_FILEIO_S_IFCHR,8,3             ; @FILEIO_S_IFCHR
	.comm	_S_IFCHR,4,2                    ; @S_IFCHR
	.comm	_FILEIO_S_IRUSR,8,3             ; @FILEIO_S_IRUSR
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_FILEIO_S_IWUSR,8,3             ; @FILEIO_S_IWUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_FILEIO_S_IXUSR,8,3             ; @FILEIO_S_IXUSR
	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
	.comm	_FILEIO_S_IRGRP,8,3             ; @FILEIO_S_IRGRP
	.comm	_S_IRGRP,4,2                    ; @S_IRGRP
	.comm	_FILEIO_S_IWGRP,8,3             ; @FILEIO_S_IWGRP
	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.comm	_FILEIO_S_IXGRP,8,3             ; @FILEIO_S_IXGRP
	.comm	_S_IXGRP,4,2                    ; @S_IXGRP
	.comm	_FILEIO_S_IROTH,8,3             ; @FILEIO_S_IROTH
	.comm	_S_IROTH,4,2                    ; @S_IROTH
	.comm	_FILEIO_S_IWOTH,8,3             ; @FILEIO_S_IWOTH
	.comm	_S_IWOTH,4,2                    ; @S_IWOTH
	.comm	_FILEIO_S_IXOTH,8,3             ; @FILEIO_S_IXOTH
	.comm	_S_IXOTH,4,2                    ; @S_IXOTH
	.no_dead_strip	_remote_fileio_mode_to_host
.subsections_via_symbols
