	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bbr_get_target_cwnd
_bbr_get_target_cwnd:                   ## @bbr_get_target_cwnd
	.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
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movq	(%rax), %rdi
	subq	24(%r14), %rdi
	movl	16(%r14), %esi
	callq	_min
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_bbr_get_raw_target_cwnd
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_roundup
	movq	_bbr_quanta@GOTPCREL(%rip), %rcx
	movl	16(%r14), %ebx
	imull	(%rcx), %ebx
	addl	%eax, %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.1:
	movq	(%r14), %rax
	movq	_BBR_STATE_PROBE_BW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_bbr_state_val
	movq	_BBR_SUB_GAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leal	(%rbx,%r15,2), %ebx
LBB0_4:
	movl	%ebx, %eax
	cltd
	idivl	%r15d
	andl	$1, %eax
	negl	%eax
	andl	%r15d, %eax
	addl	%eax, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_get_min_cwnd
	cmpl	%eax, %ebx
	jge	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_min_cwnd                   ## TAILCALL
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bbr_quanta,4,2                 ## @bbr_quanta
	.comm	_BBR_STATE_PROBE_BW,8,3         ## @BBR_STATE_PROBE_BW
	.comm	_BBR_SUB_GAIN,8,3               ## @BBR_SUB_GAIN
	.no_dead_strip	_bbr_get_target_cwnd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bbr_get_target_cwnd
_bbr_get_target_cwnd:                   ; @bbr_get_target_cwnd
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldp	x9, x8, [x0, #24]
	ldr	x8, [x8]
	sub	x0, x8, x9
	ldr	w1, [x19, #16]
	bl	_min
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_bbr_get_raw_target_cwnd
	mov	x1, x21
	bl	_roundup
Lloh0:
	adrp	x8, _bbr_quanta@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bbr_quanta@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	madd	w20, w9, w8, w0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _BBR_STATE_PROBE_BW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BBR_STATE_PROBE_BW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_bbr_state_val
Lloh6:
	adrp	x8, _BBR_SUB_GAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BBR_SUB_GAIN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	add	w8, w20, w21, lsl #1
	csel	w20, w20, w8, ne
LBB0_3:
	sdiv	w8, w20, w21
	sbfx	w8, w8, #0, #1
	and	w8, w8, w21
	add	w20, w8, w20
LBB0_4:
	mov	x0, x19
	bl	_get_min_cwnd
	cmp	w20, w0
	b.ge	LBB0_6
; %bb.5:
	mov	x0, x19
	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	_get_min_cwnd
LBB0_6:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_bbr_quanta,4,2                 ; @bbr_quanta
	.comm	_BBR_STATE_PROBE_BW,8,3         ; @BBR_STATE_PROBE_BW
	.comm	_BBR_SUB_GAIN,8,3               ; @BBR_SUB_GAIN
	.no_dead_strip	_bbr_get_target_cwnd
.subsections_via_symbols
