	.file	"extr_ad1848.c_ad1848_set_bits.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ad1848_set_bits, @function
ad1848_set_bits:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR audio_devs[rip]
	movsx	rdi, edi
	mov	rax, QWORD PTR [rax+rdi*8]
	mov	r8, QWORD PTR [rax]
	test	esi, esi
	je	.L12
	mov	rax, QWORD PTR 8[rax]
	lea	rdi, format2bits.1940[rip]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR ad_format_mask[rip]
	test	DWORD PTR [rax+rdx*4], esi
	mov	eax, 128
	cmove	esi, eax
	xor	edx, edx
	xor	eax, eax
	mov	DWORD PTR [r8], esi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR [rdi+rdx*8]
.L7:
	movsx	rcx, edx
	cmp	eax, esi
	je	.L13
	add	rdx, 1
	cmp	rdx, 10
	jne	.L14
	mov	BYTE PTR 4[r8], 0
.L9:
	mov	DWORD PTR [r8], 128
	mov	eax, 128
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR [r8]
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdx, format2bits.1940[rip]
	movzx	edx, BYTE PTR 4[rdx+rcx*8]
	mov	BYTE PTR 4[r8], dl
	test	dl, dl
	je	.L9
	ret
	.cfi_endproc
.LFE0:
	.size	ad1848_set_bits, .-ad1848_set_bits
	.section	.rodata
	.align 32
	.type	format2bits.1940, @object
	.size	format2bits.1940, 80
format2bits.1940:
	.long	0
	.byte	0
	.zero	3
	.long	134
	.byte	1
	.zero	3
	.long	136
	.byte	3
	.zero	3
	.long	135
	.byte	5
	.zero	3
	.long	128
	.byte	0
	.zero	3
	.long	132
	.byte	2
	.zero	3
	.long	133
	.byte	6
	.zero	3
	.long	131
	.byte	0
	.zero	3
	.long	129
	.byte	0
	.zero	3
	.long	130
	.byte	0
	.zero	3
	.comm	audio_devs,8,8
	.comm	ad_format_mask,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_ad1848.c_ad1848_set_bits.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad1848_set_bits, %function
ad1848_set_bits:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L17
	cmp	r1, #0
	ldr	r3, [r3]
	ldr	r3, [r3, r0, lsl #2]
	ldr	ip, [r3]
	beq	.L14
	ldr	r2, [r3, #4]
	ldr	r3, .L17+4
	str	lr, [sp, #-4]!
	ldr	lr, [r2]
	ldr	r2, [r3]
	mov	r0, #0
	ldr	lr, [r2, lr, lsl #2]
	mov	r3, r0
	tst	r1, lr
	moveq	r1, #128
	ldr	r2, .L17+8
	str	r1, [ip]
	b	.L7
.L16:
	ldr	r0, [r2, r3, lsl #3]
.L7:
	cmp	r0, r1
	beq	.L15
	add	r3, r3, #1
	cmp	r3, #10
	bne	.L16
	mov	r3, #0
	mov	r0, #128
	strb	r3, [ip, #4]
	str	r0, [ip]
	ldr	pc, [sp], #4
.L14:
	ldr	r0, [ip]
	bx	lr
.L15:
	ldr	r2, .L17+8
	add	r3, r2, r3, lsl #3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	moveq	r0, #128
	strb	r3, [ip, #4]
	streq	r0, [ip]
	ldr	pc, [sp], #4
.L18:
	.align	2
.L17:
	.word	audio_devs
	.word	ad_format_mask
	.word	.LANCHOR0
	.size	ad1848_set_bits, .-ad1848_set_bits
	.comm	audio_devs,4,4
	.comm	ad_format_mask,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	format2bits.4224, %object
	.size	format2bits.4224, 80
format2bits.4224:
	.word	0
	.byte	0
	.space	3
	.word	134
	.byte	1
	.space	3
	.word	136
	.byte	3
	.space	3
	.word	135
	.byte	5
	.space	3
	.word	128
	.byte	0
	.space	3
	.word	132
	.byte	2
	.space	3
	.word	133
	.byte	6
	.space	3
	.word	131
	.byte	0
	.space	3
	.word	129
	.byte	0
	.space	3
	.word	130
	.byte	0
	.space	3
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
