	.file	"extr_tpm_ppi.c_show_ppi_operations.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Not implemented"
.LC1:
	.string	"BIOS only"
.LC2:
	.string	"Blocked for OS by BIOS"
.LC3:
	.string	"User required"
.LC4:
	.string	"User not required"
.LC5:
	.string	"_DSM"
.LC6:
	.string	"1.2"
.LC7:
	.string	"%d %d: %s\n"
	.text
	.p2align 4
	.type	show_ppi_operations, @function
show_ppi_operations:
.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	r12d, edx
	push	rbx
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 248
	mov	QWORD PTR -272[rbp], rdi
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PPI_VERSION_LEN[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	mov	rax, QWORD PTR ACPI_ALLOCATE_BUFFER[rip]
	mov	esi, DWORD PTR TPM_PPI_FN_VERSION[rip]
	lea	r13, -128[rbp]
	pxor	xmm0, xmm0
	mov	rdi, r13
	movups	XMMWORD PTR -200[rbp], xmm0
	mov	QWORD PTR -208[rbp], rax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -176[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -168[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -152[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -144[rbp], rax
	mov	DWORD PTR -240[rbp], 4
	call	ppi_assign_params@PLT
	mov	edi, DWORD PTR ACPI_TYPE_DEVICE[rip]
	mov	r8d, DWORD PTR tpm_device_name[rip]
	lea	r9, -244[rbp]
	mov	ecx, DWORD PTR ppi_callback[rip]
	mov	edx, DWORD PTR ACPI_UINT32_MAX[rip]
	mov	QWORD PTR -232[rbp], r13
	mov	esi, DWORD PTR ACPI_ROOT_OBJECT[rip]
	call	acpi_walk_namespace@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR ENXIO[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L26
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR -244[rbp]
	mov	r8d, DWORD PTR ACPI_TYPE_STRING[rip]
	lea	r13, -208[rbp]
	lea	r14, -240[rbp]
	mov	rcx, r13
	mov	rdx, r14
	lea	rsi, .LC5[rip]
	call	acpi_evaluate_object_typed@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L22
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, DWORD PTR PPI_VERSION_LEN[rip]
	mov	rdi, rsp
	mov	esi, DWORD PTR [rax]
	call	strncpy@PLT
	mov	rdi, QWORD PTR -200[rbp]
	call	kfree@PLT
	mov	rsi, rsp
	mov	ecx, 4
	lea	rdi, .LC6[rip]
	repz cmpsb
	mov	rax, QWORD PTR ACPI_ALLOCATE_BUFFER[rip]
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], rax
	seta	al
	sbb	al, 0
	cmp	al, -1
	je	.L27
	mov	eax, DWORD PTR TPM_PPI_FN_GETOPR[rip]
	mov	DWORD PTR -80[rbp], 1
	mov	DWORD PTR -96[rbp], eax
	lea	rax, -224[rbp]
	mov	QWORD PTR -72[rbp], rax
	cmp	ebx, r12d
	jg	.L15
	mov	rax, QWORD PTR -272[rbp]
	lea	r15, -176[rbp]
	mov	QWORD PTR -280[rbp], rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	call	kfree@PLT
	mov	rax, QWORD PTR ACPI_ALLOCATE_BUFFER[rip]
	add	ebx, 1
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], rax
	cmp	r12d, ebx
	jl	.L28
.L13:
	mov	edi, DWORD PTR -244[rbp]
	mov	r8d, DWORD PTR ACPI_TYPE_INTEGER[rip]
	mov	rcx, r13
	mov	rdx, r14
	lea	rsi, .LC5[rip]
	mov	DWORD PTR -224[rbp], ebx
	call	acpi_evaluate_object_typed@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L22
	mov	rdi, QWORD PTR -200[rbp]
	mov	r8d, DWORD PTR [rdi]
	test	r8d, r8d
	mov	DWORD PTR -260[rbp], r8d
	jle	.L11
	mov	rdi, r15
	call	ARRAY_SIZE@PLT
	mov	r8d, DWORD PTR -260[rbp]
	cmp	eax, r8d
	jg	.L12
.L21:
	mov	rdi, QWORD PTR -200[rbp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	mov	eax, DWORD PTR EPERM[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	movsx	rax, r8d
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, QWORD PTR -280[rbp]
	mov	ecx, ebx
	mov	r9, QWORD PTR -176[rbp+rax*8]
	lea	rdx, .LC7[rip]
	call	scnprintf@PLT
	cdqe
	add	QWORD PTR -280[rbp], rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L28:
	mov	eax, DWORD PTR -280[rbp]
	sub	eax, DWORD PTR -272[rbp]
	jmp	.L1
.L15:
	xor	eax, eax
	jmp	.L1
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	show_ppi_operations, .-show_ppi_operations
	.comm	tpm_device_name,4,4
	.comm	ppi_callback,4,4
	.comm	TPM_PPI_FN_VERSION,4,4
	.comm	TPM_PPI_FN_GETOPR,4,4
	.comm	PPI_VERSION_LEN,4,4
	.comm	PAGE_SIZE,4,4
	.comm	EPERM,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	ACPI_UINT32_MAX,4,4
	.comm	ACPI_TYPE_STRING,4,4
	.comm	ACPI_TYPE_INTEGER,4,4
	.comm	ACPI_TYPE_DEVICE,4,4
	.comm	ACPI_ROOT_OBJECT,4,4
	.comm	ACPI_ALLOCATE_BUFFER,8,8
	.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_ppi.c_show_ppi_operations.c"
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Not implemented\000"
	.align	2
.LC1:
	.ascii	"BIOS only\000"
	.align	2
.LC2:
	.ascii	"Blocked for OS by BIOS\000"
	.align	2
.LC3:
	.ascii	"User required\000"
	.align	2
.LC4:
	.ascii	"User not required\000"
	.text
	.section	.rodata.str1.4
	.align	2
.LC7:
	.ascii	"_DSM\000"
	.align	2
.LC8:
	.ascii	"1.2\000"
	.align	2
.LC9:
	.ascii	"%d %d: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_ppi_operations, %function
show_ppi_operations:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #116
	ldr	r4, .L19
	sub	lr, fp, #92
	mov	ip, r1
	mov	r10, r0
	mov	r6, r2
	ldmia	r4!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r2, .L19+4
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r2, .L19+8
	mov	r9, #0
	ldr	r2, [r2]
	str	r2, [fp, #-40]
	mov	r2,#0
	str	r3, [lr]
	mov	r3, #4
	ldr	r8, .L19+12
	ldr	r7, .L19+16
	ldr	r5, [r8]
	ldr	r0, [r7]
	add	r5, r5, #7
	bic	r5, r5, #7
	sub	sp, sp, r5
	sub	r5, fp, #72
	str	r0, [fp, #-108]
	mov	r0, r5
	mov	r4, ip
	str	r3, [fp, #-124]
	str	r9, [fp, #-104]
	str	r9, [fp, #-100]
	str	r9, [fp, #-96]
	bl	ppi_assign_params
	ldr	r2, .L19+20
	ldr	r3, .L19+24
	ldr	ip, [r2]
	ldr	r1, .L19+28
	str	ip, [sp]
	ldr	r2, .L19+32
	sub	ip, fp, #128
	ldr	r0, .L19+36
	str	ip, [sp, #4]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r0]
	str	r5, [fp, #-120]
	bl	acpi_walk_namespace
	bl	ACPI_FAILURE
	cmp	r0, r9
	beq	.L2
	ldr	r3, .L19+40
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r5
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L19+44
	ldr	r1, .L19+48
	ldr	r3, [r3]
	sub	r2, fp, #124
	str	r3, [sp]
	ldr	r0, [fp, #-128]
	sub	r3, fp, #108
	bl	acpi_evaluate_object_typed
	bl	ACPI_FAILURE
	subs	r5, r0, #0
	bne	.L14
	ldr	r3, [fp, #-104]
	add	r9, sp, #8
	ldr	r1, [r3]
	ldr	r2, [r8]
	mov	r0, r9
	bl	strncpy
	ldr	r0, [fp, #-104]
	bl	kfree
	ldr	r3, [r7]
	mov	r0, r9
	ldr	r1, .L19+52
	str	r5, [fp, #-104]
	str	r3, [fp, #-100]
	bl	strcmp
	cmn	r0, #1
	beq	.L17
	mov	r3, #1
	ldr	r2, .L19+56
	str	r3, [fp, #-48]
	ldr	r2, [r2]
	sub	r3, fp, #116
	cmp	r4, r6
	str	r2, [fp, #-56]
	str	r3, [fp, #-44]
	bgt	.L1
	mov	r5, r10
	ldr	r9, .L19+60
	ldr	r8, .L19+48
	str	r10, [fp, #-136]
	b	.L10
.L8:
	bl	kfree
	mov	r2, #0
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r6, r4
	str	r2, [fp, #-104]
	str	r3, [fp, #-100]
	blt	.L18
.L10:
	ldr	r2, [r9]
	mov	r1, r8
	sub	r3, fp, #108
	str	r2, [sp]
	ldr	r0, [fp, #-128]
	sub	r2, fp, #124
	str	r4, [fp, #-116]
	bl	acpi_evaluate_object_typed
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L14
	ldr	r0, [fp, #-104]
	ldr	r10, [r0]
	cmp	r10, #0
	ble	.L8
	sub	r0, fp, #92
	bl	ARRAY_SIZE
	cmp	r0, r10
	bgt	.L9
	ldr	r0, [fp, #-104]
	b	.L8
.L14:
	ldr	r3, .L19+64
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L17:
	ldr	r3, .L19+68
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L9:
	sub	r3, fp, #36
	add	r2, r3, r10, lsl #2
	ldr	r2, [r2, #-56]
	ldr	r1, .L19+72
	str	r2, [sp, #4]
	str	r10, [sp]
	mov	r3, r4
	mov	r0, r5
	ldr	r2, .L19+76
	ldr	r1, [r1]
	bl	scnprintf
	mov	r3, r0
	ldr	r0, [fp, #-104]
	add	r5, r5, r3
	b	.L8
.L18:
	ldr	r10, [fp, #-136]
	sub	r5, r5, r10
	b	.L1
.L16:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LANCHOR0
	.word	TPM_PPI_FN_VERSION
	.word	.LC10
	.word	PPI_VERSION_LEN
	.word	ACPI_ALLOCATE_BUFFER
	.word	tpm_device_name
	.word	ppi_callback
	.word	ACPI_ROOT_OBJECT
	.word	ACPI_UINT32_MAX
	.word	ACPI_TYPE_DEVICE
	.word	ENXIO
	.word	ACPI_TYPE_STRING
	.word	.LC7
	.word	.LC8
	.word	TPM_PPI_FN_GETOPR
	.word	ACPI_TYPE_INTEGER
	.word	ENOMEM
	.word	EPERM
	.word	PAGE_SIZE
	.word	.LC9
	.size	show_ppi_operations, .-show_ppi_operations
	.comm	tpm_device_name,4,4
	.comm	ppi_callback,4,4
	.comm	TPM_PPI_FN_VERSION,4,4
	.comm	TPM_PPI_FN_GETOPR,4,4
	.comm	PPI_VERSION_LEN,4,4
	.comm	PAGE_SIZE,4,4
	.comm	EPERM,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	ACPI_UINT32_MAX,4,4
	.comm	ACPI_TYPE_STRING,4,4
	.comm	ACPI_TYPE_INTEGER,4,4
	.comm	ACPI_TYPE_DEVICE,4,4
	.comm	ACPI_ROOT_OBJECT,4,4
	.comm	ACPI_ALLOCATE_BUFFER,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC6:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
