	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_dynamic_pcc
_jme_dynamic_pcc:                       ## @jme_dynamic_pcc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	callq	_NET_STAT
	subq	8(%rbx), %rax
	movq	_PCC_P3_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movq	_PCC_P3@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_NET_STAT
	subq	16(%rbx), %rdx
	movq	_PCC_P2_THRESHOLD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jg	LBB0_5
## %bb.3:
	movq	24(%rbx), %rax
	movq	_PCC_INTR_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
LBB0_5:
	movq	_PCC_P2@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_PCC_P1@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_jme_attempt_pcc
	movq	32(%rbx), %rax
	xorl	%edi, %edi
	cmpq	40(%rbx), %rax
	je	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	cmpl	$6, 48(%rbx)
	setge	%dil
LBB0_8:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	32(%rbx), %rsi
	cmpq	40(%rbx), %rsi
	jge	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_tasklet_schedule
	movq	32(%rbx), %rsi
LBB0_11:
	movq	%rbx, %rdi
	callq	_jme_set_rx_pcc
	movq	32(%rbx), %rax
	movq	%rax, 40(%rbx)
	movl	$0, 48(%rbx)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCC_P3_THRESHOLD,8,3           ## @PCC_P3_THRESHOLD
	.comm	_PCC_P3,4,2                     ## @PCC_P3
	.comm	_PCC_P2_THRESHOLD,8,3           ## @PCC_P2_THRESHOLD
	.comm	_PCC_INTR_THRESHOLD,8,3         ## @PCC_INTR_THRESHOLD
	.comm	_PCC_P2,4,2                     ## @PCC_P2
	.comm	_PCC_P1,4,2                     ## @PCC_P1
	.no_dead_strip	_jme_dynamic_pcc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_dynamic_pcc
_jme_dynamic_pcc:                       ; @jme_dynamic_pcc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_NET_STAT
	mov	x20, x19
	ldr	x8, [x20, #8]!
Lloh0:
	adrp	x9, _PCC_P3_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCC_P3_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	x8, x0, x8
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PCC_P3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCC_P3@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_NET_STAT
Lloh5:
	adrp	x8, _PCC_P2_THRESHOLD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCC_P2_THRESHOLD@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh7:
	ldr	x10, [x8]
Lloh8:
	adrp	x8, _PCC_P2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCC_P2@GOTPAGEOFF]
	sub	x9, x1, x9
	cmp	x9, x10
	b.gt	LBB0_4
; %bb.3:
Lloh10:
	adrp	x9, _PCC_INTR_THRESHOLD@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PCC_INTR_THRESHOLD@GOTPAGEOFF]
	ldr	x10, [x19, #24]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x11, _PCC_P1@GOTPAGE
Lloh14:
	ldr	x11, [x11, _PCC_P1@GOTPAGEOFF]
	cmp	x10, x9
	csel	x8, x8, x11, gt
LBB0_4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_jme_attempt_pcc
	ldp	x8, x9, [x19, #32]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_7
	b	LBB0_10
LBB0_6:
	ldr	w8, [x19, #48]
	cmp	w8, #5
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_10
LBB0_7:
	ldp	x1, x8, [x19, #32]
	cmp	x1, x8
	b.ge	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_tasklet_schedule
	ldr	x1, [x19, #32]
LBB0_9:
	mov	x0, x19
	bl	_jme_set_rx_pcc
	ldr	x8, [x19, #32]
	str	x8, [x19, #40]
	str	wzr, [x19, #48]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PCC_P3_THRESHOLD,8,3           ; @PCC_P3_THRESHOLD
	.comm	_PCC_P3,4,2                     ; @PCC_P3
	.comm	_PCC_P2_THRESHOLD,8,3           ; @PCC_P2_THRESHOLD
	.comm	_PCC_INTR_THRESHOLD,8,3         ; @PCC_INTR_THRESHOLD
	.comm	_PCC_P2,4,2                     ; @PCC_P2
	.comm	_PCC_P1,4,2                     ; @PCC_P1
	.no_dead_strip	_jme_dynamic_pcc
.subsections_via_symbols
