	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function threadfunc
_threadfunc:                            ## @threadfunc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_str.3(%rip), %rdi
	callq	_puts
	movq	_mutex@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	movl	%eax, %edi
	callq	_PTHREAD_REQUIRE
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	movq	_started@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	movl	%eax, %edi
	callq	_PTHREAD_REQUIRE
	movq	_cond@GOTPCREL(%rip), %rdi
	callq	_pthread_cond_signal
	movl	%eax, %edi
	callq	_PTHREAD_REQUIRE
	movl	$1, %edi
	callq	_sleep
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mutex,4,2                      ## @mutex
	.comm	_started,4,2                    ## @started
	.comm	_cond,4,2                       ## @cond
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"2: Second thread."

L_str.3:                                ## @str.3
	.asciz	"2: Locking mutex"

L_str.4:                                ## @str.4
	.asciz	"2: Got mutex."

	.no_dead_strip	_threadfunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function threadfunc
_threadfunc:                            ; @threadfunc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x0, l_str.3@PAGE
Lloh3:
	add	x0, x0, l_str.3@PAGEOFF
	bl	_puts
Lloh4:
	adrp	x19, _mutex@GOTPAGE
Lloh5:
	ldr	x19, [x19, _mutex@GOTPAGEOFF]
	mov	x0, x19
	bl	_pthread_mutex_lock
	bl	_PTHREAD_REQUIRE
Lloh6:
	adrp	x0, l_str.4@PAGE
Lloh7:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
Lloh8:
	adrp	x8, _started@GOTPAGE
Lloh9:
	ldr	x8, [x8, _started@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_pthread_mutex_unlock
	bl	_PTHREAD_REQUIRE
Lloh10:
	adrp	x0, _cond@GOTPAGE
Lloh11:
	ldr	x0, [x0, _cond@GOTPAGEOFF]
	bl	_pthread_cond_signal
	bl	_PTHREAD_REQUIRE
	mov	w0, #1
	bl	_sleep
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mutex,4,2                      ; @mutex
	.comm	_started,4,2                    ; @started
	.comm	_cond,4,2                       ; @cond
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"2: Second thread."

l_str.3:                                ; @str.3
	.asciz	"2: Locking mutex"

l_str.4:                                ; @str.4
	.asciz	"2: Got mutex."

	.no_dead_strip	_threadfunc
.subsections_via_symbols
