	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HLPFILE_Uncompress3
_HLPFILE_Uncompress3:                   ## @HLPFILE_Uncompress3
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rdx, %r8
	movq	%rsi, %r12
	cmpq	%r15, %rcx
	jae	LBB0_18
## %bb.1:
	movq	%rcx, %rbx
	movq	%rdi, %r13
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_WINE_ERR
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %eax
	addq	%rax, %r12
	addq	$4, %rbx
	cmpq	%r15, %rbx
	jae	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	testb	$1, %al
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	andl	$3, %ecx
	cmpl	$1, %ecx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	shll	$6, %eax
	movl	4(%rbx), %ecx
	addq	$4, %rbx
	leal	(%rax,%rcx), %esi
	addl	$64, %esi
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edx
	cmpl	%edx, %esi
	ja	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	leal	1(%rsi), %ecx
	movl	(%rax,%rcx,4), %r14d
	movl	%esi, %ecx
	movl	(%rax,%rcx,4), %esi
	subl	%esi, %r14d
	leaq	(%r12,%r14), %rax
	cmpq	%r8, %rax
	ja	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	shlq	$2, %rsi
	addq	16(%r13), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	andl	$7, %ecx
	cmpl	$3, %ecx
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	7(%rax), %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	sarl	$3, %r14d
	incl	%r14d
	leaq	(%r12,%r14), %rax
	cmpq	%r8, %rax
	ja	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	4(%rbx), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r14,4), %rbx
	jmp	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	15(%rax), %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	sarl	$4, %r14d
	incl	%r14d
	leaq	(%r12,%r14), %rcx
	cmpq	%r8, %rcx
	ja	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	andl	$15, %eax
	xorl	%esi, %esi
	cmpl	$7, %eax
	sete	%sil
	shll	$5, %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_memset
	jmp	LBB0_16
LBB0_18:
	cmpq	%r8, %r12
	jbe	LBB0_20
## %bb.19:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movq	%r8, %rdx
	xorl	%eax, %eax
	callq	_WINE_ERR
LBB0_20:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %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	"index in phrases %d/%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"buffer overflow (%p > %p)\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HLPFILE_Uncompress3
_HLPFILE_Uncompress3:                   ; @HLPFILE_Uncompress3
	.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, x2
	mov	x20, x1
	cmp	x3, x4
	b.hs	LBB0_17
; %bb.1:
	mov	x21, x4
	mov	x22, x3
	mov	x23, x0
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	stp	x8, x9, [sp]
	mov	x0, x24
	bl	_WINE_ERR
	mov	w25, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, w25, uxtw
	add	x22, x22, #4
	cmp	x22, x21
	b.hs	LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	tbnz	w8, #0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldr	w9, [x23]
	cmp	w8, w9
	b.hi	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x23, #8]
	add	w10, w8, #1
	ldr	w10, [x9, w10, uxtw #2]
	ldr	w8, [x9, w8, uxtw #2]
	sub	w25, w10, w8
	add	x9, x20, x25
	cmp	x9, x19
	b.hi	LBB0_3
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w9, w8, #0x3
	cmp	w9, #1
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x22, #4]!
	add	w8, w9, w8, lsl #6
	add	w8, w8, #64
	ldr	w9, [x23]
	cmp	w8, w9
	b.hi	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x23, #8]
	add	w10, w8, #1
	ldr	w10, [x9, w10, uxtw #2]
	ldr	w8, [x9, w8, uxtw #2]
	sub	w25, w10, w8
	add	x9, x20, x25
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	cmp	x9, x19
	b.hi	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x23, #16]
	add	x1, x9, x8, lsl #2
	mov	x0, x20
	mov	x2, x25
	bl	_memcpy
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w9, w8, #0x7
	cmp	w9, #3
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	add	w26, w8, #1
	mov	x25, x26
	add	x8, x20, x26
	cmp	x8, x19
	b.hi	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x22, #4
	mov	x0, x20
	mov	x2, x25
	bl	_memcpy
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, x26, lsl #2
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w8, #15
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #4
	add	w9, w9, #1
	mov	x25, x9
	add	x9, x20, x9
	cmp	x9, x19
	b.hi	LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w8, #0xf
	cmp	w8, #7
	cset	w8, eq
	lsl	w1, w8, #5
	mov	x0, x20
	mov	x2, x25
	bl	_memset
	b	LBB0_3
LBB0_17:
	cmp	x20, x19
	b.ls	LBB0_19
; %bb.18:
	stp	x20, x19, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WINE_ERR
LBB0_19:
Lloh4:
	adrp	x8, _TRUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh6:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index in phrases %d/%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"buffer overflow (%p > %p)\n"

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