	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetLFHKey
_GetLFHKey:                             ## @GetLFHKey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_r_return_val_if_fail
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_GetHeapGlobalsOffset
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.3:
	movq	_RtlpLFHKeyOffset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_4
LBB0_2:
	movq	_RtlpHpHeapGlobalsOffset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$8, %esi
LBB0_4:
	movl	%r12d, %edi
	movq	%r14, %rdx
	movl	$8, %ecx
	xorl	%r8d, %r8d
	callq	_ReadProcessMemory
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_r_sys_perror
	leaq	L_.str.1(%rip), %rdi
	callq	_eprintf
LBB0_6:
	movq	$0, (%r14)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RtlpHpHeapGlobalsOffset,8,3    ## @RtlpHpHeapGlobalsOffset
	.comm	_RtlpLFHKeyOffset,8,3           ## @RtlpLFHKeyOffset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ReadProcessMemory"

L_.str.1:                               ## @.str.1
	.asciz	"LFH key not found.\n"

	.no_dead_strip	_GetLFHKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetLFHKey
_GetLFHKey:                             ; @GetLFHKey
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	w1, #0
	bl	_r_return_val_if_fail
	mov	x0, x22
	mov	x1, x20
	bl	_GetHeapGlobalsOffset
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _RtlpHpHeapGlobalsOffset@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RtlpHpHeapGlobalsOffset@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, #8
Lloh3:
	adrp	x9, _RtlpLFHKeyOffset@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RtlpLFHKeyOffset@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w21, #0
	csel	w1, w9, w8, eq
	mov	x0, x20
	mov	x2, x19
	mov	w3, #8
	mov	x4, #0
	bl	_ReadProcessMemory
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_sys_perror
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
LBB0_4:
	mov	w0, #0
	str	xzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RtlpHpHeapGlobalsOffset,8,3    ; @RtlpHpHeapGlobalsOffset
	.comm	_RtlpLFHKeyOffset,8,3           ; @RtlpLFHKeyOffset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ReadProcessMemory"

l_.str.1:                               ; @.str.1
	.asciz	"LFH key not found.\n"

	.no_dead_strip	_GetLFHKey
.subsections_via_symbols
