	.file	"extr_cfrfml.c_cfrfml_transmit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Connection error %d triggered on RFM link\n"
	.text
	.p2align 4
	.type	cfrfml_transmit, @function
cfrfml_transmit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	container_obj@PLT
	xor	edi, edi
	cmp	QWORD PTR 8[r13], 0
	setne	dil
	mov	rbx, rax
	call	caif_assert@PLT
	mov	rax, QWORD PTR 8[r13]
	xor	edi, edi
	cmp	QWORD PTR [rax], 0
	setne	dil
	call	caif_assert@PLT
	lea	rsi, 8[rsp]
	lea	rdi, 8[rbx]
	call	cfsrvl_ready@PLT
	test	eax, eax
	jne	.L23
.L2:
	mov	eax, DWORD PTR 8[rsp]
	test	eax, eax
	jne	.L7
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L23:
	.cfi_restore_state
	mov	eax, DWORD PTR EPROTO[rip]
	mov	rdi, rbp
	neg	eax
	mov	DWORD PTR 8[rsp], eax
	call	cfpkt_getlen@PLT
	mov	r8, rax
	mov	eax, DWORD PTR RFM_HEAD_SIZE[rip]
	sub	eax, 1
	cdqe
	cmp	r8, rax
	jle	.L2
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], 0
	call	cfpkt_getlen@PLT
	mov	r8, rax
	movsx	rax, DWORD PTR RFM_HEAD_SIZE[rip]
	add	rax, QWORD PTR [rbx]
	cmp	r8, rax
	jg	.L5
	mov	eax, DWORD PTR 8[rsp]
.L6:
	test	eax, eax
	js	.L7
	lea	r14, 12[rsp]
	lea	r15, 16[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR EPROTO[rip]
	mov	edx, 1
	mov	rsi, r14
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], 1
	neg	eax
	mov	DWORD PTR 8[rsp], eax
	call	cfpkt_add_head@PLT
	test	rax, rax
	js	.L2
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	call	cfpkt_split@PLT
	mov	r12, rax
	test	rax, rax
	je	.L2
	mov	rsi, rbp
	mov	rdi, rbx
	call	cfrfml_transmit_segment@PLT
	mov	DWORD PTR 8[rsp], eax
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR EPROTO[rip]
	mov	edx, 6
	mov	rsi, r15
	mov	rdi, r12
	neg	eax
	mov	DWORD PTR 8[rsp], eax
	call	cfpkt_add_head@PLT
	test	rax, rax
	js	.L12
	mov	rbp, r12
