	.file	"extr_regmap-i2c.c_regmap_i2c_gather_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	regmap_i2c_gather_write, @function
regmap_i2c_gather_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, r8
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 80
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	to_i2c_client@PLT
	mov	esi, DWORD PTR I2C_FUNC_NOSTART[rip]
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	i2c_check_functionality@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR ENOTSUPP[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR 72[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
	mov	eax, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rsp
	mov	edx, 2
	mov	QWORD PTR 16[rsp], 0
	mov	DWORD PTR 24[rsp], eax
	mov	DWORD PTR 56[rsp], eax
	mov	rax, QWORD PTR I2C_M_NOSTART[rip]
	mov	QWORD PTR [rsp], r14
	mov	QWORD PTR 8[rsp], r13
	mov	QWORD PTR 48[rsp], rax
	mov	QWORD PTR 32[rsp], r12
	mov	QWORD PTR 40[rsp], rbp
	call	i2c_transfer@PLT
	cmp	eax, 2
	je	.L5
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	regmap_i2c_gather_write, .-regmap_i2c_gather_write
	.comm	I2C_M_NOSTART,8,8
	.comm	I2C_FUNC_NOSTART,4,4
	.comm	ENOTSUPP,4,4
	.comm	EIO,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_regmap-i2c.c_regmap_i2c_gather_write.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	regmap_i2c_gather_write, %function
regmap_i2c_gather_write:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r3
	ldr	r3, .L9
	sub	sp, sp, #40
	mov	r6, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	to_i2c_client
	ldr	ip, .L9+4
	mov	r4, r0
	ldr	r1, [ip]
	ldr	r0, [r0]
	bl	i2c_check_functionality
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r8, #0
	ldr	r3, .L9+12
	add	r1, sp, #4
	ldr	r2, [r3]
	ldm	r4, {r0, r3}
	str	r3, [sp, #16]
	str	r3, [sp, #32]
	ldr	r3, [sp, #64]
	str	r2, [sp, #28]
	mov	r2, #2
	str	r7, [sp, #4]
	str	r6, [sp, #8]
	str	r3, [sp, #20]
	str	r5, [sp, #24]
	str	r8, [sp, #12]
	bl	i2c_transfer
	cmp	r0, #2
	moveq	r0, r8
	beq	.L1
	cmp	r0, r8
	ldrge	r3, .L9+16
	ldrge	r0, [r3]
	rsbge	r0, r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	I2C_FUNC_NOSTART
	.word	ENOTSUPP
	.word	I2C_M_NOSTART
	.word	EIO
	.size	regmap_i2c_gather_write, .-regmap_i2c_gather_write
	.comm	I2C_M_NOSTART,4,4
	.comm	I2C_FUNC_NOSTART,4,4
	.comm	ENOTSUPP,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
