	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_packet_append_data
_sctp_packet_append_data:               ## @sctp_packet_append_data
	.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, %r14
	movq	(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_sctp_data_size
	movq	8(%rbx), %rcx
	movq	(%rcx), %rdx
	addq	%rax, (%rbx)
	addq	%rax, 16(%rcx)
	xorl	%esi, %esi
	subq	%rax, %rdx
	cmovaeq	%rdx, %rsi
	movq	%rsi, (%rcx)
	cmpl	$0, 8(%rcx)
	jne	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	$0, (%rax)
LBB0_2:
	movq	%r14, %rdi
	callq	_sctp_chunk_assign_tsn
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sctp_chunk_assign_ssn          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sctp_packet_append_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_packet_append_data
_sctp_packet_append_data:               ; @sctp_packet_append_data
	.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	x19, x1
	ldr	x20, [x0]
	mov	x0, x1
	bl	_sctp_data_size
	ldp	x9, x8, [x20]
	ldr	x10, [x8]
	add	x9, x9, x0
	str	x9, [x20]
	ldr	x9, [x8, #16]
	add	x9, x9, x0
	str	x9, [x8, #16]
	subs	x9, x10, x0
	csel	x9, xzr, x9, lo
	str	x9, [x8]
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_2:
	mov	x0, x19
	bl	_sctp_chunk_assign_tsn
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sctp_chunk_assign_ssn
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sctp_packet_append_data
.subsections_via_symbols
