	.file	"extr_mei_hdcp.c_mei_hdcp_verify_receiver_cert_prepare_km.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"mei_cldev_send failed: %zd\n"
.LC1:
	.string	"mei_cldev_recv failed: %zd\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"ME cmd 0x%08X Failed. Status: 0x%X\n"
	.text
	.p2align 4
	.type	mei_hdcp_verify_receiver_cert_prepare_km, @function
mei_hdcp_verify_receiver_cert_prepare_km:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	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, 120
	.cfi_def_cfa_offset 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR 48[rsp], xmm0
	mov	QWORD PTR 96[rsp], 0
	movaps	XMMWORD PTR 64[rsp], xmm0
	movaps	XMMWORD PTR 80[rsp], xmm0
	movaps	XMMWORD PTR 16[rsp], xmm0
	movaps	XMMWORD PTR 32[rsp], xmm0
	test	rdi, rdi
	je	.L2
	mov	r12, rsi
	test	rsi, rsi
	je	.L2
	mov	rbx, rdx
	test	rdx, rdx
	je	.L2
	mov	r14, rcx
	test	rcx, rcx
	je	.L2
	mov	r15, r8
	test	r8, r8
	je	.L2
	test	r9, r9
	je	.L2
	mov	QWORD PTR 8[rsp], r9
	mov	rbp, rdi
	call	to_mei_cl_device@PLT
	mov	edi, DWORD PTR [r12]
	mov	r13, rax
	mov	eax, DWORD PTR HDCP_API_VERSION[rip]
	mov	DWORD PTR 92[rsp], eax
	mov	eax, DWORD PTR WIRED_VERIFY_RECEIVER_CERT[rip]
	mov	DWORD PTR 88[rsp], eax
	mov	rax, QWORD PTR ME_HDCP_STATUS_SUCCESS[rip]
	mov	QWORD PTR 80[rsp], rax
	mov	eax, DWORD PTR WIRED_CMD_BUF_LEN_VERIFY_RECEIVER_CERT_IN[rip]
	mov	DWORD PTR 72[rsp], eax
	mov	eax, DWORD PTR 4[r12]
	mov	DWORD PTR 64[rsp], eax
	call	mei_get_ddi_index@PLT
	mov	edx, DWORD PTR HDCP_2_2_RRX_LEN[rip]
	mov	edi, DWORD PTR 52[rsp]
	lea	rsi, 8[rbx]
	mov	DWORD PTR 60[rsp], eax
	mov	eax, DWORD PTR 12[rbx]
	mov	DWORD PTR 56[rsp], eax
	call	memcpy@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	edx, DWORD PTR HDCP_2_2_RXCAPS_LEN[rip]
	mov	edi, DWORD PTR 48[rsp]
	call	memcpy@PLT
	lea	rsi, 48[rsp]
	mov	edx, 56
	mov	rdi, r13
	call	mei_cldev_send@PLT
	mov	r9, QWORD PTR 8[rsp]
	test	rax, rax
	mov	rbx, rax
	js	.L14
	lea	r12, 16[rsp]
	mov	edx, 32
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], r9
	mov	rsi, r12
	call	mei_cldev_recv@PLT
	mov	r9, QWORD PTR 8[rsp]
	test	rax, rax
	mov	rbx, rax
	js	.L15
	mov	rcx, QWORD PTR 32[rsp]
	cmp	rcx, QWORD PTR ME_HDCP_STATUS_SUCCESS[rip]
	jne	.L16
	mov	rax, QWORD PTR 24[rsp]
	xor	edx, edx
	test	rax, rax
	setne	dl
	mov	DWORD PTR [r14], edx
	jne	.L17
	mov	eax, DWORD PTR HDCP_2_2_AKE_NO_STORED_KM[rip]
	mov	DWORD PTR 4[r15], eax
	mov	QWORD PTR [r9], 8
