	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fq_calculate_drop_prob
_fq_calculate_drop_prob:                ## @fq_calculate_drop_prob
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	movl	8(%rdi), %r10d
	movl	(%r14), %r8d
	movq	_PIE_DEPRATEEST_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rdi), %rdi
	testl	%r8d, (%rax)
	je	LBB0_2
## %bb.1:
	imull	16(%rbx), %edi
	movq	_PIE_DQ_THRESHOLD_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	leaq	12(%rbx), %r15
	movl	%edi, 12(%rbx)
	jmp	LBB0_5
LBB0_2:
	leaq	12(%rbx), %r15
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	jmp	LBB0_5
LBB0_4:
	movl	$0, (%r15)
	xorl	%edi, %edi
LBB0_5:
	movl	%edi, %eax
	subl	24(%r14), %eax
	imull	32(%r14), %eax
	subl	20(%rbx), %edi
	imull	16(%r14), %edi
	addl	%eax, %edi
	movl	%edi, %ecx
	negl	%ecx
	cmovsl	%edi, %ecx
	movq	_PIE_MAX_PROB@GOTPCREL(%rip), %r12
	movslq	(%r12), %rax
	imulq	$1125899907, %rax, %rsi         ## imm = 0x431BDE83
	movslq	%eax, %r9
                                        ## kill: def $eax killed $eax killed $rax
	shll	$12, %eax
	movq	_AQM_TIME_1S@GOTPCREL(%rip), %r11
	cltd
	idivl	(%r11)
	imull	%ecx, %eax
	movq	%rsi, %rcx
	shrq	$63, %rcx
	sarq	$50, %rsi
	addl	%ecx, %esi
	cmpl	%esi, %r10d
	jge	LBB0_7
## %bb.6:
	movq	_PIE_FIX_POINT_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$11, %ecx
	jmp	LBB0_16
LBB0_7:
	imulq	$351843721, %r9, %rcx           ## imm = 0x14F8B589
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$45, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, %r10d
	jge	LBB0_9
## %bb.8:
	movq	_PIE_FIX_POINT_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$9, %ecx
	jmp	LBB0_16
LBB0_9:
	imulq	$1759218605, %r9, %rcx          ## imm = 0x68DB8BAD
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$44, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, %r10d
	jge	LBB0_11
## %bb.10:
	movq	_PIE_FIX_POINT_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$7, %ecx
	jmp	LBB0_16
LBB0_11:
	imulq	$274877907, %r9, %rcx           ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, %r10d
	jge	LBB0_13
## %bb.12:
	movq	_PIE_FIX_POINT_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$5, %ecx
	jmp	LBB0_16
LBB0_13:
	imulq	$1374389535, %r9, %rcx          ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, %r10d
	jge	LBB0_15
## %bb.14:
	movq	_PIE_FIX_POINT_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$3, %ecx
	jmp	LBB0_16
LBB0_15:
	imulq	$1717986919, %r9, %rdx          ## imm = 0x66666667
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$34, %rdx
	addl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	%edx, %r10d
	setl	%cl
	movq	_PIE_FIX_POINT_BITS@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
LBB0_16:
	addb	$12, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	testl	%edi, %edi
	js	LBB0_17
## %bb.19:
	movq	_PIE_CAPDROP_ENABLED@GOTPCREL(%rip), %rcx
	testl	%r8d, (%rcx)
	je	LBB0_22
## %bb.20:
	imulq	$1717986919, %r9, %rcx          ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, %r10d
	jl	LBB0_22
## %bb.21:
	imulq	$1374389535, %r9, %rcx          ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$36, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	movl	%ecx, %eax
LBB0_22:
	testl	%eax, %eax
	js	LBB0_24
## %bb.23:
	addl	%eax, %r10d
	testl	%r10d, %r10d
	jns	LBB0_28
	jmp	LBB0_26
LBB0_17:
	testl	%eax, %eax
	js	LBB0_27
## %bb.18:
	subl	%eax, %r10d
	testl	%r10d, %r10d
	jns	LBB0_28
	jmp	LBB0_26
