	.file	"extr_Proto_SSTP.c_SstpParseAttribute.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SstpParseAttribute
	.type	SstpParseAttribute, @function
SstpParseAttribute:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	rdi, rdi
	je	.L6
	mov	ebp, esi
	test	esi, esi
	je	.L6
	mov	rbx, rdi
	mov	edi, 16
	call	ZeroMalloc@PLT
	mov	r12, rax
	cmp	ebp, 3
	jle	.L8
	mov	eax, DWORD PTR 4[rbx]
	lea	rdi, 8[rbx]
	sub	ebp, 6
	mov	DWORD PTR 12[r12], eax
	call	READ_USHORT@PLT
	mov	esi, eax
	and	esi, 4095
	mov	DWORD PTR [r12], esi
	test	eax, 4092
	je	.L8
	sub	esi, 4
	mov	DWORD PTR 4[r12], esi
	cmp	esi, ebp
	jg	.L8
	lea	rdi, 24[rbx]
	call	Clone@PLT
	mov	DWORD PTR 8[r12], eax
	mov	rax, r12
	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
.L8:
	.cfi_restore_state
	mov	rdi, r12
	xor	r12d, r12d
	call	SstpFreeAttribute@PLT
	mov	rax, r12
	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
.L6:
	.cfi_restore_state
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	SstpParseAttribute, .-SstpParseAttribute
	.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_Proto_SSTP.c_SstpParseAttribute.c"
	.text
	.align	2
	.global	SstpParseAttribute
	.syntax unified
	.arm
	.fpu softvfp
	.type	SstpParseAttribute, %function
SstpParseAttribute:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r1
	cmp	r0, #0
	lsr	r3, r3, #5
	push	{r4, r5, r6, r7, r8, lr}
	movne	r6, r3
	moveq	r6, #1
	cmp	r6, #0
	movne	r4, #0
	bne	.L1
	mov	r5, r1
	mov	r7, r0
	mov	r0, #16
	bl	ZeroMalloc
	cmp	r5, #3
	mov	r4, r0
	ble	.L8
	ldr	r3, [r7, #4]
	add	r0, r7, #8
	str	r3, [r4, #12]
	bl	READ_USHORT
	ldr	r8, .L12
	lsl	r3, r0, #20
	and	r8, r8, r0
	lsr	r3, r3, #20
	cmp	r8, #0
	sub	r2, r5, #6
	str	r3, [r4]
	beq	.L10
	sub	r1, r3, #4
	cmp	r1, r2
	str	r1, [r4, #4]
	bgt	.L11
	add	r0, r7, #24
	bl	Clone
	str	r0, [r4, #8]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r0, r4
.L8:
	mov	r4, r6
	bl	SstpFreeAttribute
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r4
	bl	SstpFreeAttribute
	mov	r4, r8
	b	.L1
.L13:
	.align	2
.L12:
	.word	4092
	.size	SstpParseAttribute, .-SstpParseAttribute
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
