	.file	"extr_sys_arch.c_sys_arch_sem_wait.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"taking semaphore failed"
	.text
	.p2align 4
	.globl	sys_arch_sem_wait
	.type	sys_arch_sem_wait, @function
sys_arch_sem_wait:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR [rdi]
	test	esi, esi
	jne	.L2
	mov	esi, DWORD PTR portMAX_DELAY[rip]
	call	xSemaphoreTake@PLT
.L4:
	xor	esi, esi
	cmp	QWORD PTR pdTRUE[rip], rax
	lea	rdi, .LC0[rip]
	sete	sil
	call	LWIP_ASSERT@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, esi
	cdq
	idiv	DWORD PTR portTICK_RATE_MS[rip]
	mov	esi, eax
	call	xSemaphoreTake@PLT
	cmp	QWORD PTR errQUEUE_EMPTY[rip], rax
	jne	.L4
	mov	eax, DWORD PTR SYS_ARCH_TIMEOUT[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sys_arch_sem_wait, .-sys_arch_sem_wait
	.comm	portTICK_RATE_MS,4,4
	.comm	portMAX_DELAY,4,4
	.comm	pdTRUE,8,8
	.comm	errQUEUE_EMPTY,8,8
	.comm	SYS_ARCH_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_sys_arch.c_sys_arch_sem_wait.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"taking semaphore failed\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.global	sys_arch_sem_wait
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_arch_sem_wait, %function
sys_arch_sem_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r1, #0
	ldr	r5, [r0]
	bne	.L2
	ldr	r3, .L8
	mov	r0, r5
	ldr	r1, [r3]
	bl	xSemaphoreTake
	mov	r3, r0
	ldr	r2, .L8+4
	ldr	r0, .L8+8
	ldr	r1, [r2]
	sub	r1, r1, r3
	clz	r1, r1
	lsr	r1, r1, #5
	bl	LWIP_ASSERT
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L8+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	__aeabi_idiv
	mov	r1, r0
	mov	r0, r5
	bl	xSemaphoreTake
	ldr	r3, .L8+16
	mov	r1, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L7
	ldr	r3, .L8+4
	ldr	r0, .L8+8
	ldr	r3, [r3]
	sub	r1, r3, r1
	clz	r1, r1
	lsr	r1, r1, #5
	bl	LWIP_ASSERT
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L8+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	portMAX_DELAY
	.word	pdTRUE
	.word	.LC0
	.word	portTICK_RATE_MS
	.word	errQUEUE_EMPTY
	.word	SYS_ARCH_TIMEOUT
	.size	sys_arch_sem_wait, .-sys_arch_sem_wait
	.comm	portTICK_RATE_MS,4,4
	.comm	portMAX_DELAY,4,4
	.comm	pdTRUE,4,4
	.comm	errQUEUE_EMPTY,4,4
	.comm	SYS_ARCH_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
