	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HLPFILE_AddPage
_HLPFILE_AddPage:                       ## @HLPFILE_AddPage
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_GET_UINT
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_GET_UINT
	movq	%rax, %rbx
	movslq	%ebx, %r14
	addq	%r15, %r14
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r13, %r14
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_WINE_WARN
	movq	_FALSE@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_2:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_GET_UINT
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	73(%r13), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rcx
	addq	$72, %rcx
	movq	%rcx, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subl	%ebx, %eax
	cmpl	%r13d, %eax
	jge	LBB0_10
## %bb.5:
	movslq	%r13d, %r8
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 40(%rbx)
	je	LBB0_7
## %bb.6:
	addq	%rcx, %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_HLPFILE_Uncompress2
	jmp	LBB0_11
LBB0_3:
	movq	_FALSE@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_10:
	movq	%rcx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movq	%r13, %rcx
LBB0_12:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	(%r12), %rax
	movslq	%ecx, %r14
	movb	$0, (%rax,%r14)
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.13:
	movq	16(%rbx), %rax
	movq	%r12, 48(%rax)
	movq	%rax, 64(%r12)
	movq	%r12, 16(%rbx)
	jmp	LBB0_15
LBB0_14:
	movq	%r12, 24(%rbx)
	movq	%r12, 16(%rbx)
	movq	$0, 64(%r12)
LBB0_15:
	movq	%rbx, 56(%r12)
	movq	$0, 24(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r12)
	movq	%r15, %rdi
	movl	$33, %esi
	callq	_GET_UINT
	movq	%rax, 32(%r12)
	movl	%r13d, 8(%r12)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r12)
	movq	%r15, %rdi
	movl	$25, %esi
	callq	_GET_UINT
	movl	%eax, 16(%r12)
	movq	%r15, %rdi
	movl	$29, %esi
	callq	_GET_UINT
	movl	%eax, 20(%r12)
	cmpl	$16, (%rbx)
	jg	LBB0_23
## %bb.16:
	movslq	16(%r12), %rdx
	movl	$-1, %ecx
	movl	$-1, %esi
	cmpq	$-1, %rdx
	je	LBB0_19
## %bb.17:
	movl	$-1, %esi
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	je	LBB0_19
## %bb.18:
	movq	8(%rbx), %rsi
	movl	(%rsi,%rdx,4), %esi
LBB0_19:
	movl	%esi, 16(%r12)
	cmpl	$-1, %eax
	je	LBB0_22
## %bb.20:
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_22
## %bb.21:
	movq	8(%rbx), %rcx
	cltq
	movl	(%rcx,%rax,4), %ecx
LBB0_22:
	movl	%ecx, 20(%r12)
LBB0_23:
	movl	32(%r12), %ebx
	movq	(%r12), %rdi
	callq	_debugstr_a
	movl	8(%r12), %r8d
	movl	16(%r12), %ecx
	movl	20(%r12), %r9d
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_WINE_TRACE
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	leaq	(%rbx,%rax), %r13
	incq	%r13
	movq	(%r12), %rax
	addq	%r14, %rax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	%rax, %r13
	jae	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_debugstr_a
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_WINE_TRACE
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	17(%r15), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, %rbx
	leaq	16(%rax), %rdi
	movq	%rdi, (%rax)
	incl	%r15d
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	24(%r12), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, 24(%r12)
	addq	%r15, %r13
	movq	(%r12), %rax
	addq	%r14, %rax
	cmpq	%rax, %r13
	jb	LBB0_24
## %bb.25:
	movq	_TRUE@GOTPCREL(%rip), %rcx
