	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function measure_achieved_throughput
_measure_achieved_throughput:           ## @measure_achieved_throughput
	.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
	xorl	%eax, %eax
	callq	_sctp_get_tick_count
	movl	%eax, %r14d
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_use_bandwidth_switch@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_17
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movl	$0, 16(%rbx)
	addq	$20, %rbx
	jmp	LBB0_16
LBB0_5:
	movq	56(%rbx), %rax
	movq	%rax, 48(%rbx)
	movq	_use_bandwidth_switch@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_6
	jmp	LBB0_17
LBB0_3:
	movq	56(%rbx), %rax
LBB0_6:
	addl	16(%rbx), %eax
	movl	%eax, 16(%rbx)
	movl	24(%rbx), %ecx
	movl	%ecx, %edx
	sarl	$7, %edx
	cmpl	$128, %ecx
	movl	$1, %esi
	cmovael	%edx, %esi
	movl	4(%rbx), %edx
	movl	8(%rbx), %ecx
	imull	%ecx, %esi
	subl	%esi, %edx
	cmpl	%edx, %eax
	jl	LBB0_17
## %bb.7:
	movl	%r14d, %esi
	subl	20(%rbx), %esi
	movl	28(%rbx), %edx
	cmpl	%edx, %esi
	jl	LBB0_17
## %bb.8:
	testl	%edx, %edx
	jle	LBB0_17
## %bb.9:
	leaq	16(%rbx), %r15
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
	movq	_hz@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	cltd
	idivl	%esi
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_htcp_ccount
	cmpl	$3, %eax
	jg	LBB0_11
## %bb.10:
	movl	%r12d, 40(%rbx)
	movl	%r12d, 36(%rbx)
	movl	%r12d, 32(%rbx)
	jmp	LBB0_15
LBB0_11:
	movl	40(%rbx), %eax
	leal	(%rax,%rax,2), %eax
	leal	(%r12,%rax), %ecx
	addl	$3, %ecx
                                        ## kill: def $eax killed $eax killed $rax
	addl	%r12d, %eax
	cmovnsl	%eax, %ecx
	movl	36(%rbx), %eax
	sarl	$2, %ecx
	movl	%ecx, 40(%rbx)
	cmpl	%eax, %ecx
	jle	LBB0_13
## %bb.12:
	movl	%ecx, 36(%rbx)
	movl	%ecx, %eax
LBB0_13:
	cmpl	%eax, 32(%rbx)
	jle	LBB0_15
## %bb.14:
	movl	%eax, 32(%rbx)
LBB0_15:
	addq	$20, %rbx
	movl	$0, (%r15)
LBB0_16:
	movl	%r14d, (%rbx)
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_use_bandwidth_switch,4,2       ## @use_bandwidth_switch
	.comm	_hz,4,2                         ## @hz
	.no_dead_strip	_measure_achieved_throughput
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function measure_achieved_throughput
_measure_achieved_throughput:           ; @measure_achieved_throughput
	.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, x0
	bl	_sctp_get_tick_count
	mov	x19, x0
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _use_bandwidth_switch@GOTPAGE
Lloh1:
	ldr	x9, [x9, _use_bandwidth_switch@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cbz	w9, LBB0_16
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	str	wzr, [x20, #16]
	add	x22, x20, #20
	b	LBB0_15
LBB0_4:
	ldr	x8, [x20, #56]
	str	x8, [x20, #48]
Lloh3:
	adrp	x9, _use_bandwidth_switch@GOTPAGE
Lloh4:
	ldr	x9, [x9, _use_bandwidth_switch@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cbnz	w9, LBB0_6
	b	LBB0_16
LBB0_5:
	ldr	x8, [x20, #56]
LBB0_6:
	mov	x21, x20
	ldr	w10, [x21, #16]!
	ldr	w9, [x21, #8]
	asr	w11, w9, #7
	cmp	w9, #128
	csinc	w11, w11, wzr, hs
	ldp	w12, w9, [x21, #-12]
	msub	w11, w11, w9, w12
	add	w8, w10, w8
	cmp	w8, w11
	str	w8, [x21]
	b.lt	LBB0_16
; %bb.7:
	mov	x22, x20
	ldr	w10, [x22, #20]!
	ldr	w11, [x22, #8]
	sub	w10, w19, w10
	cmp	w10, w11
	ccmp	w11, #1, #8, ge
	b.lt	LBB0_16
; %bb.8:
	sdiv	w8, w8, w9
Lloh6:
	adrp	x9, _hz@GOTPAGE
Lloh7:
	ldr	x9, [x9, _hz@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w8, w9, w8
	sdiv	w23, w8, w10
	mov	x0, x21
	bl	_htcp_ccount
	cmp	w0, #3
	b.gt	LBB0_10
; %bb.9:
	stp	w23, w23, [x20, #36]
	str	w23, [x20, #32]
	b	LBB0_14
LBB0_10:
	ldp	w8, w9, [x20, #36]
	add	w9, w9, w9, lsl #1
	add	w9, w9, w23
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
	str	w9, [x20, #40]
	cmp	w9, w8
	b.le	LBB0_12
; %bb.11:
	str	w9, [x20, #36]
	mov	x8, x9
LBB0_12:
	ldr	w9, [x20, #32]
	cmp	w9, w8
	b.le	LBB0_14
; %bb.13:
	str	w8, [x20, #32]
LBB0_14:
	str	wzr, [x21]
LBB0_15:
	str	w19, [x22]
LBB0_16:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_use_bandwidth_switch,4,2       ; @use_bandwidth_switch
	.comm	_hz,4,2                         ; @hz
	.no_dead_strip	_measure_achieved_throughput
.subsections_via_symbols
