	.file	"extr_core.c_nci_send_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"opcode 0x%x, plen %d\n"
.LC1:
	.string	"no memory for command\n"
	.text
	.p2align 4
	.globl	nci_send_cmd
	.type	nci_send_cmd, @function
nci_send_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	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
	lea	rdi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	pr_debug@PLT
	mov	rsi, QWORD PTR NCI_CTRL_HDR_SIZE[rip]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r13
	add	rsi, r12
	call	nci_skb_alloc@PLT
	test	rax, rax
	je	.L10
	mov	rsi, QWORD PTR NCI_CTRL_HDR_SIZE[rip]
	mov	rdi, rax
	mov	r14, rax
	call	skb_put@PLT
	mov	edi, ebx
	mov	rbp, rax
	call	nci_opcode_gid@PLT
	mov	edi, ebx
	mov	DWORD PTR 12[rbp], eax
	call	nci_opcode_oid@PLT
	mov	QWORD PTR 0[rbp], r12
	mov	esi, DWORD PTR NCI_MT_CMD_PKT[rip]
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	call	nci_mt_set@PLT
	mov	esi, DWORD PTR NCI_PBF_LAST[rip]
	mov	rdi, rbp
	call	nci_pbf_set@PLT
	test	r12, r12
	jne	.L11
.L4:
	lea	rdi, 8[r13]
	mov	rsi, r14
	call	skb_queue_tail@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	rsi, r13
	call	queue_work@PLT
	add	rsp, 8
	.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
.L11:
	.cfi_restore_state
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, r14
	call	skb_put_data@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.cfi_endproc
.LFE0:
	.size	nci_send_cmd, .-nci_send_cmd
	.comm	NCI_PBF_LAST,4,4
	.comm	NCI_MT_CMD_PKT,4,4
	.comm	NCI_CTRL_HDR_SIZE,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_core.c_nci_send_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"opcode 0x%x, plen %d\012\000"
	.align	2
.LC1:
	.ascii	"no memory for command\012\000"
	.text
	.align	2
	.global	nci_send_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	nci_send_cmd, %function
nci_send_cmd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	mov	r6, r0
	ldr	r4, .L12
	ldr	r0, .L12+4
	mov	r9, r3
	mov	r8, r1
	bl	pr_debug
	ldr	r1, [r4]
	ldr	r3, .L12+8
	mov	r0, r6
	ldr	r2, [r3]
	add	r1, r5, r1
	bl	nci_skb_alloc
	subs	r7, r0, #0
	beq	.L10
	ldr	r1, [r4]
	bl	skb_put
	mov	r4, r0
	mov	r0, r8
	bl	nci_opcode_gid
	mov	r3, r0
	mov	r0, r8
	str	r3, [r4, #8]
	bl	nci_opcode_oid
	ldr	r3, .L12+12
	str	r0, [r4, #4]
	ldr	r1, [r3]
	mov	r0, r4
	str	r5, [r4]
	bl	nci_mt_set
	ldr	r3, .L12+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	nci_pbf_set
	cmp	r5, #0
	bne	.L11
.L4:
	mov	r1, r7
	add	r0, r6, #8
	bl	skb_queue_tail
	mov	r1, r6
	ldr	r0, [r6, #4]
	bl	queue_work
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r2, r5
	mov	r1, r9
	mov	r0, r7
	bl	skb_put_data
	b	.L4
.L10:
	ldr	r0, .L12+20
	bl	pr_err
	ldr	r3, .L12+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	NCI_CTRL_HDR_SIZE
	.word	.LC0
	.word	GFP_KERNEL
	.word	NCI_MT_CMD_PKT
	.word	NCI_PBF_LAST
	.word	.LC1
	.word	ENOMEM
	.size	nci_send_cmd, .-nci_send_cmd
	.comm	NCI_PBF_LAST,4,4
	.comm	NCI_MT_CMD_PKT,4,4
	.comm	NCI_CTRL_HDR_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
