	.file	"extr_hw.c_alx_wait_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alx_wait_reg, @function
alx_wait_reg:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR ALX_SLD_MAX_TO[rip]
	test	eax, eax
	jle	.L10
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, 1
	add	ebx, 1
	call	mdelay@PLT
	cmp	DWORD PTR ALX_SLD_MAX_TO[rip], ebx
	jle	.L15
.L5:
	mov	esi, r12d
	mov	rdi, rbp
	call	alx_read_mem32@PLT
	test	eax, r13d
	jne	.L3
	mov	r8d, 1
	test	r14, r14
	je	.L1
	mov	DWORD PTR [r14], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r8d
	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
.L15:
	.cfi_restore_state
	xor	r8d, r8d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r8d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	xor	r8d, r8d
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	alx_wait_reg, .-alx_wait_reg
	.comm	ALX_SLD_MAX_TO,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_hw.c_alx_wait_reg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alx_wait_reg, %function
alx_wait_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L10
	mov	r5, r0
	ldr	r0, [r8]
	cmp	r0, #0
	ble	.L2
	mov	r6, r1
	mov	r7, r2
	mov	r9, r3
	mov	r4, #0
	b	.L5
.L3:
	mov	r0, #1
	bl	mdelay
	ldr	r3, [r8]
	cmp	r3, r4
	ble	.L2
.L5:
	mov	r1, r6
	mov	r0, r5
	bl	alx_read_mem32
	tst	r0, r7
	add	r4, r4, #1
	bne	.L3
	cmp	r9, #0
	beq	.L6
	str	r0, [r9]
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	ALX_SLD_MAX_TO
	.size	alx_wait_reg, .-alx_wait_reg
	.comm	ALX_SLD_MAX_TO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
