	.file	"extr_llcp_commands.c_nfc_llcp_send_cc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Sending CC\n"
.LC1:
	.string	"error %d\n"
	.text
	.p2align 4
	.globl	nfc_llcp_send_cc
	.type	nfc_llcp_send_cc, @function
nfc_llcp_send_cc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	pr_debug@PLT
	mov	r12, QWORD PTR 16[rbp]
	test	r12, r12
	je	.L19
	mov	edi, DWORD PTR 8[rbp]
	call	be16_to_cpu@PLT
	cmp	rax, QWORD PTR LLCP_MAX_MIUX[rip]
	jg	.L20
	mov	eax, DWORD PTR 8[rbp]
.L5:
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR LLCP_MAX_RW[rip]
	jle	.L6
	mov	rax, QWORD PTR 8[r12]
.L6:
	mov	edi, DWORD PTR LLCP_TLV_MIUX[rip]
	lea	rcx, 16[rsp]
	lea	rsi, 12[rsp]
	xor	edx, edx
	mov	QWORD PTR 32[rsp], rax
	call	nfc_llcp_build_tlv@PLT
	mov	r13, rax
	test	rax, rax
	je	.L21
	mov	edi, DWORD PTR LLCP_TLV_RW[rip]
	lea	rcx, 24[rsp]
	lea	rsi, 32[rsp]
	xor	edx, edx
	mov	rbx, QWORD PTR 16[rsp]
	call	nfc_llcp_build_tlv@PLT
	mov	r14, rax
	test	rax, rax
	je	.L17
	mov	edx, DWORD PTR 24[rsp]
	mov	esi, DWORD PTR LLCP_PDU_CC[rip]
	mov	rdi, rbp
	add	edx, ebx
	call	llcp_allocate_pdu@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L17
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r13
	mov	rdi, rax
	call	llcp_add_tlv@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, r14
	mov	rdi, rbp
	call	llcp_add_tlv@PLT
	mov	rdi, r12
	mov	rsi, rbp
	xor	r12d, r12d
	call	skb_queue_tail@PLT
.L11:
	mov	rdi, r13
	call	kfree@PLT
	mov	rdi, r14
	call	kfree@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	eax, DWORD PTR 16[r12]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L8:
	test	r12d, r12d
	je	.L11
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r12d, DWORD PTR ENOMEM[rip]
	xor	r14d, r14d
	neg	r12d
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nfc_llcp_send_cc, .-nfc_llcp_send_cc
	.comm	LLCP_TLV_RW,4,4
	.comm	LLCP_TLV_MIUX,4,4
	.comm	LLCP_PDU_CC,4,4
	.comm	LLCP_MAX_RW,8,8
	.comm	LLCP_MAX_MIUX,8,8
	.comm	ENOMEM,4,4
	.comm	ENODEV,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_llcp_commands.c_nfc_llcp_send_cc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Sending CC\012\000"
	.align	2
.LC1:
	.ascii	"error %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nfc_llcp_send_cc
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfc_llcp_send_cc, %function
nfc_llcp_send_cc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L22
	sub	sp, sp, #24
	ldr	r0, .L22+4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	pr_debug
	ldr	r7, [r4, #8]
	cmp	r7, #0
	beq	.L19
	ldr	r0, [r4, #4]
	bl	be16_to_cpu
	ldr	r3, .L22+8
	ldr	ip, [r4]
	ldr	r3, [r3]
	add	r1, sp, #16
	cmp	r0, r3
	ldr	r3, .L22+12
	ldrgt	r2, [r7, #8]
	ldrle	r2, [r4, #4]
	ldr	r3, [r3]
	str	r2, [sp, #16]
	cmp	ip, r3
	ldr	r2, .L22+16
	ldrgt	ip, [r7, #4]
	ldr	r0, [r2]
	add	r3, sp, #4
	mov	r2, #0
	str	ip, [sp, #12]
	bl	nfc_llcp_build_tlv
	subs	r5, r0, #0
	beq	.L20
	ldr	r2, .L22+20
	add	r3, sp, #8
	ldr	r0, [r2]
	add	r1, sp, #12
	mov	r2, #0
	ldr	r8, [sp, #4]
	bl	nfc_llcp_build_tlv
	subs	r6, r0, #0
	beq	.L17
	ldr	r2, [sp, #8]
	ldr	r3, .L22+24
	mov	r0, r4
	ldr	r1, [r3]
	add	r2, r8, r2
	bl	llcp_allocate_pdu
	subs	r4, r0, #0
	beq	.L17
	mov	r1, r5
	ldr	r2, [sp, #4]
	bl	llcp_add_tlv
	mov	r1, r6
	mov	r0, r4
	ldr	r2, [sp, #8]
	bl	llcp_add_tlv
	mov	r1, r4
	mov	r0, r7
	bl	skb_queue_tail
	mov	r4, #0
.L11:
	mov	r0, r5
	bl	kfree
	mov	r0, r6
	bl	kfree
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	mov	r6, r5
	ldr	r3, .L22+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L8:
	cmp	r4, #0
	beq	.L11
	mov	r1, r4
	ldr	r0, .L22+32
	bl	pr_err
	b	.L11
.L19:
	ldr	r3, .L22+36
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L17:
	ldr	r3, .L22+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L8
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	.LC0
	.word	LLCP_MAX_MIUX
	.word	LLCP_MAX_RW
	.word	LLCP_TLV_MIUX
	.word	LLCP_TLV_RW
	.word	LLCP_PDU_CC
	.word	ENOMEM
	.word	.LC1
	.word	ENODEV
	.size	nfc_llcp_send_cc, .-nfc_llcp_send_cc
	.comm	LLCP_TLV_RW,4,4
	.comm	LLCP_TLV_MIUX,4,4
	.comm	LLCP_PDU_CC,4,4
	.comm	LLCP_MAX_RW,4,4
	.comm	LLCP_MAX_MIUX,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
