	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HLPFILE_Uncompress_Topic
_HLPFILE_Uncompress_Topic:              ## @HLPFILE_Uncompress_Topic
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_HLPFILE_FindSubFile
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	-48(%rbp), %rcx
	leaq	36(%rcx), %r15
	movq	%r15, -48(%rbp)
	movq	-56(%rbp), %rdi
	movq	%rdi, %rbx
	subq	%r15, %rbx
	shrq	$2, %rbx
	leal	-1(%rbx), %eax
	movl	4(%r14), %esi
	xorl	%edx, %edx
	divl	%esi
	incl	%eax
	cmpq	$0, 32(%r14)
	movl	%eax, (%r14)
	je	LBB0_15
## %bb.5:
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	addq	$308, %rcx                      ## imm = 0x134
	leaq	-272(%rdi), %rax
	cmpq	%rdi, %rcx
	cmovaq	%rax, %r15
	leaq	(%r15,%rsi,4), %rsi
	addq	$48, %r15
	callq	_min
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_HLPFILE_UncompressedLZ77_Size
	movl	%eax, %r12d
	cmpl	$2, (%r14)
	jb	LBB0_10
## %bb.8:
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movl	4(%r14), %ecx
	movq	-56(%rbp), %rdi
	movl	%ecx, %edx
	imull	%r15d, %edx
	leaq	(%rax,%rdx,4), %rsi
	leaq	(%rax,%rdx,4), %rax
	addq	$272, %rax                      ## imm = 0x110
	leaq	-272(%rdi), %rbx
	cmpq	%rdi, %rax
	cmovbeq	%rsi, %rbx
	leaq	(%rbx,%rcx,4), %rsi
	addq	$48, %rbx
	callq	_min
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_HLPFILE_UncompressedLZ77_Size
	addl	%eax, %r12d
	incl	%r15d
	cmpl	(%r14), %r15d
	jb	LBB0_9
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_WINE_WARN
	jmp	LBB0_2
LBB0_15:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	8(%r14), %edx
	addl	$8, %edx
	imull	(%r14), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.16:
	movl	(%r14), %ecx
	leaq	(%rax,%rcx,8), %r15
	movl	%ebx, %edx
	leaq	(%r15,%rdx,4), %rdx
	movq	%rdx, 24(%r14)
	movq	_TRUE@GOTPCREL(%rip), %r12
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edx
	movl	%edx, %ecx
	imull	%ebx, %ecx
	leaq	(%r15,%rcx,4), %rcx
	movq	%rcx, (%rax,%rbx,8)
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	-48(%rbp), %rax
	movl	4(%r14), %ecx
	imull	%ebx, %ecx
	leaq	(%rax,%rcx,4), %rsi
	addq	$48, %rsi
	callq	_memcpy
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jae	LBB0_3
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	16(%r14), %rax
	jmp	LBB0_18
LBB0_6:
	xorl	%r12d, %r12d
LBB0_10:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	(%r14), %ecx
	leal	(%r12,%rcx,8), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.11:
	movl	(%r14), %ecx
	leaq	(%rax,%rcx,8), %r15
	leaq	(%r15,%r12,4), %rdx
	movq	%rdx, 24(%r14)
	movq	_TRUE@GOTPCREL(%rip), %r12
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.12:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rcx
	movl	4(%r14), %edx
	movl	%r13d, %esi
	imull	%edx, %esi
	leaq	(%rcx,%rsi,4), %rdi
	leaq	(%rcx,%rsi,4), %rcx
	addq	$272, %rcx                      ## imm = 0x110
	movq	-56(%rbp), %rsi
	leaq	-272(%rsi), %rbx
	cmpq	%rsi, %rcx
	cmovbeq	%rdi, %rbx
	movq	%r15, (%rax,%r13,8)
	movq	-56(%rbp), %rdi
	leaq	(%rbx,%rdx,4), %rsi
	addq	$48, %rbx
	callq	_min
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_HLPFILE_UncompressLZ77
	movq	%rax, %r15
	incq	%r13
	movl	(%r14), %eax
	cmpq	%rax, %r13
	jae	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	16(%r14), %rax
	jmp	LBB0_13
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %r12
LBB0_3:
	movl	(%r12), %eax
	addq	$24, %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	"|TOPIC"

L_.str.1:                               ## @.str.1
	.asciz	"topic0\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_HLPFILE_Uncompress_Topic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HLPFILE_Uncompress_Topic
