	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfsc_dequeue
_hfsc_dequeue:                          ## @hfsc_dequeue
	.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
	movq	%rdi, %r14
	callq	_qdisc_priv
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_psched_get_time
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_eltree_get_mindl
	movq	%rax, %r12
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_vttree_get_minvt
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	8(%r12), %rdi
	callq	_qdisc_dequeue_peeked
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_qdisc_pkt_len
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	callq	_update_vf
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_qdisc_pkt_len
	addl	%eax, 16(%r12)
LBB0_9:
	movq	8(%r12), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_14
## %bb.10:
	movq	_HFSC_RSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_15
## %bb.11:
	callq	_qdisc_peek_len
	movq	%r12, %rdi
	movl	%eax, %esi
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	callq	_update_ed
	jmp	LBB0_15
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_6:
	movq	8(%r12), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_qdisc_warn_nonwc
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_14:
	movq	%r12, %rdi
	callq	_set_passive
	jmp	LBB0_15
LBB0_4:
	incl	12(%r14)
	movq	%r14, %rdi
	callq	_hfsc_schedule_watchdog
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_13:
	callq	_update_d
LBB0_15:
	movq	_TCQ_F_THROTTLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	decq	(%r14)
LBB0_16:
	movq	%r15, %rax
	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	"HFSC"

	.comm	_HFSC_RSC,4,2                   ## @HFSC_RSC
	.comm	_TCQ_F_THROTTLED,4,2            ## @TCQ_F_THROTTLED
	.no_dead_strip	_hfsc_dequeue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfsc_dequeue
_hfsc_dequeue:                          ; @hfsc_dequeue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_qdisc_priv
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x20, x0
	bl	_psched_get_time
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_eltree_get_mindl
	mov	x22, x0
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x23
	bl	_vttree_get_minvt
	mov	x21, x0
	cbz	x0, LBB0_13
LBB0_3:
	ldr	x0, [x21, #8]
	bl	_qdisc_dequeue_peeked
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.4:
	mov	x0, x20
	bl	_qdisc_pkt_len
	mov	x1, x0
	mov	x0, x21
	mov	x2, x23
	bl	_update_vf
	cbz	x22, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_qdisc_pkt_len
	ldr	w8, [x21, #16]
	add	w8, w8, w0
	str	w8, [x21, #16]
LBB0_6:
	ldr	x0, [x21, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.7:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _HFSC_RSC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HFSC_RSC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.8:
	bl	_qdisc_peek_len
	mov	x1, x0
	mov	x0, x21
	cbz	x22, LBB0_14
; %bb.9:
	bl	_update_ed
	b	LBB0_15
LBB0_10:
	mov	x20, #0
	b	LBB0_16
LBB0_11:
	ldr	x1, [x21, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_qdisc_warn_nonwc
	b	LBB0_16
LBB0_12:
	mov	x0, x21
	bl	_set_passive
	b	LBB0_15
LBB0_13:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_hfsc_schedule_watchdog
	mov	x20, #0
	b	LBB0_16
LBB0_14:
	bl	_update_d
LBB0_15:
Lloh5:
	adrp	x8, _TCQ_F_THROTTLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCQ_F_THROTTLED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
LBB0_16:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HFSC"

	.comm	_HFSC_RSC,4,2                   ; @HFSC_RSC
	.comm	_TCQ_F_THROTTLED,4,2            ; @TCQ_F_THROTTLED
	.no_dead_strip	_hfsc_dequeue
.subsections_via_symbols
