	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_packet_can_append_data
_sctp_packet_can_append_data:           ## @sctp_packet_can_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_SCTP_XMIT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rbx
	movq	8(%rbx), %r15
	movq	16(%rbx), %r14
	movq	%rsi, %rdi
	callq	_sctp_data_size
	cmpq	%r15, %rax
	jbe	LBB0_2
## %bb.1:
	testq	%r14, %r14
	jne	LBB0_6
LBB0_2:
	movq	(%r12), %rax
	movq	_SCTP_NEED_FRTX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	8(%r13), %rax
	jae	LBB0_6
LBB0_4:
	movl	(%rbx), %edi
	callq	_sctp_sk
	cmpl	$0, (%rax)
	je	LBB0_9
LBB0_5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_8
LBB0_6:
	movq	_SCTP_XMIT_RWND_FULL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_sctp_packet_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:
	testq	%r14, %r14
	je	LBB0_5
## %bb.11:
	movq	_ESTABLISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sctp_state
	testq	%rax, %rax
	je	LBB0_5
## %bb.12:
	movl	16(%r13), %eax
	subl	(%r15), %eax
	movq	16(%r12), %rcx
	movl	24(%rbx), %edx
	addl	(%rcx), %edx
	cmpl	%eax, %edx
	jae	LBB0_5
## %bb.13:
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_8
## %bb.14:
	movq	_SCTP_XMIT_NAGLE_DELAY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_XMIT_OK,4,2               ## @SCTP_XMIT_OK
	.comm	_SCTP_XMIT_RWND_FULL,4,2        ## @SCTP_XMIT_RWND_FULL
	.comm	_SCTP_NEED_FRTX,8,3             ## @SCTP_NEED_FRTX
	.comm	_ESTABLISHED,4,2                ## @ESTABLISHED
	.comm	_SCTP_XMIT_NAGLE_DELAY,4,2      ## @SCTP_XMIT_NAGLE_DELAY
	.no_dead_strip	_sctp_packet_can_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_can_append_data
_sctp_packet_can_append_data:           ; @sctp_packet_can_append_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _SCTP_XMIT_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_XMIT_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x23, [x0, #8]
	ldr	x21, [x23, #24]
	ldp	x26, x24, [x21, #8]
	ldr	x25, [x23]
	mov	x0, x1
	bl	_sctp_data_size
	cmp	x0, x26
	ccmp	x24, #0, #4, hi
	b.ne	LBB0_9
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _SCTP_NEED_FRTX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCTP_NEED_FRTX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x23, #8]
	cmp	x25, x8
	b.hs	LBB0_9
LBB0_3:
	ldr	w0, [x21]
	bl	_sctp_sk
	ldr	w8, [x0]
	cbnz	w8, LBB0_10
; %bb.4:
	mov	x0, x22
	bl	_sctp_packet_empty
	cbz	x0, LBB0_10
; %bb.5:
	cbz	x24, LBB0_10
; %bb.6:
Lloh6:
	adrp	x8, _ESTABLISHED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ESTABLISHED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sctp_state
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w8, [x23, #16]
	ldr	w9, [x22]
	sub	w8, w8, w9
	ldr	x9, [x20, #16]
	ldr	w9, [x9]
	ldr	w10, [x21, #24]
	add	w9, w10, w9
	cmp	w9, w8
	b.hs	LBB0_10
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _SCTP_XMIT_NAGLE_DELAY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SCTP_XMIT_NAGLE_DELAY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w19, w19, w9, eq
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _SCTP_XMIT_RWND_FULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCTP_XMIT_RWND_FULL@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_XMIT_OK,4,2               ; @SCTP_XMIT_OK
	.comm	_SCTP_XMIT_RWND_FULL,4,2        ; @SCTP_XMIT_RWND_FULL
	.comm	_SCTP_NEED_FRTX,8,3             ; @SCTP_NEED_FRTX
	.comm	_ESTABLISHED,4,2                ; @ESTABLISHED
	.comm	_SCTP_XMIT_NAGLE_DELAY,4,2      ; @SCTP_XMIT_NAGLE_DELAY
	.no_dead_strip	_sctp_packet_can_append_data
.subsections_via_symbols
