	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_outq_tail                 ## -- Begin function sctp_outq_tail
	.p2align	4, 0x90
_sctp_outq_tail:                        ## @sctp_outq_tail
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str.1(%rip), %rcx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rdi
	callq	_SCTP_ST_CHUNK
	movl	%eax, %edi
	callq	_sctp_cname
	movq	%rax, %rcx
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_SCTP_DEBUG_PRINTK
	movq	_SCTP_CID_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	8(%rbx), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_9
## %bb.4:
	movq	16(%r14), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	jae	LBB0_5
## %bb.10:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	negl	%eax
	testl	%ecx, %ecx
	jg	LBB0_12
	jmp	LBB0_11
LBB0_9:
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	_SCTP_MIB_OUTCTRLCHUNKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_INC_STATS
	xorl	%eax, %eax
LBB0_11:
	cmpl	$0, (%r14)
	je	LBB0_13
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	_SCTP_ST_CHUNK
	movl	%eax, %edi
	callq	_sctp_cname
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_SCTP_DEBUG_PRINTK
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sctp_outq_tail_data
	movq	8(%rbx), %rax
	movq	_SCTP_DATA_UNORDERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rax), %ecx
	jne	LBB0_6
## %bb.7:
	movq	_SCTP_MIB_OUTORDERCHUNKS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_SCTP_MIB_OUTUNORDERCHUNKS@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	callq	_SCTP_INC_STATS
	movl	$0, 8(%r14)
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	jne	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sctp_outq_flush                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sctp_outq_tail(%p, %p[%s])\n"

L_.str.1:                               ## @.str.1
	.asciz	"Illegal Chunk"

	.comm	_SCTP_CID_DATA,8,3              ## @SCTP_CID_DATA
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
L_.str.2:                               ## @.str.2
	.asciz	"outqueueing (%p, %p[%s])\n"

	.comm	_SCTP_DATA_UNORDERED,4,2        ## @SCTP_DATA_UNORDERED
	.comm	_SCTP_MIB_OUTUNORDERCHUNKS,4,2  ## @SCTP_MIB_OUTUNORDERCHUNKS
	.comm	_SCTP_MIB_OUTORDERCHUNKS,4,2    ## @SCTP_MIB_OUTORDERCHUNKS
	.comm	_SCTP_MIB_OUTCTRLCHUNKS,4,2     ## @SCTP_MIB_OUTCTRLCHUNKS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_outq_tail                 ; -- Begin function sctp_outq_tail
	.p2align	2
_sctp_outq_tail:                        ; @sctp_outq_tail
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x8]
	bl	_SCTP_ST_CHUNK
	bl	_sctp_cname
	mov	x3, x0
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x3, l_.str.1@PAGE
Lloh1:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_SCTP_DEBUG_PRINTK
Lloh4:
	adrp	x8, _SCTP_CID_DATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SCTP_CID_DATA@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hs	LBB0_11
; %bb.6:
Lloh7:
	adrp	x8, _ESHUTDOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ESHUTDOWN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	cmp	w8, #0
	b.gt	LBB0_8
; %bb.7:
	ldr	w8, [x19]
	cbz	w8, LBB0_10
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	add	x1, x19, #4
	mov	x0, x20
	bl	_list_add_tail
Lloh10:
	adrp	x8, _SCTP_MIB_OUTCTRLCHUNKS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SCTP_MIB_OUTCTRLCHUNKS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_SCTP_INC_STATS
	mov	w0, #0
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sctp_outq_flush
LBB0_11:
	bl	_SCTP_ST_CHUNK
	bl	_sctp_cname
	mov	x3, x0
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_SCTP_DEBUG_PRINTK
	mov	x0, x19
	mov	x1, x20
	bl	_sctp_outq_tail_data
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #8]
Lloh15:
	adrp	x9, _SCTP_DATA_UNORDERED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SCTP_DATA_UNORDERED@GOTPAGEOFF]
Lloh17:
	adrp	x10, _SCTP_MIB_OUTORDERCHUNKS@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SCTP_MIB_OUTORDERCHUNKS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x11, _SCTP_MIB_OUTUNORDERCHUNKS@GOTPAGE
Lloh21:
	ldr	x11, [x11, _SCTP_MIB_OUTUNORDERCHUNKS@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w0, [x8]
	bl	_SCTP_INC_STATS
	mov	w0, #0
	str	wzr, [x19, #8]
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sctp_outq_tail(%p, %p[%s])\n"

l_.str.1:                               ; @.str.1
	.asciz	"Illegal Chunk"

	.comm	_SCTP_CID_DATA,8,3              ; @SCTP_CID_DATA
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
l_.str.2:                               ; @.str.2
	.asciz	"outqueueing (%p, %p[%s])\n"

	.comm	_SCTP_DATA_UNORDERED,4,2        ; @SCTP_DATA_UNORDERED
	.comm	_SCTP_MIB_OUTUNORDERCHUNKS,4,2  ; @SCTP_MIB_OUTUNORDERCHUNKS
	.comm	_SCTP_MIB_OUTORDERCHUNKS,4,2    ; @SCTP_MIB_OUTORDERCHUNKS
	.comm	_SCTP_MIB_OUTCTRLCHUNKS,4,2     ; @SCTP_MIB_OUTCTRLCHUNKS
.subsections_via_symbols
