	.file	"extr_mly.c_mly_get_eventstatus.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"initial change counter %d, event counter %d"
	.text
	.p2align 4
	.type	mly_get_eventstatus, @function
mly_get_eventstatus:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 4
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	mov	rdi, r12
	call	bzero@PLT
	lea	rdx, 8[rsp]
	mov	rsi, r12
	xor	r9d, r9d
	mov	eax, DWORD PTR MDACIOCTL_GETHEALTHSTATUS[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	ecx, 8
	mov	rdi, rbx
	mov	QWORD PTR 16[rsp], 0
	mov	DWORD PTR 12[rsp], eax
	push	0
	.cfi_def_cfa_offset 80
	lea	r8, 32[rsp]
	call	mly_ioctl@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 16[rsp], 0
	je	.L3
	mov	r12d, DWORD PTR EIO[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR [rbx]
	mov	edx, 8
	mov	eax, DWORD PTR 4[rdi]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR [rdi]
	mov	DWORD PTR 12[rbx], eax
	mov	DWORD PTR 8[rbx], eax
	call	bcopy@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, 1
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR 4[rax]
	mov	ecx, DWORD PTR [rax]
	call	debug@PLT
	mov	esi, DWORD PTR M_DEVBUF[rip]
	mov	rdi, QWORD PTR 8[rsp]
	call	free@PLT
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mly_get_eventstatus, .-mly_get_eventstatus
	.comm	M_DEVBUF,4,4
	.comm	MDACIOCTL_GETHEALTHSTATUS,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_mly.c_mly_get_eventstatus.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"initial change counter %d, event counter %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mly_get_eventstatus, %function
mly_get_eventstatus:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L8
	sub	sp, sp, #36
	mov	r5, r0
	mov	r1, #4
	add	r0, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	bzero
	mov	ip, #0
	ldr	r2, .L8+4
	add	r3, sp, #24
	ldr	r2, [r2]
	mov	r0, r5
	stm	sp, {r3, ip}
	str	r2, [sp, #16]
	mov	r3, #8
	add	r1, sp, #16
	str	ip, [sp, #8]
	add	r2, sp, #20
	str	ip, [sp, #20]
	bl	mly_ioctl
	subs	r4, r0, #0
	bne	.L1
	ldr	r4, [sp, #24]
	cmp	r4, #0
	beq	.L3
	ldr	r3, .L8+8
	ldr	r4, [r3]
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, pc}
.L3:
	ldr	r0, [sp, #20]
	ldr	r1, [r5]
	ldr	r2, [r0, #4]
	ldr	r3, [r0]
	str	r2, [r5, #12]
	str	r3, [r5, #8]
	str	r3, [r5, #4]
	mov	r2, #8
	bl	bcopy
	ldr	r2, [sp, #20]
	ldr	r1, .L8+12
	ldr	r3, [r2]
	mov	r0, #1
	ldr	r2, [r2, #4]
	bl	debug
	ldr	r3, .L8+16
	ldr	r0, [sp, #20]
	ldr	r1, [r3]
	bl	free
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	MDACIOCTL_GETHEALTHSTATUS
	.word	EIO
	.word	.LC0
	.word	M_DEVBUF
	.size	mly_get_eventstatus, .-mly_get_eventstatus
	.comm	M_DEVBUF,4,4
	.comm	MDACIOCTL_GETHEALTHSTATUS,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
