	.file	"extr_cxgbetool.c_read_i2c.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"incorrect number of arguments."
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"invalid port id \"%s\""
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"invalid i2c device address \"%s\""
	.section	.rodata.str1.1
.LC3:
	.string	"invalid byte offset \"%s\""
.LC4:
	.string	"invalid number of bytes \"%s\""
.LC5:
	.string	"0x%x [%u]\n"
	.text
	.p2align 4
	.type	read_i2c, @function
read_i2c:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	eax, -3[rdi]
	cmp	eax, 1
	ja	.L22
	mov	rbx, rsi
	mov	r12d, edi
	lea	rbp, 8[rsp]
	xor	edx, edx
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, rbp
	call	str_to_number@PLT
	cmp	BYTE PTR [rax], 0
	jne	.L4
	mov	rax, QWORD PTR 8[rsp]
	cmp	rax, QWORD PTR UCHAR_MAX[rip]
	jg	.L4
	mov	rdi, QWORD PTR 8[rbx]
	xor	edx, edx
	mov	rsi, rbp
	mov	QWORD PTR 16[rsp], rax
	call	str_to_number@PLT
	cmp	BYTE PTR [rax], 0
	jne	.L6
	mov	rax, QWORD PTR 8[rsp]
	cmp	rax, QWORD PTR UCHAR_MAX[rip]
	jg	.L6
	mov	rdi, QWORD PTR 16[rbx]
	xor	edx, edx
	mov	rsi, rbp
	mov	QWORD PTR 24[rsp], rax
	call	str_to_number@PLT
	cmp	BYTE PTR [rax], 0
	jne	.L8
	mov	rax, QWORD PTR 8[rsp]
	cmp	rax, QWORD PTR UCHAR_MAX[rip]
	jg	.L8
	mov	QWORD PTR 32[rsp], rax
	cmp	r12d, 4
	je	.L23
	mov	QWORD PTR 40[rsp], 1
.L13:
	mov	edi, DWORD PTR CHELSIO_T4_GET_I2C[rip]
	lea	rsi, 16[rsp]
	call	doit@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	xor	ebx, ebx
	cmp	QWORD PTR 40[rsp], 0
	lea	rbp, .LC5[rip]
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 48[rsp]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	mov	edx, esi
	call	printf@PLT
	cmp	QWORD PTR 40[rsp], rbx
	jg	.L14
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, QWORD PTR [rbx]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	warnx@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	warnx@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, QWORD PTR 8[rbx]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	warnx@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, QWORD PTR 16[rbx]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	warnx@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	jmp	.L1
.L23:
	mov	rdi, QWORD PTR 24[rbx]
	xor	edx, edx
	mov	rsi, rbp
	call	str_to_number@PLT
	cmp	BYTE PTR [rax], 0
	jne	.L11
	mov	rax, QWORD PTR 8[rsp]
	cmp	rax, 8
	ja	.L11
	mov	QWORD PTR 40[rsp], rax
	jmp	.L13
.L11:
	mov	rsi, QWORD PTR 24[rbx]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	warnx@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_i2c, .-read_i2c
	.comm	UCHAR_MAX,8,8
	.comm	EINVAL,4,4
	.comm	CHELSIO_T4_GET_I2C,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_cxgbetool.c_read_i2c.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"incorrect number of arguments.\000"
	.align	2
.LC1:
	.ascii	"invalid port id \"%s\"\000"
	.align	2
.LC2:
	.ascii	"invalid i2c device address \"%s\"\000"
	.align	2
.LC3:
	.ascii	"invalid byte offset \"%s\"\000"
	.align	2
.LC4:
	.ascii	"invalid number of bytes \"%s\"\000"
	.align	2
.LC5:
	.ascii	"0x%x [%u]\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_i2c, %function
read_i2c:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	r3, r0, #3
	cmp	r3, #1
	ldr	r3, .L25
	sub	sp, sp, #32
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bhi	.L22
	mov	r4, r1
	mov	r2, #0
	mov	r5, r0
	add	r1, sp, #4
	ldr	r0, [r4]
	bl	str_to_number
	ldrb	r2, [r0]	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L4
	ldr	r6, .L25+4
	ldr	r3, [sp, #4]
	ldr	r1, [r6]
	cmp	r3, r1
	bgt	.L4
	ldr	r0, [r4, #4]
	add	r1, sp, #4
	str	r3, [sp, #8]
	bl	str_to_number
	ldrb	r2, [r0]	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L6
	ldr	r3, [sp, #4]
	ldr	r1, [r6]
	cmp	r3, r1
	bgt	.L6
	ldr	r0, [r4, #8]
	add	r1, sp, #4
	str	r3, [sp, #12]
	bl	str_to_number
	ldrb	r2, [r0]	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L8
	ldr	r1, [r6]
	ldr	r3, [sp, #4]
	cmp	r3, r1
	bgt	.L8
	cmp	r5, #4
	str	r3, [sp, #16]
	movne	r3, #1
	beq	.L23
.L20:
	str	r3, [sp, #20]
	ldr	r3, .L25+8
	add	r1, sp, #8
	ldr	r0, [r3]
	bl	doit
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [sp, #20]
	cmp	r3, #0
	ble	.L1
	mov	r5, r4
	ldr	r6, .L25+12
.L14:
	ldr	r3, [sp, #24]
	mov	r0, r6
	ldr	r2, [r3, r5, lsl #2]
	add	r5, r5, #1
	mov	r1, r2
	bl	printf
	ldr	r3, [sp, #20]
	cmp	r3, r5
	bgt	.L14
	b	.L1
.L4:
	ldr	r1, [r4]
	ldr	r0, .L25+16
	bl	warnx
	ldr	r3, .L25+20
	ldr	r4, [r3]
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L22:
	ldr	r0, .L25+24
	bl	warnx
	ldr	r3, .L25+20
	ldr	r4, [r3]
	b	.L1
.L6:
	ldr	r1, [r4, #4]
	ldr	r0, .L25+28
	bl	warnx
	ldr	r3, .L25+20
	ldr	r4, [r3]
	b	.L1
.L8:
	ldr	r1, [r4, #8]
	ldr	r0, .L25+32
	bl	warnx
	ldr	r3, .L25+20
	ldr	r4, [r3]
	b	.L1
.L23:
	ldr	r0, [r4, #12]
	add	r1, sp, #4
	bl	str_to_number
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	ldr	r3, [sp, #4]
	cmp	r3, #4
	bls	.L20
.L11:
	ldr	r1, [r4, #12]
	ldr	r0, .L25+36
	bl	warnx
	ldr	r3, .L25+20
	ldr	r4, [r3]
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC6
	.word	UCHAR_MAX
	.word	CHELSIO_T4_GET_I2C
	.word	.LC5
	.word	.LC1
	.word	EINVAL
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	read_i2c, .-read_i2c
	.comm	UCHAR_MAX,4,4
	.comm	EINVAL,4,4
	.comm	CHELSIO_T4_GET_I2C,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
