	.file	"extr_rt73usb.c_rt73usb_bbp_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rt73usb_bbp_write, @function
rt73usb_bbp_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	call	mutex_lock@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	WAIT_FOR_BBP@PLT
	test	rax, rax
	jne	.L9
.L2:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	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
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR PHY_CSR3_VALUE[rip]
	mov	edx, r13d
	mov	rdi, r14
	mov	QWORD PTR [rsp], 0
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR PHY_CSR3_REGNUM[rip]
	mov	edx, r12d
	mov	rdi, r14
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR PHY_CSR3_BUSY[rip]
	mov	rdi, r14
	mov	edx, 1
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR PHY_CSR3_READ_CONTROL[rip]
	xor	edx, edx
	mov	rdi, r14
	call	rt2x00_set_field32@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	esi, DWORD PTR PHY_CSR3[rip]
	mov	rdi, rbp
	call	rt2x00usb_register_write_lock@PLT
	jmp	.L2
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rt73usb_bbp_write, .-rt73usb_bbp_write
	.comm	PHY_CSR3_VALUE,4,4
	.comm	PHY_CSR3_REGNUM,4,4
	.comm	PHY_CSR3_READ_CONTROL,4,4
	.comm	PHY_CSR3_BUSY,4,4
	.comm	PHY_CSR3,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_rt73usb.c_rt73usb_bbp_write.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt73usb_bbp_write, %function
rt73usb_bbp_write:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r3, .L11
	sub	sp, sp, #12
	mov	r5, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	mutex_lock
	mov	r0, r4
	mov	r1, sp
	bl	WAIT_FOR_BBP
	cmp	r0, #0
	bne	.L9
.L2:
	mov	r0, r4
	bl	mutex_unlock
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	mov	r7, #0
	ldr	r3, .L11+4
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, sp
	str	r7, [sp]
	bl	rt2x00_set_field32
	ldr	r3, .L11+8
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L11+12
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L11+16
	mov	r2, r7
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L11+20
	mov	r0, r4
	ldr	r2, [sp]
	ldr	r1, [r3]
	bl	rt2x00usb_register_write_lock
	b	.L2
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	PHY_CSR3_VALUE
	.word	PHY_CSR3_REGNUM
	.word	PHY_CSR3_BUSY
	.word	PHY_CSR3_READ_CONTROL
	.word	PHY_CSR3
	.size	rt73usb_bbp_write, .-rt73usb_bbp_write
	.comm	PHY_CSR3_VALUE,4,4
	.comm	PHY_CSR3_REGNUM,4,4
	.comm	PHY_CSR3_READ_CONTROL,4,4
	.comm	PHY_CSR3_BUSY,4,4
	.comm	PHY_CSR3,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
