	.file	"extr_em28xx-i2c.c_em2800_i2c_send_max4.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"writing to i2c device failed (error=%i)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"i2c write timed out\n"
	.text
	.p2align 4
	.type	em2800_i2c_send_max4, @function
em2800_i2c_send_max4:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	eax, -1[rcx]
	cmp	eax, 3
	seta	dil
	call	BUG_ON@PLT
	lea	eax, 127[r12]
	mov	BYTE PTR 6[rsp], r13b
	mov	BYTE PTR 7[rsp], al
	movzx	eax, BYTE PTR [rbx]
	mov	BYTE PTR 5[rsp], al
	cmp	r12d, 1
	jle	.L3
	movzx	eax, BYTE PTR 1[rbx]
	mov	BYTE PTR 4[rsp], al
	cmp	r12d, 2
	je	.L3
	movzx	eax, BYTE PTR 2[rbx]
	mov	BYTE PTR 3[rsp], al
	cmp	r12d, 3
	je	.L3
	movzx	eax, BYTE PTR 3[rbx]
	mov	BYTE PTR 2[rsp], al
.L3:
	mov	esi, 4
	lea	ebx, 2[r12]
	mov	rdi, rbp
	sub	esi, r12d
	mov	ecx, ebx
	movsx	rax, esi
	lea	rdx, 2[rsp+rax]
	call	[QWORD PTR 0[rbp]]
	cmp	ebx, eax
	jne	.L22
	mov	ebx, DWORD PTR EM2800_I2C_WRITE_TIMEOUT[rip]
	lea	r13d, 127[r12]
	test	ebx, ebx
	jg	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, 5
	sub	ebx, 5
	call	msleep@PLT
	test	ebx, ebx
	jle	.L9
.L8:
	mov	esi, 5
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	cmp	r13d, eax
	jne	.L23
	mov	eax, r12d
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	em28xx_warn@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, eax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	em28xx_warn@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	em2800_i2c_send_max4, .-em2800_i2c_send_max4
	.comm	EM2800_I2C_WRITE_TIMEOUT,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_em28xx-i2c.c_em2800_i2c_send_max4.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"writing to i2c device failed (error=%i)\012\000"
	.align	2
.LC1:
	.ascii	"i2c write timed out\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	em2800_i2c_send_max4, %function
em2800_i2c_send_max4:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r6, r3
	mov	r8, r1
	mov	r5, r0
	sub	r0, r3, #1
	cmp	r0, #3
	ldr	r3, .L24
	sub	sp, sp, #16
	movls	r0, #0
	movhi	r0, #1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	BUG_ON
	ldrb	r3, [r4]	@ zero_extendqisi2
	add	r7, r6, #127
	cmp	r6, #1
	strb	r8, [sp, #8]
	strb	r3, [sp, #7]
	strb	r7, [sp, #9]
	ble	.L3
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r6, #2
	strb	r3, [sp, #6]
	beq	.L3
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	cmp	r6, #3
	strb	r3, [sp, #5]
	ldrbne	r3, [r4, #3]	@ zero_extendqisi2
	strbne	r3, [sp, #4]
.L3:
	rsb	r1, r6, #4
	add	r4, r6, #2
	add	r3, sp, #4
	add	r2, r3, r1
	mov	r0, r5
	mov	r3, r4
	ldr	r8, [r5]
	blx	r8
	cmp	r4, r0
	bne	.L21
	ldr	r3, .L24+4
	ldr	r4, [r3]
	cmp	r4, #0
	bgt	.L8
	b	.L9
.L22:
	mov	r0, #5
	sub	r4, r4, #5
	bl	msleep
	cmp	r4, #0
	ble	.L9
.L8:
	mov	r1, #5
	mov	r0, r5
	ldr	r3, [r5, #4]
	blx	r3
	cmp	r7, r0
	bne	.L22
	mov	r0, r6
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r0, .L24+8
	bl	em28xx_warn
	ldr	r3, .L24+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L21:
	mov	r1, r0
	ldr	r0, .L24+16
	bl	em28xx_warn
	ldr	r3, .L24+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC2
	.word	EM2800_I2C_WRITE_TIMEOUT
	.word	.LC1
	.word	EIO
	.word	.LC0
	.size	em2800_i2c_send_max4, .-em2800_i2c_send_max4
	.comm	EM2800_I2C_WRITE_TIMEOUT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