LBB0_24:
	leaq	L_.str.1(%rip), %rdi
	callq	_D
	movl	(%r12), %r10d
	testl	%r10d, %r10d
	jns	LBB0_28
LBB0_26:
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	jmp	LBB0_32
LBB0_27:
	leaq	L_.str(%rip), %rdi
	callq	_D
	xorl	%r10d, %r10d
LBB0_28:
	movl	(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_31
## %bb.29:
	cmpl	$0, 20(%rbx)
	jne	LBB0_31
## %bb.30:
	movl	%r10d, %ecx
	shrl	$6, %ecx
	subl	%ecx, %r10d
LBB0_31:
	movl	(%r12), %ecx
	cmpl	%ecx, %r10d
	cmovll	%r10d, %ecx
LBB0_32:
	movl	%ecx, 8(%rbx)
	movl	%eax, 20(%rbx)
	movq	_PIE_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rbx)
	je	LBB0_36
## %bb.33:
	movq	32(%rbx), %rax
	movq	8(%r14), %rsi
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	xorl	%ecx, %ecx
	subq	%rsi, %rax
	cmovgq	%rax, %rcx
	movq	%rcx, 32(%rbx)
LBB0_35:
	leaq	44(%rbx), %rdi
	movq	_SBT_1US@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	leaq	_fq_calculate_drop_prob(%rip), %rcx
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_callout_reset_sbt
LBB0_36:
	addq	$40, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AQM_UNOW,4,2                   ## @AQM_UNOW
	.comm	_PIE_DEPRATEEST_ENABLED,4,2     ## @PIE_DEPRATEEST_ENABLED
	.comm	_PIE_DQ_THRESHOLD_BITS,4,2      ## @PIE_DQ_THRESHOLD_BITS
	.comm	_PIE_MAX_PROB,4,2               ## @PIE_MAX_PROB
	.comm	_AQM_TIME_1S,4,2                ## @AQM_TIME_1S
	.comm	_PIE_FIX_POINT_BITS,4,2         ## @PIE_FIX_POINT_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"underflow"

	.comm	_PIE_CAPDROP_ENABLED,4,2        ## @PIE_CAPDROP_ENABLED
L_.str.1:                               ## @.str.1
	.asciz	"overflow"

	.comm	_PIE_ACTIVE,4,2                 ## @PIE_ACTIVE
	.comm	_SBT_1US,4,2                    ## @SBT_1US
	.no_dead_strip	_fq_calculate_drop_prob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fq_calculate_drop_prob
