	.file	"extr_tw_cl_intr.c_tw_cli_manage_aen.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"entered"
.LC1:
	.string	"Received AEN_SYNC_TIME"
.LC2:
	.string	"error = %d"
.LC3:
	.string	"Unable to sync time with ctlr"
.LC4:
	.string	"AEN queue empty"
.LC5:
	.string	"Queueing AEN"
	.text
	.p2align 4
	.globl	tw_cli_manage_aen
	.type	tw_cli_manage_aen, @function
tw_cli_manage_aen:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	tw_osl_cur_func@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, 4
	lea	rcx, .LC0[rip]
	mov	edx, eax
	call	tw_cli_dbg_printf@PLT
	mov	r14, QWORD PTR [r12]
	mov	r13d, DWORD PTR [r14]
	cmp	r13d, 128
	je	.L2
	cmp	r13d, 129
	je	.L3
	xor	eax, eax
	call	tw_osl_cur_func@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, 4
	lea	rcx, .LC5[rip]
	mov	edx, eax
	call	tw_cli_dbg_printf@PLT
	mov	esi, DWORD PTR TW_CL_MESSAGE_SOURCE_CONTROLLER_EVENT[rip]
	mov	rdx, r14
	mov	rdi, rbp
	call	tw_cli_create_ctlr_event@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	eax, eax
	call	tw_osl_cur_func@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, 4
	lea	rcx, .LC1[rip]
	mov	edx, eax
	call	tw_cli_dbg_printf@PLT
	mov	eax, DWORD PTR TW_CL_FALSE[rip]
	mov	esi, DWORD PTR TW_CLI_FREE_Q[rip]
	mov	rdi, r12
	mov	DWORD PTR 12[rbp], eax
	call	tw_cli_req_q_insert_tail@PLT
	mov	edx, DWORD PTR 4[rbp]
	test	edx, edx
	je	.L5
	mov	eax, DWORD PTR TW_CL_TRUE[rip]
	mov	DWORD PTR 8[rbp], eax
.L5:
	xor	eax, eax
	call	tw_osl_get_local_time@PLT
	mov	r9d, DWORD PTR TW_CL_NULL[rip]
	sub	eax, 259200
	movsx	rdx, eax
	mov	ecx, eax
	imul	rdx, rdx, 1861606989
	sar	ecx, 31
	sar	rdx, 50
	sub	edx, ecx
	imul	edx, edx, 604800
	sub	eax, edx
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	je	.L7
	mov	r9d, DWORD PTR tw_cli_param_callback[rip]
.L7:
	mov	edx, DWORD PTR TWA_PARAM_TIME_SCHED_TIME[rip]
	mov	esi, DWORD PTR TWA_PARAM_TIME_TABLE[rip]
	lea	r8, 4[rsp]
	mov	rdi, rbp
	mov	ecx, 4
	call	tw_cli_set_param@PLT
	test	eax, eax
	je	.L1
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	r9d, DWORD PTR TW_CL_SEVERITY_ERROR_STRING[rip]
	mov	edx, DWORD PTR TW_CL_MESSAGE_SOURCE_COMMON_LAYER_ERROR[rip]
	mov	r8d, 1
	mov	esi, DWORD PTR TW_CL_FALSE[rip]
	mov	edi, DWORD PTR 0[rbp]
	push	rax
	.cfi_def_cfa_offset 80
	mov	ecx, 4616
	lea	rax, .LC2[rip]
	push	rax
	.cfi_def_cfa_offset 88
	lea	rax, .LC3[rip]
	push	rax
	.cfi_def_cfa_offset 96
	call	tw_cl_create_event@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 64
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	call	tw_osl_cur_func@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, 4
	lea	rcx, .LC4[rip]
	mov	edx, eax
	call	tw_cli_dbg_printf@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tw_cli_manage_aen, .-tw_cli_manage_aen
	.comm	tw_cli_param_callback,4,4
	.comm	TW_CL_TRUE,4,4
	.comm	TW_CL_SEVERITY_ERROR_STRING,4,4
	.comm	TW_CL_NULL,4,4
	.comm	TW_CL_MESSAGE_SOURCE_CONTROLLER_EVENT,4,4
	.comm	TW_CL_MESSAGE_SOURCE_COMMON_LAYER_ERROR,4,4
	.comm	TW_CL_FALSE,4,4
	.comm	TW_CLI_FREE_Q,4,4
	.comm	TWA_PARAM_TIME_TABLE,4,4
	.comm	TWA_PARAM_TIME_SCHED_TIME,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_tw_cl_intr.c_tw_cli_manage_aen.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"entered\000"
	.align	2
.LC1:
	.ascii	"Received AEN_SYNC_TIME\000"
	.align	2
.LC2:
	.ascii	"error = %d\000"
	.align	2
.LC3:
	.ascii	"Unable to sync time with ctlr\000"
	.align	2
.LC4:
	.ascii	"AEN queue empty\000"
	.align	2
