	.file	"extr_sta.c_cw1200_update_listening.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cw1200_update_listening
	.type	cw1200_update_listening, @function
cw1200_update_listening:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	test	esi, esi
	je	.L2
	cmp	QWORD PTR CW1200_JOIN_STATUS_PASSIVE[rip], rax
	je	.L8
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	QWORD PTR CW1200_JOIN_STATUS_MONITOR[rip], rax
	jne	.L1
	mov	QWORD PTR 8[rsp], rdi
	call	cw1200_disable_listening@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR CW1200_JOIN_STATUS_PASSIVE[rip]
	mov	QWORD PTR [rdi], rax
.L5:
	xor	esi, esi
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	wsm_set_probe_responder@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	QWORD PTR 8[rsp], rdi
	call	cw1200_enable_listening@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR CW1200_JOIN_STATUS_MONITOR[rip]
	mov	QWORD PTR [rdi], rax
.L4:
	mov	esi, 1
	add	rsp, 24
	.cfi_def_cfa_offset 8
	jmp	wsm_set_probe_responder@PLT
	.cfi_endproc
.LFE0:
	.size	cw1200_update_listening, .-cw1200_update_listening
	.comm	CW1200_JOIN_STATUS_PASSIVE,8,8
	.comm	CW1200_JOIN_STATUS_MONITOR,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_sta.c_cw1200_update_listening.c"
	.text
	.align	2
	.global	cw1200_update_listening
	.syntax unified
	.arm
	.fpu softvfp
	.type	cw1200_update_listening, %function
cw1200_update_listening:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, lr}
	ldr	r3, [r0]
	mov	r4, r0
	beq	.L2
	ldr	r2, .L8
	ldr	r2, [r2]
	cmp	r2, r3
	popne	{r4, pc}
	bl	cw1200_enable_listening
	cmp	r0, #0
	ldreq	r3, .L8+4
	mov	r0, r4
	ldreq	r3, [r3]
	mov	r1, #1
	streq	r3, [r4]
	pop	{r4, lr}
	b	wsm_set_probe_responder
.L2:
	ldr	r2, .L8+4
	ldr	r2, [r2]
	cmp	r2, r3
	popne	{r4, pc}
	bl	cw1200_disable_listening
	cmp	r0, #0
	ldreq	r3, .L8
	mov	r0, r4
	ldreq	r3, [r3]
	mov	r1, #0
	streq	r3, [r4]
	pop	{r4, lr}
	b	wsm_set_probe_responder
.L9:
	.align	2
.L8:
	.word	CW1200_JOIN_STATUS_PASSIVE
	.word	CW1200_JOIN_STATUS_MONITOR
	.size	cw1200_update_listening, .-cw1200_update_listening
	.comm	CW1200_JOIN_STATUS_PASSIVE,4,4
	.comm	CW1200_JOIN_STATUS_MONITOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
