	.file	"extr_ipw2100.c_ipw2100_wx_set_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SET Mode -> %d\n"
	.text
	.p2align 4
	.type	ipw2100_wx_set_mode, @function
ipw2100_wx_set_mode:
.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
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	libipw_priv@PLT
	mov	rsi, QWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	mov	rbp, rax
	call	IPW_DEBUG_WX@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rbx], rax
	je	.L1
	lea	r13, 4[rbp]
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	r12d, DWORD PTR EIO[rip]
	mov	eax, DWORD PTR 0[rbp]
	neg	r12d
	test	DWORD PTR STATUS_INITIALIZED[rip], eax
	je	.L4
	cmp	QWORD PTR [rbx], 131
	je	.L10
	mov	esi, 129
	mov	rdi, rbp
	call	ipw2100_switch_mode@PLT
	mov	r12d, eax
.L4:
	mov	rdi, r13
	call	mutex_unlock@PLT
.L1:
	add	rsp, 8
	.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
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, 131
	mov	rdi, rbp
	call	ipw2100_switch_mode@PLT
	mov	r12d, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ipw2100_wx_set_mode, .-ipw2100_wx_set_mode
	.comm	STATUS_INITIALIZED,4,4
	.comm	EIO,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_ipw2100.c_ipw2100_wx_set_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SET Mode -> %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipw2100_wx_set_mode, %function
ipw2100_wx_set_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r2
	bl	libipw_priv
	mov	r4, r0
	ldr	r1, [r5]
	ldr	r0, .L11
	bl	IPW_DEBUG_WX
	ldr	r3, [r4, #8]
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r4, #0
	beq	.L1
	add	r6, r4, #4
	mov	r0, r6
	bl	mutex_lock
	ldr	r3, .L11+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L10
	ldr	r1, [r5]
	mov	r0, r4
	cmp	r1, #131
	movne	r1, #129
	bl	ipw2100_switch_mode
	mov	r4, r0
.L4:
	mov	r0, r6
	bl	mutex_unlock
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L11+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L4
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	STATUS_INITIALIZED
	.word	EIO
	.size	ipw2100_wx_set_mode, .-ipw2100_wx_set_mode
	.comm	STATUS_INITIALIZED,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
