	.file	"extr_opensolaris_sysevent.c_sysevent_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sysevent_alloc
	.type	sysevent_alloc, @function
sysevent_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	xor	edi, edi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	r14, r14
	setne	dil
	call	ASSERT@PLT
	xor	edi, edi
	test	r13, r13
	setne	dil
	call	ASSERT@PLT
	xor	edi, edi
	test	rbp, rbp
	setne	dil
	call	ASSERT@PLT
	xor	edi, edi
	cmp	DWORD PTR SE_SLEEP[rip], r12d
	sete	dil
	call	ASSERT@PLT
	mov	esi, DWORD PTR KM_SLEEP[rip]
	mov	edi, 24
	call	kmem_alloc@PLT
	mov	rsi, r14
	mov	edx, 4
	mov	QWORD PTR 16[rax], 0
	mov	edi, DWORD PTR 8[rax]
	mov	r12, rax
	call	strlcpy@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	rsi, r13
	mov	edx, 4
	call	strlcpy@PLT
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbp
	mov	edx, 4
	call	strlcpy@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sysevent_alloc, .-sysevent_alloc
	.comm	SE_SLEEP,4,4
	.comm	KM_SLEEP,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_opensolaris_sysevent.c_sysevent_alloc.c"
	.text
	.align	2
	.global	sysevent_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	sysevent_alloc, %function
sysevent_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r5, r2
	mov	r4, r3
	mov	r7, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	ASSERT
	subs	r0, r6, #0
	movne	r0, #1
	bl	ASSERT
	subs	r0, r5, #0
	movne	r0, #1
	bl	ASSERT
	ldr	r3, .L4
	ldr	r0, [r3]
	sub	r0, r0, r4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	ldr	r3, .L4+4
	mov	r0, #16
	ldr	r1, [r3]
	bl	kmem_alloc
	mov	r3, #0
	mov	r4, r0
	str	r3, [r0, #12]
	mov	r1, r7
	mov	r2, #4
	ldr	r0, [r0, #8]
	bl	strlcpy
	mov	r1, r6
	mov	r2, #4
	ldr	r0, [r4, #4]
	bl	strlcpy
	mov	r1, r5
	mov	r2, #4
	ldr	r0, [r4]
	bl	strlcpy
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	SE_SLEEP
	.word	KM_SLEEP
	.size	sysevent_alloc, .-sysevent_alloc
	.comm	SE_SLEEP,4,4
	.comm	KM_SLEEP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
