	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_hostfs_get_attr             ## -- Begin function vc_hostfs_get_attr
	.p2align	4, 0x90
_vc_hostfs_get_attr:                    ## @vc_hostfs_get_attr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DEBUG_MINOR
	movl	$0, (%r14)
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.1:
	movl	-24(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ATTR_DIRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_3:
	movq	_S_IWUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, -24(%rbp)
	jne	LBB0_5
## %bb.4:
	movq	_ATTR_RDONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vc_hostfs_get_attr: '%s'"

	.comm	_ATTR_DIRENT,4,2                ## @ATTR_DIRENT
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_ATTR_RDONLY,4,2                ## @ATTR_RDONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_hostfs_get_attr             ; -- Begin function vc_hostfs_get_attr
	.p2align	2
_vc_hostfs_get_attr:                    ; @vc_hostfs_get_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DEBUG_MINOR
	str	wzr, [x19]
	add	x1, sp, #8
	mov	x0, x20
	bl	_stat
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_7
LBB0_2:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _ATTR_DIRENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATTR_DIRENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	ldr	w8, [sp, #8]
Lloh5:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #0
Lloh8:
	adrp	x8, _ATTR_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATTR_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vc_hostfs_get_attr: '%s'"

	.comm	_ATTR_DIRENT,4,2                ; @ATTR_DIRENT
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_ATTR_RDONLY,4,2                ; @ATTR_RDONLY
.subsections_via_symbols
