	.file	"extr_rme9652.c_snd_rme9652_get_adat_sync.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_rme9652_get_adat_sync, @function
snd_rme9652_get_adat_sync:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	snd_kcontrol_chip@PLT
	mov	edx, DWORD PTR [rbx]
	mov	rdi, rax
	cmp	edx, 1
	je	.L2
	cmp	edx, 2
	je	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	test	edx, edx
	je	.L12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR RME9652_lock_1[rip]
	mov	ebx, DWORD PTR RME9652_sync_1[rip]
.L5:
	mov	esi, DWORD PTR RME9652_status_register[rip]
	call	rme9652_read@PLT
	xor	edx, edx
	mov	rcx, QWORD PTR 0[rbp]
	test	r12d, eax
	setne	dl
	mov	esi, edx
	or	esi, 2
	test	ebx, eax
	cmovne	edx, esi
	xor	eax, eax
	mov	DWORD PTR [rcx], edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	r12d, DWORD PTR RME9652_lock_0[rip]
	mov	ebx, DWORD PTR RME9652_sync_0[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r12d, DWORD PTR RME9652_lock_2[rip]
	mov	ebx, DWORD PTR RME9652_sync_2[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	snd_rme9652_get_adat_sync, .-snd_rme9652_get_adat_sync
	.comm	RME9652_sync_2,4,4
	.comm	RME9652_sync_1,4,4
	.comm	RME9652_sync_0,4,4
	.comm	RME9652_status_register,4,4
	.comm	RME9652_lock_2,4,4
	.comm	RME9652_lock_1,4,4
	.comm	RME9652_lock_0,4,4
	.comm	EINVAL,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_rme9652.c_snd_rme9652_get_adat_sync.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_rme9652_get_adat_sync, %function
snd_rme9652_get_adat_sync:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	bl	snd_kcontrol_chip
	ldr	r3, [r4]
	cmp	r3, #1
	beq	.L2
	cmp	r3, #2
	beq	.L3
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L14
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r2, .L14+4
	ldr	r3, .L14+8
	ldr	r6, [r2]
	ldr	r4, [r3]
.L5:
	ldr	r3, .L14+12
	ldr	r1, [r3]
	bl	rme9652_read
	tst	r6, r0
	movne	r3, #1
	moveq	r3, #0
	ldr	r2, [r5]
	tst	r4, r0
	orrne	r3, r3, #2
	mov	r0, #0
	str	r3, [r2]
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r2, .L14+16
	ldr	r3, .L14+20
	ldr	r6, [r2]
	ldr	r4, [r3]
	b	.L5
.L3:
	ldr	r2, .L14+24
	ldr	r3, .L14+28
	ldr	r6, [r2]
	ldr	r4, [r3]
	b	.L5
.L15:
	.align	2
.L14:
	.word	EINVAL
	.word	RME9652_lock_1
	.word	RME9652_sync_1
	.word	RME9652_status_register
	.word	RME9652_lock_0
	.word	RME9652_sync_0
	.word	RME9652_lock_2
	.word	RME9652_sync_2
	.size	snd_rme9652_get_adat_sync, .-snd_rme9652_get_adat_sync
	.comm	RME9652_sync_2,4,4
	.comm	RME9652_sync_1,4,4
	.comm	RME9652_sync_0,4,4
	.comm	RME9652_status_register,4,4
	.comm	RME9652_lock_2,4,4
	.comm	RME9652_lock_1,4,4
	.comm	RME9652_lock_0,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
