	.file	"extr_mixer.c_mix_setparentchild.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mix_setparentchild
	.type	mix_setparentchild, @function
mix_setparentchild:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L16
	mov	r8d, DWORD PTR SOUND_MIXER_NRDEVICES[rip]
	cmp	r8d, esi
	jle	.L16
	mov	r10d, -2
	mov	ecx, esi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r11, QWORD PTR 8[rdi]
	rol	r10d, cl
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, r10d
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	r8d, r8d
	jle	.L7
	xor	eax, eax
	xor	r10d, r10d
	mov	ebx, 1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, eax
	cmp	esi, eax
	je	.L4
	bt	edx, eax
	jnc	.L4
	mov	r9d, ebx
	sal	r9d, cl
	mov	rcx, QWORD PTR [rdi]
	or	r10d, r9d
	lea	r12, [rcx+rax*4]
	movsx	rcx, DWORD PTR [r12]
	cmp	ecx, r8d
	jge	.L5
	not	r9d
	and	DWORD PTR [r11+rcx*4], r9d
.L5:
	mov	DWORD PTR [r12], esi
	mov	DWORD PTR [r11+rax*4], 0
	mov	r8d, DWORD PTR SOUND_MIXER_NRDEVICES[rip]
.L4:
	add	rax, 1
	cmp	r8d, eax
	jg	.L6
	and	r10d, ebp
.L3:
	movsx	rsi, esi
	mov	DWORD PTR [r11+rsi*4], r10d
	pop	rbx
	.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
.L16:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	xor	r10d, r10d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	mix_setparentchild, .-mix_setparentchild
	.comm	SOUND_MIXER_NRDEVICES,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_mixer.c_mix_setparentchild.c"
	.text
	.align	2
	.global	mix_setparentchild
	.syntax unified
	.arm
	.fpu softvfp
	.type	mix_setparentchild, %function
mix_setparentchild:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, .L20
	sub	sp, sp, #12
	ldr	ip, [r4]
	cmp	ip, r1
	ble	.L1
	mov	r5, #1
	mvn	r3, r5, lsl r1
	cmp	ip, #0
	ldr	r9, [r0, #4]
	str	r3, [sp, #4]
	ble	.L7
	mov	r3, #0
	mov	r6, r3
	mov	fp, r3
.L6:
	cmp	r1, r3
	asr	lr, r2, r3
	beq	.L4
	tst	lr, #1
	lsl	lr, r5, r3
	beq	.L4
	ldr	r7, [r0]
	orr	r6, r6, lr
	ldr	r8, [r7, r3, lsl #2]
	lsl	r10, r3, #2
	cmp	r8, ip
	ldrlt	ip, [r9, r8, lsl #2]
	biclt	lr, ip, lr
	strlt	lr, [r9, r8, lsl #2]
	str	r1, [r7, r10]
	str	fp, [r9, r3, lsl #2]
.L4:
	ldr	ip, [r4]
	add	r3, r3, #1
	cmp	ip, r3
	bgt	.L6
	ldr	r3, [sp, #4]
	and	r6, r6, r3
.L3:
	str	r6, [r9, r1, lsl #2]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r6, #0
	b	.L3
.L21:
	.align	2
.L20:
	.word	SOUND_MIXER_NRDEVICES
	.size	mix_setparentchild, .-mix_setparentchild
	.comm	SOUND_MIXER_NRDEVICES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
