	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function main
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
LCPI0_1:
	.quad	0x43e0000000000000              ## double 9.2233720368547758E+18
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-184(%rbp), %r15
	movq	%r15, %rdi
	movl	$88, %esi
	callq	_bzero
	movl	%r14d, -184(%rbp)
	movq	%r13, -176(%rbp)
	movq	%r15, %rdi
	callq	_init
	leaq	-120(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movl	-108(%rbp), %edx
	movl	-104(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_D
	movq	%r15, %rdi
	callq	_mainloop
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_timersub
	imull	$1000000, -120(%rbp), %eax      ## imm = 0xF4240
	addl	-116(%rbp), %eax
	cvtsi2sd	%eax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	divsd	-168(%rbp), %xmm0
	movsd	%xmm0, -192(%rbp)               ## 8-byte Spill
	movl	-160(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	callq	_sprintf
	movl	-160(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	-152(%rbp), %rbx
	movq	-144(%rbp), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
LBB0_14:
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	cmpq	%rsi, %rbx
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rsi, -152(%rbp)
	movq	%rsi, %rbx
	jmp	LBB0_18
LBB0_1:
	movq	-152(%rbp), %rbx
LBB0_19:
	movl	-112(%rbp), %esi
	movl	-120(%rbp), %edx
	movslq	-116(%rbp), %rax
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$38, %rcx
	addl	%eax, %ecx
	movsd	-168(%rbp), %xmm0               ## xmm0 = mem[0],zero
	cvttsd2si	%xmm0, %rax
	movq	%rax, %rdi
	subsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %r8
	sarq	$63, %rdi
	andq	%rdi, %r8
	orq	%rax, %r8
	movq	-128(%rbp), %r9
	movq	-136(%rbp), %rax
	testq	%rax, %rax
	cmovneq	%rax, %r15
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movsd	-192(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movb	$1, %al
	pushq	%r15
	pushq	%rbx
	callq	_D
	addq	$16, %rsp
	leaq	-184(%rbp), %rdi
	callq	_dump
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_DX
	testl	%r14d, %r14d
	jle	LBB0_22
## %bb.20:
	movl	%r14d, %r15d
	leaq	L_.str.4(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rcx
	movl	$1, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DX
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_21
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	andl	$-4, %edx
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	cmpq	%rdi, %rbx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, -152(%rbp)
	movq	%rdi, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rcx,%rsi,8), %rdi
	cmpq	%rdi, %rbx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, -152(%rbp)
	movq	%rdi, %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rcx,%rsi,8), %rdi
	cmpq	%rdi, %rbx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, -152(%rbp)
	movq	%rdi, %rbx
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rcx,%rsi,8), %rdi
	cmpq	%rdi, %rbx
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, -152(%rbp)
	movq	%rdi, %rbx
	jmp	LBB0_13
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"th_min %d th_max %d"

L_.str.1:                               ## @.str.1
	.asciz	"1::%d"

L_.str.2:                               ## @.str.2
	.asciz	"sched=%-12s\ttime=%d.%03d sec (%.0f nsec) enq %lu %lu deq\n\twfi=%.02f\tflow=%-16s"

L_.str.3:                               ## @.str.3
	.asciz	"done ac %d av %p"

L_.str.4:                               ## @.str.4
	.asciz	"arg %d %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	d9, d8, [sp, #192]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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 w27, -56
	.cfi_offset w28, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	add	x21, sp, #56
	add	x0, sp, #56
	mov	w1, #88
	bl	_bzero
	str	w20, [sp, #56]
	str	x19, [sp, #64]
	add	x0, sp, #56
	bl	_init
	add	x21, x21, #64
	mov	x0, x21
	mov	x1, #0
	bl	_gettimeofday
	ldp	w2, w1, [sp, #132]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D
	add	x0, sp, #56
	bl	_mainloop
	sub	x0, x29, #112
	mov	x1, #0
	bl	_gettimeofday
	sub	x0, x29, #112
	mov	x1, x21
	mov	x2, x21
	bl	_timersub
	mov	w8, #16960
	movk	w8, #15, lsl #16
	ldp	w10, w9, [sp, #120]
	ldr	w2, [sp, #80]
	madd	w8, w10, w8, w9
	scvtf	d0, w8
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	ldr	d1, [sp, #72]
	fdiv	d8, d0, d1
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x0, x29, #112
	bl	_sprintf
	ldr	w9, [sp, #80]
	cmp	w9, #0
	b.le	LBB0_5
; %bb.1:
	ldp	x8, x10, [sp, #88]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x8, x11
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x11, [sp, #88]
	mov	x8, x11
	b	LBB0_2
LBB0_5:
	ldr	x8, [sp, #88]
LBB0_6:
	ldp	w9, w1, [sp, #124]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	ldr	w2, [sp, #120]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	ldr	d0, [sp, #72]
	fcvtzu	x11, d0
	add	w9, w9, w10, asr #6
	ldp	x12, x10, [sp, #104]
	sub	x13, x29, #112
	cmp	x12, #0
	csel	x12, x13, x12, eq
	stp	x8, x12, [sp, #32]
	stp	x11, x10, [sp, #16]
	str	d8, [sp, #8]
	str	x9, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D
	add	x0, sp, #56
	bl	_dump
	str	x19, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_DX
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, #0
	mov	w22, w20
Lloh11:
	adrp	x20, l_.str.4@PAGE
Lloh12:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, x21, lsl #3]
	str	x8, [sp]
	mov	w0, #1
	mov	x1, x20
	mov	x2, x21
	bl	_DX
	add	x21, x21, #1
	cmp	x22, x21
	b.ne	LBB0_8
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #192]              ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"th_min %d th_max %d"

l_.str.1:                               ; @.str.1
	.asciz	"1::%d"

l_.str.2:                               ; @.str.2
	.asciz	"sched=%-12s\ttime=%d.%03d sec (%.0f nsec) enq %lu %lu deq\n\twfi=%.02f\tflow=%-16s"

l_.str.3:                               ; @.str.3
	.asciz	"done ac %d av %p"

l_.str.4:                               ; @.str.4
	.asciz	"arg %d %s"

.subsections_via_symbols
