	.file	"extr_wlan.c_wlan_set_event_mask.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	wlan_set_event_mask
	.type	wlan_set_event_mask, @function
wlan_set_event_mask:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, edi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR HCI_EVNT_WLAN_TX_COMPLETE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, edi
	and	eax, esi
	cmp	edi, eax
	je	.L9
	mov	DWORD PTR tSLInformation[rip], 1
.L4:
	mov	eax, DWORD PTR EFAIL[rip]
	mov	rbp, QWORD PTR tSLInformation[rip+8]
	mov	DWORD PTR 4[rsp], eax
	movsx	rax, DWORD PTR HEADERS_SIZE_CMD[rip]
	lea	rdi, 0[rbp+rax*4]
	call	UINT32_TO_STREAM@PLT
	mov	edx, DWORD PTR WLAN_SET_MASK_PARAMS_LEN[rip]
	mov	edi, DWORD PTR HCI_CMND_EVENT_MASK[rip]
	mov	rsi, rbp
	call	hci_command_send@PLT
	mov	edi, DWORD PTR HCI_CMND_EVENT_MASK[rip]
	lea	rsi, 4[rsp]
	call	SimpleLinkWaitEvent@PLT
	mov	eax, DWORD PTR 4[rsp]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	DWORD PTR tSLInformation[rip], 0
	xor	eax, eax
	cmp	edi, esi
	je	.L1
	not	edi
	and	esi, edi
	or	esi, DWORD PTR HCI_EVNT_WLAN_UNSOL_BASE[rip]
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wlan_set_event_mask, .-wlan_set_event_mask
	.comm	tSLInformation,16,16
	.comm	WLAN_SET_MASK_PARAMS_LEN,4,4
	.comm	HEADERS_SIZE_CMD,4,4
	.comm	HCI_EVNT_WLAN_UNSOL_BASE,4,4
	.comm	HCI_EVNT_WLAN_TX_COMPLETE,4,4
	.comm	HCI_CMND_EVENT_MASK,4,4
	.comm	EFAIL,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_wlan.c_wlan_set_event_mask.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wlan_set_event_mask
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlan_set_event_mask, %function
wlan_set_event_mask:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L11
	ldr	r2, .L11+4
	sub	sp, sp, #12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldr	r2, [r3]
	mov	r1, r0
	bics	r3, r2, r0
	beq	.L9
	mov	r2, #1
	ldr	r3, .L11+8
	str	r2, [r3]
.L4:
	ldr	r0, .L11+12
	ldr	r2, .L11+16
	ldr	r5, [r3, #4]
	ldr	r0, [r0]
	ldr	r3, [r2]
	add	r0, r5, r0, lsl #2
	ldr	r4, .L11+20
	str	r3, [sp]
	bl	UINT32_TO_STREAM
	ldr	r3, .L11+24
	mov	r1, r5
	ldr	r2, [r3]
	ldr	r0, [r4]
	bl	hci_command_send
	mov	r1, sp
	ldr	r0, [r4]
	bl	SimpleLinkWaitEvent
	ldr	r0, [sp]
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	mov	r0, #0
	ldr	r3, .L11+8
	cmp	r2, r1
	str	r0, [r3]
	beq	.L1
	ldr	r0, .L11+28
	bic	r1, r1, r2
	ldr	r0, [r0]
	orr	r1, r1, r0
	b	.L4
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	HCI_EVNT_WLAN_TX_COMPLETE
	.word	.LC0
	.word	tSLInformation
	.word	HEADERS_SIZE_CMD
	.word	EFAIL
	.word	HCI_CMND_EVENT_MASK
	.word	WLAN_SET_MASK_PARAMS_LEN
	.word	HCI_EVNT_WLAN_UNSOL_BASE
	.size	wlan_set_event_mask, .-wlan_set_event_mask
	.comm	tSLInformation,8,4
	.comm	WLAN_SET_MASK_PARAMS_LEN,4,4
	.comm	HEADERS_SIZE_CMD,4,4
	.comm	HCI_EVNT_WLAN_UNSOL_BASE,4,4
	.comm	HCI_EVNT_WLAN_TX_COMPLETE,4,4
	.comm	HCI_CMND_EVENT_MASK,4,4
	.comm	EFAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
