	.file	"extr_ti_sci.c_ti_sci_cmd_proc_handover.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Message alloc failed(%d)\n"
.LC1:
	.string	"Mbox send fail %d\n"
	.text
	.p2align 4
	.type	ti_sci_cmd_proc_handover, @function
ti_sci_cmd_proc_handover:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, DWORD PTR EINVAL[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	neg	r12d
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	rdi, rdi
	je	.L1
	mov	rbp, rdi
	mov	rbx, rsi
	mov	r12, rdx
	call	IS_ERR@PLT
	mov	rdi, rbp
	test	rax, rax
	jne	.L10
	call	handle_to_ti_sci_info@PLT
	mov	edx, DWORD PTR TI_SCI_FLAG_REQ_ACK_ON_PROCESSED[rip]
	mov	esi, DWORD PTR TI_SCI_MSG_PROC_HANDOVER[rip]
	mov	r8d, 4
	mov	rdi, rax
	mov	ecx, 16
	mov	rbp, QWORD PTR 8[rax]
	mov	r14, rax
	call	ti_sci_get_one_xfer@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR 8[r13]
	mov	rsi, r13
	mov	rdi, r14
	mov	QWORD PTR [rax], r12
	mov	QWORD PTR 8[rax], rbx
	call	ti_sci_do_xfer@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	mov	rdi, QWORD PTR 0[r13]
	call	ti_sci_is_response_ack@PLT
	test	rax, rax
	jne	.L7
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L7:
	mov	rsi, r13
	mov	rdi, r14
	call	ti_sci_put_one_xfer@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	pop	rbx
	.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
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r13
	call	PTR_ERR@PLT
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	mov	edx, eax
	call	dev_err@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	ti_sci_cmd_proc_handover, .-ti_sci_cmd_proc_handover
	.comm	TI_SCI_MSG_PROC_HANDOVER,4,4
	.comm	TI_SCI_FLAG_REQ_ACK_ON_PROCESSED,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,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_ti_sci.c_ti_sci_cmd_proc_handover.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Message alloc failed(%d)\012\000"
	.align	2
.LC1:
	.ascii	"Mbox send fail %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ti_sci_cmd_proc_handover, %function
ti_sci_cmd_proc_handover:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	subs	r4, r0, #0
	sub	sp, sp, #12
	beq	.L10
	mov	r8, r1
	mov	r6, r2
	bl	IS_ERR
	cmp	r0, #0
	mov	r0, r4
	bne	.L11
	bl	handle_to_ti_sci_info
	mov	r1, #4
	ldr	r2, .L14
	ldr	r3, .L14+4
	ldr	r2, [r2]
	ldr	r9, [r0, #4]
	str	r1, [sp]
	ldr	r1, [r3]
	mov	r3, #8
	mov	r7, r0
	bl	ti_sci_get_one_xfer
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L12
	ldr	r3, [r5, #4]
	mov	r1, r5
	mov	r0, r7
	stm	r3, {r6, r8}
	bl	ti_sci_do_xfer
	subs	r4, r0, #0
	bne	.L13
	ldr	r0, [r5]
	bl	ti_sci_is_response_ack
	cmp	r0, #0
	ldreq	r3, .L14+8
	ldreq	r4, [r3]
	rsbeq	r4, r4, #0
.L7:
	mov	r1, r5
	mov	r0, r7
	bl	ti_sci_put_one_xfer
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	PTR_ERR
.L10:
	ldr	r3, .L14+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	mov	r0, r9
	mov	r2, r4
	ldr	r1, .L14+16
	bl	dev_err
	b	.L7
.L12:
	mov	r0, r5
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L14+20
	mov	r0, r9
	mov	r2, r4
	bl	dev_err
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	.align	2
.L14:
	.word	TI_SCI_FLAG_REQ_ACK_ON_PROCESSED
	.word	TI_SCI_MSG_PROC_HANDOVER
	.word	ENODEV
	.word	EINVAL
	.word	.LC1
	.word	.LC0
	.size	ti_sci_cmd_proc_handover, .-ti_sci_cmd_proc_handover
	.comm	TI_SCI_MSG_PROC_HANDOVER,4,4
	.comm	TI_SCI_FLAG_REQ_ACK_ON_PROCESSED,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
