	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HLPFILE_GetKeywords
_HLPFILE_GetKeywords:                   ## @HLPFILE_GetKeywords
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	callq	_HLPFILE_FindSubFile
	movq	_FALSE@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	-40(%rbp), %rbx
	subq	-32(%rbp), %rbx
	shrq	$2, %rbx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	-32(%rbp), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	callq	_HLPFILE_FindSubFile
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	-40(%rbp), %rbx
	subq	-32(%rbp), %rbx
	shrq	$2, %rbx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	-32(%rbp), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movq	_TRUE@GOTPCREL(%rip), %r15
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_WINE_ERR
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	8(%r14), %rdx
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%r14), %rdx
LBB0_6:
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
LBB0_8:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"|KWBTREE"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"|KWDATA"

L_.str.2:                               ## @.str.2
	.asciz	"corrupted help file: kwbtree present but kwdata absent\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_HLPFILE_GetKeywords
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HLPFILE_GetKeywords
_HLPFILE_GetKeywords:                   ; @HLPFILE_GetKeywords
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	bl	_HLPFILE_FindSubFile
	cbz	w0, LBB0_8
; %bb.1:
	ldp	x8, x9, [sp]
	sub	x8, x8, x9
	lsr	x20, x8, #2
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapAlloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x1, [sp, #8]
	mov	x2, x20
	bl	_memcpy
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x19
	bl	_HLPFILE_FindSubFile
	cbz	w0, LBB0_5
; %bb.3:
	ldp	x8, x9, [sp]
	sub	x8, x8, x9
	lsr	x20, x8, #2
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapAlloc
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x1, [sp, #8]
	mov	x2, x20
	bl	_memcpy
Lloh4:
	adrp	x8, _TRUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WINE_ERR
	bl	_GetProcessHeap
	ldr	x2, [x19, #8]
	b	LBB0_7
LBB0_6:
	bl	_GetProcessHeap
	ldr	x2, [x19]
LBB0_7:
	mov	w1, #0
	bl	_HeapFree
LBB0_8:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"|KWBTREE"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"|KWDATA"

l_.str.2:                               ; @.str.2
	.asciz	"corrupted help file: kwbtree present but kwdata absent\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_HLPFILE_GetKeywords
.subsections_via_symbols
