	.file	"extr_rtl8225.c_rtl8225_write_8051.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtl8225_write_8051, @function
rtl8225_write_8051:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rdi]
	mov	DWORD PTR [rsp], edx
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	lea	rsi, 4[rax]
	call	rtl818x_ioread16@PLT
	mov	rdi, rbp
	mov	r12d, eax
	mov	rax, QWORD PTR 0[rbp]
	and	r12d, -13
	lea	rsi, 8[rax]
	mov	r14d, r12d
	call	rtl818x_ioread16@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, rbp
	or	r14d, 4
	mov	ebx, eax
	call	rtl818x_ioread16@PLT
	or	ebx, 7
	mov	rdi, rbp
	and	eax, -16
	mov	edx, ebx
	lea	rbx, 8[rbp]
	mov	r13d, eax
	mov	rax, QWORD PTR 0[rbp]
	lea	rsi, 8[rax]
	call	rtl818x_iowrite16@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	edx, r13d
	mov	rdi, rbp
	or	edx, 7
	call	rtl818x_iowrite16@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, r14d
	mov	rdi, rbp
	lea	rsi, 4[rax]
	call	rtl818x_iowrite16@PLT
	mov	edi, 2
	call	udelay@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, r12d
	mov	rdi, rbp
	lea	rsi, 4[rax]
	call	rtl818x_iowrite16@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	rdi, rbx
	call	mutex_lock@PLT
	mov	ecx, DWORD PTR [rsp]
	mov	r8, QWORD PTR 16[rbp]
	xor	esi, esi
	mov	edi, DWORD PTR 24[rbp]
	mov	DWORD PTR [r8], ecx
	mov	eax, DWORD PTR HZ[rip]
	mov	ecx, DWORD PTR RTL8187_REQT_WRITE[rip]
	mov	edx, DWORD PTR RTL8187_REQ_SET_REG[rip]
	mov	QWORD PTR 8[rsp], r8
	mov	r12d, eax
	shr	r12d, 31
	mov	DWORD PTR 4[rsp], ecx
	add	r12d, eax
	mov	DWORD PTR [rsp], edx
	call	usb_sndctrlpipe@PLT
	sar	r12d
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edi, DWORD PTR 24[rbp]
	push	r12
	.cfi_def_cfa_offset 96
	mov	r9d, 33317
	mov	esi, eax
	push	4
	.cfi_def_cfa_offset 104
	mov	r8, QWORD PTR 32[rsp]
	push	r8
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR 36[rsp]
	mov	r8d, r15d
	mov	edx, DWORD PTR 32[rsp]
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rdi, rbx
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, r14d
	mov	rdi, rbp
	lea	rsi, 4[rax]
	call	rtl818x_iowrite16@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, r14d
	mov	rdi, rbp
	lea	rsi, 4[rax]
	call	rtl818x_iowrite16@PLT
	mov	rsi, QWORD PTR 0[rbp]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	edx, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	rtl818x_iowrite16@PLT
	.cfi_endproc
.LFE0:
	.size	rtl8225_write_8051, .-rtl8225_write_8051
	.comm	RTL8187_REQ_SET_REG,4,4
	.comm	RTL8187_REQT_WRITE,4,4
	.comm	HZ,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_rtl8225.c_rtl8225_write_8051.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8225_write_8051, %function
rtl8225_write_8051:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [r0]
	mov	r7, r1
	ldr	r1, [r4]
	sub	sp, sp, #24
	mov	r0, r4
	add	r1, r1, #4
	mov	r9, r2
	bl	rtl818x_ioread16
	ldr	r1, [r4]
	mov	r5, r0
	add	r1, r1, #8
	mov	r0, r4
	bl	rtl818x_ioread16
	ldr	r1, [r4]
	mov	r8, r0
	mov	r0, r4
	bl	rtl818x_ioread16
	ldr	r1, [r4]
	bic	r6, r0, #15
	orr	r2, r8, #7
	mov	r0, r4
	add	r1, r1, #8
	bl	rtl818x_iowrite16
	ldr	r1, [r4]
	orr	r2, r6, #7
	mov	r0, r4
	bl	rtl818x_iowrite16
	mov	r0, #10
	bl	udelay
	bic	r5, r5, #12
	ldr	r1, [r4]
	orr	r8, r5, #4
	mov	r2, r8
	add	r1, r1, #4
	mov	r0, r4
	bl	rtl818x_iowrite16
	mov	r0, #2
	bl	udelay
	ldr	r1, [r4]
	mov	r2, r5
	add	r1, r1, #4
	mov	r0, r4
	bl	rtl818x_iowrite16
	add	r5, r4, #4
	mov	r0, #10
	bl	udelay
	mov	r0, r5
	bl	mutex_lock
	ldr	r10, [r4, #12]
	ldr	r3, [r4, #8]
	mov	r0, r10
	str	r9, [r3]
	mov	r1, #0
	bl	usb_sndctrlpipe
	mov	r2, #4
	ldr	r3, .L4
	str	r2, [sp, #12]
	ldr	r3, [r3]
	ldr	lr, .L4+4
	add	r3, r3, r3, lsr #31
	asr	r3, r3, #1
	str	r3, [sp, #16]
	ldr	r3, [r4, #8]
	ldr	ip, .L4+8
	ldr	r2, .L4+12
	str	r7, [sp]
	str	r3, [sp, #8]
	ldr	r3, [lr]
	mov	r1, r0
	ldr	r2, [r2]
	mov	r0, r10
	str	ip, [sp, #4]
	bl	usb_control_msg
	mov	r0, r5
	bl	mutex_unlock
	ldr	r1, [r4]
	mov	r2, r8
	add	r1, r1, #4
	mov	r0, r4
	bl	rtl818x_iowrite16
	mov	r0, #10
	bl	udelay
	ldr	r1, [r4]
	mov	r2, r8
	mov	r0, r4
	add	r1, r1, #4
	bl	rtl818x_iowrite16
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r4]
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	rtl818x_iowrite16
.L5:
	.align	2
.L4:
	.word	HZ
	.word	RTL8187_REQT_WRITE
	.word	33317
	.word	RTL8187_REQ_SET_REG
	.size	rtl8225_write_8051, .-rtl8225_write_8051
	.comm	RTL8187_REQ_SET_REG,4,4
	.comm	RTL8187_REQT_WRITE,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
