	.file	"extr_test_ledc.c_wave_count.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wave_count, @function
wave_count:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	sub	rsp, 72
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR LOWEST_LIMIT[rip]
	lea	rdi, 16[rsp]
	lea	rbp, 12[rsp]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR HIGHEST_LIMIT[rip]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR PCNT_MODE_KEEP[rip]
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR PCNT_MODE_REVERSE[rip]
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR PCNT_COUNT_DIS[rip]
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR PCNT_COUNT_INC[rip]
	mov	DWORD PTR 36[rsp], eax
	mov	eax, DWORD PTR PCNT_UNIT_0[rip]
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR PCNT_CHANNEL_0[rip]
	mov	DWORD PTR 44[rsp], eax
	mov	eax, DWORD PTR PCNT_CTRL_FLOATING_IO[rip]
	mov	DWORD PTR 48[rsp], eax
	mov	eax, DWORD PTR PCNT_INPUT_IO[rip]
	mov	DWORD PTR 52[rsp], eax
	call	pcnt_unit_config@PLT
	mov	edi, eax
	call	TEST_ESP_OK@PLT
	mov	edi, DWORD PTR PCNT_UNIT_0[rip]
	call	pcnt_counter_pause@PLT
	mov	edi, eax
	call	TEST_ESP_OK@PLT
	mov	edi, DWORD PTR PCNT_UNIT_0[rip]
	call	pcnt_counter_clear@PLT
	mov	edi, eax
	call	TEST_ESP_OK@PLT
	mov	edi, DWORD PTR PCNT_UNIT_0[rip]
	call	pcnt_counter_resume@PLT
	mov	edi, eax
	call	TEST_ESP_OK@PLT
	mov	edi, DWORD PTR PCNT_UNIT_0[rip]
	mov	rsi, rbp
	call	pcnt_get_counter_value@PLT
	mov	edi, eax
	call	TEST_ESP_OK@PLT
	mov	eax, ebx
	cdq
	idiv	DWORD PTR portTICK_RATE_MS[rip]
	mov	edi, eax
	call	vTaskDelay@PLT
	mov	edi, DWORD PTR PCNT_UNIT_0[rip]
	mov	rsi, rbp
	call	pcnt_get_counter_value@PLT
	mov	edi, eax
	call	TEST_ESP_OK@PLT
	mov	eax, DWORD PTR 12[rsp]
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L5
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wave_count, .-wave_count
	.comm	portTICK_RATE_MS,4,4
	.comm	PCNT_UNIT_0,4,4
	.comm	PCNT_MODE_REVERSE,4,4
	.comm	PCNT_MODE_KEEP,4,4
	.comm	PCNT_INPUT_IO,4,4
	.comm	PCNT_CTRL_FLOATING_IO,4,4
	.comm	PCNT_COUNT_INC,4,4
	.comm	PCNT_COUNT_DIS,4,4
	.comm	PCNT_CHANNEL_0,4,4
	.comm	LOWEST_LIMIT,4,4
	.comm	HIGHEST_LIMIT,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_test_ledc.c_wave_count.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wave_count, %function
wave_count:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	ldr	r3, .L6
	ldr	r0, .L6+4
	ldr	r3, [r3]
	ldr	r6, .L6+8
	sub	sp, sp, #52
	ldr	r6, [r6]
	str	r6, [sp, #44]
	mov	r6,#0
	ldr	r0, [r0]
	str	r3, [sp, #4]
	ldr	r2, .L6+12
	ldr	r3, .L6+16
	ldr	r2, [r2]
	str	r0, [sp, #8]
	ldr	r1, .L6+20
	ldr	r0, [r3]
	ldr	r3, .L6+24
	ldr	r4, .L6+28
	ldr	r1, [r1]
	str	r2, [sp, #12]
	ldr	lr, .L6+32
	ldr	r2, [r3]
	ldr	ip, .L6+36
	ldr	r3, .L6+40
	ldr	lr, [lr]
	ldr	ip, [ip]
	ldr	r3, [r3]
	str	r1, [sp, #24]
	ldr	r1, [r4]
	str	r0, [sp, #32]
	add	r0, sp, #4
	str	r2, [sp, #36]
	str	lr, [sp, #16]
	str	ip, [sp, #20]
	str	r3, [sp, #40]
	str	r1, [sp, #28]
	bl	pcnt_unit_config
	bl	TEST_ESP_OK
	ldr	r0, [r4]
	bl	pcnt_counter_pause
	bl	TEST_ESP_OK
	ldr	r0, [r4]
	bl	pcnt_counter_clear
	bl	TEST_ESP_OK
	ldr	r0, [r4]
	bl	pcnt_counter_resume
	bl	TEST_ESP_OK
	mov	r1, sp
	ldr	r0, [r4]
	bl	pcnt_get_counter_value
	bl	TEST_ESP_OK
	ldr	r3, .L6+44
	mov	r0, r5
	ldr	r1, [r3]
	bl	__aeabi_idiv
	bl	vTaskDelay
	mov	r1, sp
	ldr	r0, [r4]
	bl	pcnt_get_counter_value
	bl	TEST_ESP_OK
	ldr	r3, .L6+8
	ldr	r0, [sp]
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	LOWEST_LIMIT
	.word	HIGHEST_LIMIT
	.word	.LC0
	.word	PCNT_MODE_KEEP
	.word	PCNT_CHANNEL_0
	.word	PCNT_COUNT_INC
	.word	PCNT_CTRL_FLOATING_IO
	.word	PCNT_UNIT_0
	.word	PCNT_MODE_REVERSE
	.word	PCNT_COUNT_DIS
	.word	PCNT_INPUT_IO
	.word	portTICK_RATE_MS
	.size	wave_count, .-wave_count
	.comm	portTICK_RATE_MS,4,4
	.comm	PCNT_UNIT_0,4,4
	.comm	PCNT_MODE_REVERSE,4,4
	.comm	PCNT_MODE_KEEP,4,4
	.comm	PCNT_INPUT_IO,4,4
	.comm	PCNT_CTRL_FLOATING_IO,4,4
	.comm	PCNT_COUNT_INC,4,4
	.comm	PCNT_COUNT_DIS,4,4
	.comm	PCNT_CHANNEL_0,4,4
	.comm	LOWEST_LIMIT,4,4
	.comm	HIGHEST_LIMIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
