	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_sack_check                ## -- Begin function sctp_sack_check
	.p2align	4, 0x90
_sctp_sack_check:                       ## @sctp_sack_check
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_sctp_slide_mapping_arrays
	movl	84(%rbx), %esi
	movl	88(%rbx), %edi
	callq	_SCTP_TSN_GT
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	84(%rbx,%rcx,4), %edi
	movl	80(%rbx), %esi
	callq	_SCTP_TSN_GT
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_SHUTDOWN_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	leaq	56(%rbx), %rdi
	callq	_SCTP_OS_TIMER_PENDING
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_SCTP_TIMER_TYPE_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_SCTP_FROM_SCTP_INDATA@GOTPCREL(%rip), %rax
	movq	_SCTP_LOC_17@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	addq	(%rax), %r8
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_sctp_timer_stop
LBB0_3:
	movq	72(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.4:
	movq	64(%rbx), %rsi
LBB0_5:
	movq	%rbx, %rdi
	callq	_sctp_send_shutdown
	testl	%r14d, %r14d
	jne	LBB0_6
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	incl	60(%rbx)
	cmpl	$1, 8(%rbx)
	je	LBB0_14
## %bb.8:
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	testl	%r14d, %r14d
	je	LBB0_14
LBB0_10:
	cmpq	$0, 16(%rbx)
	jne	LBB0_14
## %bb.11:
	testl	%r14d, %r14d
	jne	LBB0_14
## %bb.12:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.13:
	movq	32(%rbx), %rax
	cmpq	40(%rbx), %rax
	jge	LBB0_14
## %bb.21:
	leaq	56(%rbx), %rdi
	callq	_SCTP_OS_TIMER_PENDING
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_23
LBB0_14:
	cmpq	$0, 48(%rbx)
	jle	LBB0_20
## %bb.15:
	movq	_sctp_cmt_use_dac@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_BASE_SYSCTL
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	cmpl	$0, 8(%rbx)
	jne	LBB0_20
## %bb.17:
	cmpq	$0, 16(%rbx)
	je	LBB0_18
LBB0_20:
	leaq	56(%rbx), %rdi
	callq	_SCTP_OS_TIMER_STOP
LBB0_6:
	movq	_SCTP_SO_NOT_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sctp_send_sack                 ## TAILCALL
LBB0_18:
	cmpq	$0, 24(%rbx)
	je	LBB0_20
## %bb.19:
	leaq	56(%rbx), %rdi
	callq	_SCTP_OS_TIMER_PENDING
	testq	%rax, %rax
	jne	LBB0_20
LBB0_23:
	movq	_SCTP_TIMER_TYPE_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sctp_timer_start               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_STATE_SHUTDOWN_SENT,8,3   ## @SCTP_STATE_SHUTDOWN_SENT
	.comm	_SCTP_TIMER_TYPE_RECV,4,2       ## @SCTP_TIMER_TYPE_RECV
	.comm	_SCTP_FROM_SCTP_INDATA,8,3      ## @SCTP_FROM_SCTP_INDATA
	.comm	_SCTP_LOC_17,8,3                ## @SCTP_LOC_17
	.comm	_SCTP_SO_NOT_LOCKED,4,2         ## @SCTP_SO_NOT_LOCKED
	.comm	_sctp_cmt_use_dac,4,2           ## @sctp_cmt_use_dac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_sack_check                ; -- Begin function sctp_sack_check
	.p2align	2
_sctp_sack_check:                       ; @sctp_sack_check
	.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	x21, x1
	mov	x19, x0
	bl	_sctp_slide_mapping_arrays
	ldp	w1, w0, [x19, #84]
	bl	_SCTP_TSN_GT
	cmp	w0, #0
	mov	w8, #88
	mov	w9, #84
	csel	x8, x9, x8, eq
	ldr	w0, [x19, x8]
	ldr	w1, [x19, #80]
	bl	_SCTP_TSN_GT
	mov	x20, x0
	mov	x0, x19
	bl	_SCTP_GET_STATE
Lloh0:
	adrp	x8, _SCTP_STATE_SHUTDOWN_SENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_STATE_SHUTDOWN_SENT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	add	x0, x19, #56
	bl	_SCTP_OS_TIMER_PENDING
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SCTP_TIMER_TYPE_RECV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_TIMER_TYPE_RECV@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SCTP_FROM_SCTP_INDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCTP_FROM_SCTP_INDATA@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _SCTP_LOC_17@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SCTP_LOC_17@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x4, x9, x8
	mov	x2, x19
	mov	x3, #0
	bl	_sctp_timer_stop
LBB0_3:
	ldr	x1, [x19, #72]
	cbnz	x1, LBB0_5
; %bb.4:
	ldr	x1, [x19, #64]
LBB0_5:
	mov	x0, x19
	bl	_sctp_send_shutdown
	cbnz	w20, LBB0_20
LBB0_6:
	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
LBB0_7:
	ldr	w8, [x19, #60]
	add	w8, w8, #1
	str	w8, [x19, #60]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.eq	LBB0_15
; %bb.8:
	cbz	w21, LBB0_10
; %bb.9:
	cbz	w20, LBB0_15
LBB0_10:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_15
; %bb.11:
	cbnz	w20, LBB0_15
; %bb.12:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.13:
	ldp	x8, x9, [x19, #32]
	cmp	x8, x9
	b.ge	LBB0_15
; %bb.14:
	add	x0, x19, #56
	bl	_SCTP_OS_TIMER_PENDING
	cbnz	x0, LBB0_6
	b	LBB0_23
LBB0_15:
	ldr	x8, [x19, #48]
	cmp	x8, #1
	b.lt	LBB0_19
; %bb.16:
Lloh12:
	adrp	x8, _sctp_cmt_use_dac@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sctp_cmt_use_dac@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_SCTP_BASE_SYSCTL
	cbz	x0, LBB0_19
; %bb.17:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_19
; %bb.18:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_21
LBB0_19:
	add	x0, x19, #56
	bl	_SCTP_OS_TIMER_STOP
LBB0_20:
Lloh15:
	adrp	x8, _SCTP_SO_NOT_LOCKED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SCTP_SO_NOT_LOCKED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	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	_sctp_send_sack
LBB0_21:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_19
; %bb.22:
	add	x0, x19, #56
	bl	_SCTP_OS_TIMER_PENDING
	cbnz	x0, LBB0_19
LBB0_23:
Lloh18:
	adrp	x8, _SCTP_TIMER_TYPE_RECV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SCTP_TIMER_TYPE_RECV@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x19]
	mov	x2, x19
	mov	x3, #0
	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	_sctp_timer_start
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_STATE_SHUTDOWN_SENT,8,3   ; @SCTP_STATE_SHUTDOWN_SENT
	.comm	_SCTP_TIMER_TYPE_RECV,4,2       ; @SCTP_TIMER_TYPE_RECV
	.comm	_SCTP_FROM_SCTP_INDATA,8,3      ; @SCTP_FROM_SCTP_INDATA
	.comm	_SCTP_LOC_17,8,3                ; @SCTP_LOC_17
	.comm	_SCTP_SO_NOT_LOCKED,4,2         ; @SCTP_SO_NOT_LOCKED
	.comm	_sctp_cmt_use_dac,4,2           ; @sctp_cmt_use_dac
.subsections_via_symbols
