	.file	"extr_twl-core.c_twl_i2c_write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s: Write failed (mod %d, reg 0x%02x count %d)\n"
	.text
	.p2align 4
	.globl	twl_i2c_write
	.type	twl_i2c_write, @function
twl_i2c_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	twl_get_regmap@PLT
	test	rax, rax
	je	.L9
	mov	rdi, rax
	mov	rax, QWORD PTR twl_priv[rip]
	mov	rdx, r13
	mov	ecx, ebx
	mov	rax, QWORD PTR [rax]
	mov	rsi, QWORD PTR [rax+r12*8]
	add	rsi, r14
	call	regmap_bulk_write@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L10
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.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
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR DRIVER_NAME[rip]
	mov	r8d, ebx
	mov	rcx, r14
	mov	rdx, r12
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.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
.L9:
	.cfi_restore_state
	mov	r13d, DWORD PTR EPERM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	twl_i2c_write, .-twl_i2c_write
	.comm	twl_priv,8,8
	.comm	EPERM,4,4
	.comm	DRIVER_NAME,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_twl-core.c_twl_i2c_write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: Write failed (mod %d, reg 0x%02x count %d)\012\000"
	.text
	.align	2
	.global	twl_i2c_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	twl_i2c_write, %function
twl_i2c_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	mov	r4, r1
	mov	r6, r2
	mov	r7, r3
	mov	r5, r0
	bl	twl_get_regmap
	cmp	r0, #0
	beq	.L9
	ldr	r3, .L11
	mov	r2, r4
	ldr	r1, [r3]
	mov	r3, r7
	ldr	r1, [r1]
	ldr	r1, [r1, r5, lsl #2]
	add	r1, r6, r1
	bl	regmap_bulk_write
	subs	r4, r0, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	ldr	r1, .L11+4
	str	r7, [sp]
	mov	r3, r6
	mov	r2, r5
	ldr	r1, [r1]
	ldr	r0, .L11+8
	bl	pr_err
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	.align	2
.L11:
	.word	twl_priv
	.word	DRIVER_NAME
	.word	.LC0
	.word	EPERM
	.size	twl_i2c_write, .-twl_i2c_write
	.comm	twl_priv,4,4
	.comm	EPERM,4,4
	.comm	DRIVER_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
