	.file	"extr_ufshcd.c_ufshcd_uic_cmd_compl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ufshcd_uic_cmd_compl, @function
ufshcd_uic_cmd_compl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	test	DWORD PTR UIC_COMMAND_COMPL[rip], esi
	je	.L2
	cmp	QWORD PTR 8[rdi], 0
	je	.L2
	call	ufshcd_get_uic_cmd_result@PLT
	mov	r12, QWORD PTR 8[rbx]
	mov	rdi, rbx
	or	DWORD PTR 8[r12], eax
	call	ufshcd_get_dme_attr_val@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	DWORD PTR 4[r12], eax
	call	complete@PLT
.L2:
	test	DWORD PTR UFSHCD_UIC_PWR_MASK[rip], ebp
	je	.L1
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	complete@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ufshcd_uic_cmd_compl, .-ufshcd_uic_cmd_compl
	.comm	UIC_COMMAND_COMPL,4,4
	.comm	UFSHCD_UIC_PWR_MASK,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_ufshcd.c_ufshcd_uic_cmd_compl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ufshcd_uic_cmd_compl, %function
ufshcd_uic_cmd_compl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r1
	tst	r1, r3
	mov	r5, r0
	beq	.L2
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L2
	bl	ufshcd_get_uic_cmd_result
	mov	r2, r0
	ldr	r6, [r5, #4]
	mov	r0, r5
	ldr	r3, [r6, #8]
	orr	r3, r3, r2
	str	r3, [r6, #8]
	bl	ufshcd_get_dme_attr_val
	mov	r3, r0
	ldr	r0, [r5, #4]
	str	r3, [r6, #4]
	bl	complete
.L2:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	tst	r4, r3
	popeq	{r4, r5, r6, pc}
	ldr	r0, [r5]
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	pop	{r4, r5, r6, lr}
	b	complete
.L19:
	.align	2
.L18:
	.word	UIC_COMMAND_COMPL
	.word	UFSHCD_UIC_PWR_MASK
	.size	ufshcd_uic_cmd_compl, .-ufshcd_uic_cmd_compl
	.comm	UIC_COMMAND_COMPL,4,4
	.comm	UFSHCD_UIC_PWR_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
