	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HLPFILE_AllocLink
_HLPFILE_AllocLink:                     ## @HLPFILE_AllocLink
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	cmpq	$0, 16(%rbp)
	movl	$56, %eax
	movl	$4, %r14d
	cmovel	%eax, %r14d
	cmpl	$-1, %ecx
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r12d
LBB0_2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%r14d, %edx
	orl	$1, %edx
	addl	%r12d, %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movl	%r14d, %eax
	movq	%rbx, %r14
	addq	%rax, %r14
	movq	%r14, 8(%rbx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	%r12d, %eax
	movb	$0, (%rax,%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%rbx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 48(%rbx)
	movq	16(%rbp), %r14
	movq	%r14, 40(%rbx)
	movl	24(%rbp), %eax
	movl	%eax, 16(%rbx)
	movq	24(%r15), %rax
	movq	%rax, 32(%rbx)
	movq	%rbx, 24(%r15)
	movl	8(%r15), %eax
	movl	%eax, 28(%rbx)
	movq	%rcx, 16(%r15)
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_WINE_FIXME
LBB0_5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movl	8(%r15), %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, (%r15)
LBB0_8:
	movl	(%rbx), %r14d
	movq	8(%rbx), %rdi
	callq	_debugstr_a
	movl	16(%rbx), %r8d
	movl	20(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_WINE_TRACE
LBB0_9:
	movq	%rbx, %rax
	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	"Pending link\n"

L_.str.1:                               ## @.str.1
	.asciz	"Link[%d] to %s@%08x:%d\n"

	.no_dead_strip	_HLPFILE_AllocLink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HLPFILE_AllocLink
_HLPFILE_AllocLink:                     ; @HLPFILE_AllocLink
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x7
	mov	x19, x6
	mov	x22, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x27, x1
	mov	x20, x0
	cmp	x6, #0
	mov	w8, #4
	mov	w9, #56
	csel	w28, w9, w8, eq
	cmn	w3, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x26
	bl	_strlen
	mov	x25, x0
LBB0_2:
	bl	_GetProcessHeap
	orr	w8, w28, #0x1
	add	w2, w8, w25
	mov	w1, #0
	bl	_HeapAlloc
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.3:
	str	w27, [x21]
	add	x27, x21, w28, uxtw
	str	x27, [x21, #8]
	mov	x0, x27
	mov	x1, x26
	mov	x2, x25
	bl	_memcpy
	strb	wzr, [x27, w25, uxtw]
	str	x22, [x21, #48]
	stp	w23, w24, [x21, #16]
	ldr	x8, [x20, #24]
	stp	x8, x19, [x21, #32]
	ldr	w8, [x20, #8]
	str	w8, [x21, #28]
	stp	x22, x21, [x20, #16]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WINE_FIXME
LBB0_5:
	cbz	x19, LBB0_7
; %bb.6:
	ldr	w8, [x20, #8]
	str	w8, [x21, #24]
	b	LBB0_8
LBB0_7:
	str	x21, [x20]
LBB0_8:
	ldr	w19, [x21]
	ldr	x0, [x21, #8]
	bl	_debugstr_a
	mov	x2, x0
	ldp	w4, w3, [x21, #16]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_WINE_TRACE
LBB0_9:
	mov	x0, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pending link\n"

l_.str.1:                               ; @.str.1
	.asciz	"Link[%d] to %s@%08x:%d\n"

	.no_dead_strip	_HLPFILE_AllocLink
.subsections_via_symbols
