	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_reset_clear_pending
_sctp_reset_clear_pending:              ## @sctp_reset_clear_pending
	.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, %r12
	testq	%rsi, %rsi
	jle	LBB0_5
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	xorl	%ebx, %ebx
	movq	_SCTP_STREAM_OPEN@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_23
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_ntohs
	cmpq	(%r12), %rax
	jae	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rcx
	movq	8(%r12), %rdx
	movq	%rcx, (%rdx,%rax,8)
	jmp	LBB0_2
LBB0_5:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.6:
	movq	8(%r12), %rcx
	cmpq	$4, %rax
	jb	LBB0_7
## %bb.8:
	movq	_SCTP_STREAM_OPEN@GOTPCREL(%rip), %r8
	leaq	8(%r8), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_11
## %bb.9:
	leaq	(%rcx,%rax,8), %rdx
	cmpq	_SCTP_STREAM_OPEN@GOTPCREL(%rip), %rdx
	jbe	LBB0_11
LBB0_7:
	xorl	%edx, %edx
LBB0_17:
	movq	%rdx, %r8
	notq	%r8
	addq	%rax, %r8
	movq	%rax, %rdi
	andq	$3, %rdi
	je	LBB0_20
## %bb.18:
	movq	_SCTP_STREAM_OPEN@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	incq	%rdx
	decq	%rdi
	jne	LBB0_19
LBB0_20:
	cmpq	$3, %r8
	jb	LBB0_23
## %bb.21:
	movq	_SCTP_STREAM_OPEN@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rdi
	movq	%rdi, (%rcx,%rdx,8)
	movq	(%rsi), %rdi
	movq	%rdi, 8(%rcx,%rdx,8)
	movq	(%rsi), %rdi
	movq	%rdi, 16(%rcx,%rdx,8)
	movq	(%rsi), %rdi
	movq	%rdi, 24(%rcx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_22
	jmp	LBB0_23
LBB0_11:
	movq	%rax, %rdx
	andq	$-4, %rdx
	leaq	-4(%rdx), %rdi
	movq	%rdi, %rsi
	shrq	$2, %rsi
	incq	%rsi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.12:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	movq	(%r8), %xmm0                    ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rbx,8)
	movdqu	%xmm0, 16(%rcx,%rbx,8)
	movdqu	%xmm0, 32(%rcx,%rbx,8)
	movdqu	%xmm0, 48(%rcx,%rbx,8)
	addq	$8, %rbx
	addq	$-2, %rdi
	jne	LBB0_13
## %bb.14:
	testb	$1, %sil
	je	LBB0_16
LBB0_15:
	movq	(%r8), %xmm0                    ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqu	%xmm0, (%rcx,%rbx,8)
	movdqu	%xmm0, 16(%rcx,%rbx,8)
LBB0_16:
	cmpq	%rdx, %rax
	jne	LBB0_17
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	xorl	%ebx, %ebx
	testb	$1, %sil
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_STREAM_OPEN,8,3           ## @SCTP_STREAM_OPEN
	.no_dead_strip	_sctp_reset_clear_pending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_reset_clear_pending
_sctp_reset_clear_pending:              ; @sctp_reset_clear_pending
	.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	x19, x0
	cmp	x1, #0
	b.le	LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x22, _SCTP_STREAM_OPEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SCTP_STREAM_OPEN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #8
	subs	x21, x21, #1
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_ntohs
	ldr	x8, [x19]
	cmp	x0, x8
	b.hs	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x19, #8]
	str	x8, [x9, x0, lsl #3]
	b	LBB0_2
LBB0_5:
	ldr	x9, [x19]
	cbz	x9, LBB0_14
; %bb.6:
	ldr	x10, [x19, #8]
Lloh2:
	adrp	x8, _SCTP_STREAM_OPEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCTP_STREAM_OPEN@GOTPAGEOFF]
	cmp	x9, #8
	b.lo	LBB0_11
; %bb.7:
	add	x11, x10, x9, lsl #3
	add	x12, x8, #8
	cmp	x10, x12
	ccmp	x11, x8, #0, lo
	b.hi	LBB0_11
; %bb.8:
	and	x11, x9, #0xfffffffffffffff8
	ld1r.2d	{ v0 }, [x8]
	add	x12, x10, #32
	mov	x13, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x13, x13, #8
	b.ne	LBB0_9
; %bb.10:
	cmp	x9, x11
	b.ne	LBB0_12
	b	LBB0_14
LBB0_11:
	mov	x11, #0
LBB0_12:
	sub	x9, x9, x11
	add	x10, x10, x11, lsl #3
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	str	x11, [x10], #8
	subs	x9, x9, #1
	b.ne	LBB0_13
LBB0_14:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_STREAM_OPEN,8,3           ; @SCTP_STREAM_OPEN
	.no_dead_strip	_sctp_reset_clear_pending
.subsections_via_symbols
