	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thr_routine                    ## -- Begin function thr_routine
	.p2align	4, 0x90
_thr_routine:                           ## @thr_routine
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_m@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	movq	_wake@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_3
## %bb.1:
	movq	_cv@GOTPCREL(%rip), %r14
	movq	_m@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pthread_cond_wait
	cmpq	$0, (%r15)
	je	LBB0_2
LBB0_3:
	movq	_m@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	movq	_stop@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_pthread_yield
	cmpq	$0, (%rbx)
	je	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m,4,2                          ## @m
	.comm	_wake,8,3                       ## @wake
	.comm	_cv,4,2                         ## @cv
	.comm	_stop,8,3                       ## @stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thr_routine                    ; -- Begin function thr_routine
	.p2align	2
_thr_routine:                           ; @thr_routine
	.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
Lloh0:
	adrp	x0, _m@GOTPAGE
Lloh1:
	ldr	x0, [x0, _m@GOTPAGEOFF]
	bl	_pthread_mutex_lock
Lloh2:
	adrp	x21, _wake@GOTPAGE
Lloh3:
	ldr	x21, [x21, _wake@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_3
; %bb.1:
Lloh4:
	adrp	x19, _cv@GOTPAGE
Lloh5:
	ldr	x19, [x19, _cv@GOTPAGEOFF]
Lloh6:
	adrp	x20, _m@GOTPAGE
Lloh7:
	ldr	x20, [x20, _m@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_pthread_cond_wait
	ldr	x8, [x21]
	cbz	x8, LBB0_2
LBB0_3:
Lloh8:
	adrp	x0, _m@GOTPAGE
Lloh9:
	ldr	x0, [x0, _m@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
Lloh10:
	adrp	x19, _stop@GOTPAGE
Lloh11:
	ldr	x19, [x19, _stop@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_pthread_yield
	ldr	x8, [x19]
	cbz	x8, LBB0_4
LBB0_5:
	mov	x0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_m,4,2                          ; @m
	.comm	_wake,8,3                       ; @wake
	.comm	_cv,4,2                         ; @cv
	.comm	_stop,8,3                       ; @stop
.subsections_via_symbols
