	.file	"extr_dib0700_core.c_dib0700_i2c_xfer_new.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"i2c read error (status = %d)\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"buffer too small to fit %d bytes\n"
	.section	.rodata.str1.1
.LC2:
	.string	"<<< "
.LC3:
	.string	"could not acquire lock"
.LC4:
	.string	"i2c message to big: %d\n"
.LC5:
	.string	">>> "
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"i2c write error (status = %d)\n"
	.text
	.p2align 4
	.type	dib0700_i2c_xfer_new, @function
dib0700_i2c_xfer_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 16[rsp], edx
	call	i2c_get_adapdata@PLT
	mov	rdi, rax
	mov	r14, QWORD PTR 16[rax]
	mov	r13, rax
	call	mutex_lock_interruptible@PLT
	test	rax, rax
	js	.L2
	test	r15d, r15d
	jle	.L14
	lea	eax, -1[r15]
	add	rbx, 4
	xor	r12d, r12d
	xor	ebp, ebp
	mov	DWORD PTR 12[rsp], eax
	mov	r8d, 1
	mov	eax, DWORD PTR -4[rbx]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r9d, DWORD PTR 4[rbx]
	sal	r8d, 7
	mov	r10, QWORD PTR [r14]
	xor	esi, esi
	mov	r11d, DWORD PTR USB_CTRL_GET_TIMEOUT[rip]
	mov	edi, DWORD PTR 8[r13]
	mov	eax, r9d
	mov	ecx, DWORD PTR USB_TYPE_VENDOR[rip]
	or	ecx, DWORD PTR USB_DIR_IN[rip]
	mov	DWORD PTR 44[rsp], r9d
	and	eax, 63
	mov	DWORD PTR 32[rsp], r11d
	mov	r15d, DWORD PTR REQUEST_NEW_I2C_READ[rip]
	or	r8d, eax
	mov	eax, ebp
	mov	QWORD PTR 24[rsp], r10
	sal	eax, 6
	mov	DWORD PTR 20[rsp], ecx
	or	r8d, eax
	mov	eax, DWORD PTR [rbx]
	sal	r8d, 8
	add	eax, eax
	or	r8d, eax
	mov	DWORD PTR 40[rsp], r8d
	call	usb_rcvctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	edi, DWORD PTR 8[r13]
	mov	edx, r15d
	mov	r11d, DWORD PTR 40[rsp]
	mov	esi, eax
	push	r11
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR 60[rsp]
	push	r9
	.cfi_def_cfa_offset 136
	mov	r10, QWORD PTR 48[rsp]
	mov	r9d, 16
	push	r10
	.cfi_def_cfa_offset 144
	mov	r8d, DWORD PTR 72[rsp]
	mov	ecx, DWORD PTR 52[rsp]
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	test	eax, eax
	js	.L17
	mov	edx, DWORD PTR 4[rbx]
	cmp	edx, 8
	ja	.L18
	mov	rsi, QWORD PTR [r14]
	mov	rdi, QWORD PTR 12[rbx]
	call	memcpy@PLT
	lea	rdi, .LC2[rip]
	call	deb_data@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, QWORD PTR 12[rbx]
	mov	rdx, QWORD PTR deb_data@GOTPCREL[rip]
	call	debug_dump@PLT
.L10:
	add	r12d, 1
	add	rbx, 24
	cmp	DWORD PTR 16[rsp], r12d
	je	.L3
	xor	r8d, r8d
	mov	eax, DWORD PTR -4[rbx]
	test	DWORD PTR I2C_M_NOSTART[rip], eax
	sete	r8b
