	.file	"extr_zd1201.c_zd1201_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zd1201_enable, @function
zd1201_enable:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L11
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR ZD1201_CMDCODE_ENABLE[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rbp, rdi
	call	zd1201_docmd@PLT
	test	eax, eax
	jne	.L3
	mov	DWORD PTR 0[rbp], 1
.L3:
	cmp	QWORD PTR 8[rbp], 0
	jne	.L12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR ZD1201_RID_PROMISCUOUSMODE[rip]
	mov	rdi, rbp
	mov	edx, 1
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	zd1201_setconfig16@PLT
	.cfi_endproc
.LFE0:
	.size	zd1201_enable, .-zd1201_enable
	.comm	ZD1201_RID_PROMISCUOUSMODE,4,4
	.comm	ZD1201_CMDCODE_ENABLE,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_zd1201.c_zd1201_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zd1201_enable, %function
zd1201_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L13
	mov	r0, #0
	bx	lr
.L13:
	push	{r4, lr}
	ldr	r2, .L15
	sub	sp, sp, #8
	str	r3, [sp]
	ldr	r1, [r2]
	mov	r2, r3
	mov	r4, r0
	bl	zd1201_docmd
	cmp	r0, #0
	moveq	r3, #1
	streq	r3, [r4]
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L14
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L14:
	mov	r0, r4
	mov	r2, #1
	ldr	r3, .L15+4
	ldr	r1, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, lr}
	b	zd1201_setconfig16
.L16:
	.align	2
.L15:
	.word	ZD1201_CMDCODE_ENABLE
	.word	ZD1201_RID_PROMISCUOUSMODE
	.size	zd1201_enable, .-zd1201_enable
	.comm	ZD1201_RID_PROMISCUOUSMODE,4,4
	.comm	ZD1201_CMDCODE_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
