	.file	"extr_smc_llc.c_smc_llc_rx_confirm_link.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smc_llc_rx_confirm_link, @function
smc_llc_rx_confirm_link:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	smc_get_lgr@PLT
	mov	edx, DWORD PTR 4[rbp]
	test	DWORD PTR SMC_LLC_FLAG_NO_RMBE_EYEC[rip], edx
	mov	r8, rax
	mov	eax, 0
	cmove	eax, DWORD PTR ENOTSUPP[rip]
	mov	rcx, QWORD PTR [r8]
	test	DWORD PTR SMC_LLC_FLAG_RESP[rip], edx
	je	.L3
	cmp	QWORD PTR SMC_SERV[rip], rcx
	je	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	QWORD PTR SMC_CLNT[rip], rcx
	jne	.L1
	mov	rcx, QWORD PTR SMC_LNK_ACTIVATING[rip]
	cmp	QWORD PTR [rbx], rcx
	jne	.L1
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	lea	rdi, 16[rbx]
	mov	DWORD PTR 20[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	complete@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rcx, QWORD PTR SMC_LNK_ACTIVATING[rip]
	cmp	QWORD PTR [rbx], rcx
	jne	.L1
	mov	DWORD PTR 8[rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rdi, 24[rbx]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	complete@PLT
	.cfi_endproc
.LFE0:
	.size	smc_llc_rx_confirm_link, .-smc_llc_rx_confirm_link
	.comm	SMC_SERV,8,8
	.comm	SMC_LNK_ACTIVATING,8,8
	.comm	SMC_LLC_FLAG_RESP,4,4
	.comm	SMC_LLC_FLAG_NO_RMBE_EYEC,4,4
	.comm	SMC_CLNT,8,8
	.comm	ENOTSUPP,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_smc_llc.c_smc_llc_rx_confirm_link.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smc_llc_rx_confirm_link, %function
smc_llc_rx_confirm_link:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	smc_get_lgr
	ldr	r2, .L8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r1, .L8+4
	tst	r3, r2
	ldreq	r2, .L8+8
	ldr	r1, [r1]
	ldreq	ip, [r2]
	movne	ip, #0
	tst	r3, r1
	ldr	r2, [r0]
	beq	.L3
	ldr	r3, .L8+12
	ldr	r3, [r3]
	cmp	r3, r2
	popne	{r4, r5, r6, pc}
	ldr	r3, .L8+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	popne	{r4, r5, r6, pc}
	str	ip, [r5, #4]
	add	r0, r5, #20
	pop	{r4, r5, r6, lr}
	b	complete
.L3:
	ldr	r3, .L8+20
	ldr	r3, [r3]
	cmp	r3, r2
	popne	{r4, r5, r6, pc}
	ldr	r3, .L8+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	popne	{r4, r5, r6, pc}
	ldr	r3, [r4]
	add	r0, r5, #12
	str	ip, [r5, #8]
	str	r3, [r5, #16]
	pop	{r4, r5, r6, lr}
	b	complete
.L9:
	.align	2
.L8:
	.word	SMC_LLC_FLAG_NO_RMBE_EYEC
	.word	SMC_LLC_FLAG_RESP
	.word	ENOTSUPP
	.word	SMC_SERV
	.word	SMC_LNK_ACTIVATING
	.word	SMC_CLNT
	.size	smc_llc_rx_confirm_link, .-smc_llc_rx_confirm_link
	.comm	SMC_SERV,4,4
	.comm	SMC_LNK_ACTIVATING,4,4
	.comm	SMC_LLC_FLAG_RESP,4,4
	.comm	SMC_LLC_FLAG_NO_RMBE_EYEC,4,4
	.comm	SMC_CLNT,4,4
	.comm	ENOTSUPP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
