	.file	"extr_bta_sys_main.c_bta_sys_get_remaining_ticks.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bta_sys_get_remaining_ticks
	.type	bta_sys_get_remaining_ticks, @function
bta_sys_get_remaining_ticks:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR OSI_MUTEX_MAX_TIMEOUT[rip]
	lea	rdi, bta_alarm_lock[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	call	osi_mutex_lock@PLT
	mov	esi, DWORD PTR hash_iter_ro_cb[rip]
	mov	edi, DWORD PTR bta_alarm_hash_map[rip]
	lea	rdx, 4[rsp]
	call	hash_map_foreach@PLT
	lea	rdi, bta_alarm_lock[rip]
	call	osi_mutex_unlock@PLT
	mov	eax, DWORD PTR 4[rsp]
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L5
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bta_sys_get_remaining_ticks, .-bta_sys_get_remaining_ticks
	.comm	hash_iter_ro_cb,4,4
	.comm	bta_alarm_lock,4,4
	.comm	bta_alarm_hash_map,4,4
	.comm	OSI_MUTEX_MAX_TIMEOUT,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_bta_sys_main.c_bta_sys_get_remaining_ticks.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bta_sys_get_remaining_ticks
	.syntax unified
	.arm
	.fpu softvfp
	.type	bta_sys_get_remaining_ticks, %function
bta_sys_get_remaining_ticks:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	str	lr, [sp, #-4]!
	ldr	r2, .L6
	sub	sp, sp, #12
	ldr	r1, [r2]
	ldr	r2, .L6+4
	ldr	r0, .L6+8
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
	bl	osi_mutex_lock
	ldr	r3, .L6+12
	ldr	r2, .L6+16
	ldr	r0, [r3]
	ldr	r1, [r2]
	mov	r2, sp
	bl	hash_map_foreach
	ldr	r0, .L6+8
	bl	osi_mutex_unlock
	ldr	r3, .L6+4
	ldr	r0, [sp]
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	OSI_MUTEX_MAX_TIMEOUT
	.word	.LC0
	.word	bta_alarm_lock
	.word	bta_alarm_hash_map
	.word	hash_iter_ro_cb
	.size	bta_sys_get_remaining_ticks, .-bta_sys_get_remaining_ticks
	.comm	hash_iter_ro_cb,4,4
	.comm	bta_alarm_lock,4,4
	.comm	bta_alarm_hash_map,4,4
	.comm	OSI_MUTEX_MAX_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
