	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_ATOMIC_TIMING            ## -- Begin function lkdtm_ATOMIC_TIMING
	.p2align	4, 0x90
_lkdtm_ATOMIC_TIMING:                   ## @lkdtm_ATOMIC_TIMING
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %r12d
	movl	$1, %edi
	callq	_ATOMIC_INIT
	movl	%eax, -36(%rbp)
	movq	_INT_MAX@GOTPCREL(%rip), %r15
	cmpl	$1, (%r15)
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_atomic_inc
	incl	%ebx
	movl	(%r15), %r12d
	leal	-1(%r12), %eax
	cmpl	%eax, %ebx
	jb	LBB0_2
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_10
LBB0_4:
	leaq	-36(%rbp), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	decl	%r12d
	jne	LBB0_5
LBB0_10:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_8:
	cmpl	$1, %r12d
	jne	LBB0_11
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_12
LBB0_11:
	decl	%r12d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_pr_err
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atomic timing: out of sync up/down cycle: %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"atomic timing: done\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lkdtm_ATOMIC_TIMING            ; -- Begin function lkdtm_ATOMIC_TIMING
	.p2align	2
_lkdtm_ATOMIC_TIMING:                   ; @lkdtm_ATOMIC_TIMING
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	w19, #1
	mov	w0, #1
	bl	_ATOMIC_INIT
	str	w0, [sp, #12]
Lloh0:
	adrp	x20, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INT_MAX@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_atomic_inc
	add	w21, w21, #1
	ldr	w19, [x20]
	sub	w8, w19, #1
	cmp	w21, w8
	b.lo	LBB0_2
; %bb.3:
	cbz	w19, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_atomic_dec_and_test
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	w19, w19, #1
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:
	cmp	w19, #1
	b.ne	LBB0_8
; %bb.7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	b	LBB0_9
LBB0_8:
	sub	w1, w19, #1
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atomic timing: out of sync up/down cycle: %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"atomic timing: done\n"

.subsections_via_symbols
