	.file	"extr_pwm-lp3943.c_lp3943_pwm_set_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lp3943_pwm_set_mode, @function
lp3943_pwm_set_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbp, QWORD PTR [rdi]
	mov	eax, DWORD PTR [rsi]
	mov	r12, QWORD PTR 0[rbp]
	test	eax, eax
	jle	.L2
	mov	r14, rsi
	mov	ebx, edx
	xor	r13d, r13d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	add	r13, 1
	cmp	DWORD PTR [r14], r13d
	jle	.L2
.L4:
	mov	rax, QWORD PTR 8[r14]
	mov	edi, ebx
	movsx	rax, DWORD PTR [rax+r13*4]
	lea	rax, [rax+rax*2]
	lea	rax, [r12+rax*4]
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR 4[rax]
	mov	esi, DWORD PTR 8[rax]
	sal	edi, cl
	mov	ecx, edi
	mov	rdi, rbp
	call	lp3943_update_bits@PLT
	test	eax, eax
	je	.L8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	lp3943_pwm_set_mode, .-lp3943_pwm_set_mode
	.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_pwm-lp3943.c_lp3943_pwm_set_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lp3943_pwm_set_mode, %function
lp3943_pwm_set_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, [r0]
	cmp	r3, #0
	ldr	r6, [r8]
	ble	.L2
	mov	r5, r1
	mov	r7, r2
	mov	r4, #0
.L4:
	ldr	r3, [r5, #4]
	mov	r0, r8
	ldr	ip, [r3, r4, lsl #2]
	add	r4, r4, #1
	add	ip, ip, ip, lsl #1
	ldr	r3, [r6, ip, lsl #2]
	add	ip, r6, ip, lsl #2
	ldr	r2, [ip, #4]
	ldr	r1, [ip, #8]
	lsl	r3, r7, r3
	bl	lp3943_update_bits
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r5]
	cmp	r3, r4
	bgt	.L4
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
	.size	lp3943_pwm_set_mode, .-lp3943_pwm_set_mode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