.L4:
	cmp	DWORD PTR 12[rsp], r12d
	mov	ecx, 1
	cmove	ebp, ecx
	test	DWORD PTR I2C_M_RD[rip], eax
	jne	.L19
	lea	r15, 4[r13]
	mov	DWORD PTR 20[rsp], r8d
	mov	rdi, r15
	call	mutex_lock_interruptible@PLT
	mov	r8d, DWORD PTR 20[rsp]
	test	rax, rax
	js	.L20
	mov	rdi, QWORD PTR [r14]
	mov	eax, DWORD PTR REQUEST_NEW_I2C_WRITE[rip]
	sal	r8d, 7
	mov	DWORD PTR [rdi], eax
	mov	eax, DWORD PTR [rbx]
	add	eax, eax
	mov	DWORD PTR 4[rdi], eax
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 12[rdi], 16
	and	eax, 63
	or	r8d, eax
	mov	eax, ebp
	sal	eax, 6
	or	r8d, eax
	mov	DWORD PTR 8[rdi], r8d
	mov	edx, DWORD PTR 4[rbx]
	cmp	edx, 4
	ja	.L21
	mov	rsi, QWORD PTR 12[rbx]
	add	rdi, 16
	call	memcpy@PLT
	lea	rdi, .LC5[rip]
	call	deb_data@PLT
	mov	eax, DWORD PTR 4[rbx]
	mov	rdx, QWORD PTR deb_data@GOTPCREL[rip]
	mov	rdi, QWORD PTR [r14]
	lea	esi, 4[rax]
	call	debug_dump@PLT
	mov	eax, DWORD PTR 4[rbx]
	mov	r9, QWORD PTR [r14]
	xor	esi, esi
	mov	r11d, DWORD PTR USB_CTRL_GET_TIMEOUT[rip]
	mov	edx, DWORD PTR REQUEST_NEW_I2C_WRITE[rip]
	mov	edi, DWORD PTR 8[r13]
	lea	r8d, 4[rax]
	mov	ecx, DWORD PTR USB_TYPE_VENDOR[rip]
	mov	QWORD PTR 32[rsp], r9
	or	ecx, DWORD PTR USB_DIR_OUT[rip]
	mov	DWORD PTR 44[rsp], r11d
	mov	DWORD PTR 40[rsp], r8d
	mov	DWORD PTR 24[rsp], ecx
	mov	DWORD PTR 20[rsp], edx
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	edi, DWORD PTR 8[r13]
	mov	r11d, DWORD PTR 52[rsp]
	mov	esi, eax
	push	r11
	.cfi_def_cfa_offset 128
	mov	r8d, DWORD PTR 56[rsp]
	push	r8
	.cfi_def_cfa_offset 136
	mov	r9, QWORD PTR 56[rsp]
	xor	r8d, r8d
	push	r9
	.cfi_def_cfa_offset 144
	mov	ecx, DWORD PTR 56[rsp]
	xor	r9d, r9d
	mov	edx, DWORD PTR 52[rsp]
	call	usb_control_msg@PLT
	mov	rdi, r15
	mov	DWORD PTR 52[rsp], eax
	add	rsp, 32
	.cfi_def_cfa_offset 112
	call	mutex_unlock@PLT
	mov	edx, DWORD PTR 20[rsp]
	test	edx, edx
	jns	.L10
	mov	esi, edx
	lea	rdi, .LC6[rip]
	call	deb_info@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r13
	call	mutex_unlock@PLT
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINTR[rip]
	neg	r12d
	jmp	.L1
.L17:
	mov	r15d, eax
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	deb_info@PLT
	mov	r12d, r15d
	jmp	.L3
.L20:
	lea	rdi, .LC3[rip]
	call	err@PLT
	mov	r12d, DWORD PTR EINTR[rip]
	neg	r12d
	jmp	.L3
.L21:
	mov	esi, edx
	lea	rdi, .LC4[rip]
	call	deb_info@PLT
	mov	rdi, r15
	call	mutex_unlock@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L3
.L18:
	mov	esi, edx
	lea	rdi, .LC1[rip]
	call	deb_info@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L3
.L14:
	xor	r12d, r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	dib0700_i2c_xfer_new, .-dib0700_i2c_xfer_new
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	USB_DIR_IN,4,4
	.comm	USB_CTRL_GET_TIMEOUT,4,4
	.comm	REQUEST_NEW_I2C_WRITE,4,4
	.comm	REQUEST_NEW_I2C_READ,4,4
	.comm	I2C_M_RD,4,4
	.comm	I2C_M_NOSTART,4,4
	.comm	EIO,4,4
	.comm	EINTR,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_dib0700_core.c_dib0700_i2c_xfer_new.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"i2c read error (status = %d)\012\000"
	.align	2
.LC1:
	.ascii	"buffer too small to fit %d bytes\012\000"
	.align	2
.LC2:
	.ascii	"<<< \000"
	.align	2
.LC3:
	.ascii	"could not acquire lock\000"
	.align	2
.LC4:
	.ascii	"i2c message to big: %d\012\000"
	.align	2
.LC5:
	.ascii	">>> \000"
	.align	2
.LC6:
	.ascii	"i2c write error (status = %d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dib0700_i2c_xfer_new, %function
