	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_make_datafrag_empty       ## -- Begin function sctp_make_datafrag_empty
	.p2align	4, 0x90
_sctp_make_datafrag_empty:              ## @sctp_make_datafrag_empty
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movl	8(%rsi), %edi
	callq	_htons
	movq	%rax, -56(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -64(%rbp)
	movq	_SCTP_UNORDERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_SCTP_DATA_UNORDERED@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movl	%r13d, %edi
	callq	_htons
LBB0_3:
	movq	%rax, -72(%rbp)
	addl	$32, %ebx
	movq	_SCTP_CID_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_sctp_make_chunk
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_sctp_addto_chunk
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$12, %edx
	callq	_memcpy
LBB0_5:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_UNORDERED,4,2             ## @SCTP_UNORDERED
	.comm	_SCTP_DATA_UNORDERED,4,2        ## @SCTP_DATA_UNORDERED
	.comm	_SCTP_CID_DATA,4,2              ## @SCTP_CID_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_make_datafrag_empty       ; -- Begin function sctp_make_datafrag_empty
	.p2align	2
_sctp_make_datafrag_empty:              ; @sctp_make_datafrag_empty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x4
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	str	xzr, [sp, #24]
	ldr	w0, [x1, #8]
	bl	_htons
	str	x0, [sp, #16]
	ldp	w9, w8, [x19]
	str	w8, [sp, #8]
Lloh0:
	adrp	x8, _SCTP_UNORDERED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_UNORDERED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, #0
Lloh3:
	adrp	x8, _SCTP_DATA_UNORDERED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_DATA_UNORDERED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_3
LBB0_2:
	mov	x0, x23
	bl	_htons
LBB0_3:
	str	x0, [sp]
	add	w3, w22, #32
Lloh6:
	adrp	x8, _SCTP_CID_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCTP_CID_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_sctp_make_chunk
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.4:
	mov	x2, sp
	mov	x0, x20
	mov	w1, #32
	bl	_sctp_addto_chunk
	str	w0, [x20, #4]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #12
	bl	_memcpy
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_UNORDERED,4,2             ; @SCTP_UNORDERED
	.comm	_SCTP_DATA_UNORDERED,4,2        ; @SCTP_DATA_UNORDERED
	.comm	_SCTP_CID_DATA,4,2              ; @SCTP_CID_DATA
.subsections_via_symbols
