	.file	"extr_mptbase.c_mpt_event_register.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mpt_event_register
	.type	mpt_event_register, @function
mpt_event_register:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L4
	cmp	QWORD PTR MPT_MAX_PROTOCOL_DRIVERS[rip], rdi
	jbe	.L4
	mov	rax, QWORD PTR MptEvHandlers[rip]
	mov	DWORD PTR [rax+rdi*4], esi
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	mpt_event_register, .-mpt_event_register
	.comm	MptEvHandlers,8,8
	.comm	MPT_MAX_PROTOCOL_DRIVERS,8,8
	.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_mptbase.c_mpt_event_register.c"
	.text
	.align	2
	.global	mpt_event_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpt_event_register, %function
mpt_event_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	subs	r3, r0, #0
	beq	.L4
	ldr	r2, .L6
	ldr	r2, [r2]
	cmp	r2, r3
	bls	.L4
	ldr	r2, .L6+4
	mov	r0, #0
	ldr	r2, [r2]
	str	r1, [r2, r3, lsl #2]
	bx	lr
.L4:
	mvn	r0, #0
	bx	lr
.L7:
	.align	2
.L6:
	.word	MPT_MAX_PROTOCOL_DRIVERS
	.word	MptEvHandlers
	.size	mpt_event_register, .-mpt_event_register
	.comm	MptEvHandlers,4,4
	.comm	MPT_MAX_PROTOCOL_DRIVERS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
