	.file	"extr_pwrseqcmd.c_rtl88eu_pwrseqcmdparsing.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"rtl88eu_pwrseqcmdparsing: PWR_CMD_READ\n"
	.align 8
.LC1:
	.string	"rtl88eu_pwrseqcmdparsing: PWR_CMD_WRITE\n"
	.align 8
.LC2:
	.string	"rtl88eu_pwrseqcmdparsing: PWR_CMD_POLLING\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"Fail to polling Offset[%#x]\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"rtl88eu_pwrseqcmdparsing: PWR_CMD_DELAY\n"
	.align 8
.LC5:
	.string	"rtl88eu_pwrseqcmdparsing: PWR_CMD_END\n"
	.align 8
.LC6:
	.string	"rtl88eu_pwrseqcmdparsing: Unknown CMD!!\n"
	.text
	.p2align 4
	.globl	rtl88eu_pwrseqcmdparsing
	.type	rtl88eu_pwrseqcmdparsing, @function
rtl88eu_pwrseqcmdparsing:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	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	DWORD PTR 12[rsp], esi
	.p2align 4,,10
	.p2align 3
.L15:
	mov	ebp, DWORD PTR [r12]
	mov	edi, ebp
	call	GET_PWR_CFG_OFFSET@PLT
	mov	edi, ebp
	call	GET_PWR_CFG_CUT_MASK@PLT
	mov	edi, ebp
	call	GET_PWR_CFG_CMD@PLT
	mov	edi, ebp
	call	GET_PWR_CFG_MASK@PLT
	mov	edi, ebp
	call	GET_PWR_CFG_VALUE@PLT
	mov	edi, DWORD PTR _module_hal_init_c_[rip]
	mov	esi, DWORD PTR _drv_info_[rip]
	movsx	rdx, eax
	call	RT_TRACE@PLT
	mov	edi, ebp
	call	GET_PWR_CFG_CUT_MASK@PLT
	test	DWORD PTR 12[rsp], eax
	je	.L2
	mov	edi, ebp
	call	GET_PWR_CFG_CMD@PLT
	add	eax, -128
	cmp	eax, 4
	ja	.L3
	lea	rcx, .L5[rip]
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR _drv_info_[rip]
	mov	edi, DWORD PTR _module_hal_init_c_[rip]
	lea	rdx, .LC5[rip]
	call	RT_TRACE@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	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
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR _drv_info_[rip]
	mov	edi, DWORD PTR _module_hal_init_c_[rip]
	lea	rdx, .LC2[rip]
	call	RT_TRACE@PLT
	mov	edi, ebp
	call	GET_PWR_CFG_OFFSET@PLT
	movsx	r15, eax
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, r15
	mov	rdi, r14
	call	usb_read8@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	GET_PWR_CFG_MASK@PLT
	mov	edi, ebp
	and	ebx, eax
	mov	DWORD PTR [rsp], ebx
	call	GET_PWR_CFG_VALUE@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	GET_PWR_CFG_MASK@PLT
	mov	rdx, r13
	add	r13, 1
	and	ebx, eax
	cmp	ebx, DWORD PTR [rsp]
	je	.L21
	mov	edi, 10
	mov	QWORD PTR [rsp], rdx
	call	udelay@PLT
	mov	rdx, QWORD PTR [rsp]
	cmp	rdx, 5000
	jbe	.L13
.L12:
	mov	rsi, r15
	lea	rdi, .LC3[rip]
	call	DBG_88E@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	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
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR _drv_info_[rip]
	mov	edi, DWORD PTR _module_hal_init_c_[rip]
	lea	rdx, .LC0[rip]
	call	RT_TRACE@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	add	r12, 4
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR _drv_info_[rip]
	mov	edi, DWORD PTR _module_hal_init_c_[rip]
	lea	rdx, .LC1[rip]
	call	RT_TRACE@PLT
	mov	edi, ebp
	call	GET_PWR_CFG_OFFSET@PLT
	mov	rdi, r14
	movsx	rsi, eax
	mov	QWORD PTR [rsp], rsi
	call	usb_read8@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	GET_PWR_CFG_MASK@PLT
	mov	edi, ebp
	not	eax
	mov	r15d, eax
	call	GET_PWR_CFG_VALUE@PLT
	mov	edi, ebp
	and	r15d, ebx
	mov	ebx, eax
	call	GET_PWR_CFG_MASK@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r14
	and	ebx, eax
	mov	edx, ebx
	or	edx, r15d
	call	usb_write8@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR _drv_info_[rip]
	mov	edi, DWORD PTR _module_hal_init_c_[rip]
	lea	rdx, .LC4[rip]
	call	RT_TRACE@PLT
	mov	edi, ebp
	call	GET_PWR_CFG_VALUE@PLT
	cmp	eax, DWORD PTR PWRSEQ_DELAY_US[rip]
	mov	edi, ebp
	je	.L22
	call	GET_PWR_CFG_OFFSET@PLT
	imul	edi, eax, 1000
	call	udelay@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	rdx, 5000
	jbe	.L2
	jmp	.L12
.L3:
	mov	esi, DWORD PTR _drv_err_[rip]
	mov	edi, DWORD PTR _module_hal_init_c_[rip]
	lea	rdx, .LC6[rip]
	call	RT_TRACE@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L22:
	call	GET_PWR_CFG_OFFSET@PLT
	mov	edi, eax
	call	udelay@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	rtl88eu_pwrseqcmdparsing, .-rtl88eu_pwrseqcmdparsing
	.comm	_module_hal_init_c_,4,4
	.comm	_drv_info_,4,4
	.comm	_drv_err_,4,4
	.comm	PWRSEQ_DELAY_US,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_pwrseqcmd.c_rtl88eu_pwrseqcmdparsing.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rtl88eu_pwrseqcmdparsing: PWR_CMD_READ\012\000"
	.align	2
.LC1:
	.ascii	"rtl88eu_pwrseqcmdparsing: PWR_CMD_WRITE\012\000"
	.align	2
.LC2:
	.ascii	"rtl88eu_pwrseqcmdparsing: PWR_CMD_POLLING\012\000"
	.align	2
.LC3:
	.ascii	"Fail to polling Offset[%#x]\012\000"
	.align	2
.LC4:
	.ascii	"rtl88eu_pwrseqcmdparsing: PWR_CMD_DELAY\012\000"
	.align	2
.LC5:
	.ascii	"rtl88eu_pwrseqcmdparsing: PWR_CMD_END\012\000"
	.align	2
.LC6:
	.ascii	"rtl88eu_pwrseqcmdparsing: Unknown CMD!!\012\000"
	.text
	.align	2
	.global	rtl88eu_pwrseqcmdparsing
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl88eu_pwrseqcmdparsing, %function
rtl88eu_pwrseqcmdparsing:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r0
	mov	r5, #0
	sub	sp, sp, #12
	ldr	r7, .L24
	ldr	r8, .L24+4
	str	r1, [sp]
	sub	r6, r2, #4
.L15:
	ldr	r4, [r6, #4]!
	ldr	r10, [r7]
	mov	r0, r4
	ldr	fp, [r8]
	bl	GET_PWR_CFG_OFFSET
	mov	r0, r4
	bl	GET_PWR_CFG_CUT_MASK
	mov	r0, r4
	bl	GET_PWR_CFG_CMD
	mov	r0, r4
	bl	GET_PWR_CFG_MASK
	mov	r0, r4
	bl	GET_PWR_CFG_VALUE
	mov	r1, fp
	mov	r2, r0
	mov	r0, r10
	bl	RT_TRACE
	mov	r0, r4
	bl	GET_PWR_CFG_CUT_MASK
	ldr	r3, [sp]
	tst	r0, r3
	beq	.L15
	mov	r0, r4
	bl	GET_PWR_CFG_CMD
	sub	r0, r0, #128
	cmp	r0, #4
	ldrls	pc, [pc, r0, asl #2]
	b	.L3
.L5:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L4:
	ldr	r2, .L24+8
	ldr	r1, [r8]
	ldr	r0, [r7]
	bl	RT_TRACE
	mov	r0, r4
	bl	GET_PWR_CFG_VALUE
	ldr	r3, .L24+12
	ldr	r3, [r3]
	cmp	r0, r3
	mov	r0, r4
	beq	.L21
	bl	GET_PWR_CFG_OFFSET
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	bl	udelay
	b	.L15
.L6:
	ldr	r1, [r8]
	ldr	r0, [r7]
	ldr	r2, .L24+16
	bl	RT_TRACE
	mov	r0, #1
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r2, .L24+20
	ldr	r1, [r8]
	ldr	r0, [r7]
	bl	RT_TRACE
	mov	r0, r4
	bl	GET_PWR_CFG_OFFSET
	str	r6, [sp, #4]
	mov	r10, r0
	mov	r6, r5
	mov	r5, r4
.L13:
	mov	r1, r10
	mov	r0, r9
	bl	usb_read8
	mov	fp, r0
	mov	r0, r5
	bl	GET_PWR_CFG_MASK
	mov	r2, r0
	mov	r0, r5
	and	fp, fp, r2
	bl	GET_PWR_CFG_VALUE
	mov	r4, r0
	mov	r0, r5
	bl	GET_PWR_CFG_MASK
	and	r4, r4, r0
	cmp	r4, fp
	mov	fp, r6
	add	r6, r6, #1
	beq	.L22
	mov	r0, #10
	bl	udelay
	ldr	r3, .L24+24
	cmp	fp, r3
	bls	.L13
	mov	r1, r10
	ldr	r0, .L24+28
	bl	DBG_88E
	mov	r0, #0
.L23:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r2, .L24+32
	ldr	r1, [r8]
	ldr	r0, [r7]
	bl	RT_TRACE
	b	.L15
.L9:
	ldr	r2, .L24+36
	ldr	r1, [r8]
	ldr	r0, [r7]
	bl	RT_TRACE
	mov	r0, r4
	bl	GET_PWR_CFG_OFFSET
	mov	fp, r0
	mov	r0, r9
	mov	r1, fp
	bl	usb_read8
	mov	r10, r0
	mov	r0, r4
	bl	GET_PWR_CFG_MASK
	mov	r2, r0
	mov	r0, r4
	bic	r10, r10, r2
	bl	GET_PWR_CFG_VALUE
	mov	r2, r0
	mov	r0, r4
	mov	r4, r2
	bl	GET_PWR_CFG_MASK
	and	r2, r4, r0
	mov	r1, fp
	mov	r0, r9
	orr	r2, r2, r10
	bl	usb_write8
	b	.L15
.L22:
	ldr	r2, .L24+24
	mov	r5, r6
	cmp	fp, r2
	ldr	r6, [sp, #4]
	bls	.L15
	mov	r1, r10
	ldr	r0, .L24+28
	bl	DBG_88E
	mov	r0, #0
	b	.L23
.L21:
	bl	GET_PWR_CFG_OFFSET
	bl	udelay
	b	.L15
.L3:
	ldr	r3, .L24+40
	ldr	r2, .L24+44
	ldr	r1, [r3]
	ldr	r0, [r7]
	bl	RT_TRACE
	b	.L15
.L25:
	.align	2
.L24:
	.word	_module_hal_init_c_
	.word	_drv_info_
	.word	.LC4
	.word	PWRSEQ_DELAY_US
	.word	.LC5
	.word	.LC2
	.word	5000
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	_drv_err_
	.word	.LC6
	.size	rtl88eu_pwrseqcmdparsing, .-rtl88eu_pwrseqcmdparsing
	.comm	_module_hal_init_c_,4,4
	.comm	_drv_info_,4,4
	.comm	_drv_err_,4,4
	.comm	PWRSEQ_DELAY_US,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