dib0700_i2c_xfer_new:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #52
	mov	r4, r1
	mov	r5, r2
	str	r2, [sp, #36]
	bl	i2c_get_adapdata
	ldr	r7, [r0, #12]
	str	r0, [sp, #28]
	bl	mutex_lock_interruptible
	cmp	r0, #0
	blt	.L2
	mov	r3, r5
	cmp	r3, #0
	mov	r5, #0
	ble	.L3
	sub	r3, r3, #1
	str	r3, [sp, #32]
	mov	r3, #1
	mov	r6, r5
	mov	r1, r3
	ldr	r2, [r4]
	ldr	r9, .L22
	ldr	fp, .L22+4
	ldr	r10, .L22+8
	b	.L4
.L19:
	ldr	r0, [sp, #28]
	ldmib	r4, {r2, r3}
	and	r3, r3, #63
	ldr	r8, [r0, #8]
	orr	r3, r3, r1, lsl #7
	orr	r3, r3, r6, lsl #6
	lsl	r2, r2, #1
	orr	r2, r2, r3, lsl #8
	mov	r1, #0
	mov	r0, r8
	str	r2, [sp, #40]
	bl	usb_rcvctrlpipe
	mov	ip, #16
	ldr	r3, [r10]
	ldr	r2, [sp, #40]
	str	r3, [sp, #16]
	ldr	r3, [r4, #8]
	mov	r1, r0
	str	r3, [sp, #12]
	ldr	lr, [r7]
	ldr	r3, .L22+12
	mov	r0, r8
	ldr	r3, [r3]
	str	r2, [sp]
	str	lr, [sp, #8]
	ldr	r2, .L22+16
	ldr	lr, [fp]
	str	ip, [sp, #4]
	ldr	r2, [r2]
	orr	r3, lr, r3
	bl	usb_control_msg
	cmp	r0, #0
	blt	.L17
	ldr	r2, [r4, #8]
	cmp	r2, #4
	bhi	.L18
	ldr	r1, [r7]
	ldr	r0, [r4, #12]
	bl	memcpy
	ldr	r0, .L22+20
	bl	deb_data
	ldr	r2, .L22+24
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	bl	debug_dump
.L10:
	ldr	r3, [sp, #36]
	add	r5, r5, #1
	cmp	r3, r5
	beq	.L3
	ldr	r3, .L22+28
	ldr	r2, [r4, #16]!
	ldr	r3, [r3]
	tst	r2, r3
	moveq	r1, #1
	movne	r1, #0
.L4:
	ldr	r0, [sp, #32]
	ldr	r3, [r9]
	cmp	r5, r0
	moveq	r6, #1
	tst	r2, r3
	bne	.L19
	ldr	r3, [sp, #28]
	str	r1, [sp, #40]
	add	r8, r3, #4
	mov	r0, r8
	bl	mutex_lock_interruptible
	cmp	r0, #0
	ldr	r1, [sp, #40]
	blt	.L20
	mov	r0, #16
	ldr	r3, .L22+32
	ldr	r2, [r7]
	ldr	r3, [r3]
	str	r3, [r2]
	ldr	r3, [r4, #4]
	lsl	r3, r3, #1
	str	r3, [r2, #4]
	ldr	r3, [r4, #8]
	str	r0, [r2, #12]
	and	r3, r3, #63
	orr	r3, r3, r1, lsl #7
	orr	r3, r3, r6, lsl #6
	str	r3, [r2, #8]
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L22+36
	str	r3, [sp, #40]
	bl	deb_data
	ldr	r1, [r4, #8]
	ldr	r2, .L22+24
	add	r1, r1, #4
	ldr	r0, [r7]
	bl	debug_dump
	ldr	r3, [sp, #28]
	ldr	r2, [r3, #8]
	ldr	r3, [sp, #40]
	mov	r0, r2
	mov	r1, r3
	str	r3, [sp, #44]
	str	r2, [sp, #40]
	bl	usb_sndctrlpipe
	ldr	ip, [r10]
	ldr	r2, [sp, #40]
	str	ip, [sp, #16]
	ldr	ip, [r4, #8]
	mov	r1, r0
	mov	r0, r2
	add	r2, ip, #4
	str	r2, [sp, #12]
	ldr	r2, [r7]
	ldr	r3, .L22+40
	str	r2, [sp, #8]
	ldr	r2, [r3]
	ldr	ip, [fp]
	ldr	r3, [sp, #44]
	str	r3, [sp, #4]
	str	r3, [sp]
	orr	r3, ip, r2
	ldr	r2, .L22+32
	ldr	r2, [r2]
	bl	usb_control_msg
	str	r0, [sp, #40]
	mov	r0, r8
	bl	mutex_unlock
	ldr	r1, [sp, #40]
	cmp	r1, #0
	bge	.L10
	ldr	r0, .L22+44
	bl	deb_info
.L3:
	ldr	r0, [sp, #28]
	bl	mutex_unlock
	mov	r0, r5
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L22+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r0, .L22+52
	bl	err
	ldr	r3, .L22+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L17:
	mov	r1, r0
	ldr	r0, .L22+56
	mov	r5, r1
	bl	deb_info
	b	.L3
.L18:
	mov	r1, r2
	ldr	r0, .L22+60
	bl	deb_info
	ldr	r3, .L22+64
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L21:
	mov	r1, r3
	ldr	r0, .L22+68
	bl	deb_info
	mov	r0, r8
	bl	mutex_unlock
	ldr	r3, .L22+64
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L23:
	.align	2
.L22:
	.word	I2C_M_RD
	.word	USB_TYPE_VENDOR
	.word	USB_CTRL_GET_TIMEOUT
	.word	USB_DIR_IN
	.word	REQUEST_NEW_I2C_READ
	.word	.LC2
	.word	deb_data
	.word	I2C_M_NOSTART
	.word	REQUEST_NEW_I2C_WRITE
	.word	.LC5
	.word	USB_DIR_OUT
	.word	.LC6
	.word	EINTR
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	EIO
	.word	.LC4
	.size	dib0700_i2c_xfer_new, .-dib0700_i2c_xfer_new
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	USB_DIR_IN,4,4
	.comm	USB_CTRL_GET_TIMEOUT,4,4
	.comm	REQUEST_NEW_I2C_WRITE,4,4
	.comm	REQUEST_NEW_I2C_READ,4,4
	.comm	I2C_M_RD,4,4
	.comm	I2C_M_NOSTART,4,4
	.comm	EIO,4,4
	.comm	EINTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
