	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function cbq_compute_idletime
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x4020000000000000              ## double 8
LCPI0_2:
	.quad	0x3f1a36e2eb1c432d              ## double 1.0E-4
LCPI0_3:
	.quad	0x416312d000000000              ## double 1.0E+7
LCPI0_4:
	.quad	0xbff0000000000000              ## double -1
LCPI0_7:
	.quad	0x408f400000000000              ## double 1000
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_5:
	.quad	0x3ff0000000000000              ## double 1
	.space	8
LCPI0_6:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cbq_compute_idletime:                  ## @cbq_compute_idletime
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	cvtsi2sdq	16(%rsi), %xmm6
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	movapd	%xmm3, %xmm4
	divsd	%xmm6, %xmm4
	movq	_RM_NS_PER_SEC@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm4
	mulsd	LCPI0_1(%rip), %xmm4
	movq	(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	cvtsi2sd	%rdx, %xmm7
	divsd	%xmm6, %xmm7
	jmp	LBB0_3
LBB0_1:
	movsd	LCPI0_2(%rip), %xmm7            ## xmm7 = mem[0],zero
LBB0_3:
	movl	24(%r15), %r14d
	movl	28(%r15), %r12d
	movapd	%xmm4, %xmm5
	divsd	%xmm7, %xmm5
	movl	32(%r15), %ecx
	cvtsi2sd	%ecx, %xmm0
	movq	56(%r15), %rbx
	movapd	%xmm5, %xmm2
	mulsd	%xmm0, %xmm2
	movq	_INT_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	cvtsi2sd	%eax, %xmm1
	ucomisd	%xmm1, %xmm2
	movapd	%xmm7, -64(%rbp)                ## 16-byte Spill
	jbe	LBB0_4
## %bb.5:
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.6:
	movq	_PF_OPT_QUIET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rdi)
	jne	LBB0_8
