	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_attr_to_st_mode
_file_attr_to_st_mode:                  ## @file_attr_to_st_mode
	.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_IREAD@GOTPCREL(%rip), %rcx
	movq	_FILE_ATTRIBUTE_DIRECTORY@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_FILE_ATTRIBUTE_READONLY@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	testl	%edi, (%rdx)
	jne	LBB0_5
## %bb.4:
	movq	_S_IWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	orl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IREAD,4,2                    ## @S_IREAD
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ## @FILE_ATTRIBUTE_DIRECTORY
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_FILE_ATTRIBUTE_READONLY,4,2    ## @FILE_ATTRIBUTE_READONLY
	.comm	_S_IWRITE,4,2                   ## @S_IWRITE
	.no_dead_strip	_file_attr_to_st_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_attr_to_st_mode
_file_attr_to_st_mode:                  ; @file_attr_to_st_mode
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _S_IREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IREAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _S_IFREG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _S_IFREG@GOTPAGEOFF]
Lloh8:
	adrp	x11, _S_IFDIR@GOTPAGE
Lloh9:
	ldr	x11, [x11, _S_IFDIR@GOTPAGEOFF]
	tst	w9, w0
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _FILE_ATTRIBUTE_READONLY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FILE_ATTRIBUTE_READONLY@GOTPAGEOFF]
Lloh12:
	adrp	x10, _S_IWRITE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _S_IWRITE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, w10, wzr, eq
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IREAD,4,2                    ; @S_IREAD
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ; @FILE_ATTRIBUTE_DIRECTORY
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_FILE_ATTRIBUTE_READONLY,4,2    ; @FILE_ATTRIBUTE_READONLY
	.comm	_S_IWRITE,4,2                   ; @S_IWRITE
	.no_dead_strip	_file_attr_to_st_mode
.subsections_via_symbols
