	.file	"extr_windows_heap.c_GetLFHKey.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ReadProcessMemory"
.LC1:
	.string	"LFH key not found.\n"
	.text
	.p2align 4
	.type	GetLFHKey, @function
GetLFHKey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	r_return_val_if_fail@PLT
	mov	esi, ebp
	mov	rdi, r12
	call	GetHeapGlobalsOffset@PLT
	test	eax, eax
	je	.L10
	mov	rsi, QWORD PTR RtlpLFHKeyOffset[rip]
	test	r13d, r13d
	jne	.L11
.L5:
	xor	r8d, r8d
	mov	ecx, 8
	mov	rdx, rbx
	mov	edi, ebp
	call	ReadProcessMemory@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	r12d, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR RtlpHpHeapGlobalsOffset[rip]
	lea	rsi, 8[rax]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	QWORD PTR [rbx], 0
	mov	r12d, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	r_sys_perror@PLT
	lea	rdi, .LC1[rip]
	call	eprintf@PLT
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	GetLFHKey, .-GetLFHKey
	.comm	RtlpLFHKeyOffset,8,8
	.comm	RtlpHpHeapGlobalsOffset,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_windows_heap.c_GetLFHKey.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ReadProcessMemory\000"
	.align	2
.LC1:
	.ascii	"LFH key not found.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetLFHKey, %function
GetLFHKey:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	mov	r5, r1
	sub	sp, sp, #12
	mov	r1, #0
	mov	r7, r2
	mov	r6, r3
	bl	r_return_val_if_fail
	mov	r0, r4
	mov	r1, r5
	bl	GetHeapGlobalsOffset
	subs	r4, r0, #0
	beq	.L8
	cmp	r7, #0
	ldrne	r3, .L11
	ldreq	r3, .L11+4
	ldrne	r1, [r3]
	ldreq	r1, [r3]
	mov	r3, #0
	addne	r1, r1, #4
	str	r3, [sp]
	mov	r0, r5
	mov	r3, #4
	mov	r2, r6
	bl	ReadProcessMemory
	subs	r4, r0, #0
	movne	r4, #1
	beq	.L10
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	ldr	r0, .L11+8
	bl	r_sys_perror
	ldr	r0, .L11+12
	bl	eprintf
.L8:
	mov	r0, r4
	str	r4, [r6]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	.align	2
.L11:
	.word	RtlpHpHeapGlobalsOffset
	.word	RtlpLFHKeyOffset
	.word	.LC0
	.word	.LC1
	.size	GetLFHKey, .-GetLFHKey
	.comm	RtlpLFHKeyOffset,4,4
	.comm	RtlpHpHeapGlobalsOffset,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
