	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccid3_hc_tx_update_x
_ccid3_hc_tx_update_x:                  ## @ccid3_hc_tx_update_x
	.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	%rsi, %rbx
	movq	%rdi, %r13
	callq	_ccid3_hc_tx_sk
	movq	%rax, %r14
	movl	(%rax), %r12d
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %r15d
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %r15d
LBB0_3:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ccid3_hc_tx_idle_rtt
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.5:
	movq	%r13, %rdi
	callq	_rfc3390_initial_rate
	movl	(%r14), %esi
	addl	%esi, %esi
	movl	%eax, %edi
	callq	_max
	movq	%rax, %r12
	cmpq	$0, 8(%r14)
	jg	LBB0_7
LBB0_8:
	movl	24(%r14), %esi
	movl	%r15d, %edi
	callq	_ktime_us_delta
	movq	%rax, %rcx
	movl	4(%r14), %eax
	cmpq	32(%r14), %rcx
	jl	LBB0_10
## %bb.9:
	addl	%eax, %eax
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_min
	movq	%rax, %rbx
	movl	%ebx, 4(%r14)
	movl	40(%r14), %edi
	shll	$6, %edi
	movq	32(%r14), %rsi
	callq	_scaled_div
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_max
	movl	%eax, 4(%r14)
	movl	%r15d, 24(%r14)
	jmp	LBB0_10
LBB0_4:
	addl	%r12d, %r12d
	cmpq	$0, 8(%r14)
	jle	LBB0_8
LBB0_7:
	movl	16(%r14), %edi
	shll	$6, %edi
	movl	%r12d, %esi
	callq	_min
	movq	%rax, %rdi
	movl	%edi, 4(%r14)
	movl	40(%r14), %eax
	shll	$6, %eax
	movq	_TFRC_T_MBI@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%eax, %esi
	callq	_max
	movl	%eax, 4(%r14)
LBB0_10:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, %eax
	jne	LBB0_12
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	sarl	$6, %esi
	sarl	$6, %eax
	movq	16(%r14), %rcx
	movl	(%r14), %r8d
	sarl	$6, %r8d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_ccid3_pr_debug
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ccid3_update_send_interval     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TFRC_T_MBI,4,2                 ## @TFRC_T_MBI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X_prev=%u, X_now=%u, X_calc=%u, X_recv=%u\n"

	.no_dead_strip	_ccid3_hc_tx_update_x
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccid3_hc_tx_update_x
_ccid3_hc_tx_update_x:                  ; @ccid3_hc_tx_update_x
	.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	x20, x1
	mov	x22, x0
	bl	_ccid3_hc_tx_sk
	mov	x19, x0
	ldp	w8, w23, [x0]
	lsl	w21, w8, #1
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w20, [x20]
	b	LBB0_3
LBB0_2:
	bl	_ktime_get_real
	mov	x20, x0
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_ccid3_hc_tx_idle_rtt
	cmp	w0, #2
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_rfc3390_initial_rate
	ldr	w8, [x19]
	lsl	w1, w8, #1
	bl	_max
	mov	x21, x0
LBB0_5:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
	ldr	w8, [x19, #16]
	lsl	w0, w8, #6
	mov	x1, x21
	bl	_min
	str	w0, [x19, #4]
	ldr	w8, [x19, #40]
	lsl	w8, w8, #6
Lloh0:
	adrp	x9, _TFRC_T_MBI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TFRC_T_MBI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w1, w8, w9
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_max
	str	w0, [x19, #4]
	b	LBB0_9
LBB0_7:
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_ktime_us_delta
	mov	x8, x0
	ldr	x9, [x19, #32]
	ldr	w0, [x19, #4]
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.8:
	lsl	w0, w0, #1
	mov	x1, x21
	bl	_min
	mov	x21, x0
	str	w21, [x19, #4]
	ldr	w8, [x19, #40]
	lsl	w0, w8, #6
	ldr	x1, [x19, #32]
	bl	_scaled_div
	mov	x1, x0
	mov	x0, x21
	bl	_max
	str	w0, [x19, #4]
	str	w20, [x19, #24]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_9:
	cmp	w0, w23
	b.ne	LBB0_11
; %bb.10:
	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
LBB0_11:
	asr	w1, w23, #6
	asr	w2, w0, #6
	ldr	x3, [x19, #16]
	ldr	w8, [x19]
	asr	w4, w8, #6
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ccid3_pr_debug
	mov	x0, x19
	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
	b	_ccid3_update_send_interval
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TFRC_T_MBI,4,2                 ; @TFRC_T_MBI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X_prev=%u, X_now=%u, X_calc=%u, X_recv=%u\n"

	.no_dead_strip	_ccid3_hc_tx_update_x
.subsections_via_symbols
