	.file	"extr_i2c-au1550.c_wait_master_done.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wait_master_done, @function
wait_master_done:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L8
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, 1
	add	ebx, 1
	call	udelay@PLT
	mov	eax, DWORD PTR 0[rbp]
	add	eax, eax
	cmp	eax, ebx
	jle	.L12
.L4:
	mov	esi, DWORD PTR PSC_SMBEVNT[rip]
	mov	rdi, rbp
	call	RD@PLT
	test	DWORD PTR PSC_SMBEVNT_MD[rip], eax
	je	.L13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
.L8:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	wait_master_done, .-wait_master_done
	.comm	PSC_SMBEVNT_MD,4,4
	.comm	PSC_SMBEVNT,4,4
	.comm	ETIMEDOUT,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-au1550.c_wait_master_done.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_master_done, %function
wait_master_done:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L8
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r4, #0
	ldr	r7, .L14
	ldr	r6, .L14+4
	b	.L4
.L13:
	mov	r0, #1
	bl	udelay
	ldr	r3, [r5]
	cmp	r4, r3, lsl #1
	bge	.L12
.L4:
	mov	r0, r5
	ldr	r1, [r7]
	bl	RD
	ldr	r3, [r6]
	add	r4, r4, #1
	tst	r0, r3
	beq	.L13
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L15:
	.align	2
.L14:
	.word	PSC_SMBEVNT
	.word	PSC_SMBEVNT_MD
	.word	ETIMEDOUT
	.size	wait_master_done, .-wait_master_done
	.comm	PSC_SMBEVNT_MD,4,4
	.comm	PSC_SMBEVNT,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
