	.file	"extr_pcm_native.c_snd_pcm_xrun.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_pcm_xrun, @function
snd_pcm_xrun:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, QWORD PTR [rdi]
	mov	r13, QWORD PTR [rax]
	mov	rdi, r13
	call	snd_power_lock@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR SNDRV_PCM_STATE_SUSPENDED[rip]
	cmp	DWORD PTR [rax], edx
	je	.L2
.L7:
	mov	rdi, rbp
	xor	r12d, r12d
	call	snd_pcm_stream_lock_irq@PLT
	mov	rax, QWORD PTR [rbx]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 128
	je	.L3
	cmp	eax, 129
	je	.L4
	mov	r12d, DWORD PTR EBADFD[rip]
	neg	r12d
.L3:
	mov	rdi, rbp
	call	snd_pcm_stream_unlock_irq@PLT
.L6:
	mov	rdi, r13
	call	snd_power_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	mov	esi, 128
	mov	rdi, rbp
	call	snd_pcm_stop@PLT
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR SNDRV_CTL_POWER_D0[rip]
	mov	rdi, r13
	call	snd_power_wait@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L7
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	snd_pcm_xrun, .-snd_pcm_xrun
	.comm	SNDRV_PCM_STATE_SUSPENDED,4,4
	.comm	SNDRV_CTL_POWER_D0,4,4
	.comm	EBADFD,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_pcm_native.c_snd_pcm_xrun.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_pcm_xrun, %function
snd_pcm_xrun:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r3]
	ldr	r7, [r0]
	mov	r4, r0
	mov	r0, r6
	bl	snd_power_lock
	ldr	r2, [r7]
	ldr	r3, .L12
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
.L7:
	mov	r0, r4
	bl	snd_pcm_stream_lock_irq
	ldr	r3, [r7]
	ldr	r3, [r3]
	cmp	r3, #128
	moveq	r5, #0
	beq	.L3
	cmp	r3, #129
	beq	.L4
	ldr	r3, .L12+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L3:
	mov	r0, r4
	bl	snd_pcm_stream_unlock_irq
.L6:
	mov	r0, r6
	bl	snd_power_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r1, #128
	mov	r0, r4
	bl	snd_pcm_stop
	mov	r5, r0
	b	.L3
.L2:
	ldr	r3, .L12+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	snd_power_wait
	subs	r5, r0, #0
	bge	.L7
	b	.L6
.L13:
	.align	2
.L12:
	.word	SNDRV_PCM_STATE_SUSPENDED
	.word	EBADFD
	.word	SNDRV_CTL_POWER_D0
	.size	snd_pcm_xrun, .-snd_pcm_xrun
	.comm	SNDRV_PCM_STATE_SUSPENDED,4,4
	.comm	SNDRV_CTL_POWER_D0,4,4
	.comm	EBADFD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
