	.file	"extr_wm8350-regulator.c_wm8350_isink_set_flash.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	wm8350_isink_set_flash
	.type	wm8350_isink_set_flash, @function
wm8350_isink_set_flash:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	eax, edx
	cmp	esi, 128
	je	.L2
	cmp	esi, 129
	jne	.L3
	test	edx, edx
	mov	edx, DWORD PTR 16[rsp]
	cmovne	eax, DWORD PTR WM8350_CS1_FLASH_MODE[rip]
	test	ecx, ecx
	cmovne	ecx, DWORD PTR WM8350_CS1_TRIGSRC[rip]
	or	edx, DWORD PTR 24[rsp]
	or	edx, r9d
	mov	esi, DWORD PTR WM8350_CSA_FLASH_CONTROL[rip]
	or	edx, r8d
	or	edx, eax
	or	edx, ecx
	call	wm8350_reg_write@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	edx, edx
	mov	edx, DWORD PTR 16[rsp]
	cmovne	eax, DWORD PTR WM8350_CS2_FLASH_MODE[rip]
	test	ecx, ecx
	cmovne	ecx, DWORD PTR WM8350_CS2_TRIGSRC[rip]
	or	edx, DWORD PTR 24[rsp]
	or	edx, r9d
	mov	esi, DWORD PTR WM8350_CSB_FLASH_CONTROL[rip]
	or	edx, r8d
	or	edx, eax
	or	edx, ecx
	call	wm8350_reg_write@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	wm8350_isink_set_flash, .-wm8350_isink_set_flash
	.comm	WM8350_CSB_FLASH_CONTROL,4,4
	.comm	WM8350_CSA_FLASH_CONTROL,4,4
	.comm	WM8350_CS2_TRIGSRC,4,4
	.comm	WM8350_CS2_FLASH_MODE,4,4
	.comm	WM8350_CS1_TRIGSRC,4,4
	.comm	WM8350_CS1_FLASH_MODE,4,4
	.comm	EINVAL,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_wm8350-regulator.c_wm8350_isink_set_flash.c"
	.text
	.align	2
	.global	wm8350_isink_set_flash
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8350_isink_set_flash, %function
wm8350_isink_set_flash:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #128
	push	{r4, lr}
	beq	.L2
	cmp	r1, #129
	bne	.L3
	cmp	r2, #0
	ldrne	r2, .L23
	ldr	r1, .L23+4
	ldrne	r2, [r2]
	cmp	r3, #0
	ldr	r1, [r1]
	ldrne	r3, .L23+8
	ldrne	r3, [r3]
.L8:
	ldr	lr, [sp, #20]
	ldr	ip, [sp, #16]
	orr	ip, ip, lr
	ldr	lr, [sp, #12]
	orr	ip, ip, lr
	ldr	lr, [sp, #8]
	orr	ip, ip, lr
	orr	r2, ip, r2
	orr	r2, r2, r3
	bl	wm8350_reg_write
	mov	r0, #0
	pop	{r4, pc}
.L2:
	cmp	r2, #0
	ldrne	r2, .L23+12
	ldr	r1, .L23+16
	ldrne	r2, [r2]
	cmp	r3, #0
	ldrne	r3, .L23+20
	ldr	r1, [r1]
	ldrne	r3, [r3]
	b	.L8
.L3:
	ldr	r3, .L23+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L24:
	.align	2
.L23:
	.word	WM8350_CS1_FLASH_MODE
	.word	WM8350_CSA_FLASH_CONTROL
	.word	WM8350_CS1_TRIGSRC
	.word	WM8350_CS2_FLASH_MODE
	.word	WM8350_CSB_FLASH_CONTROL
	.word	WM8350_CS2_TRIGSRC
	.word	EINVAL
	.size	wm8350_isink_set_flash, .-wm8350_isink_set_flash
	.comm	WM8350_CSB_FLASH_CONTROL,4,4
	.comm	WM8350_CSA_FLASH_CONTROL,4,4
	.comm	WM8350_CS2_TRIGSRC,4,4
	.comm	WM8350_CS2_FLASH_MODE,4,4
	.comm	WM8350_CS1_TRIGSRC,4,4
	.comm	WM8350_CS1_FLASH_MODE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
