	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eval_pfqueue_hfsc
_eval_pfqueue_hfsc:                     ## @eval_pfqueue_hfsc
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movq	%rdx, %r15
	cmpl	$1, (%rcx)
	jne	LBB0_4
## %bb.3:
	leaq	8(%r14), %rdi
	callq	_LIST_INIT
	leaq	4(%r14), %rdi
	callq	_LIST_INIT
LBB0_4:
	movq	_HFCF_DEFAULTCLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	je	LBB0_6
## %bb.5:
	movl	16(%rbx), %esi
	movl	96(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_39
LBB0_1:
	movq	(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 32(%rbx)
	movq	$0, 80(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_40
LBB0_6:
	testl	%eax, 40(%rbx)
	je	LBB0_8
## %bb.7:
	incl	12(%r15)
LBB0_8:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	8(%rbx), %rax
	movq	%rax, 32(%rbx)
LBB0_10:
	movq	48(%rbx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_12
## %bb.11:
	cmpq	$0, 56(%rbx)
	je	LBB0_16
LBB0_12:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_14
## %bb.13:
	testq	%rax, %rax
	jne	LBB0_14
LBB0_16:
	movl	16(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_17
LBB0_14:
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_18
## %bb.15:
	cmpq	$0, 72(%rbx)
	je	LBB0_16
LBB0_18:
	movq	56(%rbx), %rdx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.19:
	cmpq	%rdx, %rcx
	jl	LBB0_24
LBB0_20:
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:
	cmpq	%rax, %rsi
	jl	LBB0_24
LBB0_22:
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.23:
	cmpq	72(%rbx), %rdi
	jge	LBB0_25
LBB0_24:
	movl	16(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_17:
	xorl	%eax, %eax
	callq	_warnx
LBB0_39:
	movl	$-1, %eax
LBB0_40:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	testq	%rdx, %rdx
	je	LBB0_28
## %bb.26:
	movq	%rcx, -64(%rbp)
	movq	88(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -56(%rbp)
	leaq	8(%r14), %r15
	leaq	-64(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gsc_add_sc
	movq	$0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	(%rbx), %rcx
	movabsq	$-6640827866535438581, %rdx     ## imm = 0xA3D70A3D70A3D70B
	movq	%rcx, %rax
	imulq	%rdx
	addq	%rcx, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$6, %rdx
	addq	%rax, %rdx
	shlq	$4, %rdx
	leaq	(%rdx,%rdx,4), %rax
	movq	%rax, -56(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_is_gsc_under_sc
	testl	%eax, %eax
	je	LBB0_41
## %bb.27:
	movq	32(%rbx), %rax
LBB0_28:
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:
	movq	24(%rbx), %rcx
	movq	%rcx, -64(%rbp)
	movq	80(%rbx), %rcx
	movq	%rcx, -48(%rbp)
	movq	%rax, -56(%rbp)
	leaq	4(%r14), %r15
	leaq	-64(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gsc_add_sc
	movq	40(%r14), %rax
	movq	%rax, -48(%rbp)
	movupd	24(%r14), %xmm0
	movapd	%xmm0, -64(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_is_gsc_under_sc
	testl	%eax, %eax
	je	LBB0_30
LBB0_31:
	movq	72(%rbx), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_40
## %bb.32:
	movq	(%rbx), %rdx
	cmpq	%rdx, 64(%rbx)
	jg	LBB0_34
## %bb.33:
	cmpq	%rdx, %rcx
	jg	LBB0_34
## %bb.35:
	movq	56(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_40
## %bb.36:
	cmpq	%rcx, %rdx
	jle	LBB0_40
## %bb.37:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_38
LBB0_41:
	cvtsi2sdq	-56(%rbp), %xmm0
	callq	_rate2str
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	jmp	LBB0_17
LBB0_34:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_38
LBB0_30:
	leaq	L_.str.4(%rip), %rdi
LBB0_38:
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_HFCF_DEFAULTCLASS,4,2          ## @HFCF_DEFAULTCLASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adding %s would make default queue %s not a leaf"

L_.str.1:                               ## @.str.1
	.asciz	"m2 is zero for %s"

L_.str.2:                               ## @.str.2
	.asciz	"m1 must be zero for convex curve: %s"

L_.str.3:                               ## @.str.3
	.asciz	"real-time sc exceeds 80%% of the interface bandwidth (%s)"

L_.str.4:                               ## @.str.4
	.asciz	"linkshare sc exceeds parent's sc"

L_.str.5:                               ## @.str.5
	.asciz	"upper-limit larger than interface bandwidth"

L_.str.6:                               ## @.str.6
	.asciz	"upper-limit sc smaller than real-time sc"

	.no_dead_strip	_eval_pfqueue_hfsc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eval_pfqueue_hfsc
_eval_pfqueue_hfsc:                     ; @eval_pfqueue_hfsc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	cbz	x3, LBB0_5
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	ldr	w8, [x3]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	add	x0, x20, #8
	bl	_LIST_INIT
	add	x0, x20, #4
	bl	_LIST_INIT
LBB0_3:
	ldr	w9, [x20, #16]
Lloh0:
	adrp	x8, _HFCF_DEFAULTCLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFCF_DEFAULTCLASS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [x19, #16]
	ldr	w9, [x19, #96]
	stp	x8, x9, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_24
LBB0_5:
	mov	w0, #0
	ldr	x8, [x19]
	stp	x8, x8, [x19, #24]
	str	xzr, [x19, #80]
	b	LBB0_25
LBB0_6:
	ldr	w9, [x19, #40]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
LBB0_8:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	str	x8, [x19, #32]
LBB0_10:
	ldr	x9, [x19, #48]
	cmp	x9, #1
	b.lt	LBB0_12
; %bb.11:
	ldr	x10, [x19, #56]
	cbz	x10, LBB0_14
LBB0_12:
	ldr	x12, [x19, #24]
	cmp	x12, #1
	b.lt	LBB0_15
; %bb.13:
	cbnz	x8, LBB0_15
LBB0_14:
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_15:
	ldr	x11, [x19, #64]
	cmp	x11, #1
	b.lt	LBB0_17
; %bb.16:
	ldr	x10, [x19, #72]
	cbz	x10, LBB0_14
LBB0_17:
	ldr	x10, [x19, #56]
	cbz	x9, LBB0_19
; %bb.18:
	cmp	x9, x10
	b.lt	LBB0_23
LBB0_19:
	cbz	x12, LBB0_21
; %bb.20:
	cmp	x12, x8
	b.lt	LBB0_23
LBB0_21:
	cbz	x11, LBB0_26
; %bb.22:
	ldr	x12, [x19, #72]
	cmp	x11, x12
	b.ge	LBB0_26
LBB0_23:
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_24:
	bl	_warnx
	mov	w0, #-1
LBB0_25:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_26:
	cbz	x10, LBB0_29
; %bb.27:
	ldr	x8, [x19, #88]
	stp	x10, x8, [sp, #24]
	str	x9, [sp, #16]
	add	x21, x20, #8
	add	x1, sp, #16
	mov	x0, x21
	bl	_gsc_add_sc
	ldr	x8, [x19]
	mov	x9, #55051
	movk	x9, #28835, lsl #16
	movk	x9, #2621, lsl #32
	movk	x9, #41943, lsl #48
	smulh	x9, x8, x9
	add	x8, x9, x8
	asr	x9, x8, #6
	add	x8, x9, x8, lsr #63
	add	x8, x8, x8, lsl #2
	lsl	x8, x8, #4
	str	xzr, [sp, #16]
	stp	x8, xzr, [sp, #24]
	add	x1, sp, #16
	mov	x0, x21
	bl	_is_gsc_under_sc
	cbz	w0, LBB0_37
; %bb.28:
	ldr	x8, [x19, #32]
LBB0_29:
	cbz	x8, LBB0_31
; %bb.30:
	ldr	x9, [x19, #24]
	ldr	x10, [x19, #80]
	stp	x8, x10, [sp, #24]
	str	x9, [sp, #16]
	add	x21, x20, #4
	add	x1, sp, #16
	mov	x0, x21
	bl	_gsc_add_sc
	ldr	x8, [x20, #40]
	str	x8, [sp, #32]
	ldur	q0, [x20, #24]
	str	q0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x21
	bl	_is_gsc_under_sc
	cbz	w0, LBB0_40
LBB0_31:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_38
; %bb.32:
	ldr	x10, [x19, #64]
	ldr	x9, [x19]
	cmp	x10, x9
	b.gt	LBB0_39
; %bb.33:
	cmp	x8, x9
	b.gt	LBB0_39
; %bb.34:
	mov	w0, #0
	ldr	x9, [x19, #56]
	cbz	x9, LBB0_25
; %bb.35:
	cmp	x9, x8
	b.le	LBB0_25
; %bb.36:
Lloh9:
	adrp	x0, l_.str.6@PAGE
Lloh10:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_24
LBB0_37:
	ldr	d0, [sp, #24]
	scvtf	d0, d0
	bl	_rate2str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_24
LBB0_38:
	mov	w0, #0
	b	LBB0_25
LBB0_39:
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_24
LBB0_40:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HFCF_DEFAULTCLASS,4,2          ; @HFCF_DEFAULTCLASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adding %s would make default queue %s not a leaf"

l_.str.1:                               ; @.str.1
	.asciz	"m2 is zero for %s"

l_.str.2:                               ; @.str.2
	.asciz	"m1 must be zero for convex curve: %s"

l_.str.3:                               ; @.str.3
	.asciz	"real-time sc exceeds 80%% of the interface bandwidth (%s)"

l_.str.4:                               ; @.str.4
	.asciz	"linkshare sc exceeds parent's sc"

l_.str.5:                               ; @.str.5
	.asciz	"upper-limit larger than interface bandwidth"

l_.str.6:                               ; @.str.6
	.asciz	"upper-limit sc smaller than real-time sc"

	.no_dead_strip	_eval_pfqueue_hfsc
.subsections_via_symbols
