	.file	"extr_tea6330t.c_snd_tea6330t_put_treble.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_tea6330t_put_treble, @function
snd_tea6330t_put_treble:
.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, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	snd_kcontrol_chip@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR [rbx]
	mov	edi, DWORD PTR 16[rbx]
	mov	eax, DWORD PTR [rax]
	add	ecx, 1
	cdq
	idiv	ecx
	mov	ebp, edx
	call	snd_i2c_lock@PLT
	mov	BYTE PTR 4[rbx], bpl
	mov	rax, QWORD PTR 8[rbx]
	add	ebp, 3
	mov	rdx, QWORD PTR TEA6330T_SADDR_TREBLE[rip]
	lea	rsi, 6[rsp]
	add	rax, rdx
	movzx	r13d, BYTE PTR [rax]
	mov	BYTE PTR 6[rsp], dl
	mov	edx, 2
	mov	BYTE PTR [rax], bpl
	mov	edi, DWORD PTR 20[rbx]
	mov	BYTE PTR 7[rsp], bpl
	call	snd_i2c_sendbytes@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	xor	r12d, r12d
	cmp	r13b, bpl
	setne	r12b
.L2:
	mov	edi, DWORD PTR 16[rbx]
	call	snd_i2c_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.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
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	snd_tea6330t_put_treble, .-snd_tea6330t_put_treble
	.comm	TEA6330T_SADDR_TREBLE,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_tea6330t.c_snd_tea6330t_put_treble.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_tea6330t_put_treble, %function
snd_tea6330t_put_treble:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L7
	sub	sp, sp, #12
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	snd_kcontrol_chip
	ldr	r3, [r5]
	ldr	r1, [r0]
	mov	r4, r0
	add	r1, r1, #1
	ldr	r0, [r3]
	bl	__aeabi_idivmod
	ldr	r0, [r4, #12]
	and	r6, r1, #255
	bl	snd_i2c_lock
	ldr	r3, .L7+4
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	add	r5, r6, #3
	strb	r6, [r4, #4]
	and	r5, r5, #255
	ldrb	r7, [r2, r3]	@ zero_extendqisi2
	strb	r3, [sp]
	strb	r5, [r2, r3]
	mov	r1, sp
	mov	r2, #2
	ldr	r0, [r4, #16]
	strb	r5, [sp, #1]
	bl	snd_i2c_sendbytes
	subs	r6, r0, #0
	blt	.L2
	subs	r6, r7, r5
	movne	r6, #1
.L2:
	ldr	r0, [r4, #12]
	bl	snd_i2c_unlock
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	TEA6330T_SADDR_TREBLE
	.size	snd_tea6330t_put_treble, .-snd_tea6330t_put_treble
	.comm	TEA6330T_SADDR_TREBLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
