	.file	"extr_rt2400pci.c_rt2400pci_set_device_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Device failed to enter state %d (%d)\n"
	.text
	.p2align 4
	.type	rt2400pci_set_device_state, @function
rt2400pci_set_device_state:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, -128[rsi]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	cmp	eax, 7
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L3-.L4
	.long	.L3-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L3:
	call	rt2400pci_set_state@PLT
	mov	r13d, eax
.L8:
	mov	edi, r13d
	call	unlikely@PLT
	test	rax, rax
	jne	.L15
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	rt2400pci_toggle_irq@PLT
	xor	r13d, r13d
	mov	edi, r13d
	call	unlikely@PLT
	test	rax, rax
	je	.L1
.L15:
	mov	ecx, r13d
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	rt2x00_err@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	rt2400pci_enable_radio@PLT
	mov	r13d, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	call	rt2400pci_disable_radio@PLT
	xor	r13d, r13d
	jmp	.L8
.L2:
	mov	r13d, DWORD PTR ENOTSUPP[rip]
	neg	r13d
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	rt2400pci_set_device_state, .-rt2400pci_set_device_state
	.comm	ENOTSUPP,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_rt2400pci.c_rt2400pci_set_device_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Device failed to enter state %d (%d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt2400pci_set_device_state, %function
rt2400pci_set_device_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	r3, r1, #128
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L3
	.word	.L3
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L5
	.word	.L3
	.word	.L3
.L3:
	bl	rt2400pci_set_state
	mov	r6, r0
.L8:
	mov	r0, r6
	bl	unlikely
	cmp	r0, #0
	bne	.L15
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L5:
	mov	r6, #0
	bl	rt2400pci_toggle_irq
	mov	r0, r6
	bl	unlikely
	cmp	r0, #0
	beq	.L1
.L15:
	mov	r2, r4
	mov	r0, r5
	mov	r3, r6
	ldr	r1, .L16
	bl	rt2x00_err
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L7:
	bl	rt2400pci_enable_radio
	mov	r6, r0
	b	.L8
.L6:
	bl	rt2400pci_disable_radio
	mov	r6, #0
	b	.L8
.L2:
	ldr	r3, .L16+4
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L8
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	ENOTSUPP
	.size	rt2400pci_set_device_state, .-rt2400pci_set_device_state
	.comm	ENOTSUPP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
