	.file	"extr_mcpwm.c_mcpwm_carrier_set_duty_cycle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mcpwm_carrier_set_duty_cycle
	.type	mcpwm_carrier_set_duty_cycle, @function
mcpwm_carrier_set_duty_cycle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	mov	edx, DWORD PTR ESP_ERR_INVALID_ARG[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	xor	edi, edi
	cmp	QWORD PTR MCPWM_UNIT_MAX[rip], rbp
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	esi, DWORD PTR MCPWM_UNIT_NUM_ERROR[rip]
	seta	dil
	call	MCPWM_CHECK@PLT
	mov	edx, DWORD PTR ESP_ERR_INVALID_ARG[rip]
	mov	esi, DWORD PTR MCPWM_TIMER_ERROR[rip]
	xor	edi, edi
	cmp	QWORD PTR MCPWM_TIMER_MAX[rip], rbx
	seta	dil
	call	MCPWM_CHECK@PLT
	lea	rdi, mcpwm_spinlock[rip]
	call	portENTER_CRITICAL@PLT
	mov	rax, QWORD PTR MCPWM[rip]
	lea	rdi, mcpwm_spinlock[rip]
	mov	rax, QWORD PTR [rax+rbp*8]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax+rbx*4], r12d
	call	portEXIT_CRITICAL@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR ESP_OK[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mcpwm_carrier_set_duty_cycle, .-mcpwm_carrier_set_duty_cycle
	.comm	mcpwm_spinlock,4,4
	.comm	MCPWM_UNIT_NUM_ERROR,4,4
	.comm	MCPWM_UNIT_MAX,8,8
	.comm	MCPWM_TIMER_MAX,8,8
	.comm	MCPWM_TIMER_ERROR,4,4
	.comm	MCPWM,8,8
	.comm	ESP_OK,4,4
	.comm	ESP_ERR_INVALID_ARG,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_mcpwm.c_mcpwm_carrier_set_duty_cycle.c"
	.text
	.align	2
	.global	mcpwm_carrier_set_duty_cycle
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcpwm_carrier_set_duty_cycle, %function
mcpwm_carrier_set_duty_cycle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r4, r1
	mov	r6, r2
	ldr	r3, .L4
	ldr	r8, .L4+4
	ldr	r0, [r3]
	ldr	r3, .L4+8
	cmp	r0, r5
	movls	r0, #0
	movhi	r0, #1
	ldr	r2, [r8]
	ldr	r1, [r3]
	bl	MCPWM_CHECK
	ldr	r2, .L4+12
	ldr	r3, .L4+16
	ldr	r0, [r2]
	ldr	r7, .L4+20
	cmp	r0, r4
	ldr	r1, [r3]
	movls	r0, #0
	movhi	r0, #1
	ldr	r2, [r8]
	bl	MCPWM_CHECK
	mov	r0, r7
	bl	portENTER_CRITICAL
	ldr	r3, .L4+24
	mov	r0, r7
	ldr	r3, [r3]
	ldr	r3, [r3, r5, lsl #2]
	ldr	r3, [r3]
	str	r6, [r3, r4, lsl #2]
	bl	portEXIT_CRITICAL
	ldr	r3, .L4+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	MCPWM_UNIT_MAX
	.word	ESP_ERR_INVALID_ARG
	.word	MCPWM_UNIT_NUM_ERROR
	.word	MCPWM_TIMER_MAX
	.word	MCPWM_TIMER_ERROR
	.word	mcpwm_spinlock
	.word	MCPWM
	.word	ESP_OK
	.size	mcpwm_carrier_set_duty_cycle, .-mcpwm_carrier_set_duty_cycle
	.comm	mcpwm_spinlock,4,4
	.comm	MCPWM_UNIT_NUM_ERROR,4,4
	.comm	MCPWM_UNIT_MAX,4,4
	.comm	MCPWM_TIMER_MAX,4,4
	.comm	MCPWM_TIMER_ERROR,4,4
	.comm	MCPWM,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_ERR_INVALID_ARG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
