	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function race
_race:                                  ## @race
	.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, %rbx
	callq	_FSTYPE_SYSVBFS
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_atf_tc_skip
LBB0_2:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_rump_sys_open
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_atf_tc_fail
LBB0_4:
	movq	%rbx, %rdi
	callq	_rump_sys_chdir
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_atf_tc_fail
LBB0_6:
	movl	$0, -20(%rbp)
	movq	_func1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rdi
	leaq	-20(%rbp), %rcx
	xorl	%esi, %esi
	callq	_pthread_create
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	callq	_atf_tc_fail
LBB0_8:
	movq	_func2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rdi
	leaq	-20(%rbp), %rcx
	xorl	%esi, %esi
	callq	_pthread_create
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rdi
	callq	_atf_tc_fail
LBB0_10:
	movl	$10, %edi
	callq	_sleep
	movl	$1, -20(%rbp)
	movl	-24(%rbp), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.6(%rip), %rdi
	callq	_atf_tc_fail
LBB0_12:
	movl	-28(%rbp), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.7(%rip), %rdi
	callq	_atf_tc_fail
LBB0_14:
	movl	%r14d, %edi
	callq	_rump_sys_fchdir
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.8(%rip), %rdi
	callq	_atf_tc_fail
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"directories not supported by file system"

L_.str.1:                               ## @.str.1
	.asciz	"."

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"open failed"

L_.str.3:                               ## @.str.3
	.asciz	"chdir failed"

	.comm	_func1,4,2                      ## @func1
L_.str.4:                               ## @.str.4
	.asciz	"pthread_create1 failed"

	.comm	_func2,4,2                      ## @func2
L_.str.5:                               ## @.str.5
	.asciz	"pthread_create2 failed"

L_.str.6:                               ## @.str.6
	.asciz	"pthread_join2 failed"

L_.str.7:                               ## @.str.7
	.asciz	"pthread_join1 failed"

L_.str.8:                               ## @.str.8
	.asciz	"fchdir failed"

	.no_dead_strip	_race
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function race
_race:                                  ; @race
	.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	x20, x1
	bl	_FSTYPE_SYSVBFS
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_skip
LBB0_2:
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w2, #438
	bl	_rump_sys_open
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail
LBB0_4:
	mov	x0, x20
	bl	_rump_sys_chdir
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_atf_tc_fail
LBB0_6:
	str	wzr, [sp, #12]
Lloh11:
	adrp	x8, _func1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _func1@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x0, sp, #8
	add	x3, sp, #12
	mov	x1, #0
	bl	_pthread_create
	cbz	w0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_atf_tc_fail
LBB0_8:
Lloh16:
	adrp	x8, _func2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _func2@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	add	x0, sp, #4
	add	x3, sp, #12
	mov	x1, #0
	bl	_pthread_create
	cbz	w0, LBB0_10
; %bb.9:
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_atf_tc_fail
LBB0_10:
	mov	w0, #10
	bl	_sleep
	mov	w8, #1
	str	w8, [sp, #12]
	ldr	w0, [sp, #4]
	mov	x1, #0
	bl	_pthread_join
	cbz	w0, LBB0_12
; %bb.11:
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_atf_tc_fail
LBB0_12:
	ldr	w0, [sp, #8]
	mov	x1, #0
	bl	_pthread_join
	cbz	w0, LBB0_14
; %bb.13:
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_atf_tc_fail
LBB0_14:
	mov	x0, x19
	bl	_rump_sys_fchdir
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.15:
Lloh25:
	adrp	x0, l_.str.8@PAGE
Lloh26:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_atf_tc_fail
LBB0_16:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"directories not supported by file system"

l_.str.1:                               ; @.str.1
	.asciz	"."

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"open failed"

l_.str.3:                               ; @.str.3
	.asciz	"chdir failed"

	.comm	_func1,4,2                      ; @func1
l_.str.4:                               ; @.str.4
	.asciz	"pthread_create1 failed"

	.comm	_func2,4,2                      ; @func2
l_.str.5:                               ; @.str.5
	.asciz	"pthread_create2 failed"

l_.str.6:                               ; @.str.6
	.asciz	"pthread_join2 failed"

l_.str.7:                               ; @.str.7
	.asciz	"pthread_join1 failed"

l_.str.8:                               ; @.str.8
	.asciz	"fchdir failed"

	.no_dead_strip	_race
.subsections_via_symbols
