	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cond_wait
_cond_wait:                             ## @cond_wait
	.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
	movl	%edi, -24(%rbp)
	movq	_debug@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
LBB0_2:
	movq	_run@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rdi
	leaq	-24(%rbp), %rcx
	xorl	%esi, %esi
	callq	_pthread_create
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ATF_REQUIRE_EQ
	movl	-20(%rbp), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ATF_REQUIRE_EQ
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"**** %s clock wait starting\n"

	.comm	_run,4,2                        ## @run
L_.str.1:                               ## @.str.1
	.asciz	"**** %s clock wait ended\n"

	.no_dead_strip	_cond_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cond_wait
_cond_wait:                             ; @cond_wait
	.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
	str	w0, [sp, #12]
Lloh0:
	adrp	x20, _debug@GOTPAGE
Lloh1:
	ldr	x20, [x20, _debug@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_2:
Lloh4:
	adrp	x8, _run@GOTPAGE
Lloh5:
	ldr	x8, [x8, _run@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x0, sp, #8
	add	x3, sp, #12
	mov	x1, #0
	bl	_pthread_create
	mov	w1, #0
	bl	_ATF_REQUIRE_EQ
	ldr	w0, [sp, #8]
	mov	x1, #0
	bl	_pthread_join
	mov	w1, #0
	bl	_ATF_REQUIRE_EQ
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"**** %s clock wait starting\n"

	.comm	_run,4,2                        ; @run
l_.str.1:                               ; @.str.1
	.asciz	"**** %s clock wait ended\n"

	.no_dead_strip	_cond_wait
.subsections_via_symbols
