	.file	"extr_sysfs.c_wl1271_sysfs_store_bt_coex_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"incorrect value written to bt_coex_mode"
	.text
	.p2align 4
	.type	wl1271_sysfs_store_bt_coex_state, @function
wl1271_sysfs_store_bt_coex_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	dev_get_drvdata@PLT
	mov	rdx, rsp
	mov	esi, 10
	mov	rdi, rbp
	mov	rbx, rax
	call	kstrtoul@PLT
	test	eax, eax
	js	.L11
	lea	rbp, 16[rbx]
	mov	rdi, rbp
	call	mutex_lock@PLT
	xor	eax, eax
	cmp	QWORD PTR [rsp], 0
	setne	al
	mov	QWORD PTR [rsp], rax
	cmp	rax, QWORD PTR [rbx]
	je	.L5
	mov	QWORD PTR [rbx], rax
	xor	edi, edi
	mov	rax, QWORD PTR WLCORE_STATE_ON[rip]
	cmp	QWORD PTR 8[rbx], rax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L5
	mov	edi, DWORD PTR 20[rbx]
	call	pm_runtime_get_sync@PLT
	test	eax, eax
	js	.L12
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbx
	call	wl1271_acx_sg_enable@PLT
	mov	edi, DWORD PTR 20[rbx]
	call	pm_runtime_mark_last_busy@PLT
	mov	edi, DWORD PTR 20[rbx]
	call	pm_runtime_put_autosuspend@PLT
.L5:
	mov	rdi, rbp
	call	mutex_unlock@PLT
.L3:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r12
	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
.L11:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	wl1271_warning@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR 20[rbx]
	call	pm_runtime_put_noidle@PLT
	jmp	.L5
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wl1271_sysfs_store_bt_coex_state, .-wl1271_sysfs_store_bt_coex_state
	.comm	WLCORE_STATE_ON,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_sysfs.c_wl1271_sysfs_store_bt_coex_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"incorrect value written to bt_coex_mode\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl1271_sysfs_store_bt_coex_state, %function
wl1271_sysfs_store_bt_coex_state:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r3
	ldr	r3, .L14
	sub	sp, sp, #8
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	dev_get_drvdata
	mov	r2, sp
	mov	r4, r0
	mov	r1, #10
	mov	r0, r5
	bl	kstrtoul
	cmp	r0, #0
	blt	.L11
	add	r5, r4, #8
	mov	r0, r5
	bl	mutex_lock
	ldr	r2, [sp]
	ldr	r3, [r4]
	subs	r2, r2, #0
	movne	r2, #1
	cmp	r2, r3
	str	r2, [sp]
	beq	.L5
	ldr	r3, .L14+4
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	str	r2, [r4]
	subs	r0, r0, r3
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L5
	ldr	r0, [r4, #12]
	bl	pm_runtime_get_sync
	cmp	r0, #0
	blt	.L12
	ldr	r1, [r4]
	mov	r0, r4
	bl	wl1271_acx_sg_enable
	ldr	r0, [r4, #12]
	bl	pm_runtime_mark_last_busy
	ldr	r0, [r4, #12]
	bl	pm_runtime_put_autosuspend
.L5:
	mov	r0, r5
	bl	mutex_unlock
.L3:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r0, .L14+8
	bl	wl1271_warning
	b	.L3
.L12:
	ldr	r0, [r4, #12]
	bl	pm_runtime_put_noidle
	b	.L5
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	WLCORE_STATE_ON
	.word	.LC0
	.size	wl1271_sysfs_store_bt_coex_state, .-wl1271_sysfs_store_bt_coex_state
	.comm	WLCORE_STATE_ON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
