	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function attrs
_attrs:                                 ## @attrs
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_FSTEST_ENTER
	movq	_AFILE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-56(%rbp), %rsi
	callq	_rump_sys_stat
	movl	%eax, %edi
	callq	_RL
	movq	_EROFS@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	(%r15), %edi
	movl	$509, %esi                      ## imm = 0x1FD
	callq	_rump_sys_chmod
	xorl	%esi, %esi
	cmpl	$-1, %eax
	sete	%sil
	movl	%ebx, %edi
	callq	_ATF_REQUIRE_ERRNO
	movq	%r14, %rdi
	callq	_FSTYPE_MSDOS
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %ebx
	movl	(%r15), %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_rump_sys_chown
	xorl	%esi, %esi
	cmpl	$-1, %eax
	sete	%sil
	movl	%ebx, %edi
	callq	_ATF_REQUIRE_ERRNO
LBB0_2:
	movl	(%r12), %ebx
	movl	(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_rump_sys_utimes
	xorl	%esi, %esi
	cmpl	$-1, %eax
	sete	%sil
	movl	%ebx, %edi
	callq	_ATF_REQUIRE_ERRNO
	movl	(%r15), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rump_sys_open
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_RL
	movl	(%r12), %r15d
	movl	%ebx, %edi
	movl	$509, %esi                      ## imm = 0x1FD
	callq	_rump_sys_fchmod
	xorl	%esi, %esi
	cmpl	$-1, %eax
	sete	%sil
	movl	%r15d, %edi
	callq	_ATF_REQUIRE_ERRNO
	movq	%r14, %rdi
	callq	_FSTYPE_MSDOS
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r12), %r14d
	movl	%ebx, %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_rump_sys_fchown
	xorl	%esi, %esi
	cmpl	$-1, %eax
	sete	%sil
	movl	%r14d, %edi
	callq	_ATF_REQUIRE_ERRNO
LBB0_4:
	movl	(%r12), %r14d
	leaq	-48(%rbp), %rsi
	movl	%ebx, %edi
	callq	_rump_sys_futimes
	xorl	%esi, %esi
	cmpl	$-1, %eax
	sete	%sil
	movl	%r14d, %edi
	callq	_ATF_REQUIRE_ERRNO
	movl	%ebx, %edi
	callq	_rump_sys_close
	movl	%eax, %edi
	callq	_RL
	xorl	%eax, %eax
	callq	_FSTEST_EXIT
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AFILE,4,2                      ## @AFILE
	.comm	_EROFS,4,2                      ## @EROFS
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.no_dead_strip	_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function attrs
_attrs:                                 ; @attrs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_FSTEST_ENTER
Lloh3:
	adrp	x21, _AFILE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AFILE@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_rump_sys_stat
	bl	_RL
Lloh5:
	adrp	x22, _EROFS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _EROFS@GOTPAGEOFF]
	ldr	w20, [x22]
	ldr	w0, [x21]
	mov	w1, #509
	bl	_rump_sys_chmod
	cmn	w0, #1
	cset	w1, eq
	mov	x0, x20
	bl	_ATF_REQUIRE_ERRNO
	mov	x0, x19
	bl	_FSTYPE_MSDOS
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w20, [x22]
	ldr	w0, [x21]
	mov	w1, #1
	mov	w2, #1
	bl	_rump_sys_chown
	cmn	w0, #1
	cset	w1, eq
	mov	x0, x20
	bl	_ATF_REQUIRE_ERRNO
LBB0_2:
	ldr	w20, [x22]
	ldr	w0, [x21]
	add	x1, sp, #16
	bl	_rump_sys_utimes
	cmn	w0, #1
	cset	w1, eq
	mov	x0, x20
	bl	_ATF_REQUIRE_ERRNO
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_rump_sys_open
	mov	x20, x0
	bl	_RL
	ldr	w21, [x22]
	mov	x0, x20
	mov	w1, #509
	bl	_rump_sys_fchmod
	cmn	w0, #1
	cset	w1, eq
	mov	x0, x21
	bl	_ATF_REQUIRE_ERRNO
	mov	x0, x19
	bl	_FSTYPE_MSDOS
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w19, [x22]
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_rump_sys_fchown
	cmn	w0, #1
	cset	w1, eq
	mov	x0, x19
	bl	_ATF_REQUIRE_ERRNO
LBB0_4:
	ldr	w19, [x22]
	add	x1, sp, #16
	mov	x0, x20
	bl	_rump_sys_futimes
	cmn	w0, #1
	cset	w1, eq
	mov	x0, x19
	bl	_ATF_REQUIRE_ERRNO
	mov	x0, x20
	bl	_rump_sys_close
	bl	_RL
	bl	_FSTEST_EXIT
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AFILE,4,2                      ; @AFILE
	.comm	_EROFS,4,2                      ; @EROFS
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.no_dead_strip	_attrs
.subsections_via_symbols
