	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bbr_merge_rsm
_bbr_merge_rsm:                         ## @bbr_merge_rsm
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	32(%rdx), %rax
	movq	%rax, 32(%rsi)
	movq	(%rdx), %rax
	cmpq	%rax, (%rsi)
	jge	LBB0_2
## %bb.1:
	movq	%rax, (%r14)
LBB0_2:
	movq	56(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	addq	%rax, 56(%r14)
LBB0_4:
	cmpq	$0, 48(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	8(%r15), %rdi
	movq	_r_tnext@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
LBB0_6:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, 40(%r14)
LBB0_8:
	movl	8(%rbx), %eax
	movq	_BBR_HAS_FIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_10
## %bb.9:
	orl	%ecx, 8(%r14)
	movl	8(%rbx), %eax
LBB0_10:
	movq	_BBR_TLP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.11:
	orl	%ecx, 8(%r14)
	movl	8(%rbx), %eax
LBB0_12:
	movq	_BBR_RWND_COLLAPSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_14
## %bb.13:
	orl	%ecx, 8(%r14)
	movl	8(%rbx), %eax
LBB0_14:
	movq	_BBR_MARKED_LOST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movl	24(%rbx), %eax
	subl	32(%rbx), %eax
	addl	%eax, 4(%r15)
LBB0_16:
	movq	_r_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	cmpq	$0, 16(%rbx)
	jne	LBB0_19
## %bb.17:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%rax, 16(%rbx)
	movq	$0, 16(%r14)
LBB0_19:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bbr_free
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r_tnext,4,2                    ## @r_tnext
	.comm	_BBR_HAS_FIN,4,2                ## @BBR_HAS_FIN
	.comm	_BBR_TLP,4,2                    ## @BBR_TLP
	.comm	_BBR_RWND_COLLAPSED,4,2         ## @BBR_RWND_COLLAPSED
	.comm	_BBR_MARKED_LOST,4,2            ## @BBR_MARKED_LOST
	.comm	_r_next,4,2                     ## @r_next
	.no_dead_strip	_bbr_merge_rsm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bbr_merge_rsm
_bbr_merge_rsm:                         ; @bbr_merge_rsm
	.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	x19, x1
	mov	x21, x0
	ldr	x8, [x2, #32]
	str	x8, [x1, #32]
	ldr	x9, [x1]
	ldr	x8, [x2]
	cmp	x9, x8
	b.ge	LBB0_2
; %bb.1:
	str	x8, [x19]
LBB0_2:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x9, [x19, #56]
	add	x8, x9, x8
	str	x8, [x19, #56]
LBB0_4:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_6
; %bb.5:
	add	x0, x21, #8
Lloh0:
	adrp	x8, _r_tnext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_tnext@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_TAILQ_REMOVE
LBB0_6:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_8
; %bb.7:
	str	x8, [x19, #40]
LBB0_8:
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _BBR_HAS_FIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BBR_HAS_FIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	ldr	w8, [x20, #8]
LBB0_10:
Lloh6:
	adrp	x9, _BBR_TLP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BBR_TLP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	ldr	w8, [x20, #8]
LBB0_12:
Lloh9:
	adrp	x9, _BBR_RWND_COLLAPSED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BBR_RWND_COLLAPSED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	ldr	w8, [x20, #8]
LBB0_14:
Lloh12:
	adrp	x9, _BBR_MARKED_LOST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BBR_MARKED_LOST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	w8, [x20, #32]
	ldr	w9, [x20, #24]
	ldr	w10, [x21, #4]
	sub	w8, w9, w8
	add	w8, w10, w8
	str	w8, [x21, #4]
LBB0_16:
Lloh15:
	adrp	x8, _r_next@GOTPAGE
Lloh16:
	ldr	x8, [x8, _r_next@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_TAILQ_REMOVE
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_19
; %bb.17:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_19
; %bb.18:
	str	x8, [x20, #16]
	str	xzr, [x19, #16]
LBB0_19:
	mov	x0, x21
	mov	x1, x20
	bl	_bbr_free
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_r_tnext,4,2                    ; @r_tnext
	.comm	_BBR_HAS_FIN,4,2                ; @BBR_HAS_FIN
	.comm	_BBR_TLP,4,2                    ; @BBR_TLP
	.comm	_BBR_RWND_COLLAPSED,4,2         ; @BBR_RWND_COLLAPSED
	.comm	_BBR_MARKED_LOST,4,2            ; @BBR_MARKED_LOST
	.comm	_r_next,4,2                     ; @r_next
	.no_dead_strip	_bbr_merge_rsm
.subsections_via_symbols
