	.file	"extr_monwriter.c_monwrite_new_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	monwrite_new_data, @function
monwrite_new_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	add	rdi, 8
	mov	eax, DWORD PTR 8[rbx]
	mov	rbp, QWORD PTR [rbx]
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	je	.L10
	xor	eax, eax
	xor	r12d, r12d
	call	BUG@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	xor	r12d, r12d
	test	eax, eax
	jne	.L1
	mov	rsi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR APPLDATA_START_CONFIG_REC[rip]
	call	monwrite_diag@PLT
	mov	DWORD PTR 0[rbp], 1
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, DWORD PTR 0[rbp]
	xor	r12d, r12d
	test	edx, edx
	jne	.L1
	mov	rsi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR APPLDATA_START_INTERVAL_REC[rip]
	call	monwrite_diag@PLT
	mov	DWORD PTR 0[rbp], 1
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR APPLDATA_GEN_EVENT_REC[rip]
	call	monwrite_diag@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR [rbx]
	lea	rdi, 16[rax]
	call	list_del@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR 8[rax]
	call	kfree@PLT
	mov	rdi, QWORD PTR [rbx]
	call	kfree@PLT
	mov	eax, r12d
	mov	QWORD PTR [rbx], 0
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	monwrite_new_data, .-monwrite_new_data
	.comm	APPLDATA_START_INTERVAL_REC,4,4
	.comm	APPLDATA_START_CONFIG_REC,4,4
	.comm	APPLDATA_GEN_EVENT_REC,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_monwriter.c_monwrite_new_data.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	monwrite_new_data, %function
monwrite_new_data:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, lr}
	cmp	r3, #129
	mov	r4, r0
	ldr	r6, [r0], #4
	beq	.L2
	cmp	r3, #130
	beq	.L3
	cmp	r3, #128
	beq	.L11
	mov	r5, #0
	bl	BUG
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L12
.L7:
	mov	r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, [r6]
	cmp	r3, #0
	ldreq	r3, .L13
	bne	.L7
.L9:
	ldr	r2, [r3]
	ldr	r1, [r6, #4]
	bl	monwrite_diag
	mov	r3, #1
	mov	r5, r0
	str	r3, [r6]
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L13+4
	ldr	r1, [r6, #4]
	ldr	r2, [r3]
	bl	monwrite_diag
	ldr	r3, [r4]
	mov	r5, r0
	add	r0, r3, #8
	bl	list_del
	ldr	r3, [r4]
	ldr	r0, [r3, #4]
	bl	kfree
	ldr	r0, [r4]
	bl	kfree
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L13+8
	b	.L9
.L14:
	.align	2
.L13:
	.word	APPLDATA_START_INTERVAL_REC
	.word	APPLDATA_GEN_EVENT_REC
	.word	APPLDATA_START_CONFIG_REC
	.size	monwrite_new_data, .-monwrite_new_data
	.comm	APPLDATA_START_INTERVAL_REC,4,4
	.comm	APPLDATA_START_CONFIG_REC,4,4
	.comm	APPLDATA_GEN_EVENT_REC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
