	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rack_merge_rsm
_rack_merge_rsm:                        ## @rack_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
	movl	40(%rdx), %eax
	movl	%eax, 40(%rsi)
	movq	(%rdx), %rax
	cmpq	%rax, (%rsi)
	jge	LBB0_2
## %bb.1:
	movq	%rax, (%r14)
LBB0_2:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	addq	%rax, 32(%r14)
LBB0_4:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	4(%r15), %rdi
	movq	_r_tnext@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	$0, 24(%rbx)
LBB0_6:
	movl	8(%rbx), %eax
	movq	_RACK_HAS_FIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_8
## %bb.7:
	orl	%ecx, 8(%r14)
	movl	8(%rbx), %eax
LBB0_8:
	movq	_RACK_TLP@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	_RACK_RWND_COLLAPSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.11:
	orl	%ecx, 8(%r14)
LBB0_12:
	movq	_rack_rb_tree_head@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_RB_REMOVE
	cmpq	$0, 16(%rbx)
	jne	LBB0_15
## %bb.13:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, 16(%rbx)
	movq	$0, 16(%r14)
LBB0_15:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_rack_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	_RACK_HAS_FIN,4,2               ## @RACK_HAS_FIN
	.comm	_RACK_TLP,4,2                   ## @RACK_TLP
	.comm	_RACK_RWND_COLLAPSED,4,2        ## @RACK_RWND_COLLAPSED
	.comm	_rack_rb_tree_head,4,2          ## @rack_rb_tree_head
	.no_dead_strip	_rack_merge_rsm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rack_merge_rsm
_rack_merge_rsm:                        ; @rack_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	w8, [x2, #40]
	str	w8, [x1, #40]
	ldr	x9, [x1]
	ldr	x8, [x2]
	cmp	x9, x8
	b.ge	LBB0_2
; %bb.1:
	str	x8, [x19]
LBB0_2:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x9, [x19, #32]
	add	x8, x9, x8
	str	x8, [x19, #32]
LBB0_4:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_6
; %bb.5:
	add	x0, x21, #4
Lloh0:
	adrp	x8, _r_tnext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_tnext@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_TAILQ_REMOVE
	str	xzr, [x20, #24]
LBB0_6:
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _RACK_HAS_FIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RACK_HAS_FIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	ldr	w8, [x20, #8]
LBB0_8:
Lloh6:
	adrp	x9, _RACK_TLP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RACK_TLP@GOTPAGEOFF]
Lloh8:
	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:
Lloh9:
	adrp	x9, _RACK_RWND_COLLAPSED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RACK_RWND_COLLAPSED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
LBB0_12:
Lloh12:
	adrp	x8, _rack_rb_tree_head@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rack_rb_tree_head@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x20
	bl	_RB_REMOVE
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_15
; %bb.13:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.14:
	str	x8, [x20, #16]
	str	xzr, [x19, #16]
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	bl	_rack_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
	.cfi_endproc
                                        ; -- End function
	.comm	_r_tnext,4,2                    ; @r_tnext
	.comm	_RACK_HAS_FIN,4,2               ; @RACK_HAS_FIN
	.comm	_RACK_TLP,4,2                   ; @RACK_TLP
	.comm	_RACK_RWND_COLLAPSED,4,2        ; @RACK_RWND_COLLAPSED
	.comm	_rack_rb_tree_head,4,2          ; @rack_rb_tree_head
	.no_dead_strip	_rack_merge_rsm
.subsections_via_symbols
