	.file	"extr_ymfpci_main.c_snd_ymfpci_codec_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ymfpci_codec_read, @function
snd_ymfpci_codec_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR [rdi]
	mov	rdi, rbp
	call	snd_ymfpci_codec_ready@PLT
	test	rax, rax
	jne	.L3
	mov	edx, DWORD PTR YDSXG_AC97READCMD[rip]
	mov	esi, DWORD PTR YDSXGR_AC97CMDADR[rip]
	mov	rdi, rbp
	or	edx, ebx
	call	snd_ymfpci_writew@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	snd_ymfpci_codec_ready@PLT
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR PCI_DEVICE_ID_YAMAHA_744[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L10
.L5:
	mov	esi, DWORD PTR YDSXGR_PRISTATUSDATA[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	snd_ymfpci_readw@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	cmp	DWORD PTR 8[rbp], 1
	jg	.L5
	mov	ebx, 600
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR YDSXGR_PRISTATUSDATA[rip]
	mov	rdi, rbp
	call	snd_ymfpci_readw@PLT
	sub	ebx, 1
	jne	.L6
	jmp	.L5
.L3:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	snd_ymfpci_codec_read, .-snd_ymfpci_codec_read
	.comm	YDSXG_AC97READCMD,4,4
	.comm	YDSXGR_PRISTATUSDATA,4,4
	.comm	YDSXGR_AC97CMDADR,4,4
	.comm	PCI_DEVICE_ID_YAMAHA_744,8,8
	.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_ymfpci_main.c_snd_ymfpci_codec_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ymfpci_codec_read, %function
snd_ymfpci_codec_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	mov	r6, r1
	mov	r0, r5
	mov	r1, #0
	bl	snd_ymfpci_codec_ready
	subs	r4, r0, #0
	bne	.L3
	ldr	r2, .L15
	ldr	r3, .L15+4
	ldr	r2, [r2]
	ldr	r1, [r3]
	orr	r2, r6, r2
	mov	r0, r5
	bl	snd_ymfpci_writew
	mov	r1, r4
	mov	r0, r5
	bl	snd_ymfpci_codec_ready
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L15+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L10
.L13:
	ldr	r6, .L15+12
	mov	r0, r5
	ldr	r1, [r6]
	pop	{r4, r5, r6, lr}
	b	snd_ymfpci_readw
.L10:
	ldr	r3, [r5, #4]
	cmp	r3, #1
	bgt	.L13
	mov	r4, #600
	ldr	r6, .L15+12
.L6:
	mov	r0, r5
	ldr	r1, [r6]
	bl	snd_ymfpci_readw
	subs	r4, r4, #1
	bne	.L6
	mov	r0, r5
	ldr	r1, [r6]
	pop	{r4, r5, r6, lr}
	b	snd_ymfpci_readw
.L3:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	YDSXG_AC97READCMD
	.word	YDSXGR_AC97CMDADR
	.word	PCI_DEVICE_ID_YAMAHA_744
	.word	YDSXGR_PRISTATUSDATA
	.size	snd_ymfpci_codec_read, .-snd_ymfpci_codec_read
	.comm	YDSXG_AC97READCMD,4,4
	.comm	YDSXGR_PRISTATUSDATA,4,4
	.comm	YDSXGR_AC97CMDADR,4,4
	.comm	PCI_DEVICE_ID_YAMAHA_744,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
