	.file	"extr_asc7621.c_store_pwm_ac.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	store_pwm_ac, @function
store_pwm_ac:
.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, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rcx
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	SETUP_STORE_DATA_PARAM@PLT
	mov	rdx, rsp
	mov	esi, 10
	mov	rdi, rbp
	call	kstrtoul@PLT
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR [rsp]
	cmp	rax, 31
	ja	.L8
	lea	rdx, map.1964[rip]
	movsx	rbp, DWORD PTR [rdx+rax*4]
	mov	QWORD PTR [rsp], rbp
	mov	rdx, rbp
	cmp	rbp, 255
	je	.L8
	mov	rax, QWORD PTR param[rip]
	shr	rbp, 3
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	and	edx, DWORD PTR [rsi]
	mov	ecx, DWORD PTR [rax]
	and	edx, 7
	and	ebp, DWORD PTR 4[rsi]
	sal	edx, cl
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR data[rip]
	mov	r12d, edx
	mov	edx, ebp
	and	edx, 1
	lea	rdi, 8[rax]
	sal	edx, cl
	mov	ebp, edx
	call	mutex_lock@PLT
	mov	rax, QWORD PTR param[rip]
	mov	edi, DWORD PTR client[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, QWORD PTR [rax]
	call	read_byte@PLT
	mov	rsi, QWORD PTR param[rip]
	mov	rdi, QWORD PTR [rsi]
	mov	r8, QWORD PTR 8[rsi]
	mov	edx, DWORD PTR [rdi]
	mov	ecx, DWORD PTR [r8]
	sal	edx, cl
	mov	ecx, DWORD PTR 4[r8]
	not	edx
	and	edx, eax
	mov	eax, DWORD PTR 4[rdi]
	or	edx, r12d
	sal	eax, cl
	not	eax
	and	edx, eax
	mov	rax, QWORD PTR 16[rsi]
	or	edx, ebp
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR data[rip]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax+rsi*4], edx
	mov	edi, DWORD PTR client[rip]
	call	write_byte@PLT
	mov	rax, QWORD PTR data[rip]
	lea	rdi, 8[rax]
	call	mutex_unlock@PLT
	mov	rax, rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR EINVAL[rip]
	neg	rax
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	store_pwm_ac, .-store_pwm_ac
	.section	.rodata
	.align 32
	.type	map.1964, @object
	.size	map.1964, 128
map.1964:
	.long	4
	.long	0
	.long	1
	.long	255
	.long	2
	.long	255
	.long	5
	.long	6
	.long	8
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	15
	.long	7
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	255
	.long	3
	.comm	param,8,8
	.comm	data,8,8
	.comm	client,4,4
	.comm	EINVAL,8,8
	.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_asc7621.c_store_pwm_ac.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	store_pwm_ac, %function
store_pwm_ac:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r2
	mov	r4, r3
	ldr	r3, .L11
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	SETUP_STORE_DATA_PARAM
	mov	r0, r5
	mov	r2, sp
	mov	r1, #10
	bl	kstrtoul
	cmp	r0, #0
	bne	.L8
	ldr	r3, [sp]
	cmp	r3, #31
	bhi	.L8
	ldr	r2, .L11+4
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #255
	str	r3, [sp]
	beq	.L8
	ldr	r9, .L11+8
	ldr	r7, .L11+12
	ldr	r1, [r9]
	ldr	r0, [r7]
	ldr	r2, [r1]
	ldr	r1, [r1, #4]
	ldr	r6, [r2]
	ldr	r5, [r2, #4]
	ldr	ip, [r1]
	and	r6, r6, r3
	and	r5, r5, r3, lsr #3
	ldr	r3, [r1, #4]
	and	r2, r6, #7
	and	r5, r5, #1
	add	r0, r0, #4
	lsl	r6, r2, ip
	lsl	r5, r5, r3
	bl	mutex_lock
	ldr	r3, [r9]
	ldr	r8, .L11+16
	ldr	r3, [r3, #8]
	ldr	r0, [r8]
	ldr	r1, [r3]
	bl	read_byte
	ldr	r3, [r9]
	ldr	lr, [r7]
	ldr	r1, [r3, #4]
	ldr	ip, [r3]
	ldr	r2, [r1]
	ldr	r9, [ip]
	ldr	r3, [r3, #8]
	ldr	ip, [ip, #4]
	bic	r2, r0, r9, lsl r2
	ldr	r0, [r1, #4]
	orr	r2, r2, r6
	ldr	r1, [r3]
	bic	r2, r2, ip, lsl r0
	ldr	r3, [lr]
	orr	r2, r2, r5
	str	r2, [r3, r1, lsl #2]
	ldr	r0, [r8]
	bl	write_byte
	ldr	r0, [r7]
	add	r0, r0, #4
	bl	mutex_unlock
	mov	r0, r4
	b	.L1
.L8:
	ldr	r3, .L11+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LANCHOR0
	.word	param
	.word	data
	.word	client
	.word	EINVAL
	.size	store_pwm_ac, .-store_pwm_ac
	.comm	param,4,4
	.comm	data,4,4
	.comm	client,4,4
	.comm	EINVAL,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	map.4248, %object
	.size	map.4248, 128
map.4248:
	.word	4
	.word	0
	.word	1
	.word	255
	.word	2
	.word	255
	.word	5
	.word	6
	.word	8
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	15
	.word	7
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	3
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
