	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_handle_segments
_sctp_handle_segments:                  ## @sctp_handle_segments
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movl	$0, -48(%rbp)
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, -64(%rbp)
	movl	40(%rbp), %eax
	addl	32(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r9d, %r9d
	cmpl	32(%rbp), %r14d
	setge	%r9b
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r12, %r8
	pushq	48(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	leaq	-48(%rbp), %rax
	pushq	%rax
	callq	_sctp_process_segment_range
	addq	$32, %rsp
	testq	%rax, %rax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovnel	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %r13
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	cmpl	%r14d, -68(%rbp)                ## 4-byte Folded Reload
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, 32(%rbp)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_TAILQ_FIRST
	movq	%rax, -64(%rbp)
	xorl	%r13d, %r13d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	(%r15), %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	$8, %edx
	leaq	-120(%rbp), %rcx
	callq	_sctp_m_getptr
	addl	$8, (%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_ntohs
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_ntohs
	cmpq	%rax, %r15
	jg	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	cmpq	%r13, %r15
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_TAILQ_FIRST
	movq	%rax, -64(%rbp)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax), %r13
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_SCTP_TSN_GT
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, (%rbx)
	jmp	LBB0_11
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_13:
	movq	_sctp_logging_level@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_BASE_SYSCTL
	movq	_SCTP_FR_LOGGING_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.14:
	cmpl	$0, -48(%rbp)
	je	LBB0_16
## %bb.15:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	16(%rbp), %rax
	movq	(%rax), %rsi
	movq	_SCTP_FR_LOG_BIGGEST_TSNS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_sctp_log_fr
LBB0_16:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp_logging_level,4,2         ## @sctp_logging_level
	.comm	_SCTP_FR_LOGGING_ENABLE,4,2     ## @SCTP_FR_LOGGING_ENABLE
	.comm	_SCTP_FR_LOG_BIGGEST_TSNS,4,2   ## @SCTP_FR_LOG_BIGGEST_TSNS
	.no_dead_strip	_sctp_handle_segments
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_handle_segments
_sctp_handle_segments:                  ; @sctp_handle_segments
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x7, x5, [sp, #32]               ; 16-byte Folded Spill
	str	x6, [sp, #48]                   ; 8-byte Folded Spill
	str	x4, [sp, #64]                   ; 8-byte Folded Spill
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	mov	x26, x1
	mov	x27, x0
	ldp	w25, w19, [x29, #16]
	str	wzr, [sp, #76]
	str	x3, [sp, #56]                   ; 8-byte Folded Spill
	mov	x0, x3
	bl	_TAILQ_FIRST
	str	x0, [sp, #80]
	add	w21, w19, w25
	cmp	w21, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x23, #0
	mov	w19, #0
	mov	w22, #0
	ldr	x8, [x29, #24]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, w25
	cset	w5, ge
	ldp	x9, x0, [sp, #16]               ; 16-byte Folded Reload
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp]
	add	x1, sp, #80
	add	x6, sp, #76
	ldr	x2, [sp, #64]                   ; 8-byte Folded Reload
	mov	x3, x20
	mov	x4, x28
	ldr	x7, [sp, #48]                   ; 8-byte Folded Reload
	bl	_sctp_process_segment_range
	cmp	x0, #0
	csinc	w22, w22, wzr, eq
	mov	x23, x28
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
	cmp	w21, w19
	b.eq	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w25, w19
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_TAILQ_FIRST
	mov	x23, #0
	str	x0, [sp, #80]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	add	x3, sp, #88
	mov	x0, x27
	mov	w2, #8
	bl	_sctp_m_getptr
	ldr	w8, [x26]
	add	w8, w8, #8
	str	w8, [x26]
	cbz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
	ldr	w0, [x0, #4]
	bl	_ntohs
	mov	x20, x0
	ldr	w0, [x28]
	bl	_ntohs
	cmp	x20, x0
	b.gt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
	cmp	x20, x23
	b.gt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_TAILQ_FIRST
	str	x0, [sp, #80]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x23, x28, x8
	ldr	x1, [x24]
	mov	x0, x23
	bl	_SCTP_TSN_GT
	cbz	x0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x23, [x24]
	b	LBB0_2
LBB0_12:
	mov	w22, #0
LBB0_13:
Lloh0:
	adrp	x8, _sctp_logging_level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sctp_logging_level@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SCTP_BASE_SYSCTL
Lloh3:
	adrp	x8, _SCTP_FR_LOGGING_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_FR_LOGGING_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [sp, #76]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_15
; %bb.14:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x0, [x8]
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x1, [x8]
Lloh6:
	adrp	x8, _SCTP_FR_LOG_BIGGEST_TSNS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCTP_FR_LOG_BIGGEST_TSNS@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	ldr	x2, [sp, #64]                   ; 8-byte Folded Reload
	bl	_sctp_log_fr
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sctp_logging_level,4,2         ; @sctp_logging_level
	.comm	_SCTP_FR_LOGGING_ENABLE,4,2     ; @SCTP_FR_LOGGING_ENABLE
	.comm	_SCTP_FR_LOG_BIGGEST_TSNS,4,2   ; @SCTP_FR_LOG_BIGGEST_TSNS
	.no_dead_strip	_sctp_handle_segments
.subsections_via_symbols