.L10:
	mov	edi, DWORD PTR [r15]
	mov	edx, 4
	mov	rsi, r12
	call	memcpy@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR 104[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L14:
	.cfi_restore_state
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	mov	eax, ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR HDCP_2_2_AKE_STORED_KM[rip]
	mov	DWORD PTR 4[r15], eax
	mov	QWORD PTR [r9], 4
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L16:
	movsx	rdx, DWORD PTR WIRED_VERIFY_RECEIVER_CERT[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	mov	eax, ebx
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mei_hdcp_verify_receiver_cert_prepare_km, .-mei_hdcp_verify_receiver_cert_prepare_km
	.comm	WIRED_VERIFY_RECEIVER_CERT,4,4
	.comm	WIRED_CMD_BUF_LEN_VERIFY_RECEIVER_CERT_IN,4,4
	.comm	ME_HDCP_STATUS_SUCCESS,8,8
	.comm	HDCP_API_VERSION,4,4
	.comm	HDCP_2_2_RXCAPS_LEN,4,4
	.comm	HDCP_2_2_RRX_LEN,4,4
	.comm	HDCP_2_2_AKE_STORED_KM,4,4
	.comm	HDCP_2_2_AKE_NO_STORED_KM,4,4
	.comm	EIO,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_mei_hdcp.c_mei_hdcp_verify_receiver_cert_prepare_km.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mei_cldev_send failed: %zd\012\000"
	.align	2
.LC1:
	.ascii	"mei_cldev_recv failed: %zd\012\000"
	.align	2
.LC2:
	.ascii	"ME cmd 0x%08X Failed. Status: 0x%X\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mei_hdcp_verify_receiver_cert_prepare_km, %function
mei_hdcp_verify_receiver_cert_prepare_km:
	@ args = 8, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r4, r1
	sub	sp, sp, #68
	mov	r7, r3
	ldr	r3, .L17
	mov	r6, r2
	mov	r1, #0
	mov	r2, #40
	add	r0, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	ldr	r8, [sp, #104]
	ldr	r9, [sp, #108]
	bl	memset
	mov	r3, #0
	cmp	r4, #0
	cmpne	r5, #0
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	beq	.L2
	cmp	r7, r3
	cmpne	r6, r3
	beq	.L2
	cmp	r9, r3
	cmpne	r8, r3
	beq	.L2
	mov	r0, r5
	bl	to_mei_cl_device
	ldr	r1, .L17+4
	ldr	r3, .L17+8
	ldr	r2, .L17+12
	ldr	ip, [r1]
	ldr	fp, .L17+16
	ldr	r1, [r2]
	ldr	r2, [r3]
	str	ip, [sp, #52]
	ldr	ip, [fp]
	mov	r10, r0
	str	r2, [sp, #48]
	ldm	r4, {r0, r2}
	str	ip, [sp, #44]
	str	r1, [sp, #40]
	str	r2, [sp, #36]
	bl	mei_get_ddi_index
	ldr	r2, .L17+20
	ldr	ip, [r6, #8]
	ldr	r2, [r2]
	add	r1, r6, #4
	str	r0, [sp, #32]
	ldr	r0, [sp, #24]
	str	ip, [sp, #28]
	bl	memcpy
	ldr	r2, .L17+24
	ldr	r1, [r6]
	ldr	r2, [r2]
	ldr	r0, [sp, #20]
	bl	memcpy
	mov	r0, r10
	mov	r2, #40
	add	r1, sp, #20
	bl	mei_cldev_send
	subs	r4, r0, #0
	blt	.L13
	mov	r0, r10
	mov	r2, #16
	add	r1, sp, #4
	bl	mei_cldev_recv
	subs	r4, r0, #0
	blt	.L14
	ldr	r2, [fp]
	ldr	r3, [sp, #12]
	cmp	r3, r2
	bne	.L15
	ldr	r3, [sp, #8]
	add	r1, sp, #4
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	str	r3, [r7]
	movne	r3, #4
	moveq	r3, #8
	ldrne	r2, .L17+28
	ldreq	r2, .L17+32
	ldr	r0, [r8]
	ldr	r2, [r2]
	mov	r4, #0
	str	r2, [r8, #4]
	mov	r2, #4
	str	r3, [r9]
	bl	memcpy
	b	.L1
.L2:
	ldr	r3, .L17+36
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L17+40
	bl	dev_dbg
	b	.L1
.L15:
	ldr	r2, .L17+8
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, .L17+44
	bl	dev_dbg
	ldr	r3, .L17+48
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L14:
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L17+52
	bl	dev_dbg
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC3
	.word	HDCP_API_VERSION
	.word	WIRED_VERIFY_RECEIVER_CERT
	.word	WIRED_CMD_BUF_LEN_VERIFY_RECEIVER_CERT_IN
	.word	ME_HDCP_STATUS_SUCCESS
	.word	HDCP_2_2_RRX_LEN
	.word	HDCP_2_2_RXCAPS_LEN
	.word	HDCP_2_2_AKE_STORED_KM
	.word	HDCP_2_2_AKE_NO_STORED_KM
	.word	EINVAL
	.word	.LC0
	.word	.LC2
	.word	EIO
	.word	.LC1
	.size	mei_hdcp_verify_receiver_cert_prepare_km, .-mei_hdcp_verify_receiver_cert_prepare_km
	.comm	WIRED_VERIFY_RECEIVER_CERT,4,4
	.comm	WIRED_CMD_BUF_LEN_VERIFY_RECEIVER_CERT_IN,4,4
	.comm	ME_HDCP_STATUS_SUCCESS,4,4
	.comm	HDCP_API_VERSION,4,4
	.comm	HDCP_2_2_RXCAPS_LEN,4,4
	.comm	HDCP_2_2_RRX_LEN,4,4
	.comm	HDCP_2_2_AKE_STORED_KM,4,4
	.comm	HDCP_2_2_AKE_NO_STORED_KM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
