	.file	"extr_test_pwm.c_sync_test.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sync_test, @function
sync_test:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	ecx, DWORD PTR SYN_SIG_NUM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR GPIO_INTR_DISABLE[rip]
	lea	rdi, 4[rsp]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR GPIO_MODE_OUTPUT[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, 1
	sal	eax, cl
	mov	DWORD PTR 4[rsp], eax
	call	gpio_config@PLT
	mov	edi, DWORD PTR SYN_SIG_NUM[rip]
	xor	esi, esi
	call	gpio_set_level@PLT
	mov	edx, DWORD PTR GPIO_PWMA_OUT[rip]
	mov	esi, ebx
	mov	edi, ebp
	mov	ebx, 2000
	call	mcpwm_gpio_init@PLT
	mov	edx, DWORD PTR GPIO_PWMB_OUT[rip]
	mov	esi, r15d
	mov	edi, ebp
	call	mcpwm_gpio_init@PLT
	mov	edx, DWORD PTR GPIO_SYNC_IN[rip]
	mov	esi, r14d
	mov	edi, ebp
	call	mcpwm_gpio_init@PLT
	mov	eax, DWORD PTR MCPWM_DUTY_MODE_0[rip]
	mov	esi, r12d
	mov	edi, ebp
	movsd	xmm0, QWORD PTR .LC0[rip]
	lea	rdx, 16[rsp]
	mov	DWORD PTR 16[rsp], 1000
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR MCPWM_UP_COUNTER[rip]
	movsd	QWORD PTR 24[rsp], xmm0
	movsd	QWORD PTR 32[rsp], xmm0
	mov	DWORD PTR 44[rsp], eax
	call	mcpwm_init@PLT
	mov	edi, DWORD PTR GPIO_SYNC_IN[rip]
	call	gpio_pulldown_en@PLT
	mov	ecx, 200
	mov	edx, r13d
	mov	esi, r12d
	mov	edi, ebp
	call	mcpwm_sync_enable@PLT
	mov	edi, DWORD PTR SYN_SIG_NUM[rip]
	mov	esi, 1
	call	gpio_set_level@PLT
	mov	eax, ebx
	cdq
	idiv	DWORD PTR portTICK_RATE_MS[rip]
	mov	edi, eax
	call	vTaskDelay@PLT
	mov	esi, r12d
	mov	edi, ebp
	call	mcpwm_sync_disable@PLT
	mov	eax, ebx
	cdq
	idiv	DWORD PTR portTICK_RATE_MS[rip]
	mov	edi, eax
	call	vTaskDelay@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sync_test, .-sync_test
	.comm	portTICK_RATE_MS,4,4
	.comm	SYN_SIG_NUM,4,4
	.comm	MCPWM_UP_COUNTER,4,4
	.comm	MCPWM_DUTY_MODE_0,4,4
	.comm	GPIO_SYNC_IN,4,4
	.comm	GPIO_PWMB_OUT,4,4
	.comm	GPIO_PWMA_OUT,4,4
	.comm	GPIO_MODE_OUTPUT,4,4
	.comm	GPIO_INTR_DISABLE,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1078525952
	.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_pwm.c_sync_test.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	sync_test, %function
sync_test:
	@ args = 8, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, #1
	mov	r4, r0
	mov	r8, r1
	mov	r7, r2
	ldr	r6, .L6
	ldr	r0, .L6+4
	ldr	r1, .L6+8
	ldr	r2, [r6]
	sub	sp, sp, #60
	ldr	ip, [r0]
	mov	r5, r3
	ldr	r1, [r1]
	ldr	r3, .L6+12
	lsl	r2, r9, r2
	add	r0, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	str	ip, [sp, #12]
	str	r2, [sp, #4]
	str	r1, [sp, #8]
	bl	gpio_config
	mov	r1, #0
	ldr	r0, [r6]
	bl	gpio_set_level
	ldr	r3, .L6+16
	mov	r1, r8
	ldr	r2, [r3]
	mov	r0, r4
	bl	mcpwm_gpio_init
	ldr	r3, .L6+20
	ldr	r8, .L6+24
	ldr	r2, [r3]
	mov	r1, r7
	mov	r0, r4
	bl	mcpwm_gpio_init
	ldr	r1, [sp, #100]
	ldr	r2, [r8]
	mov	r0, r4
	bl	mcpwm_gpio_init
	mov	r10, #0
	mov	r3, #1000
	ldr	r2, .L6+28
	ldr	r1, .L6+32
	ldr	r2, [r2]
	ldr	ip, [r1]
	ldr	fp, .L6+36
	mov	r1, r5
	str	r2, [sp, #44]
	mov	r0, r4
	add	r2, sp, #16
	str	ip, [sp, #40]
	str	r3, [sp, #16]
	str	r10, [sp, #24]
	str	fp, [sp, #28]
	str	r10, [sp, #32]
	str	fp, [sp, #36]
	bl	mcpwm_init
	ldr	r0, [r8]
	bl	gpio_pulldown_en
	ldr	r7, .L6+40
	mov	r3, #200
	ldr	r2, [sp, #96]
	mov	r1, r5
	mov	r0, r4
	bl	mcpwm_sync_enable
	mov	r1, r9
	ldr	r0, [r6]
	bl	gpio_set_level
	ldr	r1, [r7]
	mov	r0, #2000
	bl	__aeabi_idiv
	bl	vTaskDelay
	mov	r1, r5
	mov	r0, r4
	bl	mcpwm_sync_disable
	ldr	r1, [r7]
	mov	r0, #2000
	bl	__aeabi_idiv
	bl	vTaskDelay
	ldr	r3, .L6+12
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	SYN_SIG_NUM
	.word	GPIO_INTR_DISABLE
	.word	GPIO_MODE_OUTPUT
	.word	.LC0
	.word	GPIO_PWMA_OUT
	.word	GPIO_PWMB_OUT
	.word	GPIO_SYNC_IN
	.word	MCPWM_UP_COUNTER
	.word	MCPWM_DUTY_MODE_0
	.word	1078525952
	.word	portTICK_RATE_MS
	.size	sync_test, .-sync_test
	.comm	portTICK_RATE_MS,4,4
	.comm	SYN_SIG_NUM,4,4
	.comm	MCPWM_UP_COUNTER,4,4
	.comm	MCPWM_DUTY_MODE_0,4,4
	.comm	GPIO_SYNC_IN,4,4
	.comm	GPIO_PWMB_OUT,4,4
	.comm	GPIO_PWMA_OUT,4,4
	.comm	GPIO_MODE_OUTPUT,4,4
	.comm	GPIO_INTR_DISABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
