	.file	"389720.c"
	.intel_syntax noprefix
	.text
	.type	mei_deinit, @function
mei_deinit:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, -1
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	edi, eax
	call	close@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 28[rax], -1
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 16[rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	mei_deinit, .-mei_deinit
	.section	.rodata
.LC0:
	.string	"/dev/mei0"
	.align 8
.LC1:
	.string	"Error: Cannot establish a handle to the Intel MEI driver\n"
	.align 8
.LC2:
	.string	"Error: IOCTL_MEI_CONNECT_CLIENT receive message. err=%d\n"
.LC3:
	.string	"max_message_length %d\n"
.LC4:
	.string	"protocol_version %d\n"
	.align 8
.LC5:
	.string	"Error: Intel MEI protocol version not supported\n"
	.text
	.type	mei_init, @function
mei_init:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	eax, ecx
	mov	BYTE PTR -68[rbp], dl
	mov	BYTE PTR -72[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	movzx	edx, BYTE PTR -72[rbp]
	mov	BYTE PTR 17[rax], dl
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	rdx, QWORD PTR -56[rbp]
	mov	DWORD PTR 28[rdx], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, -1
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 57
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	jmp	.L5
.L4:
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR 16[rax], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 28[rax]
	lea	rdx, -32[rbp]
	mov	esi, 3222292481
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	je	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -44[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L6:
	lea	rax, -32[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR 17[rax]
	test	al, al
	je	.L7
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L7:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR 17[rax]
	test	al, al
	je	.L8
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 4[rax]
	movzx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L8:
	cmp	BYTE PTR -68[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 4[rax]
	cmp	BYTE PTR -68[rbp], al
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 48
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	jmp	.L5
.L9:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	movzx	edx, BYTE PTR 4[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR 24[rax], dl
	mov	eax, 1
	jmp	.L11
.L5:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	mei_deinit
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mei_init, .-mei_init
	.section	.rodata
.LC6:
	.string	"call read length = %zd\n"
	.align 8
.LC7:
	.string	"Error: read failed with status %zd %s\n"
	.align 8
.LC8:
	.string	"read succeeded with result %zd\n"
	.text
	.type	mei_recv_msg, @function
mei_recv_msg:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 17[rax]
	test	al, al
	je	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L14:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L15
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mei_deinit
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 17[rax]
	test	al, al
	je	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L16:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	mei_recv_msg, .-mei_recv_msg
	.section	.rodata
.LC9:
	.string	"call write length = %zd\n"
	.align 8
.LC10:
	.string	"Error: write failed with status %zd %s\n"
.LC11:
	.string	"write success\n"
	.align 8
.LC12:
	.string	"Error: write failed on timeout with status\n"
	.align 8
.LC13:
	.string	"Error: write failed on select with status %zd\n"
	.text
	.type	mei_send_msg, @function
mei_send_msg:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	QWORD PTR -200[rbp], rdi
	mov	QWORD PTR -208[rbp], rsi
	mov	QWORD PTR -216[rbp], rdx
	mov	QWORD PTR -224[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -224[rbp]
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	mov	QWORD PTR -160[rbp], rax
	mov	rcx, QWORD PTR -224[rbp]
	mov	rax, rcx
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	imul	rdx, rax, 1000
	mov	rax, rcx
	sub	rax, rdx
	imul	rax, rax, 1000000
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	movzx	eax, BYTE PTR 17[rax]
	test	al, al
	je	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -216[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L19:
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	rcx, QWORD PTR -208[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jns	.L20
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	neg	eax
	cdqe
	mov	QWORD PTR -176[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -168[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L21
.L20:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 193 "the_stack_data/389720.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -184[rbp], edx
	mov	DWORD PTR -180[rbp], eax
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 28[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 28[rax]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 28[rax]
	lea	edi, 1[rax]
	lea	rdx, -160[rbp]
	lea	rax, -144[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	cdqe
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jle	.L22
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 28[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -144[rbp+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 28[rax]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L22
	mov	rax, QWORD PTR -200[rbp]
	movzx	eax, BYTE PTR 17[rax]
	test	al, al
	je	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	jmp	.L24
.L22:
	cmp	QWORD PTR -176[rbp], 0
	jne	.L25
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	jmp	.L21
.L25:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -176[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L21
.L24:
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR -176[rbp], rax
.L21:
	cmp	QWORD PTR -176[rbp], 0
	jns	.L26
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	mei_deinit
.L26:
	mov	rax, QWORD PTR -176[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	mei_send_msg, .-mei_send_msg
	.globl	MEI_IAMTHIF
	.section	.rodata
	.align 16
	.type	MEI_IAMTHIF, @object
	.size	MEI_IAMTHIF, 16
MEI_IAMTHIF:
	.string	"("
	.ascii	"\370\022\267\264-K\254\250F\340\377e\201L"
	.globl	CODE_VERSION_REQ
	.align 8
	.type	CODE_VERSION_REQ, @object
	.size	CODE_VERSION_REQ, 12
CODE_VERSION_REQ:
	.byte	1
	.byte	1
	.value	0
	.long	67108890
	.long	0
	.text
	.type	amt_host_if_init, @function
amt_host_if_init:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, edx
	mov	BYTE PTR -20[rbp], al
	cmp	QWORD PTR -16[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L31
.L30:
	mov	eax, 20000
.L31:
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rdx], rax
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, edx
	mov	edx, 0
	lea	rsi, MEI_IAMTHIF[rip]
	mov	rdi, rax
	call	mei_init
	mov	rdx, QWORD PTR -8[rbp]
	mov	BYTE PTR 40[rdx], al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 40[rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	amt_host_if_init, .-amt_host_if_init
	.type	amt_host_if_deinit, @function
amt_host_if_deinit:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	mei_deinit
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 40[rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	amt_host_if_deinit, .-amt_host_if_deinit
	.type	amt_verify_code_versions, @function
amt_verify_code_versions:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 16
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	eax, eax
	sub	rax, 4
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	sub	eax, 69
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 65[rax]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, edx
	mov	edx, 3123612579
	imul	rdx, rcx
	shr	rdx, 32
	shr	edx, 5
	cmp	eax, edx
	je	.L35
	mov	DWORD PTR -48[rbp], 1
	jmp	.L36
.L35:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L37
.L41:
	mov	rcx, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 64
	movzx	eax, WORD PTR 5[rax]
	movzx	eax, ax
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 20
	jbe	.L38
	mov	DWORD PTR -48[rbp], 1
	jmp	.L36
.L38:
	mov	rcx, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 80
	movzx	eax, WORD PTR 11[rax]
	movzx	eax, ax
	mov	DWORD PTR -36[rbp], eax
	mov	rsi, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	add	rax, rcx
	add	rax, 93
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L39
	mov	ebx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rdx, 80[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	add	rax, 13
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	je	.L40
.L39:
	mov	DWORD PTR -48[rbp], 1
	jmp	.L36
.L40:
	add	DWORD PTR -44[rbp], 1
.L37:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 65[rax]
	cmp	DWORD PTR -44[rbp], eax
	jb	.L41
	nop
.L36:
	mov	eax, DWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	amt_verify_code_versions, .-amt_verify_code_versions
	.type	amt_verify_response_header, @function
amt_verify_response_header:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	cmp	DWORD PTR -8[rbp], 15
	ja	.L44
	mov	eax, 1
	jmp	.L45
.L44:
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	eax, eax
	add	rax, 12
	cmp	rdx, rax
	je	.L46
	mov	eax, 1
	jmp	.L45
.L46:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -4[rbp], eax
	je	.L47
	mov	eax, 1
	jmp	.L45
.L47:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, WORD PTR 2[rax]
	test	ax, ax
	je	.L48
	mov	eax, 1
	jmp	.L45
.L48:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L49
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 1[rax]
	test	al, al
	jne	.L50
.L49:
	mov	eax, 1
	jmp	.L45
.L50:
	mov	eax, 0
.L45:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	amt_verify_response_header, .-amt_verify_response_header
	.type	amt_host_if_call, @function
amt_host_if_call:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	DWORD PTR -68[rbp], r8d
	mov	DWORD PTR -72[rbp], r9d
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L52
	mov	eax, 4100
	jmp	.L53
.L52:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	mei_send_msg
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	je	.L54
	mov	eax, 1
	jmp	.L53
.L54:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, 2000
	mov	rdi, rax
	call	mei_recv_msg
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jne	.L55
	mov	eax, 16384
	jmp	.L53
.L55:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L56
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L53
.L56:
	mov	rcx, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	amt_verify_response_header
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L57
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L53
.L57:
	cmp	DWORD PTR -72[rbp], 0
	je	.L58
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	je	.L58
	mov	eax, 1
	jmp	.L53
.L58:
	mov	eax, 0
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	amt_host_if_call, .-amt_host_if_call
	.type	amt_get_code_versions, @function
amt_get_code_versions:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 0
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r9d, 0
	mov	r8d, 75497498
	mov	rcx, rdx
	mov	edx, 12
	lea	rsi, CODE_VERSION_REQ[rip]
	mov	rdi, rax
	call	amt_host_if_call
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L66
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	amt_verify_code_versions
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L67
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 16[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 2269
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L61
.L66:
	nop
	jmp	.L61
.L67:
	nop
.L61:
	mov	rax, QWORD PTR -16[rbp]
	test	rax, rax
	je	.L63
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
.L63:
	mov	eax, DWORD PTR -20[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L65
	call	__stack_chk_fail@PLT
.L65:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	amt_get_code_versions, .-amt_get_code_versions
	.section	.rodata
.LC14:
	.string	"-v"
.LC15:
	.string	"Intel AMT: DISABLED"
.LC16:
	.string	"Intel AMT: ENABLED"
.LC17:
	.string	"%s:\t%s\n"
.LC18:
	.string	"An error has occurred"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2368
	mov	DWORD PTR -2356[rbp], edi
	mov	QWORD PTR -2368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -2356[rbp], 1
	jle	.L69
	mov	rax, QWORD PTR -2368[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L69
	mov	eax, 1
	jmp	.L70
.L69:
	mov	eax, 0
.L70:
	mov	BYTE PTR -2349[rbp], al
	and	BYTE PTR -2349[rbp], 1
	movzx	edx, BYTE PTR -2349[rbp]
	lea	rax, -2336[rbp]
	mov	esi, 5000
	mov	rdi, rax
	call	amt_host_if_init
	xor	eax, 1
	test	al, al
	je	.L71
	mov	DWORD PTR -2344[rbp], 1
	jmp	.L72
.L71:
	lea	rdx, -2288[rbp]
	lea	rax, -2336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	amt_get_code_versions
	mov	DWORD PTR -2340[rbp], eax
	lea	rax, -2336[rbp]
	mov	rdi, rax
	call	amt_host_if_deinit
	cmp	DWORD PTR -2340[rbp], 0
	je	.L73
	cmp	DWORD PTR -2340[rbp], 16384
	jne	.L74
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	DWORD PTR -2344[rbp], 0
	jmp	.L72
.L73:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	DWORD PTR -2348[rbp], 0
	jmp	.L75
.L76:
	lea	rcx, -2288[rbp]
	mov	edx, DWORD PTR -2348[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, 80
	add	rax, rcx
	lea	rcx, 13[rax]
	lea	rsi, -2288[rbp]
	mov	edx, DWORD PTR -2348[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, 64
	add	rax, rsi
	add	rax, 7
	mov	rdx, rcx
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -2348[rbp], 1
.L75:
	mov	eax, DWORD PTR -2223[rbp]
	cmp	DWORD PTR -2348[rbp], eax
	jb	.L76
	mov	DWORD PTR -2344[rbp], 0
	jmp	.L72
.L74:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	DWORD PTR -2344[rbp], 1
	nop
.L72:
	mov	eax, DWORD PTR -2344[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"389720.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mei_deinit, %function
mei_deinit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	cmn	r3, #1
	beq	.L2
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	mov	r0, r3
	bl	close
.L2:
	ldr	r3, [fp, #-8]
	mvn	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3, #16]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mei_deinit, .-mei_deinit
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/mei0\000"
	.align	2
.LC1:
	.ascii	"Error: Cannot establish a handle to the Intel MEI d"
	.ascii	"river\012\000"
	.align	2
.LC2:
	.ascii	"Error: IOCTL_MEI_CONNECT_CLIENT receive message. er"
	.ascii	"r=%d\012\000"
	.align	2
.LC3:
	.ascii	"max_message_length %d\012\000"
	.align	2
.LC4:
	.ascii	"protocol_version %d\012\000"
	.align	2
.LC5:
	.ascii	"Error: Intel MEI protocol version not supported\012"
	.ascii	"\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mei_init, %function
mei_init:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r1, r2
	mov	r2, r3
	mov	r3, r1
	strb	r3, [fp, #-45]
	mov	r3, r2
	strb	r3, [fp, #-46]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	ldrb	r2, [fp, #-46]
	strb	r2, [r3, #17]
	mov	r1, #2
	ldr	r0, .L13+4
	bl	open
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #28]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L13+8
	ldr	r3, [r3]
	mov	r2, #57
	mov	r1, #1
	ldr	r0, .L13+12
	bl	fwrite
	b	.L5
.L4:
	ldr	r3, [fp, #-40]
	mov	r2, #16
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-40]
	mov	r2, #1
	strb	r2, [r3, #16]
	ldr	r2, [fp, #-40]
	sub	r3, fp, #24
	mov	r1, r2
	mov	r2, #16
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #28]
	sub	r2, fp, #24
	ldr	r1, .L13+16
	mov	r0, r3
	bl	ioctl
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L13+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L13+20
	mov	r0, r3
	bl	fprintf
	b	.L5
.L6:
	sub	r3, fp, #24
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L13+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L13+24
	bl	fprintf
.L7:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L13+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L13+28
	bl	fprintf
.L8:
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	ldrb	r2, [fp, #-45]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L9
	ldr	r3, .L13+8
	ldr	r3, [r3]
	mov	r2, #48
	mov	r1, #1
	ldr	r0, .L13+32
	bl	fwrite
	b	.L5
.L9:
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-28]
	ldrb	r2, [r3, #4]	@ zero_extendqisi2
	ldr	r3, [fp, #-40]
	strb	r2, [r3, #24]
	mov	r3, #1
	b	.L11
.L5:
	ldr	r0, [fp, #-40]
	bl	mei_deinit
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	-1072674815
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	mei_init, .-mei_init
	.section	.rodata
	.align	2
.LC7:
	.ascii	"call read length = %zd\012\000"
	.align	2
.LC8:
	.ascii	"Error: read failed with status %zd %s\012\000"
	.align	2
.LC9:
	.ascii	"read succeeded with result %zd\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mei_recv_msg, %function
mei_recv_msg:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L20
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L20+4
	mov	r0, r3
	bl	fprintf
.L16:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	read
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L17
	ldr	r3, .L20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-16]
	ldr	r1, .L20+8
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-24]
	bl	mei_deinit
	b	.L18
.L17:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L20
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L20+12
	mov	r0, r3
	bl	fprintf
.L18:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	mei_recv_msg, .-mei_recv_msg
	.section	.rodata
	.align	2
.LC10:
	.ascii	"call write length = %zd\012\000"
	.align	2
.LC11:
	.ascii	"Error: write failed with status %zd %s\012\000"
	.align	2
.LC12:
	.ascii	"write success\012\000"
	.align	2
.LC13:
	.ascii	"Error: write failed on timeout with status\012\000"
	.align	2
.LC14:
	.ascii	"Error: write failed on select with status %zd\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mei_send_msg, %function
mei_send_msg:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #188
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	str	r2, [fp, #-184]
	str	r3, [fp, #-188]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-188]
	ldr	r2, .L35+4
	umull	r1, r3, r2, r3
	lsr	r3, r3, #6
	str	r3, [fp, #-152]
	ldr	r1, [fp, #-188]
	ldr	r3, .L35+4
	umull	r2, r3, r1, r3
	lsr	r2, r3, #6
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	mov	r1, r2
	lsl	r1, r1, #5
	sub	r1, r1, r2
	lsl	r3, r1, #6
	sub	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #6
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-176]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L23
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-184]
	ldr	r1, .L35+12
	mov	r0, r3
	bl	fprintf
.L23:
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #28]
	ldr	r2, [fp, #-184]
	ldr	r1, [fp, #-180]
	mov	r0, r3
	bl	write
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bge	.L24
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-168]
	ldr	r3, .L35+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-160]
	ldr	r1, .L35+16
	mov	r0, r4
	bl	fprintf
	b	.L25
.L24:
	sub	r3, fp, #144
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-164]
	b	.L26
.L27:
	ldr	r3, [fp, #-156]
	ldr	r2, [fp, #-164]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L26:
	ldr	r3, [fp, #-164]
	cmp	r3, #31
	bls	.L27
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #28]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #28]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-132]
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #28]
	add	r0, r3, #1
	sub	r1, fp, #144
	sub	r3, fp, #152
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	ble	.L28
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #28]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #28]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-176]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L35+8
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L35+20
	bl	fwrite
	b	.L30
.L28:
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L31
	ldr	r3, .L35+8
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L35+24
	bl	fwrite
	b	.L25
.L31:
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-168]
	ldr	r1, .L35+28
	mov	r0, r3
	bl	fprintf
	b	.L25
.L30:
	ldr	r3, [fp, #-160]
	str	r3, [fp, #-168]
.L25:
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bge	.L32
	ldr	r0, [fp, #-176]
	bl	mei_deinit
.L32:
	ldr	r3, [fp, #-168]
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC15
	.word	274877907
	.word	stderr
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	mei_send_msg, .-mei_send_msg
	.global	MEI_IAMTHIF
	.section	.rodata
	.align	2
	.type	MEI_IAMTHIF, %object
	.size	MEI_IAMTHIF, 16
MEI_IAMTHIF:
	.ascii	"(\000\370\022\267\264-K\254\250F\340\377e\201L"
	.global	CODE_VERSION_REQ
	.align	2
	.type	CODE_VERSION_REQ, %object
	.size	CODE_VERSION_REQ, 12
CODE_VERSION_REQ:
	.byte	1
	.byte	1
	.short	0
	.word	67108890
	.word	0
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amt_host_if_init, %function
amt_host_if_init:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r3, r2
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-12]
	b	.L39
.L38:
	ldr	r3, .L41
.L39:
	ldr	r2, [fp, #-8]
	str	r3, [r2, #32]
	ldr	r0, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r2, #0
	ldr	r1, .L41+4
	bl	mei_init
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #36]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #36]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	20000
	.word	MEI_IAMTHIF
	.size	amt_host_if_init, .-amt_host_if_init
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amt_host_if_deinit, %function
amt_host_if_deinit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	mei_deinit
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3, #36]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	amt_host_if_deinit, .-amt_host_if_deinit
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amt_verify_code_versions, %function
amt_verify_code_versions:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldrb	r1, [r3, #9]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #10]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	sub	r3, r3, #4
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #69
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldrb	r2, [r3, #65]	@ zero_extendqisi2
	ldrb	r1, [r3, #66]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #67]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #68]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L53
	umull	r0, r3, r2, r3
	lsr	r3, r3, #5
	cmp	r1, r3
	beq	.L45
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L46
.L45:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L47
.L51:
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #64
	ldrb	r2, [r3, #5]	@ zero_extendqisi2
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #20
	bls	.L48
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L46
.L48:
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #80
	ldrb	r2, [r3, #11]	@ zero_extendqisi2
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #93
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L49
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #80
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #13
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	beq	.L50
.L49:
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L46
.L50:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L47:
	ldr	r3, [fp, #-20]
	ldrb	r2, [r3, #65]	@ zero_extendqisi2
	ldrb	r1, [r3, #66]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #67]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #68]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	bcc	.L51
	nop
.L46:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	-1171354717
	.size	amt_verify_code_versions, .-amt_verify_code_versions
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amt_verify_response_header, %function
amt_verify_response_header:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bhi	.L56
	mov	r3, #1
	b	.L57
.L56:
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldrb	r1, [r3, #9]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #10]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	add	r3, r3, #12
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L58
	mov	r3, #1
	b	.L57
.L58:
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3, #4]	@ zero_extendqisi2
	ldrb	r1, [r3, #5]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #6]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #7]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	beq	.L59
	mov	r3, #1
	b	.L57
.L59:
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	beq	.L60
	mov	r3, #1
	b	.L57
.L60:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L61
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L62
.L61:
	mov	r3, #1
	b	.L57
.L62:
	mov	r3, #0
.L57:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	amt_verify_response_header, .-amt_verify_response_header
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amt_host_if_call, %function
amt_host_if_call:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L64
	ldr	r3, .L71
	b	.L65
.L64:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #32]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	bl	mei_send_msg
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	beq	.L66
	mov	r3, #1
	b	.L65
.L66:
	ldr	r0, [fp, #-32]
	ldr	r3, [fp, #-44]
	ldr	r1, [r3]
	ldr	r2, [fp, #-24]
	mov	r3, #2000
	bl	mei_recv_msg
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L67
	mov	r3, #16384
	b	.L65
.L67:
	ldr	r3, [fp, #-20]
	ldrb	r2, [r3, #12]	@ zero_extendqisi2
	ldrb	r1, [r3, #13]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #14]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #15]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L68
	ldr	r3, [fp, #-8]
	b	.L65
.L68:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #4]
	bl	amt_verify_response_header
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-8]
	b	.L65
.L69:
	ldr	r3, [fp, #8]
	cmp	r3, #0
	beq	.L70
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	beq	.L70
	mov	r3, #1
	b	.L65
.L70:
	mov	r3, #0
.L65:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	4100
	.size	amt_host_if_call, .-amt_host_if_call
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amt_get_code_versions, %function
amt_get_code_versions:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [sp, #4]
	ldr	r2, .L82+4
	str	r2, [sp]
	mov	r2, #12
	ldr	r1, .L82+8
	ldr	r0, [fp, #-24]
	bl	amt_host_if_call
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L80
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	amt_verify_code_versions
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L81
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	ldr	r2, .L82+12
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	memcpy
	b	.L75
.L80:
	nop
	b	.L75
.L81:
	nop
.L75:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L77
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	free
.L77:
	ldr	r3, [fp, #-12]
	ldr	r2, .L82
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L79
	bl	__stack_chk_fail
.L79:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC16
	.word	75497498
	.word	CODE_VERSION_REQ
	.word	2269
	.size	amt_get_code_versions, .-amt_get_code_versions
	.section	.rodata
	.align	2
.LC17:
	.ascii	"-v\000"
	.align	2
.LC18:
	.ascii	"Intel AMT: DISABLED\000"
	.align	2
.LC19:
	.ascii	"Intel AMT: ENABLED\000"
	.align	2
.LC20:
	.ascii	"%s:\011%s\012\000"
	.align	2
.LC21:
	.ascii	"An error has occurred\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2344
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2336
	sub	sp, sp, #8
	str	r0, [fp, #-2344]
	str	r1, [fp, #-2348]
	ldr	r3, .L95
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-2344]
	cmp	r3, #1
	ble	.L85
	ldr	r3, [fp, #-2348]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L95+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L85
	mov	r3, #1
	b	.L86
.L85:
	mov	r3, #0
.L86:
	strb	r3, [fp, #-2333]
	ldrb	r3, [fp, #-2333]
	and	r3, r3, #1
	strb	r3, [fp, #-2333]
	ldrb	r2, [fp, #-2333]	@ zero_extendqisi2
	sub	r3, fp, #2304
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L95+8
	mov	r0, r3
	bl	amt_host_if_init
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L87
	mov	r3, #1
	str	r3, [fp, #-2328]
	b	.L88
.L87:
	sub	r2, fp, #2272
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #2304
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	amt_get_code_versions
	str	r0, [fp, #-2324]
	sub	r3, fp, #2304
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	amt_host_if_deinit
	ldr	r3, [fp, #-2324]
	cmp	r3, #0
	beq	.L89
	ldr	r3, [fp, #-2324]
	cmp	r3, #16384
	bne	.L90
	ldr	r0, .L95+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-2328]
	b	.L88
.L89:
	ldr	r0, .L95+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-2332]
	b	.L91
.L92:
	sub	r2, fp, #2272
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r1, [fp, #-2332]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, #64
	add	r3, r2, r3
	add	r0, r3, #7
	sub	r2, fp, #2272
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r1, [fp, #-2332]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, #80
	add	r3, r2, r3
	add	r3, r3, #13
	mov	r2, r3
	mov	r1, r0
	ldr	r0, .L95+20
	bl	printf
	ldr	r3, [fp, #-2332]
	add	r3, r3, #1
	str	r3, [fp, #-2332]
.L91:
	ldr	r3, [fp, #-2216]
	lsr	r3, r3, #8
	ldrb	r2, [fp, #-2212]	@ zero_extendqisi2
	lsl	r2, r2, #24
	orr	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-2332]
	cmp	r3, r2
	bcc	.L92
	mov	r3, #0
	str	r3, [fp, #-2328]
	b	.L88
.L90:
	ldr	r0, .L95+24
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-2328]
	nop
.L88:
	ldr	r3, [fp, #-2328]
	ldr	r2, .L95
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L94
	bl	__stack_chk_fail
.L94:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L96:
	.align	2
.L95:
	.word	.LC22
	.word	.LC17
	.word	5000
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
