	.file	"extr_hal_ftm.c_HAL_FTM_PWM_ConfigChannel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	HAL_FTM_PWM_ConfigChannel
	.type	HAL_FTM_PWM_ConfigChannel, @function
HAL_FTM_PWM_ConfigChannel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 8[rdi]
	mov	rdi, r13
	call	IS_FTM_INSTANCE@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	rdi, r12
	call	IS_FTM_CHANNEL@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	IS_FTM_PWM_MODE@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	IS_FTM_OC_PULSE@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	edi, DWORD PTR [rbx]
	call	IS_FTM_OC_POLARITY@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	edx, DWORD PTR 8[rbx]
	mov	ecx, r12d
	lea	rax, [rax+r12*8]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR 4[rbx]
	mov	DWORD PTR [rax], edx
	mov	eax, 1
	sal	eax, cl
	test	BYTE PTR [rbx], 1
	je	.L2
	or	eax, DWORD PTR 0[r13]
.L3:
	mov	DWORD PTR 0[r13], eax
	mov	eax, DWORD PTR HAL_FTM_STATE_READY[rip]
	mov	DWORD PTR 0[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	not	eax
	and	eax, DWORD PTR 0[r13]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	HAL_FTM_PWM_ConfigChannel, .-HAL_FTM_PWM_ConfigChannel
	.comm	HAL_FTM_STATE_READY,4,4
	.comm	HAL_FTM_STATE_BUSY,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_hal_ftm.c_HAL_FTM_PWM_ConfigChannel.c"
	.text
	.align	2
	.global	HAL_FTM_PWM_ConfigChannel
	.syntax unified
	.arm
	.fpu softvfp
	.type	HAL_FTM_PWM_ConfigChannel, %function
HAL_FTM_PWM_ConfigChannel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r4, r1
	ldr	r7, [r0, #4]
	mov	r6, r0
	mov	r0, r7
	bl	IS_FTM_INSTANCE
	bl	assert_param
	mov	r0, r5
	bl	IS_FTM_CHANNEL
	bl	assert_param
	ldr	r0, [r4, #8]
	bl	IS_FTM_PWM_MODE
	bl	assert_param
	ldr	r0, [r4, #4]
	bl	IS_FTM_OC_PULSE
	bl	assert_param
	ldr	r0, [r4]
	bl	IS_FTM_OC_POLARITY
	bl	assert_param
	mov	r3, #1
	ldr	r2, [r7, #4]
	ldr	ip, [r4, #8]
	ldr	r1, [r4, #4]
	ldr	lr, [r4]
	add	r0, r2, r5, lsl #3
	str	ip, [r0, #4]
	str	r1, [r2, r5, lsl #3]
	ldr	r2, [r7]
	lsl	r3, r3, r5
	tst	lr, #1
	orrne	r3, r3, r2
	biceq	r3, r2, r3
	ldr	r2, .L6
	str	r3, [r7]
	ldr	r3, [r2]
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	HAL_FTM_STATE_READY
	.size	HAL_FTM_PWM_ConfigChannel, .-HAL_FTM_PWM_ConfigChannel
	.comm	HAL_FTM_STATE_READY,4,4
	.comm	HAL_FTM_STATE_BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