_HLPFILE_Uncompress_Topic:              ; @HLPFILE_Uncompress_Topic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	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_6
; %bb.1:
	ldp	x0, x9, [sp]
	add	x8, x9, #36
	str	x8, [sp, #8]
	sub	x10, x0, x8
	lsr	x21, x10, #2
	ldr	x12, [x19, #32]
	sub	w11, w21, #1
	ldr	w10, [x19, #4]
	udiv	w11, w11, w10
	add	w11, w11, #1
	str	w11, [x19]
	cbz	x12, LBB0_7
; %bb.2:
	cbz	w11, LBB0_12
; %bb.3:
	add	x9, x9, #308
	sub	x11, x0, #272
	cmp	x9, x0
	csel	x8, x11, x8, hi
	add	x20, x8, #48
	add	x1, x8, x10, lsl #2
	bl	_min
	mov	x1, x0
	mov	x0, x20
	bl	_HLPFILE_UncompressedLZ77_Size
	and	x21, x0, #0xffffffff
	ldr	w8, [x19]
	cmp	w8, #2
	b.lo	LBB0_13
; %bb.4:
	mov	w22, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x0, x8, [sp]
	ldr	w9, [x19, #4]
	mul	w10, w9, w22
	add	x8, x8, w10, uxtw #2
	add	x10, x8, #272
	sub	x11, x0, #272
	cmp	x10, x0
	csel	x8, x11, x8, hi
	add	x20, x8, #48
	add	x1, x8, x9, lsl #2
	bl	_min
	mov	x1, x0
	mov	x0, x20
	bl	_HLPFILE_UncompressedLZ77_Size
	add	w21, w0, w21
	add	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.lo	LBB0_5
	b	LBB0_13
LBB0_6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WINE_WARN
	b	LBB0_18
LBB0_7:
	bl	_GetProcessHeap
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	add	w9, w9, #8
	mul	w2, w9, w8
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_18
; %bb.8:
	ldr	w8, [x19]
	add	x20, x0, x8, lsl #3
	add	x9, x20, w21, uxtw #2
	str	x9, [x19, #24]
	cbz	w8, LBB0_19
; %bb.9:
	ldr	w2, [x19, #8]
	str	x20, [x0]
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	ldr	x8, [sp, #8]
	add	x1, x8, #48
	bl	_memcpy
	ldr	w8, [x19]
	cmp	w8, #2
	b.lo	LBB0_19
; %bb.10:
	mov	w21, #1
Lloh4:
	adrp	x22, _TRUE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w2, [x19, #8]
	mul	w9, w2, w21
	add	x9, x20, w9, uxtw #2
	lsl	x10, x21, #3
	str	x9, [x8, x10]
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x10]
	ldr	x8, [sp, #8]
	ldr	w9, [x19, #4]
	mul	w9, w9, w21
	add	x8, x8, w9, uxtw #2
	add	x1, x8, #48
	bl	_memcpy
	add	x21, x21, #1
	ldr	w8, [x19]
	cmp	x21, x8
	b.lo	LBB0_11
	b	LBB0_20
LBB0_12:
	mov	x21, #0
LBB0_13:
	bl	_GetProcessHeap
	ldr	w8, [x19]
	add	w2, w21, w8, lsl #3
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_18
; %bb.14:
	ldr	w8, [x19]
	add	x20, x0, x8, lsl #3
	add	x9, x20, x21, lsl #2
	str	x9, [x19, #24]
	cbz	w8, LBB0_19
; %bb.15:
	mov	x23, #0
Lloh6:
	adrp	x22, _TRUE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	x11, x8, [sp]
	ldr	w9, [x19, #4]
	mul	w10, w9, w23
	add	x8, x8, w10, uxtw #2
	add	x10, x8, #272
	sub	x12, x11, #272
	cmp	x10, x11
	csel	x8, x12, x8, hi
	str	x20, [x0, x23, lsl #3]
	add	x21, x8, #48
	ldr	x0, [sp]
	add	x1, x8, x9, lsl #2
	bl	_min
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_HLPFILE_UncompressLZ77
	add	x23, x23, #1
	ldr	w8, [x19]
	cmp	x23, x8
	b.hs	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x20, x0
	ldr	x0, [x19, #16]
	b	LBB0_16
LBB0_18:
Lloh8:
	adrp	x22, _FALSE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh10:
	adrp	x22, _TRUE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"|TOPIC"

l_.str.1:                               ; @.str.1
	.asciz	"topic0\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_HLPFILE_Uncompress_Topic
.subsections_via_symbols
