	.file	"35661.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"PATH"
.LC1:
	.string	"./"
.LC2:
	.string	"%s/%s"
.LC3:
	.string	":"
	.text
	.type	find_file_in_path, @function
find_file_in_path:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 224
	mov	QWORD PTR -4312[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -4272[rbp], 0
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -4264[rbp], rax
	mov	rax, QWORD PTR -4264[rbp]
	mov	QWORD PTR -4288[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -4280[rbp], rax
	jmp	.L2
.L5:
	mov	rcx, QWORD PTR -4312[rbp]
	mov	rdx, QWORD PTR -4280[rbp]
	lea	rax, -4112[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rdx, -4256[rbp]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -4292[rbp], eax
	cmp	DWORD PTR -4292[rbp], 0
	jne	.L3
	lea	rax, -4112[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -4272[rbp], rax
	jmp	.L4
.L3:
	lea	rax, -4288[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -4280[rbp], rax
.L2:
	cmp	QWORD PTR -4280[rbp], 0
	jne	.L5
.L4:
	mov	rax, QWORD PTR -4264[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -4272[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	find_file_in_path, .-find_file_in_path
	.section	.rodata
.LC4:
	.string	"/dev/vtpmx"
	.align 8
.LC5:
	.string	"Could not open /dev/vtpmx: %s\n"
	.align 8
.LC6:
	.string	"ioctl on /dev/vtpmx failed: %s\n"
.LC7:
	.string	"%u"
.LC8:
	.string	"VTPM_DEVICE_NUM"
.LC9:
	.string	"VTPM_DEVICE_MINOR"
.LC10:
	.string	"VTPM_DEVICE_MAJOR"
.LC11:
	.string	"VTPM_DEVICE_FD"
	.text
	.type	vtpm_proxy_create_dev, @function
vtpm_proxy_create_dev:
.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, 96
	mov	eax, edi
	mov	BYTE PTR -84[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	movzx	eax, BYTE PTR -84[rbp]
	movzx	eax, al
	mov	DWORD PTR -64[rbp], eax
	mov	esi, 2
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	jns	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L12
.L9:
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, 3222577408
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -68[rbp], 0
	jns	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L12
.L11:
	mov	edx, DWORD PTR -60[rbp]
	lea	rax, -32[rbp]
	mov	ecx, edx
	lea	rdx, .LC7[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -32[rbp]
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	call	setenv@PLT
	mov	edx, DWORD PTR -52[rbp]
	lea	rax, -32[rbp]
	mov	ecx, edx
	lea	rdx, .LC7[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -32[rbp]
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	call	setenv@PLT
	mov	edx, DWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	ecx, edx
	lea	rdx, .LC7[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -32[rbp]
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	call	setenv@PLT
	mov	edx, DWORD PTR -56[rbp]
	lea	rax, -32[rbp]
	mov	ecx, edx
	lea	rdx, .LC7[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -32[rbp]
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	call	setenv@PLT
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	vtpm_proxy_create_dev, .-vtpm_proxy_create_dev
	.section	.rodata
	.align 8
.LC12:
	.string	"Could not connect vtpm proxy to IMA namespace: ioctl on fd %d failed: %s\n"
.LC13:
	.string	"[VTPM_DEVICE_NUM=%s]\n"
	.text
	.type	vtpm_proxy_connect_imans, @function
vtpm_proxy_connect_imans:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 41232
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[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	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC8[rip]
	call	getenv@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L16
.L15:
	mov	eax, 0
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	vtpm_proxy_connect_imans, .-vtpm_proxy_connect_imans
	.section	.rodata
	.align 8
.LC14:
	.ascii	"Tool for testing the setup of IMA namespace with vtpm proxy "
	.ascii	"device\n\nUsage:\n\n%s --create-tpm1.2-device -- <command> ["
	.ascii	"<param1> ... ]\n%s --create-tpm2-device   -- <command> [<par"
	.ascii	"am1> ... ]\n%s --connect-to-ima-ns <file descriptor>\n\nOpti"
	.ascii	"ons:\n--create-tpm1.2-device:    Opens /dev/vtpmx and create"
	.ascii	"s a TPM 1.2 device.\n                           Sets environ"
	.ascii	"ment variables VTPM_DEVICE_NUM,\n                           "
	.ascii	"VTPM_DEVICE_MAJOR, VTPM_DEVICE_MINOR, VTPM_DEVICE_FD\n      "
	.ascii	"                     with the result from the VTPM_PROXY_IOC"
	.ascii	"_NEW_DEV ioctl\n                           and keeps the fil"
	.ascii	"e descriptor to the 'server side'\n                      "
	.string	"     open so that 'command' can use it.\n\n--create-tpm2-device:      Like above but creates a TPM 2 device.\n\n--connect-to-ima-ns <fd> : Uses the 'server side' file descriptor to connect\n                           a vtpm proxy device with an IMA namespace.\n\n"
	.text
	.type	usage, @function
usage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rsi, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rsi
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	usage, .-usage
	.section	.rodata
.LC15:
	.string	"Unknown option %c\n"
.LC16:
	.string	""
	.align 8
.LC17:
	.string	"Missing parameter for program to start.\n\n"
.LC18:
	.string	"Could not find %s in PATH\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L19
.L28:
	cmp	DWORD PTR -28[rbp], 104
	je	.L20
	cmp	DWORD PTR -28[rbp], 104
	jg	.L21
	cmp	DWORD PTR -28[rbp], 99
	je	.L22
	cmp	DWORD PTR -28[rbp], 99
	jg	.L21
	cmp	DWORD PTR -28[rbp], 50
	je	.L23
	cmp	DWORD PTR -28[rbp], 67
	je	.L24
	jmp	.L21
.L22:
	mov	edi, 0
	call	vtpm_proxy_create_dev
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jns	.L19
	mov	eax, 1
	jmp	.L31
.L23:
	mov	edi, 1
	call	vtpm_proxy_create_dev
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jns	.L19
	mov	eax, 1
	jmp	.L31
.L24:
	or	DWORD PTR -32[rbp], 4
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	vtpm_proxy_connect_imans
	jmp	.L31
.L20:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	usage
	mov	eax, 0
	jmp	.L31
.L21:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -28[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	usage
	mov	eax, 1
	jmp	.L31
.L19:
	lea	rdx, -36[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8, rdx
	lea	rcx, long_options.0[rip]
	lea	rdx, .LC16[rip]
	mov	edi, eax
	call	getopt_long_only@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L28
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -52[rbp], eax
	jg	.L29
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	usage
	mov	eax, 1
	jmp	.L31
.L29:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	find_file_in_path
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L30
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L31
.L30:
	mov	rdx, QWORD PTR __environ[rip]
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	execve@PLT
.L31:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
.LC19:
	.string	"create-tpm1.2-device"
.LC20:
	.string	"create-tpm2-device"
.LC21:
	.string	"connect-to-ima-ns"
.LC22:
	.string	"help"
	.section	.data.rel.local,"aw"
	.align 32
	.type	long_options.0, @object
	.size	long_options.0, 160
long_options.0:
	.quad	.LC19
	.long	0
	.zero	4
	.quad	0
	.long	99
	.zero	4
	.quad	.LC20
	.long	0
	.zero	4
	.quad	0
	.long	50
	.zero	4
	.quad	.LC21
	.long	1
	.zero	4
	.quad	0
	.long	67
	.zero	4
	.quad	.LC22
	.long	0
	.zero	4
	.quad	0
	.long	104
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.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	"35661.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"PATH\000"
	.align	2
.LC1:
	.ascii	"./\000"
	.align	2
.LC2:
	.ascii	"%s/%s\000"
	.align	2
.LC3:
	.ascii	":\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_file_in_path, %function
find_file_in_path:
	@ args = 0, pretend = 0, frame = 4224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4224
	sub	sp, sp, #12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-124]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-108]
	ldr	r0, .L8+4
	bl	getenv
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [r4, #-104]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	str	r3, [r2, #-116]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L8+8
	str	r3, [r2, #-112]
	b	.L2
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	str	r3, [sp]
	ldr	r3, [r2, #-112]
	ldr	r2, .L8+12
	mov	r1, #4096
	bl	snprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #4160
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	str	r0, [r4, #-100]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #0
	bne	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [r4, #-108]
	b	.L4
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #52
	ldr	r1, .L8+16
	mov	r0, r3
	bl	strsep
	str	r0, [r4, #-112]
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	cmp	r3, #0
	bne	.L5
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-104]
	bl	free
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	find_file_in_path, .-find_file_in_path
	.section	.rodata
	.align	2
.LC5:
	.ascii	"/dev/vtpmx\000"
	.align	2
.LC6:
	.ascii	"Could not open /dev/vtpmx: %s\012\000"
	.align	2
.LC7:
	.ascii	"ioctl on /dev/vtpmx failed: %s\012\000"
	.align	2
.LC8:
	.ascii	"%u\000"
	.align	2
.LC9:
	.ascii	"VTPM_DEVICE_NUM\000"
	.align	2
.LC10:
	.ascii	"VTPM_DEVICE_MINOR\000"
	.align	2
.LC11:
	.ascii	"VTPM_DEVICE_MAJOR\000"
	.align	2
.LC12:
	.ascii	"VTPM_DEVICE_FD\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vtpm_proxy_create_dev, %function
vtpm_proxy_create_dev:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	mov	r3, r0
	strb	r3, [fp, #-61]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #52
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	str	r3, [fp, #-52]
	mov	r1, #2
	ldr	r0, .L16+4
	bl	open
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bge	.L11
	ldr	r3, .L16+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L16+12
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L14
.L11:
	sub	r3, fp, #52
	mov	r2, r3
	ldr	r1, .L16+16
	ldr	r0, [fp, #-60]
	bl	ioctl
	str	r0, [fp, #-56]
	ldr	r0, [fp, #-60]
	bl	close
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bge	.L13
	ldr	r3, .L16+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L16+20
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L14
.L13:
	ldr	r3, [fp, #-48]
	sub	r0, fp, #32
	ldr	r2, .L16+24
	mov	r1, #16
	bl	snprintf
	sub	r3, fp, #32
	mov	r2, #1
	mov	r1, r3
	ldr	r0, .L16+28
	bl	setenv
	ldr	r3, [fp, #-40]
	sub	r0, fp, #32
	ldr	r2, .L16+24
	mov	r1, #16
	bl	snprintf
	sub	r3, fp, #32
	mov	r2, #1
	mov	r1, r3
	ldr	r0, .L16+32
	bl	setenv
	ldr	r3, [fp, #-36]
	sub	r0, fp, #32
	ldr	r2, .L16+24
	mov	r1, #16
	bl	snprintf
	sub	r3, fp, #32
	mov	r2, #1
	mov	r1, r3
	ldr	r0, .L16+36
	bl	setenv
	ldr	r3, [fp, #-44]
	sub	r0, fp, #32
	ldr	r2, .L16+24
	mov	r1, #16
	bl	snprintf
	sub	r3, fp, #32
	mov	r2, #1
	mov	r1, r3
	ldr	r0, .L16+40
	bl	setenv
	mov	r3, #0
.L14:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC13
	.word	.LC5
	.word	stderr
	.word	.LC6
	.word	-1072389888
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	vtpm_proxy_create_dev, .-vtpm_proxy_create_dev
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Could not connect vtpm proxy to IMA namespace: ioct"
	.ascii	"l on fd %d failed: %s\012\000"
	.align	2
.LC15:
	.ascii	"[VTPM_DEVICE_NUM=%s]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vtpm_proxy_connect_imans, %function
vtpm_proxy_connect_imans:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	mov	r2, #0
	ldr	r1, .L21
	ldr	r0, [fp, #-24]
	bl	ioctl
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L19
	ldr	r3, .L21+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-24]
	ldr	r1, .L21+8
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L21+4
	ldr	r4, [r3]
	ldr	r0, .L21+12
	bl	getenv
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L21+16
	mov	r0, r4
	bl	fprintf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L20
.L19:
	mov	r3, #0
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	41232
	.word	stderr
	.word	.LC14
	.word	.LC9
	.word	.LC15
	.size	vtpm_proxy_connect_imans, .-vtpm_proxy_connect_imans
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Tool for testing the setup of IMA namespace with vt"
	.ascii	"pm proxy device\012\012Usage:\012\012%s --create-tp"
	.ascii	"m1.2-device -- <command> [<param1> ... ]\012%s --cr"
	.ascii	"eate-tpm2-device   -- <command> [<param1> ... ]\012"
	.ascii	"%s --connect-to-ima-ns <file descriptor>\012\012Opt"
	.ascii	"ions:\012--create-tpm1.2-device:    Opens /dev/vtpm"
	.ascii	"x and creates a TPM 1.2 device.\012                "
	.ascii	"           Sets environment variables VTPM_DEVICE_N"
	.ascii	"UM,\012                           VTPM_DEVICE_MAJOR"
	.ascii	", VTPM_DEVICE_MINOR, VTPM_DEVICE_FD\012            "
	.ascii	"               with the result from the VTPM_PROXY_"
	.ascii	"IOC_NEW_DEV ioctl\012                           and"
	.ascii	" keeps the file descriptor to the 'server side'\012"
	.ascii	"                           open so that 'command' c"
	.ascii	"an use it.\012\012--create-tpm2-device:      Like a"
	.ascii	"bove but creates a TPM 2 device.\012\012--connect-t"
	.ascii	"o-ima-ns <fd> : Uses the 'server side' file descrip"
	.ascii	"tor to connect\012                           a vtpm"
	.ascii	" proxy device with an IMA namespace.\012\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 8
	@ 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]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, .L24
	ldr	r0, [fp, #-8]
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC16
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Unknown option %c\012\000"
	.align	2
.LC18:
	.ascii	"\000"
	.align	2
.LC19:
	.ascii	"Missing parameter for program to start.\012\012\000"
	.align	2
.LC20:
	.ascii	"Could not find %s in PATH\012\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ 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]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L27
.L36:
	ldr	r3, [fp, #-24]
	cmp	r3, #104
	beq	.L28
	ldr	r3, [fp, #-24]
	cmp	r3, #104
	bgt	.L29
	ldr	r3, [fp, #-24]
	cmp	r3, #99
	beq	.L30
	ldr	r3, [fp, #-24]
	cmp	r3, #99
	bgt	.L29
	ldr	r3, [fp, #-24]
	cmp	r3, #50
	beq	.L31
	ldr	r3, [fp, #-24]
	cmp	r3, #67
	beq	.L32
	b	.L29
.L30:
	mov	r0, #0
	bl	vtpm_proxy_create_dev
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L27
	mov	r3, #1
	b	.L39
.L31:
	mov	r0, #1
	bl	vtpm_proxy_create_dev
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L27
	mov	r3, #1
	b	.L39
.L32:
	ldr	r3, [fp, #-28]
	orr	r3, r3, #4
	str	r3, [fp, #-28]
	ldr	r3, .L41+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	vtpm_proxy_connect_imans
	mov	r3, r0
	b	.L39
.L28:
	ldr	r3, .L41+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	usage
	mov	r3, #0
	b	.L39
.L29:
	ldr	r3, .L41+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L41+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L41+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	usage
	mov	r3, #1
	b	.L39
.L27:
	sub	r3, fp, #32
	str	r3, [sp]
	ldr	r3, .L41+20
	ldr	r2, .L41+24
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt_long_only
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L36
	ldr	r3, .L41+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bgt	.L37
	ldr	r3, .L41+12
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L41+32
	bl	fwrite
	ldr	r3, .L41+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	usage
	mov	r3, #1
	b	.L39
.L37:
	ldr	r3, .L41+28
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	find_file_in_path
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L41+12
	ldr	r0, [r3]
	ldr	r3, .L41+28
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L41+36
	bl	fprintf
	mov	r3, #1
	b	.L39
.L38:
	ldr	r3, .L41+28
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, .L41+40
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	execve
	mov	r3, r0
.L39:
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC21
	.word	optarg
	.word	stdout
	.word	stderr
	.word	.LC17
	.word	long_options.6166
	.word	.LC18
	.word	optind
	.word	.LC19
	.word	.LC20
	.word	__environ
	.size	main, .-main
	.section	.rodata
	.align	2
.LC22:
	.ascii	"create-tpm1.2-device\000"
	.align	2
.LC23:
	.ascii	"create-tpm2-device\000"
	.align	2
.LC24:
	.ascii	"connect-to-ima-ns\000"
	.align	2
.LC25:
	.ascii	"help\000"
	.data
	.align	2
	.type	long_options.6166, %object
	.size	long_options.6166, 80
long_options.6166:
	.word	.LC22
	.word	0
	.word	0
	.word	99
	.word	.LC23
	.word	0
	.word	0
	.word	50
	.word	.LC24
	.word	1
	.word	0
	.word	67
	.word	.LC25
	.word	0
	.word	0
	.word	104
	.word	0
	.word	0
	.word	0
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
