	.file	"extr_usb_halinit.c_RfOnOffDetect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"pwrdown, 0x5c(BIT(7))=%02x\n"
.LC1:
	.string	"GPIO_IN=%02x\n"
	.text
	.p2align 4
	.globl	RfOnOffDetect
	.type	RfOnOffDetect, @function
RfOnOffDetect:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR [rdi], 0
	je	.L2
	mov	esi, DWORD PTR REG_HSISR[rip]
	call	usb_read8@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	mov	ebp, eax
	call	DBG_88E@PLT
	mov	edi, 7
	call	BIT@PLT
	test	eax, ebp
	mov	eax, DWORD PTR rf_off[rip]
	cmove	eax, DWORD PTR rf_on[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR REG_MAC_PINMUX_CFG[rip]
	call	usb_read8@PLT
	mov	edi, 3
	mov	ebx, eax
	call	BIT@PLT
	mov	esi, DWORD PTR REG_MAC_PINMUX_CFG[rip]
	mov	rdi, rbp
	not	eax
	mov	edx, eax
	and	edx, ebx
	call	usb_write8@PLT
	mov	esi, DWORD PTR REG_GPIO_IO_SEL[rip]
	mov	rdi, rbp
	call	usb_read8@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	mov	ebp, eax
	call	DBG_88E@PLT
	mov	edi, 3
	call	BIT@PLT
	test	eax, ebp
	mov	eax, DWORD PTR rf_on[rip]
	cmove	eax, DWORD PTR rf_off[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	RfOnOffDetect, .-RfOnOffDetect
	.comm	rf_on,4,4
	.comm	rf_off,4,4
	.comm	REG_MAC_PINMUX_CFG,4,4
	.comm	REG_HSISR,4,4
	.comm	REG_GPIO_IO_SEL,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_usb_halinit.c_RfOnOffDetect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pwrdown, 0x5c(BIT(7))=%02x\012\000"
	.align	2
.LC1:
	.ascii	"GPIO_IN=%02x\012\000"
	.text
	.align	2
	.global	RfOnOffDetect
	.syntax unified
	.arm
	.fpu softvfp
	.type	RfOnOffDetect, %function
RfOnOffDetect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L9
	ldr	r1, [r3]
	bl	usb_read8
	mov	r4, r0
	ldr	r0, .L9+4
	mov	r1, r4
	bl	DBG_88E
	mov	r0, #7
	bl	BIT
	tst	r0, r4
	beq	.L7
.L5:
	ldr	r3, .L9+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L9+12
	mov	r4, r0
	ldr	r6, [r3]
	mov	r1, r6
	bl	usb_read8
	mov	r5, r0
	mov	r0, #3
	bl	BIT
	mov	r1, r6
	bic	r2, r5, r0
	mov	r0, r4
	bl	usb_write8
	ldr	r3, .L9+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	usb_read8
	mov	r4, r0
	ldr	r0, .L9+20
	mov	r1, r4
	bl	DBG_88E
	mov	r0, #3
	bl	BIT
	tst	r0, r4
	beq	.L5
.L7:
	ldr	r3, .L9+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	REG_HSISR
	.word	.LC0
	.word	rf_off
	.word	REG_MAC_PINMUX_CFG
	.word	REG_GPIO_IO_SEL
	.word	.LC1
	.word	rf_on
	.size	RfOnOffDetect, .-RfOnOffDetect
	.comm	rf_on,4,4
	.comm	rf_off,4,4
	.comm	REG_MAC_PINMUX_CFG,4,4
	.comm	REG_HSISR,4,4
	.comm	REG_GPIO_IO_SEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
