	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kthrdlk_done
_kthrdlk_done:                          ## @kthrdlk_done
	.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
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTF
	movq	_test_global_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_QUIT@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_test_thrcnt@GOTPCREL(%rip), %r14
	movq	_hz@GOTPCREL(%rip), %r13
	movq	_global_condvar@GOTPCREL(%rip), %r15
	leaq	L_.str.1(%rip), %rbx
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %eax
	movl	%eax, %r8d
	shll	$5, %r8d
	subl	%eax, %r8d
	subl	%eax, %r8d
	movq	%r15, %rdi
	movq	_test_global_lock@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_mtx_sleep
	cmpl	(%r12), %eax
	jne	LBB0_1
## %bb.3:
	movq	(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_panic
	cmpq	$0, (%r14)
	jne	LBB0_5
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	callq	_DPRINTF
LBB0_5:
	movq	_test_global_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_destroy                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending QUIT signal to the thrdlk threads\n"

	.comm	_test_global_lock,4,2           ## @test_global_lock
	.comm	_QUIT,4,2                       ## @QUIT
	.comm	_test_thrcnt,8,3                ## @test_thrcnt
	.comm	_global_condvar,4,2             ## @global_condvar
L_.str.1:                               ## @.str.1
	.asciz	"waiting thrs end"

	.comm	_hz,4,2                         ## @hz
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
L_.str.2:                               ## @.str.2
	.asciz	"some threads not die! remaining: %d"

L_.str.3:                               ## @.str.3
	.asciz	"All test_pause threads die\n"

	.no_dead_strip	_kthrdlk_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kthrdlk_done
_kthrdlk_done:                          ; @kthrdlk_done
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
Lloh2:
	adrp	x19, _test_global_lock@GOTPAGE
Lloh3:
	ldr	x19, [x19, _test_global_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_mtx_lock
Lloh4:
	adrp	x8, _QUIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QUIT@GOTPAGEOFF]
	mov	w9, #1
Lloh6:
	str	w9, [x8]
Lloh7:
	adrp	x22, _test_thrcnt@GOTPAGE
Lloh8:
	ldr	x22, [x22, _test_thrcnt@GOTPAGEOFF]
Lloh9:
	adrp	x23, _hz@GOTPAGE
Lloh10:
	ldr	x23, [x23, _hz@GOTPAGEOFF]
	mov	w24, #30
Lloh11:
	adrp	x20, _global_condvar@GOTPAGE
Lloh12:
	ldr	x20, [x20, _global_condvar@GOTPAGEOFF]
Lloh13:
	adrp	x21, l_.str.1@PAGE
Lloh14:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh15:
	adrp	x25, _EWOULDBLOCK@GOTPAGE
Lloh16:
	ldr	x25, [x25, _EWOULDBLOCK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23]
	mul	w4, w8, w24
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	x3, x21
	bl	_mtx_sleep
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_1
; %bb.3:
	ldr	x1, [x22]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_panic
	ldr	x8, [x22]
	cbnz	x8, LBB0_5
LBB0_4:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPRINTF
LBB0_5:
Lloh21:
	adrp	x0, _test_global_lock@GOTPAGE
Lloh22:
	ldr	x0, [x0, _test_global_lock@GOTPAGEOFF]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mtx_destroy
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending QUIT signal to the thrdlk threads\n"

	.comm	_test_global_lock,4,2           ; @test_global_lock
	.comm	_QUIT,4,2                       ; @QUIT
	.comm	_test_thrcnt,8,3                ; @test_thrcnt
	.comm	_global_condvar,4,2             ; @global_condvar
l_.str.1:                               ; @.str.1
	.asciz	"waiting thrs end"

	.comm	_hz,4,2                         ; @hz
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
l_.str.2:                               ; @.str.2
	.asciz	"some threads not die! remaining: %d"

l_.str.3:                               ; @.str.3
	.asciz	"All test_pause threads die\n"

	.no_dead_strip	_kthrdlk_done
.subsections_via_symbols
