	.file	"extr_a_int.c_i2c_ibuf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	i2c_ibuf, @function
i2c_ibuf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r9, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rdi, rdi
	je	.L9
	mov	r8, rsi
	test	rsi, rsi
	je	.L9
	movzx	eax, BYTE PTR [rdi]
	test	edx, edx
	jne	.L32
	cmp	rax, 127
	jbe	.L3
	lea	r12, 1[rsi]
	xor	ecx, ecx
	mov	eax, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	xor	ecx, ecx
	mov	r12d, 1
	xor	eax, eax
	xor	r8d, r8d
.L2:
	test	rbx, rbx
	je	.L1
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L1
	mov	BYTE PTR [rdi], cl
	mov	rdx, r8
	movzx	ecx, cl
	add	rdi, rax
	mov	rsi, r9
	call	twos_complement@PLT
	add	QWORD PTR [rbx], r12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	cmp	rax, 128
	jbe	.L5
	lea	r12, 1[r8]
	mov	ecx, -1
	mov	eax, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	test	edx, edx
	jne	.L32
	mov	r12, rsi
	xor	ecx, ecx
	xor	eax, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	je	.L35
	mov	r12, r8
	mov	ecx, -1
	xor	eax, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L35:
	cmp	r8, 1
	jbe	.L12
	lea	rax, 1[r9]
	lea	rsi, [r9+r8]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L7:
	movzx	ecx, BYTE PTR [rax]
	add	rax, 1
	or	edx, ecx
	cmp	rsi, rax
	jne	.L7
	test	edx, edx
	setne	r12b
	mov	ecx, r12d
	movzx	eax, r12b
	movzx	r12d, r12b
	neg	ecx
	add	r12, r8
	jmp	.L2
.L12:
	mov	r12d, 1
	xor	ecx, ecx
	xor	eax, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	i2c_ibuf, .-i2c_ibuf
	.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_a_int.c_i2c_ibuf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2c_ibuf, %function
i2c_ibuf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	ip, r1, #0
	movne	ip, #1
	cmp	r0, #0
	moveq	ip, #0
	cmp	ip, #0
	push	{r4, r5, r6, lr}
	mov	r4, r3
	mov	lr, r0
	beq	.L9
	mov	r5, r2
	mov	r2, r1
	ldrb	r1, [r0]	@ zero_extendqisi2
	cmp	r1, #127
	movls	r3, #0
	movhi	r3, #1
	cmp	r5, #0
	movne	r3, #0
	cmp	r3, #0
	beq	.L3
	mov	r3, #0
	mov	r1, #1
	add	r5, r2, #1
	b	.L2
.L9:
	mov	r3, ip
	mov	r5, #1
	mov	r1, ip
	mov	r2, ip
.L2:
	cmp	r4, #0
	beq	.L1
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L1
	strb	r3, [r0], r1
	mov	r1, lr
	bl	twos_complement
	ldr	r3, [r4]
	add	r3, r3, r5
	str	r3, [r4]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L3:
	cmp	r5, #0
	beq	.L10
	cmp	r1, #128
	bls	.L5
	mov	r3, #255
	mov	r1, #1
	add	r5, r2, #1
	b	.L2
.L10:
	mov	r3, r5
	mov	r5, r2
	mov	r1, r3
	b	.L2
.L5:
	movne	r1, r3
	movne	r5, r2
	movne	r3, #255
	bne	.L2
	cmp	r2, #1
	bls	.L12
	mov	r1, r0
	sub	ip, r2, #1
	add	ip, ip, r0
.L7:
	ldrb	r0, [r1, #1]!	@ zero_extendqisi2
	cmp	ip, r1
	orr	r3, r3, r0
	bne	.L7
	subs	r3, r3, #0
	movne	r3, #1
	rsb	ip, r3, #0
	and	r1, ip, #1
	and	r3, ip, #255
	add	r5, r2, r1
	b	.L2
.L12:
	mov	r5, #1
	mov	r1, r3
	b	.L2
	.size	i2c_ibuf, .-i2c_ibuf
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