.LC5:
	.ascii	"Queueing AEN\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tw_cli_manage_aen
	.syntax unified
	.arm
	.fpu softvfp
	.type	tw_cli_manage_aen, %function
tw_cli_manage_aen:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L20
	sub	sp, sp, #32
	mov	r5, r1
	ldr	r6, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r4, r0
	bl	tw_osl_cur_func
	mov	r1, r6
	mov	r2, r0
	ldr	r3, .L20+4
	mov	r0, #4
	bl	tw_cli_dbg_printf
	ldr	r7, [r5]
	ldr	r6, [r7]
	cmp	r6, #128
	beq	.L2
	cmp	r6, #129
	beq	.L3
	ldr	r5, [r4]
	bl	tw_osl_cur_func
	mov	r1, r5
	mov	r2, r0
	ldr	r3, .L20+8
	mov	r0, #4
	bl	tw_cli_dbg_printf
	ldr	r3, .L20+12
	mov	r2, r7
	mov	r0, r4
	ldr	r1, [r3]
	bl	tw_cli_create_ctlr_event
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r6
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r8, [r4]
	bl	tw_osl_cur_func
	ldr	r7, .L20+16
	mov	r2, r0
	mov	r1, r8
	ldr	r3, .L20+20
	mov	r0, #4
	bl	tw_cli_dbg_printf
	ldr	r2, [r7]
	ldr	r3, .L20+24
	str	r2, [r4, #12]
	ldr	r1, [r3]
	mov	r0, r5
	bl	tw_cli_req_q_insert_tail
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ldrne	r3, .L20+28
	ldrne	r3, [r3]
	strne	r3, [r4, #8]
	bl	tw_osl_get_local_time
	ldr	r3, .L20+32
	sub	r0, r0, #259072
	sub	r0, r0, #128
	smull	r1, r2, r3, r0
	asr	r3, r0, #31
	rsb	r3, r3, r2, asr #18
	add	r3, r3, r3, lsl #2
	ldr	ip, [r4, #4]
	rsb	r3, r3, r3, lsl #4
	rsb	r3, r3, r3, lsl #6
	sub	r3, r0, r3, lsl #7
	cmp	ip, #0
	str	r3, [sp, #24]
	ldrne	r3, .L20+36
	ldreq	r3, .L20+40
	ldr	r1, .L20+44
	ldr	r0, [r3]
	ldr	r2, .L20+48
	add	r3, sp, #24
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r0, [sp, #4]
	str	r3, [sp]
	mov	r0, r4
	mov	r3, #4
	bl	tw_cli_set_param
	cmp	r0, #0
	beq	.L1
	mov	r3, #1
	ldr	r2, .L20+52
	str	r0, [sp, #16]
	ldr	ip, [r2]
	ldr	r1, [r7]
	ldr	r0, [r4]
	ldr	r2, .L20+56
	str	ip, [sp, #4]
	str	r3, [sp]
	ldr	ip, .L20+60
	ldr	r3, .L20+64
	ldr	r2, [r2]
	str	r3, [sp, #8]
	str	ip, [sp, #12]
	ldr	r3, .L20+68
	bl	tw_cl_create_event
	b	.L1
.L3:
	ldr	r4, [r4]
	bl	tw_osl_cur_func
	mov	r1, r4
	mov	r2, r0
	ldr	r3, .L20+72
	mov	r0, #4
	bl	tw_cli_dbg_printf
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC6
	.word	.LC0
	.word	.LC5
	.word	TW_CL_MESSAGE_SOURCE_CONTROLLER_EVENT
	.word	TW_CL_FALSE
	.word	.LC1
	.word	TW_CLI_FREE_Q
	.word	TW_CL_TRUE
	.word	1861606989
	.word	tw_cli_param_callback
	.word	TW_CL_NULL
	.word	TWA_PARAM_TIME_TABLE
	.word	TWA_PARAM_TIME_SCHED_TIME
	.word	TW_CL_SEVERITY_ERROR_STRING
	.word	TW_CL_MESSAGE_SOURCE_COMMON_LAYER_ERROR
	.word	.LC2
	.word	.LC3
	.word	4616
	.word	.LC4
	.size	tw_cli_manage_aen, .-tw_cli_manage_aen
	.comm	tw_cli_param_callback,4,4
	.comm	TW_CL_TRUE,4,4
	.comm	TW_CL_SEVERITY_ERROR_STRING,4,4
	.comm	TW_CL_NULL,4,4
	.comm	TW_CL_MESSAGE_SOURCE_CONTROLLER_EVENT,4,4
	.comm	TW_CL_MESSAGE_SOURCE_COMMON_LAYER_ERROR,4,4
	.comm	TW_CL_FALSE,4,4
	.comm	TW_CLI_FREE_Q,4,4
	.comm	TWA_PARAM_TIME_TABLE,4,4
	.comm	TWA_PARAM_TIME_SCHED_TIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
