	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function print_bad_events
LCPI0_0:
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_print_bad_events:                      ## @print_bad_events
	.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
	movl	%esi, %r14d
	movl	%edi, %ebx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_pr_info
	cvtsi2sd	%ebx, %xmm0
	cvtsi2sd	%r14d, %xmm1
	divsd	%xmm1, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	leaq	L_.str.6(%rip), %rdi
	movb	$1, %al
	callq	_pr_info
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_BROKEN_MAX@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	leaq	l_reltable.print_bad_events(%rip), %rbx
	leaq	L_.str.8(%rip), %r13
	movq	%rbx, %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rsi
	addq	%r12, %rsi
	movq	_bad_hist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_pr_info
	incq	%r14
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acquire"

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

L_.str.2:                               ## @.str.2
	.asciz	"contended"

L_.str.3:                               ## @.str.3
	.asciz	"release"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.print_bad_events
l_reltable.print_bad_events:
	.long	L_.str-l_reltable.print_bad_events
	.long	L_.str.1-l_reltable.print_bad_events
	.long	L_.str.2-l_reltable.print_bad_events
	.long	L_.str.3-l_reltable.print_bad_events

	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"\n=== output for debug===\n\n"

L_.str.5:                               ## @.str.5
	.asciz	"bad: %d, total: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"bad rate: %f %%\n"

L_.str.7:                               ## @.str.7
	.asciz	"histogram of events caused bad sequence\n"

	.comm	_BROKEN_MAX,4,2                 ## @BROKEN_MAX
L_.str.8:                               ## @.str.8
	.asciz	" %10s: %d\n"

	.comm	_bad_hist,8,3                   ## @bad_hist
	.no_dead_strip	_print_bad_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_bad_events
_print_bad_events:                      ; @print_bad_events
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str.4@PAGE
Lloh1:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
	stp	x20, x19, [sp]
Lloh2:
	adrp	x0, l_.str.5@PAGE
Lloh3:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_info
	scvtf	d0, w20
	scvtf	d1, w19
	fdiv	d0, d0, d1
	mov	x8, #4636737291354636288
	fmov	d1, x8
	fmul	d0, d0, d1
	str	d0, [sp]
Lloh4:
	adrp	x0, l_.str.6@PAGE
Lloh5:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_info
Lloh6:
	adrp	x0, l_.str.7@PAGE
Lloh7:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_info
Lloh8:
	adrp	x20, _BROKEN_MAX@GOTPAGE
Lloh9:
	ldr	x20, [x20, _BROKEN_MAX@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
Lloh10:
	adrp	x22, l___const.print_bad_events.name@PAGE
Lloh11:
	add	x22, x22, l___const.print_bad_events.name@PAGEOFF
Lloh12:
	adrp	x23, _bad_hist@GOTPAGE
Lloh13:
	ldr	x23, [x23, _bad_hist@GOTPAGEOFF]
Lloh14:
	adrp	x19, l_.str.8@PAGE
Lloh15:
	add	x19, x19, l_.str.8@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, x21, lsl #3]
	ldr	x9, [x23]
	ldr	w9, [x9, x21, lsl #2]
	stp	x8, x9, [sp]
	mov	x0, x19
	bl	_pr_info
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acquire"

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

l_.str.2:                               ; @.str.2
	.asciz	"contended"

l_.str.3:                               ; @.str.3
	.asciz	"release"

	.section	__DATA,__const
	.p2align	3                               ; @__const.print_bad_events.name
l___const.print_bad_events.name:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"\n=== output for debug===\n\n"

l_.str.5:                               ; @.str.5
	.asciz	"bad: %d, total: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"bad rate: %f %%\n"

l_.str.7:                               ; @.str.7
	.asciz	"histogram of events caused bad sequence\n"

	.comm	_BROKEN_MAX,4,2                 ; @BROKEN_MAX
l_.str.8:                               ; @.str.8
	.asciz	" %10s: %d\n"

	.comm	_bad_hist,8,3                   ; @bad_hist
	.no_dead_strip	_print_bad_events
.subsections_via_symbols
