	.file	"extr_smartpqi_event.c_pqisrc_ack_all_events.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" IN\n"
.LC1:
	.string	" Failed to Re-Scan devices\n "
.LC2:
	.string	" OUT\n"
	.text
	.p2align 4
	.globl	pqisrc_ack_all_events
	.type	pqisrc_ack_all_events, @function
pqisrc_ack_all_events:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	DBG_FUNC@PLT
	mov	eax, DWORD PTR PQI_NUM_SUPPORTED_EVENTS[rip]
	mov	rbx, QWORD PTR [r12]
	test	eax, eax
	jle	.L2
	xor	ebp, ebp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 4
	add	ebp, 1
	cmp	DWORD PTR PQI_NUM_SUPPORTED_EVENTS[rip], ebp
	jle	.L2
.L4:
	cmp	DWORD PTR [rbx], 1
	jne	.L3
	mov	DWORD PTR [rbx], 0
	mov	rsi, rbx
	mov	rdi, r12
	add	rbx, 4
	add	ebp, 1
	call	pqisrc_acknowledge_event@PLT
	cmp	DWORD PTR PQI_NUM_SUPPORTED_EVENTS[rip], ebp
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r12
	call	pqisrc_rescan_devices@PLT
	cmp	rax, QWORD PTR PQI_STATUS_SUCCESS[rip]
	je	.L5
	lea	rdi, .LC1[rip]
	call	DBG_ERR@PLT
.L5:
	pop	rbx
	.cfi_def_cfa_offset 24
	lea	rdi, .LC2[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	DBG_FUNC@PLT
	.cfi_endproc
.LFE0:
	.size	pqisrc_ack_all_events, .-pqisrc_ack_all_events
	.comm	PQI_STATUS_SUCCESS,8,8
	.comm	PQI_NUM_SUPPORTED_EVENTS,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_smartpqi_event.c_pqisrc_ack_all_events.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" IN\012\000"
	.align	2
.LC1:
	.ascii	" Failed to Re-Scan devices\012 \000"
	.align	2
.LC2:
	.ascii	" OUT\012\000"
	.text
	.align	2
	.global	pqisrc_ack_all_events
	.syntax unified
	.arm
	.fpu softvfp
	.type	pqisrc_ack_all_events, %function
pqisrc_ack_all_events:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r6, .L9
	ldr	r0, .L9+4
	bl	DBG_FUNC
	ldr	r3, [r6]
	ldr	r4, [r7]
	cmp	r3, #0
	ble	.L2
	mov	r5, #0
	mov	r8, r5
	b	.L4
.L3:
	ldr	r3, [r6]
	cmp	r3, r5
	ble	.L2
.L4:
	ldr	r3, [r4]
	mov	r1, r4
	cmp	r3, #1
	add	r5, r5, #1
	add	r4, r4, #4
	bne	.L3
	mov	r0, r7
	str	r8, [r4, #-4]
	bl	pqisrc_acknowledge_event
	ldr	r3, [r6]
	cmp	r3, r5
	bgt	.L4
.L2:
	mov	r0, r7
	bl	pqisrc_rescan_devices
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L5
	ldr	r0, .L9+12
	bl	DBG_ERR
.L5:
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, .L9+16
	b	DBG_FUNC
.L10:
	.align	2
.L9:
	.word	PQI_NUM_SUPPORTED_EVENTS
	.word	.LC0
	.word	PQI_STATUS_SUCCESS
	.word	.LC1
	.word	.LC2
	.size	pqisrc_ack_all_events, .-pqisrc_ack_all_events
	.comm	PQI_STATUS_SUCCESS,4,4
	.comm	PQI_NUM_SUPPORTED_EVENTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
