	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_hostfs_set_attr             ## -- Begin function vc_hostfs_set_attr
	.p2align	4, 0x90
_vc_hostfs_set_attr:                    ## @vc_hostfs_set_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_strdup
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_DEBUG_MINOR
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_backslash_to_slash
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_stat
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	-40(%rbp), %eax
	movq	_ATTR_RDONLY@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %esi
	testl	%r15d, %r15d
	cmovnel	%ecx, %esi
	movq	%r12, %rdi
	callq	_chmod
	xorl	%ebx, %ebx
	negq	%rax
	sbbl	%ebx, %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vc_hostfs_set_attr: '%s', %x"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_hostfs_set_attr             ; -- Begin function vc_hostfs_set_attr
	.p2align	2
_vc_hostfs_set_attr:                    ; @vc_hostfs_set_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_strdup
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_DEBUG_MINOR
	cbz	x19, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_backslash_to_slash
	add	x1, sp, #8
	mov	x0, x20
	bl	_stat
	cbz	x0, LBB0_4
; %bb.2:
	mov	w20, #-1
	b	LBB0_5
LBB0_3:
	mov	w20, #-1
	b	LBB0_6
LBB0_4:
	ldr	w8, [sp, #8]
Lloh2:
	adrp	x9, _ATTR_RDONLY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATTR_RDONLY@GOTPAGEOFF]
Lloh4:
	adrp	x10, _S_IWUSR@GOTPAGE
Lloh5:
	ldr	x10, [x10, _S_IWUSR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	ldr	w10, [x10]
	bic	w11, w8, w10
	orr	w8, w10, w8
	tst	w9, w21
	csel	w1, w8, w11, eq
	mov	x0, x20
	bl	_chmod
	cmp	x0, #0
	csetm	w20, ne
LBB0_5:
	mov	x0, x19
	bl	_free
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vc_hostfs_set_attr: '%s', %x"

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