	.file	"extr_hci_event.c_hci_get_cmd_complete.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"too short HCI event"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"last event is not cmd complete (0x%2.2x)"
	.section	.rodata.str1.1
.LC2:
	.string	"too short cmd_complete event"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"opcode doesn't match (0x%2.2x != 0x%2.2x)"
	.text
	.p2align 4
	.type	hci_get_cmd_complete, @function
hci_get_cmd_complete:
.LFB0:
	.cfi_startproc
	endbr64
	test	rcx, rcx
	je	.L15
	cmp	DWORD PTR [rcx], 7
	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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	jbe	.L16
	mov	r13, rsi
	mov	esi, DWORD PTR HCI_EVENT_HDR_SIZE[rip]
	mov	rbx, rdx
	mov	rdi, rcx
	mov	r14, QWORD PTR 8[rcx]
	call	skb_pull@PLT
	test	rbx, rbx
	je	.L5
	xor	eax, eax
	cmp	QWORD PTR [r14], rbx
	sete	al
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	mov	rdx, QWORD PTR [r14]
	cmp	rdx, QWORD PTR HCI_EV_CMD_STATUS[rip]
	je	.L13
	cmp	rdx, QWORD PTR HCI_EV_CMD_COMPLETE[rip]
	jne	.L17
	cmp	DWORD PTR 0[rbp], 3
	jbe	.L18
	mov	rbx, QWORD PTR 8[rbp]
	mov	esi, 4
	mov	rdi, rbp
	call	skb_pull@PLT
	mov	edi, DWORD PTR [rbx]
	call	__le16_to_cpu@PLT
	mov	r8, rax
	mov	eax, 1
	cmp	r8, r13
	je	.L1
	mov	edi, DWORD PTR [rbx]
	call	__le16_to_cpu@PLT
	mov	rsi, r13
	lea	rdi, .LC3[rip]
	mov	rdx, rax
	call	BT_DBG@PLT
.L13:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L16:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	bt_dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L17:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	xor	eax, eax
	call	bt_dev_err@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	xor	eax, eax
	call	bt_dev_err@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	hci_get_cmd_complete, .-hci_get_cmd_complete
	.comm	HCI_EV_CMD_STATUS,8,8
	.comm	HCI_EV_CMD_COMPLETE,8,8
	.comm	HCI_EVENT_HDR_SIZE,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_hci_event.c_hci_get_cmd_complete.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"too short HCI event\000"
	.align	2
.LC1:
	.ascii	"last event is not cmd complete (0x%2.2x)\000"
	.align	2
.LC2:
	.ascii	"too short cmd_complete event\000"
	.align	2
.LC3:
	.ascii	"opcode doesn't match (0x%2.2x != 0x%2.2x)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hci_get_cmd_complete, %function
hci_get_cmd_complete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r3, #0
	beq	.L11
	ldr	r3, [r4]
	cmp	r3, #3
	bls	.L13
	mov	r6, r2
	ldr	r3, .L18
	mov	r7, r1
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r8, [r4, #4]
	bl	skb_pull
	cmp	r6, #0
	bne	.L14
	ldr	r3, .L18+4
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L11
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L15
	ldr	r3, [r4]
	cmp	r3, #3
	bls	.L16
	ldr	r5, [r4, #4]
	mov	r1, #4
	mov	r0, r4
	bl	skb_pull
	ldr	r0, [r5]
	bl	__le16_to_cpu
	cmp	r0, r7
	bne	.L17
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r1, .L18+12
	bl	bt_dev_err
.L11:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r0, [r8]
	sub	r0, r0, r6
	clz	r0, r0
	lsr	r0, r0, #5
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, r5
	ldr	r1, .L18+16
	bl	bt_dev_err
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r0, r5
	ldr	r1, .L18+20
	bl	bt_dev_err
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r0, [r5]
	bl	__le16_to_cpu
	mov	r1, r7
	mov	r2, r0
	ldr	r0, .L18+24
	bl	BT_DBG
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	HCI_EVENT_HDR_SIZE
	.word	HCI_EV_CMD_STATUS
	.word	HCI_EV_CMD_COMPLETE
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	hci_get_cmd_complete, .-hci_get_cmd_complete
	.comm	HCI_EV_CMD_STATUS,4,4
	.comm	HCI_EV_CMD_COMPLETE,4,4
	.comm	HCI_EVENT_HDR_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
