	.file	"extr_mpr.c_mpr_register_events.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Cannot allocate event memory\n"
	.text
	.p2align 4
	.globl	mpr_register_events
	.type	mpr_register_events, @function
mpr_register_events:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, 16
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR M_MPR[rip]
	mov	edx, DWORD PTR M_WAITOK[rip]
	or	edx, DWORD PTR M_ZERO[rip]
	call	malloc@PLT
	test	rax, rax
	je	.L9
	mov	QWORD PTR 8[rax], r15
	mov	edx, DWORD PTR eh_list[rip]
	mov	rsi, rax
	mov	rdi, rbp
	mov	QWORD PTR [rax], r14
	mov	rbx, rax
	call	TAILQ_INSERT_TAIL@PLT
	xor	eax, eax
	test	r12, r12
	je	.L4
	mov	rdx, r12
	mov	rsi, rbx
	mov	rdi, rbp
	call	mpr_update_events@PLT
.L4:
	mov	QWORD PTR 0[r13], rbx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR MPR_EVENT[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR MPR_ERROR[rip]
	lea	rdx, .LC0[rip]
	call	mpr_dprint@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
	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	mpr_register_events, .-mpr_register_events
	.comm	eh_list,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_MPR,4,4
	.comm	MPR_EVENT,4,4
	.comm	MPR_ERROR,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_mpr.c_mpr_register_events.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot allocate event memory\012\000"
	.text
	.align	2
	.global	mpr_register_events
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpr_register_events, %function
mpr_register_events:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r7, r2
	ldr	r1, .L9
	ldr	r2, .L9+4
	mov	r8, r0
	ldr	r2, [r2]
	ldr	r0, [r1]
	ldr	r1, .L9+8
	orr	r2, r0, r2
	ldr	r1, [r1]
	mov	r0, #8
	mov	r6, r3
	bl	malloc
	subs	r4, r0, #0
	beq	.L8
	ldr	r3, .L9+12
	mov	r1, r4
	mov	r0, r8
	stm	r4, {r6, r7}
	ldr	r2, [r3]
	bl	TAILQ_INSERT_TAIL
	cmp	r5, #0
	moveq	r0, r5
	beq	.L4
	mov	r2, r5
	mov	r0, r8
	mov	r1, r4
	bl	mpr_update_events
.L4:
	ldr	r3, [sp, #24]
	str	r4, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r2, .L9+16
	ldr	r3, .L9+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r8
	orr	r1, r1, r3
	ldr	r2, .L9+24
	bl	mpr_dprint
	ldr	r3, .L9+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	M_WAITOK
	.word	M_ZERO
	.word	M_MPR
	.word	eh_list
	.word	MPR_EVENT
	.word	MPR_ERROR
	.word	.LC0
	.word	ENOMEM
	.size	mpr_register_events, .-mpr_register_events
	.comm	eh_list,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_MPR,4,4
	.comm	MPR_EVENT,4,4
	.comm	MPR_ERROR,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
