	.file	"extr_if_urtw.c_urtw_8225_isv2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	urtw_8225_isv2, @function
urtw_8225_isv2:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [rsi], 1
	mov	edx, DWORD PTR URTW_RF_PINS_MAGIC5[rip]
	mov	r13, rsp
	mov	esi, DWORD PTR URTW_RF_PINS_OUTPUT[rip]
	call	urtw_write16_m@PLT
	mov	edx, DWORD PTR URTW_RF_PINS_MAGIC5[rip]
	mov	esi, DWORD PTR URTW_RF_PINS_SELECT[rip]
	mov	rdi, rbp
	call	urtw_write16_m@PLT
	mov	edx, DWORD PTR URTW_RF_PINS_MAGIC5[rip]
	mov	esi, DWORD PTR URTW_RF_PINS_ENABLE[rip]
	mov	rdi, rbp
	call	urtw_write16_m@PLT
	mov	esi, 500
	mov	rdi, rbp
	call	usb_pause_mtx@PLT
	mov	edx, DWORD PTR URTW_8225_ADDR_0_DATA_MAGIC1[rip]
	mov	esi, DWORD PTR URTW_8225_ADDR_0_MAGIC[rip]
	mov	rdi, rbp
	call	urtw_8225_write@PLT
	mov	esi, DWORD PTR URTW_8225_ADDR_8_MAGIC[rip]
	mov	rdx, r13
	mov	rdi, rbp
	call	urtw_8225_read@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR URTW_8225_ADDR_8_DATA_MAGIC1[rip]
	cmp	QWORD PTR [rsp], rax
	je	.L3
.L5:
	mov	DWORD PTR [rbx], 0
.L4:
	mov	edx, DWORD PTR URTW_8225_ADDR_0_DATA_MAGIC2[rip]
	mov	esi, DWORD PTR URTW_8225_ADDR_0_MAGIC[rip]
	mov	rdi, rbp
	call	urtw_8225_write@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR URTW_8225_ADDR_9_MAGIC[rip]
	mov	rdx, r13
	mov	rdi, rbp
	call	urtw_8225_read@PLT
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR URTW_8225_ADDR_9_DATA_MAGIC1[rip]
	cmp	QWORD PTR [rsp], rax
	jne	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
.L2:
	endbr64
	mov	r12, rax
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	urtw_8225_isv2, .-urtw_8225_isv2
	.comm	URTW_RF_PINS_SELECT,4,4
	.comm	URTW_RF_PINS_OUTPUT,4,4
	.comm	URTW_RF_PINS_MAGIC5,4,4
	.comm	URTW_RF_PINS_ENABLE,4,4
	.comm	URTW_8225_ADDR_9_MAGIC,4,4
	.comm	URTW_8225_ADDR_9_DATA_MAGIC1,8,8
	.comm	URTW_8225_ADDR_8_MAGIC,4,4
	.comm	URTW_8225_ADDR_8_DATA_MAGIC1,8,8
	.comm	URTW_8225_ADDR_0_MAGIC,4,4
	.comm	URTW_8225_ADDR_0_DATA_MAGIC2,4,4
	.comm	URTW_8225_ADDR_0_DATA_MAGIC1,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_if_urtw.c_urtw_8225_isv2.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	urtw_8225_isv2, %function
urtw_8225_isv2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r2, #1
	mov	r6, r1
	mov	r4, r0
	ldr	r1, .L11
	sub	sp, sp, #12
	ldr	r5, .L11+4
	ldr	r3, .L11+8
	ldr	r1, [r1]
	str	r1, [sp, #4]
	mov	r1,#0
	str	r2, [r6]
	ldr	r2, [r5]
	ldr	r1, [r3]
	bl	urtw_write16_m
	ldr	r3, .L11+12
	ldr	r2, [r5]
	ldr	r1, [r3]
	mov	r0, r4
	bl	urtw_write16_m
	ldr	r3, .L11+16
	ldr	r2, [r5]
	ldr	r1, [r3]
	mov	r0, r4
	bl	urtw_write16_m
	mov	r1, #500
	mov	r0, r4
	bl	usb_pause_mtx
	ldr	r7, .L11+20
	ldr	r3, .L11+24
	ldr	r1, [r7]
	ldr	r2, [r3]
	mov	r0, r4
	bl	urtw_8225_write
	ldr	r3, .L11+28
	mov	r0, r4
	mov	r2, sp
	ldr	r1, [r3]
	bl	urtw_8225_read
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L11+32
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
.L5:
	mov	r3, #0
	str	r3, [r6]
.L4:
	ldr	r3, .L11+36
	mov	r0, r4
	ldr	r1, [r7]
	ldr	r2, [r3]
	bl	urtw_8225_write
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
.L2:
	ldr	r3, .L11+40
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r3]
	bl	urtw_8225_read
	cmp	r0, #0
	movne	r5, r0
	bne	.L1
	ldr	r3, .L11+44
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L5
	b	.L4
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	URTW_RF_PINS_MAGIC5
	.word	URTW_RF_PINS_OUTPUT
	.word	URTW_RF_PINS_SELECT
	.word	URTW_RF_PINS_ENABLE
	.word	URTW_8225_ADDR_0_MAGIC
	.word	URTW_8225_ADDR_0_DATA_MAGIC1
	.word	URTW_8225_ADDR_8_MAGIC
	.word	URTW_8225_ADDR_8_DATA_MAGIC1
	.word	URTW_8225_ADDR_0_DATA_MAGIC2
	.word	URTW_8225_ADDR_9_MAGIC
	.word	URTW_8225_ADDR_9_DATA_MAGIC1
	.size	urtw_8225_isv2, .-urtw_8225_isv2
	.comm	URTW_RF_PINS_SELECT,4,4
	.comm	URTW_RF_PINS_OUTPUT,4,4
	.comm	URTW_RF_PINS_MAGIC5,4,4
	.comm	URTW_RF_PINS_ENABLE,4,4
	.comm	URTW_8225_ADDR_9_MAGIC,4,4
	.comm	URTW_8225_ADDR_9_DATA_MAGIC1,4,4
	.comm	URTW_8225_ADDR_8_MAGIC,4,4
	.comm	URTW_8225_ADDR_8_DATA_MAGIC1,4,4
	.comm	URTW_8225_ADDR_0_MAGIC,4,4
	.comm	URTW_8225_ADDR_0_DATA_MAGIC2,4,4
	.comm	URTW_8225_ADDR_0_DATA_MAGIC1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
