	.file	"extr_bebob_maudio.c_avc_maudio_set_special_clk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	avc_maudio_set_special_clk, @function
avc_maudio_set_special_clk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	add	rdi, 12
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR 4[rdi]
	call	amdtp_stream_running@PLT
	test	rax, rax
	je	.L2
.L4:
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, 8[rbx]
	call	amdtp_stream_running@PLT
	test	rax, rax
	jne	.L4
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 12
	call	kmalloc@PLT
	mov	r10, rax
	test	rax, rax
	je	.L14
	movabs	rax, 1095216660480
	and	ebp, 255
	and	r12d, 255
	and	r15d, 255
	mov	QWORD PTR [r10], rax
	and	r14d, 255
	mov	edi, 1
	movabs	rax, 17179869184
	mov	DWORD PTR 32[r10], ebp
	mov	DWORD PTR 36[r10], r12d
	mov	QWORD PTR 8[r10], rax
	mov	QWORD PTR 16[r10], rax
	mov	DWORD PTR 24[r10], r15d
	mov	DWORD PTR 28[r10], r14d
	mov	QWORD PTR 40[r10], 0
	mov	QWORD PTR 8[rsp], r10
	call	BIT@PLT
	mov	edi, 2
	mov	ebp, eax
	call	BIT@PLT
	mov	edi, 3
	or	ebp, eax
	call	BIT@PLT
	mov	edi, 4
	or	ebp, eax
	call	BIT@PLT
	mov	edi, 5
	or	ebp, eax
	call	BIT@PLT
	mov	edi, 6
	or	ebp, eax
	call	BIT@PLT
	mov	edi, 7
	or	ebp, eax
	call	BIT@PLT
	mov	edi, 8
	or	ebp, eax
	call	BIT@PLT
	mov	edi, 9
	or	ebp, eax
	call	BIT@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 4[rbx]
	mov	r9d, ebp
	or	r9d, eax
	mov	r8d, 12
	mov	edx, 12
	mov	rcx, r10
	mov	rsi, r10
	call	fcp_avc_transaction@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	r12d, eax
	lea	eax, -1[rax]
	cmp	eax, 8
	ja	.L6
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L7:
	test	r12d, r12d
	js	.L9
	mov	eax, DWORD PTR 24[r10]
	mov	rdx, QWORD PTR 16[r13]
	xor	r12d, r12d
	mov	DWORD PTR 0[r13], eax
	mov	eax, DWORD PTR 28[r10]
	mov	DWORD PTR 4[r13], eax
	mov	eax, DWORD PTR 32[r10]
	mov	DWORD PTR 8[r13], eax
	mov	eax, DWORD PTR 36[r10]
	mov	DWORD PTR 12[r13], eax
	test	rdx, rdx
	jne	.L15
.L9:
	mov	rdi, r10
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR [r10]
	cmp	eax, 8
	je	.L16
	cmp	eax, 10
	jne	.L7
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR SNDRV_CTL_EVENT_MASK_VALUE[rip]
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR 8[rsp], r10
	call	snd_ctl_notify@PLT
	mov	r10, QWORD PTR 8[rsp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r12d, DWORD PTR ENOSYS[rip]
	neg	r12d
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	avc_maudio_set_special_clk, .-avc_maudio_set_special_clk
	.comm	SNDRV_CTL_EVENT_MASK_VALUE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOSYS,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_bebob_maudio.c_avc_maudio_set_special_clk.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avc_maudio_set_special_clk, %function
avc_maudio_set_special_clk:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #12
	add	r0, r0, #12
	mov	r9, r1
	mov	r8, r2
	mov	r5, r3
	ldr	r7, [r4, #16]
	bl	amdtp_stream_running
	cmp	r0, #0
	beq	.L2
.L4:
	ldr	r3, .L18
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	add	r0, r4, #8
	bl	amdtp_stream_running
	subs	fp, r0, #0
	bne	.L4
	ldr	r3, .L18+4
	mov	r0, #12
	ldr	r1, [r3]
	bl	kmalloc
	subs	r6, r0, #0
	beq	.L15
	mov	r3, #255
	mov	r10, #4
	ldr	r2, [sp, #48]
	and	r8, r8, r3
	and	r2, r2, r3
	and	r5, r5, r3
	and	r9, r9, r3
	str	r2, [r6, #36]
	str	r3, [r6, #4]
	str	r5, [r6, #32]
	str	r9, [r6, #24]
	str	r8, [r6, #28]
	str	fp, [r6]
	str	fp, [r6, #8]
	str	fp, [r6, #16]
	str	fp, [r6, #40]
	str	fp, [r6, #44]
	str	r10, [r6, #12]
	str	r10, [r6, #20]
	mov	r0, #1
	ldr	r8, [r4, #4]
	bl	BIT
	mov	r5, r0
	mov	r0, #2
	bl	BIT
	mov	r3, r0
	mov	r0, #3
	orr	r5, r5, r3
	bl	BIT
	mov	r3, r0
	mov	r0, r10
	orr	r5, r5, r3
	bl	BIT
	mov	r3, r0
	mov	r0, #5
	orr	r5, r5, r3
	bl	BIT
	mov	r3, r0
	mov	r0, #6
	orr	r5, r5, r3
	bl	BIT
	mov	r3, r0
	mov	r0, #7
	orr	r5, r5, r3
	bl	BIT
	mov	r3, r0
	mov	r0, #8
	orr	r5, r5, r3
	bl	BIT
	mov	r3, r0
	mov	r0, #9
	orr	r5, r5, r3
	bl	BIT
	mov	r2, #12
	orr	r5, r5, r0
	mov	r3, r6
	str	r5, [sp, #4]
	mov	r0, r8
	mov	r1, r6
	str	r2, [sp]
	bl	fcp_avc_transaction
	sub	r3, r0, #1
	cmp	r3, #8
	mov	r5, r0
	bhi	.L6
	ldr	r3, .L18+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L7:
	cmp	r5, #0
	blt	.L9
	ldr	r3, [r6, #24]
	ldr	r5, [r7, #16]
	str	r3, [r7]
	ldr	r3, [r6, #28]
	cmp	r5, #0
	str	r3, [r7, #4]
	ldr	r3, [r6, #32]
	str	r3, [r7, #8]
	ldr	r3, [r6, #36]
	str	r3, [r7, #12]
	bne	.L16
.L9:
	mov	r0, r6
	bl	kfree
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, .L18+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L6:
	ldr	r3, [r6]
	cmp	r3, #8
	beq	.L17
	cmp	r3, #10
	ldreq	r3, .L18+16
	ldreq	r5, [r3]
	rsbeq	r5, r5, #0
	b	.L7
.L16:
	ldr	r3, .L18+20
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	snd_ctl_notify
	mov	r5, #0
	b	.L9
.L17:
	ldr	r3, .L18+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L7
.L19:
	.align	2
.L18:
	.word	EBUSY
	.word	GFP_KERNEL
	.word	EIO
	.word	ENOMEM
	.word	EINVAL
	.word	SNDRV_CTL_EVENT_MASK_VALUE
	.word	ENOSYS
	.size	avc_maudio_set_special_clk, .-avc_maudio_set_special_clk
	.comm	SNDRV_CTL_EVENT_MASK_VALUE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOSYS,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
