	.file	"extr_tpm.c_tpm_show_pcrs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"attempting to determine the number of PCRS"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"PCR-%02d: "
.LC2:
	.string	"%02X "
	.text
	.p2align 4
	.globl	tpm_show_pcrs
	.type	tpm_show_pcrs, @function
tpm_show_pcrs:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -56
	mov	QWORD PTR -88[rbp], rdx
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR TPM_DIGEST_SIZE[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L21:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L21
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L22
.L4:
	mov	rdi, r12
	mov	rbx, rsp
	call	dev_get_drvdata@PLT
	mov	esi, DWORD PTR TPM_CAP_PROP_PCR[rip]
	lea	rdx, -60[rbp]
	mov	rdi, r12
	lea	rcx, .LC0[rip]
	mov	QWORD PTR -72[rbp], rax
	call	tpm_getcap@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L23
	xor	r13d, r13d
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	lea	rsp, -40[rbp]
	mov	eax, r13d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L23:
	.cfi_restore_state
	mov	edi, DWORD PTR -60[rbp]
	call	be32_to_cpu@PLT
	mov	DWORD PTR -76[rbp], eax
	test	eax, eax
	jle	.L1
	mov	r14, QWORD PTR -88[rbp]
	lea	r12, .LC2[rip]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR -72[rbp]
	mov	rdx, rbx
	mov	esi, r13d
	call	__tpm_pcr_read@PLT
	test	eax, eax
	jne	.L19
	mov	edx, r13d
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	xor	eax, eax
	call	sprintf@PLT
	mov	edx, DWORD PTR TPM_DIGEST_SIZE[rip]
	movsx	rcx, eax
	lea	r15, [r14+rcx]
	test	edx, edx
	jle	.L8
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR [rbx+r14*4]
	mov	rdi, r15
	xor	eax, eax
	mov	rsi, r12
	add	r14, 1
	call	sprintf@PLT
	cdqe
	add	r15, rax
	cmp	DWORD PTR TPM_DIGEST_SIZE[rip], r14d
	jg	.L9
.L8:
	mov	eax, 10
	lea	r14, 1[r15]
	add	r13d, 1
	mov	WORD PTR [r15], ax
	cmp	DWORD PTR -76[rbp], r13d
	jne	.L10
.L19:
	mov	r13d, r14d
	sub	r13d, DWORD PTR -88[rbp]
	jmp	.L1
.L22:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tpm_show_pcrs, .-tpm_show_pcrs
	.comm	TPM_DIGEST_SIZE,4,4
	.comm	TPM_CAP_PROP_PCR,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_tpm.c_tpm_show_pcrs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"attempting to determine the number of PCRS\000"
	.align	2
.LC1:
	.ascii	"PCR-%02d: \000"
	.align	2
.LC2:
	.ascii	"%02X \000"
	.align	2
.LC3:
	.ascii	"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tpm_show_pcrs
	.syntax unified
	.arm
	.fpu softvfp
	.type	tpm_show_pcrs, %function
tpm_show_pcrs:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	ldr	r5, .L17
	str	r2, [fp, #-56]
	ldr	r3, [r5]
	mov	r4, r0
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L17+4
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	dev_get_drvdata
	mov	r9, r0
	ldr	r3, .L17+8
	mov	r0, r4
	ldr	r1, [r3]
	sub	r2, fp, #44
	ldr	r3, .L17+12
	str	r9, [fp, #-48]
	bl	tpm_getcap
	subs	r7, r0, #0
	movne	r7, #0
	beq	.L15
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r7
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r0, [fp, #-44]
	bl	be32_to_cpu
	subs	r3, r0, #0
	str	r3, [fp, #-52]
	ble	.L1
	mov	r8, sp
	mov	r4, r6
	ldr	r6, .L17+16
.L7:
	mov	r2, r8
	mov	r1, r7
	ldr	r0, [fp, #-48]
	bl	__tpm_pcr_read
	subs	r9, r0, #0
	bne	.L13
	mov	r0, r4
	mov	r2, r7
	ldr	r1, .L17+20
	bl	sprintf
	ldr	r3, [r5]
	add	r4, r4, r0
	cmp	r3, #0
	ble	.L5
	sub	r10, r8, #4
.L6:
	mov	r0, r4
	mov	r1, r6
	ldr	r2, [r10, #4]!
	bl	sprintf
	ldr	r3, [r5]
	add	r9, r9, #1
	cmp	r3, r9
	add	r4, r4, r0
	bgt	.L6
.L5:
	mov	r0, r4
	mov	r2, #2
	ldr	r1, .L17+24
	bl	memcpy
	ldr	r3, [fp, #-52]
	add	r7, r7, #1
	cmp	r3, r7
	add	r4, r4, #1
	bne	.L7
.L13:
	ldr	r3, [fp, #-56]
	sub	r7, r4, r3
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	TPM_DIGEST_SIZE
	.word	.LC4
	.word	TPM_CAP_PROP_PCR
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.size	tpm_show_pcrs, .-tpm_show_pcrs
	.comm	TPM_DIGEST_SIZE,4,4
	.comm	TPM_CAP_PROP_PCR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
