	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HLPFILE_DecompressGfx
_HLPFILE_DecompressGfx:                 ## @HLPFILE_DecompressGfx
	.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
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_WINE_TRACE
	cmpl	$3, %ebx
	ja	LBB0_16
## %bb.1:
	movl	%ebx, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	cmpl	%r12d, %r14d
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_WINE_WARN
LBB0_4:
	movq	$0, (%r15)
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_WINE_FIXME
	jmp	LBB0_17
LBB0_5:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_HeapAlloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:
	movq	%rax, %rbx
	movl	%r12d, %eax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_HLPFILE_UncompressRLE
	movq	%rbx, %r13
	jmp	LBB0_18
LBB0_7:
	movl	%r12d, %eax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	%r13, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_HLPFILE_UncompressedLZ77_Size
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_HLPFILE_UncompressLZ77
	cmpl	%r14d, %ebx
	jne	LBB0_10
## %bb.9:
	movq	%r12, %r13
	jmp	LBB0_18
LBB0_17:
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_11:
	movl	%r12d, %eax
	leaq	(,%rax,4), %r12
	addq	%r13, %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_HLPFILE_UncompressedLZ77_Size
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_HLPFILE_UncompressLZ77
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_HeapAlloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %r13
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	leaq	(%rbx,%rax,4), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_HLPFILE_UncompressRLE
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
	jmp	LBB0_18
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_WINE_WARN
	movq	%r12, %r13
	jmp	LBB0_18
LBB0_14:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
LBB0_12:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_18:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unpacking (%d) from %u bytes to %u bytes\n"

L_.str.1:                               ## @.str.1
	.asciz	"Bogus gfx sizes (uncompressed): %u / %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"Bogus gfx sizes (LZ77): %u / %u\n"

	.comm	_FALSE,8,3                      ## @FALSE
L_.str.3:                               ## @.str.3
	.asciz	"Unsupported packing %u\n"

	.no_dead_strip	_HLPFILE_DecompressGfx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HLPFILE_DecompressGfx
_HLPFILE_DecompressGfx:                 ; @HLPFILE_DecompressGfx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x3
	mov	x2, x22
	mov	x3, x20
	bl	_WINE_TRACE
	cmp	w23, #3
	b.hi	LBB0_5
; %bb.1:
	mov	w8, w23
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cmp	w20, w22
	b.eq	LBB0_4
; %bb.3:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_WINE_WARN
LBB0_4:
	str	xzr, [x21]
	b	LBB0_18
LBB0_5:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x23
	bl	_WINE_FIXME
	b	LBB0_11
LBB0_6:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapAlloc
	str	x0, [x21]
	cbz	x0, LBB0_11
; %bb.7:
	mov	x23, x0
	add	x1, x19, w22, uxtw #2
	mov	x0, x19
	mov	x2, x23
	mov	x3, x20
	bl	_HLPFILE_UncompressRLE
	mov	x19, x23
	b	LBB0_18
LBB0_8:
	add	x23, x19, w22, uxtw #2
	mov	x0, x19
	mov	x1, x23
	bl	_HLPFILE_UncompressedLZ77_Size
	mov	x22, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapAlloc
	str	x0, [x21]
	cbz	x0, LBB0_11
; %bb.9:
	mov	x24, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_HLPFILE_UncompressLZ77
	cmp	w22, w20
	b.ne	LBB0_15
; %bb.10:
	mov	x19, x24
	b	LBB0_18
LBB0_11:
	mov	x19, #0
	b	LBB0_18
LBB0_12:
	add	x24, x19, w22, uxtw #2
	mov	x0, x19
	mov	x1, x24
	bl	_HLPFILE_UncompressedLZ77_Size
	mov	x23, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x23
	bl	_HeapAlloc
	cbz	x0, LBB0_17
; %bb.13:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_HLPFILE_UncompressLZ77
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapAlloc
	str	x0, [x21]
	cbz	x0, LBB0_16
; %bb.14:
	mov	x19, x0
	add	x1, x22, w23, uxtw #2
	mov	x0, x22
	mov	x2, x19
	mov	x3, x20
	bl	_HLPFILE_UncompressRLE
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapFree
	b	LBB0_18
LBB0_15:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	bl	_WINE_WARN
	mov	x19, x24
	b	LBB0_18
LBB0_16:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapFree
LBB0_17:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	x19, [x8]
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unpacking (%d) from %u bytes to %u bytes\n"

l_.str.1:                               ; @.str.1
	.asciz	"Bogus gfx sizes (uncompressed): %u / %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"Bogus gfx sizes (LZ77): %u / %u\n"

	.comm	_FALSE,8,3                      ; @FALSE
l_.str.3:                               ; @.str.3
	.asciz	"Unsupported packing %u\n"

	.no_dead_strip	_HLPFILE_DecompressGfx
.subsections_via_symbols