.L8:
	mov	rdi, rbp
	call	cfpkt_getlen@PLT
	mov	r8, rax
	movsx	rax, DWORD PTR RFM_HEAD_SIZE[rip]
	add	rax, QWORD PTR [rbx]
	cmp	r8, rax
	jg	.L13
	mov	eax, DWORD PTR EPROTO[rip]
	mov	edx, 1
	mov	rsi, r14
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], 0
	neg	eax
	mov	DWORD PTR 8[rsp], eax
	call	cfpkt_add_head@PLT
	test	rax, rax
	js	.L2
	mov	rsi, rbp
	mov	rdi, rbx
	call	cfrfml_transmit_segment@PLT
	mov	DWORD PTR 8[rsp], eax
	test	eax, eax
	je	.L1
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND[rip]
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rsi, 16[rsp]
	mov	edx, 6
	mov	rdi, rbp
	call	cfpkt_peek_head@PLT
	mov	DWORD PTR 8[rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND[rip]
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	mov	rdi, r12
	call	cfpkt_destroy@PLT
	mov	eax, DWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND[rip]
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	test	rbp, rbp
	je	.L19
.L17:
	mov	rdi, rbp
	call	cfpkt_destroy@PLT
	mov	eax, DWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR 8[rsp]
	test	eax, eax
	je	.L1
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	rbp, r12
	call	pr_info@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND[rip]
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	jmp	.L17
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cfrfml_transmit, .-cfrfml_transmit
	.comm	RFM_HEAD_SIZE,4,4
	.comm	EPROTO,4,4
	.comm	CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND,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_cfrfml.c_cfrfml_transmit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Connection error %d triggered on RFM link\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cfrfml_transmit, %function
cfrfml_transmit:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L25
	sub	sp, sp, #40
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r7, r0
	bl	container_obj
	mov	r6, r0
	ldr	r0, [r7, #4]
	subs	r0, r0, #0
	movne	r0, #1
	bl	caif_assert
	ldr	r3, [r7, #4]
	ldr	r0, [r3]
	subs	r0, r0, #0
	movne	r0, #1
	bl	caif_assert
	add	r0, r6, #4
	add	r1, sp, #4
	bl	cfsrvl_ready
	cmp	r0, #0
	bne	.L23
.L2:
	ldr	r0, [sp, #4]
	cmp	r0, #0
	bne	.L7
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	ldr	r8, .L25+4
	mov	r0, r4
	ldr	r3, [r8]
	ldr	r9, .L25+8
	rsb	r3, r3, #0
	str	r3, [sp, #4]
	bl	cfpkt_getlen
	ldr	r3, [r9]
	cmp	r0, r3
	blt	.L2
	mov	r3, #0
	mov	r0, r4
	str	r3, [sp, #4]
	bl	cfpkt_getlen
	ldr	r3, [r6]
	ldr	r2, [r9]
	add	r3, r3, r2
	cmp	r0, r3
	bgt	.L5
	ldr	r0, [sp, #4]
.L6:
	cmp	r0, #0
	movge	r10, #1
	bge	.L8
	b	.L7
.L13:
	ldr	r3, [r8]
	mov	r2, #1
	rsb	r3, r3, #0
	mov	r0, r4
	add	r1, sp, #8
	stmib	sp, {r3, r10}
	bl	cfpkt_add_head
	cmp	r0, #0
	blt	.L2
	mov	r0, r4
	ldr	r1, [r6]
	bl	cfpkt_split
	subs	r5, r0, #0
	beq	.L2
	mov	r1, r4
	mov	r0, r6
	bl	cfrfml_transmit_segment
	cmp	r0, #0
	str	r0, [sp, #4]
	bne	.L11
	ldr	r3, [r8]
	mov	r2, #6
	rsb	r3, r3, #0
	mov	r0, r5
	add	r1, sp, #12
	str	r3, [sp, #4]
	bl	cfpkt_add_head
	cmp	r0, #0
	blt	.L12
	mov	r4, r5
.L8:
	mov	r0, r4
	bl	cfpkt_getlen
	ldr	r3, [r6]
	ldr	r2, [r9]
	add	r3, r3, r2
	cmp	r0, r3
	bgt	.L13
	mov	ip, #0
	ldr	r3, [r8]
	mov	r2, #1
	rsb	r3, r3, #0
	mov	r0, r4
	add	r1, sp, #8
	str	r3, [sp, #4]
	str	ip, [sp, #8]
	bl	cfpkt_add_head
	cmp	r0, #0
	blt	.L2
	mov	r1, r4
	mov	r0, r6
	bl	cfrfml_transmit_segment
	cmp	r0, #0
	str	r0, [sp, #4]
	beq	.L1
	mov	r1, r0
	ldr	r0, .L25+12
	bl	pr_info
	ldr	r0, [r7]
	ldr	r1, .L25+16
	ldr	r2, [r6, #4]
	ldr	r3, [r0]
	ldr	r1, [r1]
	blx	r3
.L19:
	ldr	r0, [sp, #4]
	b	.L1
.L5:
	mov	r2, #6
	mov	r0, r4
	add	r1, sp, #12
	bl	cfpkt_peek_head
	str	r0, [sp, #4]
	b	.L6
.L11:
	mov	r1, r0
	ldr	r0, .L25+12
	bl	pr_info
	ldr	r0, [r7]
	ldr	r1, .L25+16
	ldr	r2, [r6, #4]
	ldr	r3, [r0]
	ldr	r1, [r1]
	blx	r3
	mov	r0, r5
	bl	cfpkt_destroy
	ldr	r0, [sp, #4]
	b	.L1
.L7:
	mov	r1, r0
	ldr	r0, .L25+12
	bl	pr_info
	ldr	r0, [r7]
	ldr	r1, .L25+16
	ldr	r2, [r6, #4]
	ldr	r3, [r0]
	ldr	r1, [r1]
	blx	r3
	cmp	r4, #0
	beq	.L19
.L17:
	mov	r0, r4
	bl	cfpkt_destroy
	ldr	r0, [sp, #4]
	b	.L1
.L12:
	ldr	r0, [sp, #4]
	cmp	r0, #0
	beq	.L1
	mov	r1, r0
	ldr	r0, .L25+12
	bl	pr_info
	ldr	r0, [r7]
	ldr	r1, .L25+16
	ldr	r2, [r6, #4]
	ldr	r3, [r0]
	ldr	r1, [r1]
	mov	r4, r5
	blx	r3
	b	.L17
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC1
	.word	EPROTO
	.word	RFM_HEAD_SIZE
	.word	.LC0
	.word	CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND
	.size	cfrfml_transmit, .-cfrfml_transmit
	.comm	RFM_HEAD_SIZE,4,4
	.comm	EPROTO,4,4
	.comm	CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
