	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HLPFILE_UncompressLZ77_Phrases
_HLPFILE_UncompressLZ77_Phrases:        ## @HLPFILE_UncompressLZ77_Phrases
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_HLPFILE_FindSubFile
	movq	_FALSE@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	cmpl	$17, (%r13)
	setge	-41(%rbp)                       ## 1-byte Folded Spill
	movq	-56(%rbp), %rdi
	movl	$9, %esi
	callq	_GET_USHORT
	movl	%eax, %r14d
	movl	%eax, 4(%r13)
	movq	-56(%rbp), %rax
	leal	(%r14,%r14), %ecx
	movslq	%ecx, %r15
	leaq	(%rax,%r15,4), %rdi
	addq	$76, %rdi
	movq	-72(%rbp), %rbx
	cmpq	%rbx, %rdi
	jae	LBB0_2
## %bb.3:
	cmpl	$16, (%r13)
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	jg	LBB0_5
## %bb.4:
	subq	%rax, %rbx
	shrq	$2, %rbx
	subl	%ecx, %ebx
	addl	$-15, %ebx
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_WINE_WARN
	jmp	LBB0_15
LBB0_5:
	movq	%rbx, %rsi
	callq	_HLPFILE_UncompressedLZ77_Size
	movl	%eax, %ebx
LBB0_6:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	4(,%r14,4), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, 8(%r13)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	%rax, 16(%r13)
	cmpq	$0, 8(%r13)
	je	LBB0_16
## %bb.7:
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	js	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %al
	leaq	13(,%rax,4), %r12
	movl	$-2, %r15d
	subl	-60(%rbp), %r15d                ## 4-byte Folded Reload
	movl	%r14d, %eax
	leaq	(%rax,%rax), %rbx
	addq	$2, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi
	leal	(%r12,%r14), %esi
	callq	_GET_USHORT
	addl	%r15d, %eax
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%r14,2)
	addq	$2, %r14
	cmpq	%r14, %rbx
	jne	LBB0_10
LBB0_11:
	cmpl	$16, (%r13)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	jg	LBB0_13
## %bb.12:
	movq	16(%r13), %rdi
	movq	-56(%rbp), %rax
	leaq	(%rax,%rcx,4), %rsi
	addq	$60, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	jmp	LBB0_14
LBB0_16:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	8(%r13), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	16(%r13), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	jmp	LBB0_15
LBB0_13:
	movq	-56(%rbp), %rax
	leaq	(%rax,%rcx,4), %rdi
	addq	$76, %rdi
	movq	-72(%rbp), %rsi
	movq	16(%r13), %rdx
	callq	_HLPFILE_UncompressLZ77
LBB0_14:
	movq	_TRUE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, 24(%r13)
LBB0_15:
	movl	(%r12), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"|Phrases"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"1a\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HLPFILE_UncompressLZ77_Phrases
_HLPFILE_UncompressLZ77_Phrases:        ; @HLPFILE_UncompressLZ77_Phrases
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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_14
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #17
	mov	w8, #17
	mov	w9, #13
	csel	x20, x9, x8, lt
	ldr	x0, [sp, #8]
	mov	w1, #9
	bl	_GET_USHORT
	str	w0, [x19, #4]
	ldp	x1, x8, [sp]
	lsl	w9, w0, #1
	add	x10, x8, w9, sxtw #2
	add	x10, x10, #76
	cmp	x10, x1
	b.hs	LBB0_4
; %bb.2:
	mov	x22, x0
	sxtw	x23, w9
	ldr	w9, [x19]
	cmp	w9, #16
	b.gt	LBB0_5
; %bb.3:
	sub	x8, x1, x8
	lsr	x8, x8, #2
	sub	w8, w8, w23
	sub	w21, w8, #15
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WINE_WARN
	b	LBB0_14
LBB0_5:
	add	x8, x8, x23, lsl #2
	add	x0, x8, #76
	bl	_HLPFILE_UncompressedLZ77_Size
	mov	x21, x0
LBB0_6:
	bl	_GetProcessHeap
	lsl	w8, w22, #2
	add	w2, w8, #4
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x19, #8]
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapAlloc
	str	x0, [x19, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.7:
	cbz	x0, LBB0_13
; %bb.8:
	tbnz	w22, #31, LBB0_11
; %bb.9:
	mov	x24, #0
	mov	w8, #-2
	sub	w25, w8, w23
	add	w8, w22, #1
	lsl	x22, x8, #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_GET_USHORT
	add	w8, w25, w0
	ldr	x9, [x19, #8]
	str	w8, [x9, x24]
	add	w20, w20, #2
	add	x24, x24, #4
	cmp	x22, x24
	b.ne	LBB0_10
LBB0_11:
	ldr	w8, [x19]
	cmp	w8, #16
	b.gt	LBB0_16
; %bb.12:
	ldr	x0, [x19, #16]
	ldr	x8, [sp, #8]
	add	x8, x8, x23, lsl #2
	add	x1, x8, #60
	mov	x2, x21
	bl	_memcpy
	b	LBB0_17
LBB0_13:
	bl	_GetProcessHeap
	ldr	x2, [x19, #8]
	mov	w1, #0
	bl	_HeapFree
	bl	_GetProcessHeap
	ldr	x2, [x19, #16]
	mov	w1, #0
	bl	_HeapFree
LBB0_14:
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	ldp	x1, x8, [sp]
	add	x8, x8, x23, lsl #2
	add	x0, x8, #76
	ldr	x2, [x19, #16]
	bl	_HLPFILE_UncompressLZ77
LBB0_17:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x19, #24]
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"|Phrases"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"1a\n"

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