	.file	"extr_core.c_pwm_adjust_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pwm_adjust_config
	.type	pwm_adjust_config, @function
pwm_adjust_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rsi, 16[rsp]
	mov	r12, rsp
	call	pwm_get_args@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	pwm_get_state@PLT
	mov	esi, DWORD PTR [rsp]
	test	esi, esi
	je	.L9
	mov	eax, DWORD PTR 16[rsp]
	cmp	esi, eax
	jne	.L10
.L4:
	mov	rax, QWORD PTR 24[rsp]
	cmp	rax, QWORD PTR 8[rsp]
	je	.L5
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR [rsp]
	sub	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], eax
.L5:
	mov	rsi, r12
	mov	rdi, rbp
	call	pwm_apply_state@PLT
.L1:
	mov	rdx, QWORD PTR 40[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	imul	eax, DWORD PTR 4[rsp]
	mov	edi, eax
	mov	ebx, eax
	call	do_div@PLT
	mov	eax, DWORD PTR 16[rsp]
	mov	DWORD PTR 4[rsp], ebx
	mov	DWORD PTR [rsp], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR 16[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], 0
	mov	DWORD PTR [rsp], eax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rsp], rax
	call	pwm_apply_state@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pwm_adjust_config, .-pwm_adjust_config
	.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_core.c_pwm_adjust_config.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pwm_adjust_config
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwm_adjust_config, %function
pwm_adjust_config:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	sub	sp, sp, #28
	ldr	r3, .L12
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	pwm_get_args
	mov	r0, r4
	add	r1, sp, #8
	bl	pwm_get_state
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L9
	ldr	r2, [sp]
	cmp	r3, r2
	bne	.L10
.L4:
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #16]
	mov	r0, r4
	cmp	r3, r2
	ldrne	r1, [sp, #12]
	ldrne	r2, [sp, #8]
	strne	r3, [sp, #16]
	subne	r3, r2, r1
	add	r1, sp, #8
	strne	r3, [sp, #12]
	bl	pwm_apply_state
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L10:
	ldr	r5, [sp, #12]
	mov	r1, r3
	mul	r5, r2, r5
	mov	r0, r5
	bl	do_div
	ldr	r3, [sp]
	str	r5, [sp, #12]
	str	r3, [sp, #8]
	b	.L4
.L9:
	ldr	ip, [sp]
	ldr	r2, [sp, #4]
	mov	r0, r4
	add	r1, sp, #8
	str	r3, [sp, #12]
	str	ip, [sp, #8]
	str	r2, [sp, #16]
	bl	pwm_apply_state
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	pwm_adjust_config, .-pwm_adjust_config
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
