	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function testloop
_testloop:                              ## @testloop
	.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
	movq	%rdi, %r14
	movq	_state_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_state_flags@GOTPCREL(%rip), %r13
	movq	_ET_EXITING@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%r13)
	jne	LBB0_4
## %bb.1:
	movq	_state_mtx@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_msleep
	movl	(%r12), %eax
	testl	%eax, (%r13)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movq	%r14, %rdi
	callq	_epoch_testcase2
	leaq	L_.str.1(%rip), %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	callq	_pause
	movq	%r14, %rdi
	callq	_epoch_testcase1
	movq	%rbx, %rdi
	callq	_mtx_lock
	movl	(%r12), %eax
	testl	%eax, (%r13)
	je	LBB0_2
LBB0_4:
	movq	_state_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kthread_exit                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_state_mtx,4,2                  ## @state_mtx
	.comm	_state_flags,4,2                ## @state_flags
	.comm	_ET_EXITING,4,2                 ## @ET_EXITING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"epoch start wait"

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

	.no_dead_strip	_testloop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function testloop
_testloop:                              ; @testloop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _state_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _state_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x23, _state_flags@GOTPAGE
Lloh3:
	ldr	x23, [x23, _state_flags@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh4:
	adrp	x24, _ET_EXITING@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ET_EXITING@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x20, _state_mtx@GOTPAGE
Lloh7:
	ldr	x20, [x20, _state_mtx@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x20
	mov	w2, #0
	mov	x3, x21
	mov	w4, #0
	bl	_msleep
	ldr	w8, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_mtx_unlock
	mov	x0, x19
	bl	_epoch_testcase2
	mov	x0, x22
	mov	w1, #500
	bl	_pause
	mov	x0, x19
	bl	_epoch_testcase1
	mov	x0, x20
	bl	_mtx_lock
	ldr	w8, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_4:
Lloh12:
	adrp	x0, _state_mtx@GOTPAGE
Lloh13:
	ldr	x0, [x0, _state_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_kthread_exit
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_state_mtx,4,2                  ; @state_mtx
	.comm	_state_flags,4,2                ; @state_flags
	.comm	_ET_EXITING,4,2                 ; @ET_EXITING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"epoch start wait"

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

	.no_dead_strip	_testloop
.subsections_via_symbols