## %bb.7:
	mulsd	%xmm4, %xmm0
	divsd	%xmm1, %xmm0
	mulsd	%xmm6, %xmm0
	movsd	%xmm4, -80(%rbp)                ## 8-byte Spill
	callq	_rate2str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movapd	-64(%rbp), %xmm7                ## 16-byte Reload
	movsd	-80(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	movl	(%r13), %eax
	movl	32(%r15), %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
LBB0_8:
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	cltd
	idivl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movapd	%xmm0, -112(%rbp)               ## 16-byte Spill
	jmp	LBB0_9
LBB0_4:
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	movapd	%xmm5, -112(%rbp)               ## 16-byte Spill
LBB0_9:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rbx, %xmm0
	mulsd	%xmm0, %xmm4
	movsd	%xmm4, -80(%rbp)                ## 8-byte Spill
	movapd	%xmm3, %xmm0
	subsd	%xmm7, %xmm0
	mulsd	%xmm4, %xmm0
	divsd	%xmm7, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	ucomisd	LCPI0_3(%rip), %xmm0
	movl	$4, %eax
	movl	$16, %ebx
	cmoval	%eax, %ebx
	testl	%r12d, %r12d
	cmovnel	%r12d, %ebx
	testl	%r14d, %r14d
	movl	$2, %r12d
	cmovnel	%r14d, %r12d
	cmpl	%ebx, %r12d
	cmovgel	%ebx, %r12d
	movq	_RM_FILTER_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movsd	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	addsd	%xmm3, %xmm0
	movsd	%xmm0, -120(%rbp)               ## 8-byte Spill
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ebx, %xmm1
	callq	_pow
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	movapd	%xmm3, %xmm1
	subsd	%xmm0, %xmm1
	movapd	LCPI0_5(%rip), %xmm2            ## xmm2 = <1.0E+0,u>
	unpcklpd	%xmm1, %xmm2                    ## xmm2 = xmm2[0],xmm1[0]
	movapd	-64(%rbp), %xmm1                ## 16-byte Reload
	unpcklpd	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	divpd	%xmm1, %xmm2
	movsd	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm2, %xmm0
	unpckhpd	%xmm2, %xmm2                    ## xmm2 = xmm2[1,1]
	mulsd	%xmm0, %xmm2
	movsd	-120(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	%xmm0, %xmm3
	movsd	%xmm3, -64(%rbp)                ## 8-byte Spill
	maxsd	%xmm3, %xmm2
	mulsd	-80(%rbp), %xmm2                ## 8-byte Folded Reload
	movapd	%xmm2, -80(%rbp)                ## 16-byte Spill
	leal	-1(%r12), %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	callq	_pow
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	movapd	%xmm3, %xmm1
	divsd	-64(%rbp), %xmm1                ## 8-byte Folded Reload
	movapd	%xmm3, %xmm2
	subsd	%xmm0, %xmm2
	mulsd	%xmm1, %xmm2
	divsd	%xmm0, %xmm2
	addsd	%xmm3, %xmm2
	mulsd	-48(%rbp), %xmm2                ## 8-byte Folded Reload
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	movapd	LCPI0_6(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0]
	movapd	-112(%rbp), %xmm2               ## 16-byte Reload
	xorpd	%xmm2, %xmm0
	mulsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	movapd	%xmm0, -64(%rbp)                ## 16-byte Spill
	movapd	-80(%rbp), %xmm0                ## 16-byte Reload
	mulsd	LCPI0_1(%rip), %xmm0
	divsd	%xmm2, %xmm0
	movapd	%xmm0, -80(%rbp)                ## 16-byte Spill
	movapd	%xmm3, %xmm0
	movl	%r14d, %edi
	callq	_ldexp
	movapd	-80(%rbp), %xmm3                ## 16-byte Reload
	mulsd	%xmm0, %xmm3
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm5            ## xmm5 = mem[0],zero
	mulsd	%xmm5, %xmm1
	movapd	-112(%rbp), %xmm2               ## 16-byte Reload
	divsd	%xmm2, %xmm1
	mulsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm4
	movapd	-64(%rbp), %xmm1                ## 16-byte Reload
	mulsd	%xmm5, %xmm1
	divsd	%xmm2, %xmm1
	mulsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm5
	movsd	LCPI0_7(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm3
	movapd	%xmm3, %xmm0
	divsd	%xmm1, %xmm4
	movsd	%xmm4, -48(%rbp)                ## 8-byte Spill
	divsd	%xmm1, %xmm5
	movapd	%xmm5, -64(%rbp)                ## 16-byte Spill
	movl	%r12d, 24(%r15)
	movl	%ebx, 28(%r15)
	cvttsd2si	%xmm2, %eax
	movl	%eax, 36(%r15)
	callq	_fabs
	movl	%eax, 40(%r15)
	cvttsd2si	-64(%rbp), %eax         ## 16-byte Folded Reload
	movl	%eax, 44(%r15)
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_fabs
	movl	%eax, 48(%r15)
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RM_NS_PER_SEC,8,3              ## @RM_NS_PER_SEC
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_PF_OPT_QUIET,4,2               ## @PF_OPT_QUIET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue bandwidth must be larger than %s"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"cbq: queue %s is too slow!\n"

	.comm	_RM_FILTER_GAIN,4,2             ## @RM_FILTER_GAIN
	.no_dead_strip	_cbq_compute_idletime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbq_compute_idletime
_cbq_compute_idletime:                  ; @cbq_compute_idletime
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	.cfi_offset b12, -104
	.cfi_offset b13, -112
	.cfi_offset b14, -120
	.cfi_offset b15, -128
	mov	x19, x1
	ldr	d0, [x1, #16]
	scvtf	d0, d0
	fmov	d1, #1.00000000
Lloh0:
	adrp	x8, _RM_NS_PER_SEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RM_NS_PER_SEC@GOTPAGEOFF]
	fdiv	d1, d1, d0
Lloh2:
	ldr	d2, [x8]
	fmul	d1, d2, d1
	fmov	d2, #8.00000000
	fmul	d8, d1, d2
	ldr	x10, [x1]
	cbz	x10, LBB0_2
; %bb.1:
	scvtf	d1, x10
	fdiv	d9, d1, d0
	b	LBB0_3
LBB0_2:
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16154, lsl #48
	fmov	d9, x8
LBB0_3:
	ldp	w20, w21, [x19, #24]
	fdiv	d11, d8, d9
	ldr	x22, [x19, #56]
	ldr	w8, [x19, #32]
	scvtf	d10, w8
	fmul	d2, d11, d10
Lloh3:
	adrp	x23, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _INT_MAX@GOTPAGEOFF]
	ldr	w9, [x23]
	scvtf	d1, w9
	fcmp	d2, d1
	b.le	LBB0_8
; %bb.4:
	cbz	x10, LBB0_7
; %bb.5:
	ldr	w10, [x0]
Lloh5:
	adrp	x11, _PF_OPT_QUIET@GOTPAGE
Lloh6:
	ldr	x11, [x11, _PF_OPT_QUIET@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_7
; %bb.6:
	fmul	d2, d8, d10
	fdiv	d1, d2, d1
	fmul	d0, d1, d0
	bl	_rate2str
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w9, [x23]
	ldr	w8, [x19, #32]
	scvtf	d10, w8
LBB0_7:
	sdiv	w8, w9, w8
	scvtf	d11, w8
LBB0_8:
	scvtf	d0, x22
	fmul	d12, d8, d0
	fmov	d13, #1.00000000
	fsub	d0, d13, d9
	fmul	d0, d0, d12
	fdiv	d14, d0, d9
	mov	x8, #20684562497536
	movk	x8, #16739, lsl #48
	fmov	d0, x8
	fcmp	d14, d0
	mov	w8, #16
	mov	w9, #4
	csel	w8, w9, w8, gt
	cmp	w21, #0
	csel	w21, w8, w21, eq
	mov	w8, #2
	cmp	w20, #0
	csel	w8, w8, w20, eq
Lloh15:
	adrp	x9, _RM_FILTER_GAIN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RM_FILTER_GAIN@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x9]
	mov	w9, #1
	lsl	w9, w9, w20
	scvtf	d0, w9
	cmp	w8, w21
	csel	w22, w8, w21, lt
	fmov	d15, #-1.00000000
	fdiv	d0, d15, d0
	fadd	d8, d0, d13
	scvtf	d1, w21
	fmov	d0, d8
	bl	_pow
	fdiv	d1, d13, d9
	fadd	d1, d1, d15
	fsub	d2, d13, d0
	fdiv	d0, d2, d0
	fmul	d0, d1, d0
	fsub	d9, d13, d8
	fcmp	d0, d9
	fcsel	d0, d0, d9, gt
	fmul	d12, d12, d0
	sub	w8, w22, #1
	scvtf	d1, w8
	fmov	d0, d8
	bl	_pow
	fdiv	d1, d13, d9
	fsub	d2, d13, d0
	fmul	d1, d1, d2
	fdiv	d0, d1, d0
	fadd	d0, d0, d13
	fmul	d8, d14, d0
	fneg	d0, d11
	fmul	d9, d10, d0
	fmov	d10, #8.00000000
	fmul	d0, d12, d10
	fdiv	d12, d0, d11
	fmov	d0, #1.00000000
	mov	x0, x20
	bl	_ldexp
	fmul	d1, d0, d12
	fmul	d2, d8, d10
	fdiv	d2, d2, d11
	fmul	d2, d0, d2
	fmul	d3, d9, d10
	fdiv	d3, d3, d11
	fmul	d3, d0, d3
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d4, x8
	fdiv	d0, d1, d4
	fdiv	d8, d2, d4
	stp	w22, w21, [x19, #24]
	fcvtzs	w8, d11
	str	w8, [x19, #36]
	fdiv	d9, d3, d4
	bl	_fabs
	fcvtzs	w8, d9
	stp	w0, w8, [x19, #40]
	fmov	d0, d8
	bl	_fabs
	str	w0, [x19, #48]
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #128            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RM_NS_PER_SEC,8,3              ; @RM_NS_PER_SEC
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_PF_OPT_QUIET,4,2               ; @PF_OPT_QUIET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue bandwidth must be larger than %s"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"cbq: queue %s is too slow!\n"

	.comm	_RM_FILTER_GAIN,4,2             ; @RM_FILTER_GAIN
	.no_dead_strip	_cbq_compute_idletime
.subsections_via_symbols
