	.file	"extr_i2c.c_i2c_ioctl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"i2cw %d %d %d\n"
.LC1:
	.string	"i2cr %d %d "
.LC2:
	.string	"= %d\n"
	.text
	.p2align 4
	.type	i2c_ioctl, @function
i2c_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edi, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	_IOC_TYPE@PLT
	cmp	rax, QWORD PTR ETRAXI2C_IOCTYPE[rip]
	je	.L2
.L7:
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	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	edi, ebp
	call	_IOC_NR@PLT
	cmp	eax, 128
	je	.L4
	cmp	eax, 129
	jne	.L7
	mov	rdi, r12
	call	I2C_ARGREG@PLT
	mov	rdi, r12
	mov	r13d, eax
	call	I2C_ARGSLAVE@PLT
	mov	edx, r13d
	lea	rdi, .LC1[rip]
	movzx	esi, al
	xor	eax, eax
	call	printk@PLT
	mov	edi, eax
	call	D@PLT
	mov	rdi, r12
	call	I2C_ARGREG@PLT
	mov	rdi, r12
	mov	ebp, eax
	call	I2C_ARGSLAVE@PLT
	mov	esi, ebp
	mov	edi, eax
	call	i2c_readreg@PLT
	lea	rdi, .LC2[rip]
	movzx	r12d, al
	xor	eax, eax
	mov	esi, r12d
	call	printk@PLT
	mov	edi, eax
	call	D@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	mov	rdi, r12
	call	I2C_ARGVALUE@PLT
	mov	rdi, r12
	mov	r14d, eax
	call	I2C_ARGREG@PLT
	mov	rdi, r12
	mov	r13d, eax
	call	I2C_ARGSLAVE@PLT
	mov	edx, r13d
	mov	ecx, r14d
	lea	rdi, .LC0[rip]
	movzx	esi, al
	xor	eax, eax
	call	printk@PLT
	mov	edi, eax
	call	D@PLT
	mov	rdi, r12
	call	I2C_ARGVALUE@PLT
	mov	rdi, r12
	mov	r13d, eax
	call	I2C_ARGREG@PLT
	mov	rdi, r12
	mov	ebp, eax
	call	I2C_ARGSLAVE@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	edx, r13d
	mov	esi, ebp
	mov	edi, eax
	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
	jmp	i2c_writereg@PLT
	.cfi_endproc
.LFE0:
	.size	i2c_ioctl, .-i2c_ioctl
	.comm	ETRAXI2C_IOCTYPE,8,8
	.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_i2c.c_i2c_ioctl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"i2cw %d %d %d\012\000"
	.align	2
.LC1:
	.ascii	"i2cr %d %d \000"
	.align	2
.LC2:
	.ascii	"= %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2c_ioctl, %function
i2c_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r2
	mov	r5, r3
	mov	r4, r2
	bl	_IOC_TYPE
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L2
.L7:
	ldr	r3, .L10+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r4
	bl	_IOC_NR
	cmp	r0, #128
	beq	.L4
	cmp	r0, #129
	bne	.L7
	mov	r0, r5
	bl	I2C_ARGSLAVE
	mov	r4, r0
	mov	r0, r5
	bl	I2C_ARGREG
	and	r1, r4, #255
	mov	r2, r0
	ldr	r0, .L10+8
	bl	printk
	bl	D
	mov	r0, r5
	bl	I2C_ARGSLAVE
	mov	r4, r0
	mov	r0, r5
	bl	I2C_ARGREG
	mov	r1, r0
	mov	r0, r4
	bl	i2c_readreg
	mov	r4, r0
	ldr	r0, .L10+12
	mov	r1, r4
	bl	printk
	bl	D
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r5
	bl	I2C_ARGSLAVE
	mov	r4, r0
	mov	r0, r5
	bl	I2C_ARGREG
	mov	r6, r0
	mov	r0, r5
	bl	I2C_ARGVALUE
	mov	r2, r6
	mov	r3, r0
	and	r1, r4, #255
	ldr	r0, .L10+16
	bl	printk
	bl	D
	mov	r0, r5
	bl	I2C_ARGSLAVE
	mov	r4, r0
	mov	r0, r5
	bl	I2C_ARGREG
	mov	r1, r0
	mov	r0, r5
	mov	r5, r1
	bl	I2C_ARGVALUE
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	i2c_writereg
.L11:
	.align	2
.L10:
	.word	ETRAXI2C_IOCTYPE
	.word	EINVAL
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	i2c_ioctl, .-i2c_ioctl
	.comm	ETRAXI2C_IOCTYPE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
