	.file	"extr_event.c_wl1271_event_handle.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EVENT on mbox %d"
	.text
	.p2align 4
	.globl	wl1271_event_handle
	.type	wl1271_event_handle, @function
wl1271_event_handle:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movsx	rbx, esi
	lea	rsi, .LC0[rip]
	mov	edx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR DEBUG_EVENT[rip]
	call	wl1271_debug@PLT
	cmp	ebx, 1
	jle	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbp]
	mov	ecx, DWORD PTR 8[rbp]
	xor	r8d, r8d
	mov	rdi, rbp
	mov	edx, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR [rax+rbx*4]
	call	wlcore_read@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	rax, QWORD PTR 8[rax]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	rax
	.cfi_endproc
.LFE0:
	.size	wl1271_event_handle, .-wl1271_event_handle
	.comm	EINVAL,4,4
	.comm	DEBUG_EVENT,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_event.c_wl1271_event_handle.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EVENT on mbox %d\000"
	.text
	.align	2
	.global	wl1271_event_handle
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl1271_event_handle, %function
wl1271_event_handle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, r1
	ldr	r3, .L6
	mov	r2, r1
	mov	r4, r0
	ldr	r1, .L6+4
	ldr	r0, [r3]
	sub	sp, sp, #12
	bl	wl1271_debug
	cmp	r5, #1
	ble	.L2
	ldr	r3, .L6+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	mov	r0, #0
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #4]
	ldr	r1, [r2, r5, lsl #2]
	ldr	r2, [r4, #8]
	str	r0, [sp]
	mov	r0, r4
	bl	wlcore_read
	cmp	r0, #0
	blt	.L1
	ldr	r3, [r4]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	cmp	r0, #0
	blt	.L1
	mov	r0, r4
	ldr	r3, [r4]
	ldr	r3, [r3, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	bx	r3
.L7:
	.align	2
.L6:
	.word	DEBUG_EVENT
	.word	.LC0
	.word	EINVAL
	.size	wl1271_event_handle, .-wl1271_event_handle
	.comm	EINVAL,4,4
	.comm	DEBUG_EVENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