LBB0_26:
	movl	(%rcx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpq	$0, 32(%rbx)
	je	LBB0_9
## %bb.8:
	addq	%rcx, %r8
	movq	%rbx, %rdi
	movq	%rcx, %rsi
	movq	%r8, %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_HLPFILE_Uncompress3
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %r13
	callq	_WINE_FIXME
	movq	(%r12), %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r13d, %ecx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"page2\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Text size is too long, splitting\n"

L_.str.2:                               ## @.str.2
	.asciz	"Added page[%d]: title=%s %08x << %08x >> %08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"macro: %s\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HLPFILE_AddPage
_HLPFILE_AddPage:                       ; @HLPFILE_AddPage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x22, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	bl	_GET_UINT
	mov	x27, x0
	mov	x0, x21
	mov	w1, #16
	bl	_GET_UINT
	mov	x28, x0
	add	x26, x21, w28, sxtw
	cmp	x26, x24
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WINE_WARN
	b	LBB0_6
LBB0_2:
	mov	x0, x21
	mov	w1, #4
	bl	_GET_UINT
	mov	x25, x0
	bl	_GetProcessHeap
	add	w2, w25, #73
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x0
	add	x3, x0, #72
	str	x3, [x0]
	sub	w27, w27, w28
	cmp	w27, w25
	b.ge	LBB0_8
; %bb.4:
	sxtw	x8, w25
	ldr	x9, [x20, #40]
	cbz	x9, LBB0_24
; %bb.5:
	add	x4, x3, x8
	mov	x0, x20
	mov	x1, x26
	mov	x2, x24
	bl	_HLPFILE_Uncompress2
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x25, _FALSE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x25]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	mov	x0, x3
	mov	x1, x26
	mov	x2, x25
	bl	_memcpy
LBB0_9:
	ldr	x8, [x19]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	sxtw	x24, w25
	strb	wzr, [x8, x24]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x20, #16]
	str	x19, [x8, #48]
	str	x8, [x19, #64]
	str	x19, [x20, #16]
	b	LBB0_12
LBB0_11:
	stp	x19, x19, [x20, #16]
	str	xzr, [x19, #64]
LBB0_12:
	stp	xzr, x20, [x19, #48]
	str	xzr, [x19, #24]
	str	xzr, [x19, #40]
	mov	x0, x21
	mov	w1, #33
	bl	_GET_UINT
	str	x0, [x19, #32]
	stp	w23, w22, [x19, #8]
	mov	x0, x21
	mov	w1, #25
	bl	_GET_UINT
	str	w0, [x19, #16]
	mov	x0, x21
	mov	w1, #29
	bl	_GET_UINT
	str	w0, [x19, #20]
	ldr	w8, [x20]
	cmp	w8, #16
	b.gt	LBB0_20
; %bb.13:
	ldr	w9, [x19, #16]
	mov	w8, #-1
	cmn	w9, #1
	b.eq	LBB0_16
; %bb.14:
	mov	w10, #65535
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.15:
	sxtw	x8, w9
	ldr	x9, [x20, #8]
	ldr	w8, [x9, x8, lsl #2]
LBB0_16:
	str	w8, [x19, #16]
	mov	w8, #-1
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.17:
	mov	w9, #65535
	cmp	w0, w9
	b.eq	LBB0_19
; %bb.18:
	ldr	x8, [x20, #8]
	sbfiz	x9, x0, #2, #32
	ldr	w8, [x8, x9]
LBB0_19:
	str	w8, [x19, #20]
LBB0_20:
	ldr	w20, [x19, #32]
	ldr	x0, [x19]
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #8]
	ldp	w9, w10, [x19, #16]
	stp	x8, x10, [sp, #16]
	stp	x0, x9, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_WINE_TRACE
	ldr	x20, [x19]
	mov	x0, x20
	bl	_strlen
	add	x8, x20, w0, sxtw
	add	x20, x8, #1
	ldr	x8, [x19]
	add	x8, x8, x24
	cmp	x20, x8
	b.hs	LBB0_23
; %bb.21:
Lloh6:
	adrp	x21, l_.str.3@PAGE
Lloh7:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh8:
	adrp	x25, _TRUE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
	mov	x0, x20
	bl	_debugstr_a
	mov	x1, x0
	mov	x0, x21
	bl	_WINE_TRACE
	bl	_GetProcessHeap
	add	w2, w22, #17
	mov	w1, #0
	bl	_HeapAlloc
	mov	x23, x0
	add	x0, x0, #16
	str	x0, [x23]
	add	w22, w22, #1
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19, #24]
	str	x8, [x23, #8]
	str	x23, [x19, #24]
	add	x20, x20, x22
	ldr	x8, [x19]
	add	x8, x8, x24
	cmp	x20, x8
	b.lo	LBB0_22
	b	LBB0_7
LBB0_23:
Lloh10:
	adrp	x25, _TRUE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_24:
	ldr	x9, [x20, #32]
	cbz	x9, LBB0_26
; %bb.25:
	add	x2, x3, x8
	mov	x0, x20
	mov	x1, x3
	mov	x3, x26
	mov	x4, x24
	bl	_HLPFILE_Uncompress3
	b	LBB0_9
LBB0_26:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WINE_FIXME
	ldr	x0, [x19]
	mov	x1, x26
	mov	x2, x27
	bl	_memcpy
	mov	x25, x27
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"page2\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Text size is too long, splitting\n"

l_.str.2:                               ; @.str.2
	.asciz	"Added page[%d]: title=%s %08x << %08x >> %08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"macro: %s\n"

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