	.file	"extr_hv-24x7.c_create_events_from_catalog.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid page count: %zu\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"cv %llu cl %zu eec %zu edo %zu edl %zu\n"
	.align 8
.LC2:
	.string	"invalid event data offs %zu and/or len %zu\n"
	.align 8
.LC3:
	.string	"event data %zu-%zu does not fit inside catalog 0-%zu\n"
	.align 8
.LC4:
	.string	"event_entry_count %zu is invalid\n"
	.align 8
.LC5:
	.string	"could not allocate event data\n"
	.align 8
.LC6:
	.string	"Failed to get event data in page %zu: rc=%ld\n"
	.align 8
.LC7:
	.string	"invalid event %zu (%.*s): group_record_len == 0, skipping\n"
	.align 8
.LC8:
	.string	"event %zu (%.*s) has invalid domain %d\n"
	.text
	.p2align 4
	.type	create_events_from_catalog, @function
create_events_from_catalog:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR hv_page_cache[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	kmem_cache_alloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L3
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rax
	mov	rbp, rax
	call	h_get_24x7_catalog_page@PLT
	test	rax, rax
	je	.L4
.L24:
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
.L5:
	mov	edi, DWORD PTR hv_page_cache[rip]
	mov	rsi, rbp
	call	kmem_cache_free@PLT
.L3:
	mov	QWORD PTR [rbx], 0
	mov	QWORD PTR [r15], 0
	mov	QWORD PTR [r14], 0
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	call	be64_to_cpu@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	DWORD PTR 8[rsp], eax
	call	be32_to_cpu@PLT
	cmp	QWORD PTR MAX_4K[rip], rax
	jb	.L27
	mov	edi, DWORD PTR 8[rbp]
	mov	QWORD PTR 16[rsp], rax
	call	be16_to_cpu@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	r13, rax
	call	be16_to_cpu@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r12, rax
	call	be16_to_cpu@PLT
	mov	r10, QWORD PTR 16[rsp]
	mov	r8, r12
	mov	rcx, r13
	mov	r9, rax
	movsx	rax, DWORD PTR 8[rsp]
	lea	rdi, .LC1[rip]
	mov	rdx, r10
	mov	QWORD PTR 16[rsp], r9
	sal	rdx, 12
	mov	rsi, rax
	xor	eax, eax
	mov	QWORD PTR 24[rsp], r10
	call	pr_devel@PLT
	mov	r9, QWORD PTR 16[rsp]
	mov	rdx, r12
	mov	rax, QWORD PTR MAX_4K[rip]
	cmp	r9, r12
	cmovnb	rdx, r9
	cmp	rax, rdx
	jb	.L7
	sub	rax, r12
	mov	r10, QWORD PTR 24[rsp]
	cmp	rax, r9
	jb	.L7
	lea	rax, [r9+r12]
	mov	QWORD PTR 32[rsp], rax
	cmp	rax, r10
	ja	.L28
	mov	eax, DWORD PTR SIZE_MAX[rip]
	sub	eax, 1
	cdqe
	cmp	rax, r13
	jb	.L29
	mov	rax, r9
	mov	QWORD PTR 40[rsp], r9
	sal	rax, 12
	mov	rdi, rax
	mov	QWORD PTR 24[rsp], rax
	call	vmalloc@PLT
	mov	r9, QWORD PTR 40[rsp]
	test	rax, rax
	mov	QWORD PTR 16[rsp], rax
	je	.L30
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	mov	QWORD PTR 40[rsp], r9
	cdq
	shr	edx, 20
	lea	edi, [rax+rdx]
	and	edi, 4095
	sub	edi, edx
	call	BUILD_BUG_ON@PLT
	mov	r9, QWORD PTR 40[rsp]
	test	r9, r9
	je	.L12
	mov	rcx, QWORD PTR 16[rsp]
	mov	QWORD PTR 40[rsp], r14
	mov	r14, rbx
	mov	rbx, rcx
	jmp	.L14
.L13:
	add	r12, 1
	add	rbx, 4096
	cmp	r12, QWORD PTR 32[rsp]
	je	.L12
.L14:
	mov	rdi, rbx
	call	vmalloc_to_phys@PLT
	mov	esi, DWORD PTR 8[rsp]
	mov	rdx, r12
	mov	edi, eax
	call	h_get_24x7_catalog_page_@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L13
	mov	rsi, r12
	lea	rdi, .LC6[rip]
	xor	eax, eax
	mov	rbx, r14
	mov	r14, QWORD PTR 40[rsp]
	call	pr_err@PLT
	mov	r13d, DWORD PTR EIO[rip]
	mov	rdi, QWORD PTR 16[rsp]
	neg	r13d
	call	vfree@PLT
	jmp	.L5
.L7:
	mov	rdx, r9
	mov	rsi, r12
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	pr_err@PLT
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
	jmp	.L5
.L27:
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pr_err@PLT
	jmp	.L24
.L29:
	mov	rsi, r13
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	pr_err@PLT
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
	jmp	.L5
.L12:
	mov	r12, QWORD PTR 16[rsp]
	mov	r15, QWORD PTR 24[rsp]
	xor	ebp, ebp
	lea	r14, 52[rsp]
	add	r15, r12
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR 8[r12]
	mov	QWORD PTR 8[rsp], rax
	call	catalog_entry_domain_is_valid@PLT
	mov	rcx, QWORD PTR 8[rsp]
	test	eax, eax
	je	.L31
.L16:
	add	rbp, 1
	add	r12, rbx
.L17:
	mov	rdx, QWORD PTR 24[rsp]
	mov	rcx, r13
	mov	r9, r15
	mov	rsi, rbp
	mov	rdi, r12
	mov	r8, r12
	sub	r8, QWORD PTR 16[rsp]
	call	catalog_event_len_validate@PLT
	mov	rsi, r14
	mov	rdi, r12
	mov	rbx, rax
	call	event_name@PLT
	cmp	QWORD PTR [r12], 0
	mov	rcx, rax
	jne	.L15
	mov	edx, DWORD PTR 52[rsp]
	mov	rsi, rbp
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	pr_devel@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L31:
	movsx	rdx, DWORD PTR 52[rsp]
	mov	r8d, DWORD PTR 8[r12]
	mov	rsi, rbp
	lea	rdi, .LC8[rip]
	call	pr_info@PLT
	jmp	.L16
.L28:
	mov	rdx, rax
	mov	rcx, r10
	mov	rsi, r12
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
	jmp	.L5
.L30:
	lea	rdi, .LC5[rip]
	call	pr_err@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L5
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	create_events_from_catalog, .-create_events_from_catalog
	.comm	hv_page_cache,4,4
	.comm	SIZE_MAX,4,4
	.comm	RB_ROOT,4,4
	.comm	PAGE_SIZE,4,4
	.comm	MAX_4K,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,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_hv-24x7.c_create_events_from_catalog.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid page count: %zu\012\000"
	.align	2
.LC1:
	.ascii	"cv %llu cl %zu eec %zu edo %zu edl %zu\012\000"
	.align	2
.LC2:
	.ascii	"invalid event data offs %zu and/or len %zu\012\000"
	.align	2
.LC3:
	.ascii	"event data %zu-%zu does not fit inside catalog 0-%z"
	.ascii	"u\012\000"
	.align	2
.LC4:
	.ascii	"event_entry_count %zu is invalid\012\000"
	.align	2
.LC5:
	.ascii	"could not allocate event data\012\000"
	.align	2
.LC6:
	.ascii	"Failed to get event data in page %zu: rc=%ld\012\000"
	.align	2
.LC7:
	.ascii	"invalid event %zu (%.*s): group_record_len == 0, sk"
	.ascii	"ipping\012\000"
	.align	2
.LC8:
	.ascii	"event %zu (%.*s) has invalid domain %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_events_from_catalog, %function
create_events_from_catalog:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r1, .L33
	sub	sp, sp, #36
	ldr	r9, .L33+4
	str	r3, [sp, #8]
	ldr	r3, .L33+8
	str	r2, [sp, #12]
	mov	r5, r0
	ldr	r1, [r1]
	ldr	r0, [r9]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	kmem_cache_alloc
	subs	r4, r0, #0
	beq	.L26
	mov	r2, #0
	mov	r1, r2
	bl	h_get_24x7_catalog_page
	cmp	r0, #0
	beq	.L4
.L24:
	ldr	r3, .L33+12
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L5:
	mov	r1, r4
	ldr	r0, [r9]
	bl	kmem_cache_free
.L3:
	mov	r3, #0
	ldr	r2, [sp, #8]
	str	r3, [r5]
	str	r3, [r2]
	ldr	r2, [sp, #12]
	str	r3, [r2]
	ldr	r3, .L33+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r6
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r0, [r4, #16]
	bl	be64_to_cpu
	mov	r3, r0
	ldr	r0, [r4, #12]
	str	r3, [sp, #16]
	bl	be32_to_cpu
	ldr	fp, .L33+16
	mov	r8, r0
	ldr	r3, [fp]
	cmp	r3, r0
	bcc	.L28
	ldr	r0, [r4, #8]
	bl	be16_to_cpu
	mov	r7, r0
	ldr	r0, [r4, #4]
	bl	be16_to_cpu
	mov	r6, r0
	ldr	r0, [r4]
	bl	be16_to_cpu
	mov	r10, r0
	lsl	r2, r8, #12
	mov	r3, r7
	stm	sp, {r6, r10}
	ldr	r1, [sp, #16]
	ldr	r0, .L33+20
	bl	pr_devel
	cmp	r10, r6
	movcs	r2, r10
	movcc	r2, r6
	ldr	r3, [fp]
	cmp	r3, r2
	bcc	.L7
	sub	r3, r3, r6
	cmp	r3, r10
	bcc	.L7
	add	r3, r10, r6
	cmp	r3, r8
	str	r3, [sp, #20]
	bhi	.L29
	ldr	r3, .L33+24
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r3, r7
	bcc	.L30
	lsl	r8, r10, #12
	mov	r0, r8
	bl	vmalloc
	subs	fp, r0, #0
	beq	.L31
	ldr	r3, .L33+28
	ldr	r1, .L33+32
	ldr	r3, [r3]
	rsbs	r2, r3, #0
	and	r2, r2, r1
	and	r3, r3, r1
	rsbpl	r3, r2, #0
	mov	r0, r3
	bl	BUILD_BUG_ON
	cmp	r10, #0
	beq	.L12
	mov	r10, fp
	b	.L14
.L13:
	ldr	r3, [sp, #20]
	add	r6, r6, #1
	cmp	r6, r3
	add	r10, r10, #4096
	beq	.L12
.L14:
	mov	r0, r10
	bl	vmalloc_to_phys
	mov	r2, r6
	ldr	r1, [sp, #16]
	bl	h_get_24x7_catalog_page_
	subs	r2, r0, #0
	beq	.L13
	mov	r1, r6
	ldr	r0, .L33+36
	bl	pr_err
	ldr	r3, .L33+12
	mov	r0, fp
	ldr	r6, [r3]
	rsb	r6, r6, #0
	bl	vfree
	b	.L5
.L26:
	ldr	r3, .L33+40
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L3
.L7:
	mov	r1, r6
	mov	r2, r10
	ldr	r0, .L33+44
	bl	pr_err
	ldr	r3, .L33+12
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L5
.L28:
	mov	r1, r0
	ldr	r0, .L33+48
	bl	pr_err
	b	.L24
.L30:
	mov	r1, r7
	ldr	r0, .L33+52
	bl	pr_err
	ldr	r3, .L33+12
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L5
.L12:
	mov	r4, fp
	mov	r6, #0
	add	r9, fp, r8
	b	.L17
.L15:
	ldr	r0, [r4, #4]
	bl	catalog_entry_domain_is_valid
	cmp	r0, #0
	beq	.L32
.L16:
	add	r6, r6, #1
	add	r4, r4, r5
.L17:
	sub	r3, r4, fp
	mov	r2, r8
	mov	r1, r6
	stm	sp, {r3, r9}
	mov	r0, r4
	mov	r3, r7
	bl	catalog_event_len_validate
	add	r1, sp, #24
	mov	r5, r0
	mov	r0, r4
	bl	event_name
	ldr	r3, [r4]
	mov	r10, r0
	cmp	r3, #0
	bne	.L15
	mov	r3, r0
	mov	r1, r6
	ldr	r2, [sp, #24]
	ldr	r0, .L33+56
	bl	pr_devel
	b	.L16
.L32:
	ldr	r2, [r4, #4]
	mov	r3, r10
	str	r2, [sp]
	mov	r1, r6
	ldr	r2, [sp, #24]
	ldr	r0, .L33+60
	bl	pr_info
	b	.L16
.L29:
	mov	r3, r8
	mov	r1, r6
	ldr	r2, [sp, #20]
	ldr	r0, .L33+64
	bl	pr_err
	ldr	r3, .L33+12
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L5
.L31:
	ldr	r0, .L33+68
	bl	pr_err
	ldr	r3, .L33+40
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L5
.L27:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	GFP_KERNEL
	.word	hv_page_cache
	.word	.LC9
	.word	EIO
	.word	MAX_4K
	.word	.LC1
	.word	SIZE_MAX
	.word	PAGE_SIZE
	.word	4095
	.word	.LC6
	.word	ENOMEM
	.word	.LC2
	.word	.LC0
	.word	.LC4
	.word	.LC7
	.word	.LC8
	.word	.LC3
	.word	.LC5
	.size	create_events_from_catalog, .-create_events_from_catalog
	.comm	hv_page_cache,4,4
	.comm	SIZE_MAX,4,4
	.comm	RB_ROOT,4,4
	.comm	PAGE_SIZE,4,4
	.comm	MAX_4K,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
