	.file	"extr_core.c_cmtp_recv_frame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"session %p skb %p len %d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"hdr 0x%02x hdrlen %d len %d id %d"
	.align 8
.LC2:
	.string	"Wrong size or header information in CMTP frame"
	.text
	.p2align 4
	.type	cmtp_recv_frame, @function
cmtp_recv_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdx, rsi
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rcx, QWORD PTR [rsi]
	mov	rsi, rdi
	lea	rdi, .LC0[rip]
	call	BT_DBG@PLT
.L28:
	cmp	QWORD PTR [r12], 0
	jle	.L3
.L31:
	mov	rax, QWORD PTR 8[r12]
	mov	ebp, DWORD PTR [rax]
	mov	edx, ebp
	and	edx, 192
	cmp	edx, 64
	je	.L4
	cmp	edx, 128
	jne	.L30
	mov	ecx, DWORD PTR 8[rax]
	mov	r13d, 3
	sal	ecx, 8
	or	ecx, DWORD PTR 4[rax]
	lea	r14d, 3[rcx]
	movsx	r9, r14d
.L7:
	mov	r15d, ebp
	xor	eax, eax
	mov	edx, r13d
	mov	esi, ebp
	sar	r15d, 2
	lea	rdi, .LC1[rip]
	mov	QWORD PTR 8[rsp], r9
	and	r15d, 15
	mov	DWORD PTR 4[rsp], ecx
	mov	r8d, r15d
	call	BT_DBG@PLT
	mov	r9, QWORD PTR 8[rsp]
	cmp	QWORD PTR [r12], r9
	mov	ecx, DWORD PTR 4[rsp]
	jl	.L17
	test	ecx, ecx
	je	.L18
	and	ebp, 3
	je	.L11
	cmp	ebp, 1
	je	.L12
	mov	rax, QWORD PTR [rbx]
	movsx	rbp, r15d
	sal	rbp, 3
	add	rax, rbp
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L15
	call	kfree_skb@PLT
	mov	rax, QWORD PTR [rbx]
	add	rax, rbp
.L15:
	mov	QWORD PTR [rax], 0
.L14:
	mov	esi, r14d
	mov	rdi, r12
	call	skb_pull@PLT
	cmp	QWORD PTR [r12], 0
	jg	.L31
.L3:
	mov	rdi, r12
	call	kfree_skb@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	r8d, ebp
	xor	ecx, ecx
	xor	eax, eax
	mov	edx, 1
	sar	r8d, 2
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	and	r8d, 15
	call	BT_DBG@PLT
	cmp	QWORD PTR [r12], 0
	jg	.L32
.L17:
	lea	rdi, .LC2[rip]
	call	BT_ERR@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, DWORD PTR 4[rax]
	mov	r13d, 2
	lea	r14d, 2[rcx]
	movsx	r9, r14d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR 8[r12]
	mov	esi, r15d
	mov	rdi, rbx
	lea	rdx, [rax+r13*4]
	call	cmtp_add_msgpart@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 8[r12]
	mov	esi, r15d
	mov	rdi, rbx
	movsx	r15, r15d
	lea	rdx, [rax+r13*4]
	call	cmtp_add_msgpart@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdi, rbx
	mov	rsi, QWORD PTR [rax+r15*8]
	call	cmtp_recv_capimsg@PLT
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR [rax+r15*8], 0
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L32:
	mov	r13d, 1
.L18:
	mov	esi, r13d
	mov	rdi, r12
	call	skb_pull@PLT
	jmp	.L28
	.cfi_endproc
.LFE0:
	.size	cmtp_recv_frame, .-cmtp_recv_frame
	.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_core.c_cmtp_recv_frame.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"session %p skb %p len %d\000"
	.align	2
.LC1:
	.ascii	"hdr 0x%02x hdrlen %d len %d id %d\000"
	.align	2
.LC2:
	.ascii	"Wrong size or header information in CMTP frame\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmtp_recv_frame, %function
cmtp_recv_frame:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r8, r0
	mov	r1, r0
	ldr	r3, [r5]
	mov	r2, r5
	ldr	r0, .L30
	sub	sp, sp, #12
	bl	BT_DBG
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L3
	ldr	r10, .L30+4
	b	.L2
.L5:
	mov	r9, #3
	ldr	r3, [r1, #8]
	ldr	r7, [r1, #4]
	orr	r7, r7, r3, lsl #8
	add	fp, r7, r9
.L7:
	asr	r6, r4, #2
	and	r6, r6, #15
	mov	r3, r7
	mov	r2, r9
	mov	r1, r4
	mov	r0, r10
	str	r6, [sp]
	bl	BT_DBG
	ldr	r3, [r5]
	cmp	r3, fp
	blt	.L17
	cmp	r7, #0
	beq	.L18
	ands	r4, r4, #3
	beq	.L11
	cmp	r4, #1
	beq	.L12
	ldr	r3, [r8]
	lsl	r4, r6, #2
	ldr	r0, [r3, r6, lsl #2]
	add	r6, r3, r6, lsl #2
	cmp	r0, #0
	beq	.L15
	bl	kfree_skb
	ldr	r6, [r8]
	add	r6, r6, r4
.L15:
	mov	r3, #0
	str	r3, [r6]
.L14:
	mov	r1, fp
	mov	r0, r5
	bl	skb_pull
.L10:
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L3
.L2:
	ldr	r1, [r5, #4]
	ldr	r4, [r1]
	and	r3, r4, #192
	cmp	r3, #64
	beq	.L4
	cmp	r3, #128
	beq	.L5
	asr	r3, r4, #2
	and	r3, r3, #15
	str	r3, [sp]
	mov	r1, r4
	mov	r3, #0
	mov	r2, #1
	mov	r0, r10
	bl	BT_DBG
	ldr	r3, [r5]
	cmp	r3, #0
	bgt	.L29
.L17:
	ldr	r0, .L30+8
	bl	BT_ERR
.L3:
	mov	r0, r5
	bl	kfree_skb
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	mov	r9, #2
	ldr	r7, [r1, #4]
	add	fp, r7, r9
	b	.L7
.L12:
	ldr	r2, [r5, #4]
	mov	r3, r7
	mov	r1, r6
	mov	r0, r8
	add	r2, r2, r9, lsl #2
	bl	cmtp_add_msgpart
	b	.L14
.L11:
	ldr	r2, [r5, #4]
	mov	r3, r7
	mov	r1, r6
	add	r2, r2, r9, lsl #2
	mov	r0, r8
	bl	cmtp_add_msgpart
	ldr	r3, [r8]
	mov	r0, r8
	ldr	r1, [r3, r6, lsl #2]
	bl	cmtp_recv_capimsg
	ldr	r3, [r8]
	str	r4, [r3, r6, lsl #2]
	b	.L14
.L29:
	mov	r9, #1
.L18:
	mov	r1, r9
	mov	r0, r5
	bl	skb_pull
	b	.L10
.L31:
	.align	2
.L30:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	cmtp_recv_frame, .-cmtp_recv_frame
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
