	.file	"extr_sctp_output.c_sctp_get_frag_point.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sctp_get_frag_point
	.type	sctp_get_frag_point, @function
sctp_get_frag_point:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 16[rdi]
	mov	rbx, rdi
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR SCTP_PCB_FLAGS_BOUND_V6[rip], eax
	mov	eax, DWORD PTR SCTP_MIN_OVERHEAD[rip]
	cmove	eax, DWORD PTR SCTP_MIN_V4_OVERHEAD[rip]
	mov	r12d, eax
	call	SCTP_DATA_CHUNK_OVERHEAD@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	edx, DWORD PTR 0[rbp]
	add	eax, r12d
	mov	edi, DWORD PTR SCTP_DATA[rip]
	mov	esi, edx
	mov	r12d, ecx
	sub	esi, eax
	sub	r12d, eax
	cmp	ecx, edx
	cmovg	r12d, esi
	mov	esi, DWORD PTR 8[rbx]
	call	sctp_auth_is_required_chunk@PLT
	mov	r8, rax
	mov	eax, r12d
	test	r8, r8
	jne	.L17
.L6:
	test	al, 3
	je	.L1
	mov	edx, r12d
	sar	edx, 31
	shr	edx, 30
	lea	eax, [r12+rdx]
	and	eax, 3
	sub	eax, edx
	sub	r12d, eax
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	call	sctp_get_auth_chunk_len@PLT
	sub	r12d, eax
	mov	eax, r12d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	sctp_get_frag_point, .-sctp_get_frag_point
	.comm	SCTP_PCB_FLAGS_BOUND_V6,4,4
	.comm	SCTP_MIN_V4_OVERHEAD,4,4
	.comm	SCTP_MIN_OVERHEAD,4,4
	.comm	SCTP_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sctp_output.c_sctp_get_frag_point.c"
	.text
	.align	2
	.global	sctp_get_frag_point
	.syntax unified
	.arm
	.fpu softvfp
	.type	sctp_get_frag_point, %function
sctp_get_frag_point:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #12]
	ldr	r3, .L17
	ldr	r2, [r2]
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	tst	r2, r3
	ldrne	r3, .L17+4
	ldreq	r3, .L17+8
	mov	r6, r0
	mov	r7, r1
	ldr	r5, [r3]
	bl	SCTP_DATA_CHUNK_OVERHEAD
	ldr	r3, [r7]
	ldr	r4, [r6]
	add	r5, r5, r0
	cmp	r4, r3
	subgt	r5, r3, r5
	ldr	r3, .L17+12
	ldr	r1, [r6, #8]
	ldr	r0, [r3]
	suble	r5, r4, r5
	bl	sctp_auth_is_required_chunk
	cmp	r0, #0
	bne	.L16
.L6:
	ands	r3, r5, #3
	beq	.L1
	rsbs	r2, r5, #0
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	sub	r5, r5, r3
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r0, [r6, #4]
	bl	sctp_get_auth_chunk_len
	sub	r5, r5, r0
	b	.L6
.L18:
	.align	2
.L17:
	.word	SCTP_PCB_FLAGS_BOUND_V6
	.word	SCTP_MIN_OVERHEAD
	.word	SCTP_MIN_V4_OVERHEAD
	.word	SCTP_DATA
	.size	sctp_get_frag_point, .-sctp_get_frag_point
	.comm	SCTP_PCB_FLAGS_BOUND_V6,4,4
	.comm	SCTP_MIN_V4_OVERHEAD,4,4
	.comm	SCTP_MIN_OVERHEAD,4,4
	.comm	SCTP_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