_fq_calculate_drop_prob:                ; @fq_calculate_drop_prob
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x20, [x0, #48]
	ldr	w8, [x0, #8]
	ldr	w9, [x20]
Lloh0:
	adrp	x10, _PIE_DEPRATEEST_ENABLED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PIE_DEPRATEEST_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x10]
	ldr	x10, [x0]
	tst	w11, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w11, [x19, #16]
Lloh3:
	adrp	x12, _PIE_DQ_THRESHOLD_BITS@GOTPAGE
Lloh4:
	ldr	x12, [x12, _PIE_DQ_THRESHOLD_BITS@GOTPAGEOFF]
	mul	w10, w11, w10
Lloh5:
	ldr	w11, [x12]
	asr	w10, w10, w11
	mov	x21, x19
	str	w10, [x21, #12]!
	b	LBB0_5
LBB0_2:
	add	x21, x19, #12
	cbz	x10, LBB0_4
; %bb.3:
	ldr	w10, [x21]
	b	LBB0_5
LBB0_4:
	str	wzr, [x21]
LBB0_5:
	ldr	w11, [x20, #32]
	ldr	w12, [x20, #24]
	sub	w12, w10, w12
	mul	w11, w12, w11
	ldr	w12, [x20, #16]
	ldr	w13, [x19, #20]
	sub	w10, w10, w13
	madd	w11, w10, w12, w11
	cmp	w11, #0
	cneg	w12, w11, mi
Lloh6:
	adrp	x22, _PIE_MAX_PROB@GOTPAGE
Lloh7:
	ldr	x22, [x22, _PIE_MAX_PROB@GOTPAGEOFF]
	ldrsw	x10, [x22]
	lsl	w13, w10, #12
Lloh8:
	adrp	x14, _AQM_TIME_1S@GOTPAGE
Lloh9:
	ldr	x14, [x14, _AQM_TIME_1S@GOTPAGEOFF]
Lloh10:
	ldr	w14, [x14]
	sdiv	w13, w13, w14
	mul	w12, w12, w13
	mov	w13, #56963
	movk	w13, #17179, lsl #16
	mul	x13, x10, x13
	lsr	x14, x13, #32
	lsr	x13, x13, #63
	add	w13, w13, w14, asr #18
	cmp	w8, w13
	b.ge	LBB0_7
; %bb.6:
Lloh11:
	adrp	x13, _PIE_FIX_POINT_BITS@GOTPAGE
Lloh12:
	ldr	x13, [x13, _PIE_FIX_POINT_BITS@GOTPAGEOFF]
Lloh13:
	ldr	w13, [x13]
	add	w13, w13, #11
	b	LBB0_16
LBB0_7:
	mov	w13, #46473
	movk	w13, #5368, lsl #16
	smull	x13, w10, w13
	lsr	x14, x13, #63
	asr	x13, x13, #45
	add	w13, w13, w14
	cmp	w8, w13
	b.ge	LBB0_9
; %bb.8:
Lloh14:
	adrp	x13, _PIE_FIX_POINT_BITS@GOTPAGE
Lloh15:
	ldr	x13, [x13, _PIE_FIX_POINT_BITS@GOTPAGEOFF]
Lloh16:
	ldr	w13, [x13]
	add	w13, w13, #9
	b	LBB0_16
LBB0_9:
	mov	w13, #35757
	movk	w13, #26843, lsl #16
	smull	x13, w10, w13
	lsr	x14, x13, #63
	asr	x13, x13, #44
	add	w13, w13, w14
	cmp	w8, w13
	b.ge	LBB0_11
; %bb.10:
Lloh17:
	adrp	x13, _PIE_FIX_POINT_BITS@GOTPAGE
Lloh18:
	ldr	x13, [x13, _PIE_FIX_POINT_BITS@GOTPAGEOFF]
Lloh19:
	ldr	w13, [x13]
	add	w13, w13, #7
	b	LBB0_16
LBB0_11:
	mov	w13, #19923
	movk	w13, #4194, lsl #16
	smull	x13, w10, w13
	lsr	x14, x13, #63
	asr	x13, x13, #38
	add	w13, w13, w14
	cmp	w8, w13
	b.ge	LBB0_13
; %bb.12:
Lloh20:
	adrp	x13, _PIE_FIX_POINT_BITS@GOTPAGE
Lloh21:
	ldr	x13, [x13, _PIE_FIX_POINT_BITS@GOTPAGEOFF]
Lloh22:
	ldr	w13, [x13]
	add	w13, w13, #5
	b	LBB0_16
LBB0_13:
	mov	w13, #34079
	movk	w13, #20971, lsl #16
	smull	x13, w10, w13
	lsr	x14, x13, #63
	asr	x13, x13, #37
	add	w13, w13, w14
	cmp	w8, w13
	b.ge	LBB0_15
; %bb.14:
Lloh23:
	adrp	x13, _PIE_FIX_POINT_BITS@GOTPAGE
Lloh24:
	ldr	x13, [x13, _PIE_FIX_POINT_BITS@GOTPAGEOFF]
Lloh25:
	ldr	w13, [x13]
	add	w13, w13, #3
	b	LBB0_16
LBB0_15:
	mov	w13, #26215
	movk	w13, #26214, lsl #16
	smull	x13, w10, w13
	lsr	x14, x13, #63
	asr	x13, x13, #34
	add	w13, w13, w14
	cmp	w8, w13
Lloh26:
	adrp	x13, _PIE_FIX_POINT_BITS@GOTPAGE
Lloh27:
	ldr	x13, [x13, _PIE_FIX_POINT_BITS@GOTPAGEOFF]
Lloh28:
	ldr	w13, [x13]
	cinc	w13, w13, lt
LBB0_16:
	add	w13, w13, #12
	asr	w12, w12, w13
	tbnz	w11, #31, LBB0_21
; %bb.17:
Lloh29:
	adrp	x11, _PIE_CAPDROP_ENABLED@GOTPAGE
Lloh30:
	ldr	x11, [x11, _PIE_CAPDROP_ENABLED@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_19
; %bb.18:
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x9, w10, w9
	lsr	x11, x9, #63
	asr	x9, x9, #34
	mov	w13, #34079
	movk	w13, #20971, lsl #16
	smull	x10, w10, w13
	lsr	x13, x10, #63
	asr	x10, x10, #36
	add	w10, w10, w13
	cmp	w12, w10
	csel	w10, w12, w10, lt
	add	w9, w9, w11
	cmp	w8, w9
	csel	w12, w12, w10, lt
LBB0_19:
	tbnz	w12, #31, LBB0_26
; %bb.20:
	add	w8, w12, w8
	tbz	w8, #31, LBB0_23
	b	LBB0_27
LBB0_21:
	tbnz	w12, #31, LBB0_33
; %bb.22:
	sub	w8, w8, w12
	tbnz	w8, #31, LBB0_27
LBB0_23:
	ldr	w9, [x21]
	cbnz	w9, LBB0_25
LBB0_24:
	ldr	w10, [x19, #20]
	sub	w11, w8, w8, lsr #6
	cmp	w10, #0
	csel	w8, w8, w11, ne
LBB0_25:
	ldr	w10, [x22]
	cmp	w8, w10
	csel	w8, w8, w10, lt
	b	LBB0_28
LBB0_26:
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D
	ldr	w8, [x22]
	tbz	w8, #31, LBB0_23
LBB0_27:
	mov	w8, #0
	ldr	w9, [x21]
LBB0_28:
	str	w8, [x19, #8]
	str	w9, [x19, #20]
	ldr	w8, [x19, #24]
Lloh34:
	adrp	x9, _PIE_ACTIVE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PIE_ACTIVE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.29:
	ldr	x9, [x19, #32]
	ldr	x8, [x20, #8]
	cbz	x9, LBB0_31
; %bb.30:
	subs	x9, x9, x8
	csel	x9, x9, xzr, gt
	str	x9, [x19, #32]
LBB0_31:
	add	x0, x19, #44
Lloh37:
	adrp	x9, _SBT_1US@GOTPAGE
Lloh38:
	ldr	x9, [x9, _SBT_1US@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	mul	w1, w9, w8
Lloh40:
	adrp	x3, _fq_calculate_drop_prob@PAGE
Lloh41:
	add	x3, x3, _fq_calculate_drop_prob@PAGEOFF
	mov	w2, #0
	mov	x4, x19
	mov	w5, #0
	bl	_callout_reset_sbt
LBB0_32:
	add	x0, x19, #40
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mtx_unlock
LBB0_33:
Lloh42:
	adrp	x0, l_.str@PAGE
Lloh43:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D
	mov	w8, #0
	ldr	w9, [x21]
	cbnz	w9, LBB0_25
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_AQM_UNOW,4,2                   ; @AQM_UNOW
	.comm	_PIE_DEPRATEEST_ENABLED,4,2     ; @PIE_DEPRATEEST_ENABLED
	.comm	_PIE_DQ_THRESHOLD_BITS,4,2      ; @PIE_DQ_THRESHOLD_BITS
	.comm	_PIE_MAX_PROB,4,2               ; @PIE_MAX_PROB
	.comm	_AQM_TIME_1S,4,2                ; @AQM_TIME_1S
	.comm	_PIE_FIX_POINT_BITS,4,2         ; @PIE_FIX_POINT_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"underflow"

	.comm	_PIE_CAPDROP_ENABLED,4,2        ; @PIE_CAPDROP_ENABLED
l_.str.1:                               ; @.str.1
	.asciz	"overflow"

	.comm	_PIE_ACTIVE,4,2                 ; @PIE_ACTIVE
	.comm	_SBT_1US,4,2                    ; @SBT_1US
	.no_dead_strip	_fq_calculate_drop_prob
.subsections_via_symbols
