	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bundle_CalculateBandwidth      ## -- Begin function bundle_CalculateBandwidth
	.p2align	4, 0x90
_bundle_CalculateBandwidth:             ## @bundle_CalculateBandwidth
	.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	%rdi, %r14
	movl	$0, (%rdi)
	movq	8(%rdi), %rax
	movq	$0, (%rax)
	movq	56(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	_DATALINK_OPEN@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, (%r14)
	cmpq	$0, 48(%r14)
	jne	LBB0_10
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %r12d
	movq	16(%rbx), %rdi
	addq	$8, %rdi
	callq	_ccp_MTUOverhead
	movl	%eax, %r15d
	cmpl	%eax, %r12d
	cmovgl	%r12d, %r15d
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rdi
	callq	_physical_GetSpeed
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_LogDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rax
	movq	16(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	cmpq	$0, 48(%r14)
	je	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_11
LBB0_1:
	xorl	%r15d, %r15d
LBB0_11:
	cmpl	$0, (%r14)
	je	LBB0_12
LBB0_13:
	cmpq	$0, 48(%r14)
	je	LBB0_15
LBB0_14:
	movq	8(%r14), %rax
	movq	32(%r14), %rcx
	movq	%rcx, (%rax)
	leaq	40(%r14), %rdi
	callq	_ccp_MTUOverhead
	cmpl	%eax, %r15d
	cmovlel	%eax, %r15d
	jmp	LBB0_17
LBB0_9:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	cmpl	$0, (%r14)
	jne	LBB0_13
LBB0_12:
	movl	$115200, (%r14)                 ## imm = 0x1C200
	cmpq	$0, 48(%r14)
	jne	LBB0_14
LBB0_15:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_17
## %bb.16:
	movq	_DEF_MRU@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_17:
	cmpq	$0, 24(%r14)
	je	LBB0_21
## %bb.18:
	movq	16(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.19:
	movq	8(%r14), %rax
	cmpq	(%rax), %rdx
	jge	LBB0_21
## %bb.20:
	movq	_LogLCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movq	%rcx, (%rax)
LBB0_21:
	testl	%r15d, %r15d
	je	LBB0_23
## %bb.22:
	movq	_LogLCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rax
	movq	(%rax), %rdx
	movslq	%r15d, %rbx
	movq	%rdx, %rcx
	subq	%rbx, %rcx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movq	8(%r14), %rax
	subq	%rbx, (%rax)
LBB0_23:
	movq	%r14, %rdi
	callq	_tun_configure
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_route_UpdateMTU                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DATALINK_OPEN,8,3              ## @DATALINK_OPEN
	.comm	_LogDEBUG,4,2                   ## @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: Cannot determine bandwidth\n"

	.comm	_DEF_MRU,8,3                    ## @DEF_MRU
	.comm	_LogLCP,4,2                     ## @LogLCP
L_.str.1:                               ## @.str.1
	.asciz	"Reducing MTU to radius value %lu\n"

L_.str.2:                               ## @.str.2
	.asciz	"Reducing MTU from %lu to %lu (CCP requirement)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bundle_CalculateBandwidth      ; -- Begin function bundle_CalculateBandwidth
	.p2align	2
_bundle_CalculateBandwidth:             ; @bundle_CalculateBandwidth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	str	wzr, [x0]
	ldr	x8, [x0, #8]
	str	xzr, [x8]
	ldr	x22, [x0, #56]
	cbz	x22, LBB0_8
; %bb.1:
	mov	w21, #0
Lloh0:
	adrp	x23, _DATALINK_OPEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DATALINK_OPEN@GOTPAGEOFF]
Lloh2:
	adrp	x24, _LogDEBUG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _LogDEBUG@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_7
	b	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	add	x0, x8, #8
	bl	_ccp_MTUOverhead
	cmp	w21, w0
	csel	w21, w21, w0, gt
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22, #24]
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22, #16]
	bl	_physical_GetSpeed
	cbnz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	ldp	x2, x8, [x22, #8]
	ldr	x8, [x8, #16]
	str	x8, [sp]
	mov	x1, x20
	bl	_log_Printf
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x22, #32]
	cbnz	x22, LBB0_3
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
	ldr	w8, [x19]
	cbz	w8, LBB0_13
LBB0_10:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_14
LBB0_11:
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #8]
	str	x8, [x9]
	add	x0, x19, #40
	bl	_ccp_MTUOverhead
	cmp	w21, w0
	csel	w21, w21, w0, gt
	b	LBB0_16
LBB0_12:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	str	x8, [x9]
	ldr	w8, [x19]
	cbnz	w8, LBB0_10
LBB0_13:
	mov	w8, #49664
	movk	w8, #1, lsl #16
	str	w8, [x19]
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_11
LBB0_14:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cbnz	x9, LBB0_16
; %bb.15:
Lloh6:
	adrp	x9, _DEF_MRU@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DEF_MRU@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_16:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_20
; %bb.17:
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_20
; %bb.18:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x2, x8
	b.ge	LBB0_20
; %bb.19:
Lloh9:
	adrp	x8, _LogLCP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LogLCP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_Printf
	ldp	x9, x8, [x19, #8]
	str	x8, [x9]
LBB0_20:
	cbz	w21, LBB0_22
; %bb.21:
Lloh14:
	adrp	x8, _LogLCP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LogLCP@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x2, [x8]
	sxtw	x20, w21
	sub	x8, x2, x20
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_log_Printf
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	sub	x9, x9, x20
	str	x9, [x8]
LBB0_22:
	mov	x0, x19
	bl	_tun_configure
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_route_UpdateMTU
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DATALINK_OPEN,8,3              ; @DATALINK_OPEN
	.comm	_LogDEBUG,4,2                   ; @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: Cannot determine bandwidth\n"

	.comm	_DEF_MRU,8,3                    ; @DEF_MRU
	.comm	_LogLCP,4,2                     ; @LogLCP
l_.str.1:                               ; @.str.1
	.asciz	"Reducing MTU to radius value %lu\n"

l_.str.2:                               ; @.str.2
	.asciz	"Reducing MTU from %lu to %lu (CCP requirement)\n"

.subsections_via_symbols
