	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function otrunc_mtime_update
_otrunc_mtime_update:                   ## @otrunc_mtime_update
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdi
	callq	_rump_sys_chdir
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_atf_tc_fail
LBB0_2:
	xorl	%eax, %eax
	callq	_lock_it
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %r15
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_printf
	leaq	L_.str.2(%rip), %r14
	movl	$1, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_ATF_REQUIRE_MSG
	movl	$2, %edi
	callq	_sleep
	xorl	%eax, %eax
	callq	_lock_it
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_printf
	xorl	%edi, %edi
	cmpq	%r12, %rbx
	setg	%dil
	movq	%r14, %rsi
	movl	$1, %edx
	movq	%r12, %rcx
	movq	%rbx, %r8
	callq	_ATF_REQUIRE_MSG
	movl	$2, %edi
	callq	_sleep
	xorl	%eax, %eax
	callq	_lock_it
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_printf
	xorl	%edi, %edi
	cmpq	%rbx, %r13
	setg	%dil
	movq	%r14, %rsi
	movl	$2, %edx
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_ATF_REQUIRE_MSG
	movl	$2, %edi
	callq	_sleep
	xorl	%eax, %eax
	callq	_lock_it
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_printf
	xorl	%edi, %edi
	cmpq	%r13, %r12
	setg	%dil
	movq	%r14, %rsi
	movl	$3, %edx
	movq	%r13, %rcx
	movq	%r12, %r8
	callq	_ATF_REQUIRE_MSG
	movl	$2, %edi
	callq	_sleep
	xorl	%eax, %eax
	callq	_lock_it
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_printf
	xorl	%edi, %edi
	cmpq	%r12, %rbx
	setg	%dil
	movq	%r14, %rsi
	movl	$4, %edx
	movq	%r12, %rcx
	movq	%rbx, %r8
	callq	_ATF_REQUIRE_MSG
	movl	$2, %edi
	callq	_sleep
	leaq	L_.str.3(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rump_sys_chdir                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chdir failed"

L_.str.1:                               ## @.str.1
	.asciz	"last lock: %ld\n"

L_.str.2:                               ## @.str.2
	.asciz	"iteration %d: lock time did not increase, old time %lu, new time %lu"

L_.str.3:                               ## @.str.3
	.asciz	"/"

	.no_dead_strip	_otrunc_mtime_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function otrunc_mtime_update
_otrunc_mtime_update:                   ; @otrunc_mtime_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x0, x1
	bl	_rump_sys_chdir
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_fail
LBB0_2:
	bl	_lock_it
	mov	x21, x0
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_printf
Lloh4:
	adrp	x19, l_.str.2@PAGE
Lloh5:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	mov	w2, #0
	mov	x3, #0
	mov	x4, x21
	bl	_ATF_REQUIRE_MSG
	mov	w0, #2
	bl	_sleep
	bl	_lock_it
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_printf
	cmp	x22, x21
	cset	w0, gt
	mov	x1, x19
	mov	w2, #1
	mov	x3, x21
	mov	x4, x22
	bl	_ATF_REQUIRE_MSG
	mov	w0, #2
	bl	_sleep
	bl	_lock_it
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_printf
	cmp	x21, x22
	cset	w0, gt
	mov	x1, x19
	mov	w2, #2
	mov	x3, x22
	mov	x4, x21
	bl	_ATF_REQUIRE_MSG
	mov	w0, #2
	bl	_sleep
	bl	_lock_it
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_printf
	cmp	x22, x21
	cset	w0, gt
	mov	x1, x19
	mov	w2, #3
	mov	x3, x21
	mov	x4, x22
	bl	_ATF_REQUIRE_MSG
	mov	w0, #2
	bl	_sleep
	bl	_lock_it
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_printf
	cmp	x21, x22
	cset	w0, gt
	mov	x1, x19
	mov	w2, #4
	mov	x3, x22
	mov	x4, x21
	bl	_ATF_REQUIRE_MSG
	mov	w0, #2
	bl	_sleep
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rump_sys_chdir
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chdir failed"

l_.str.1:                               ; @.str.1
	.asciz	"last lock: %ld\n"

l_.str.2:                               ; @.str.2
	.asciz	"iteration %d: lock time did not increase, old time %lu, new time %lu"

l_.str.3:                               ; @.str.3
	.asciz	"/"

	.no_dead_strip	_otrunc_mtime_update
.subsections_via_symbols
