	.file	"extr_ni_at_a2150.c_a2150_set_chanlist.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	a2150_set_chanlist, @function
a2150_set_chanlist:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, [rsi+rdx]
	cmp	eax, 4
	ja	.L14
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	eax, DWORD PTR CHANNEL_MASK[rip]
	mov	rcx, QWORD PTR devpriv[rip]
	not	eax
	and	DWORD PTR [rcx], eax
	cmp	edx, 2
	je	.L4
	cmp	edx, 4
	je	.L5
	mov	edi, esi
	mov	eax, -1
	or	edi, 4
	cmp	edx, 1
	je	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, 2
	test	esi, esi
	je	.L12
	cmp	esi, 2
	jne	.L7
	mov	edi, 3
.L12:
	call	CHANNEL_BITS@PLT
	mov	r8d, eax
	mov	rax, QWORD PTR devpriv[rip]
	or	DWORD PTR [rax], r8d
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, 1
	jmp	.L12
.L7:
	mov	eax, -1
	jmp	.L1
.L14:
	.cfi_def_cfa_offset 8
	or	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	a2150_set_chanlist, .-a2150_set_chanlist
	.comm	devpriv,8,8
	.comm	CHANNEL_MASK,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_ni_at_a2150.c_a2150_set_chanlist.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	a2150_set_chanlist, %function
a2150_set_chanlist:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	add	r3, r1, r2
	cmp	r3, #4
	bhi	.L14
	push	{r4, r5, r6, lr}
	ldr	r5, .L15
	ldr	r3, .L15+4
	mov	r4, r1
	ldr	r1, [r5]
	ldr	r0, [r3]
	ldr	r3, [r1]
	cmp	r2, #2
	bic	r3, r3, r0
	str	r3, [r1]
	beq	.L4
	cmp	r2, #4
	beq	.L5
	cmp	r2, #1
	orreq	r0, r4, #4
	beq	.L12
.L8:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	cmp	r4, #0
	moveq	r0, r2
	beq	.L12
	cmp	r4, #2
	bne	.L8
	mov	r0, #3
.L12:
	bl	CHANNEL_BITS
	mov	r1, r0
	ldr	r2, [r5]
	mov	r0, #0
	ldr	r3, [r2]
	orr	r3, r3, r1
	str	r3, [r2]
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, #1
	b	.L12
.L14:
	mvn	r0, #0
	bx	lr
.L16:
	.align	2
.L15:
	.word	devpriv
	.word	CHANNEL_MASK
	.size	a2150_set_chanlist, .-a2150_set_chanlist
	.comm	devpriv,4,4
	.comm	CHANNEL_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
