	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resource_dup_string
_resource_dup_string:                   ## @resource_dup_string
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rsi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movslq	(%rsi), %r15
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	(%r14,%r15), %ecx
	leal	4(,%rcx,4), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, %rbx
	movl	(%r14,%r15), %eax
	movl	4(%r14,%r15), %esi
	leal	4(,%rax,4), %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movslq	(%r14,%r15), %rax
	movq	$0, (%rbx,%rax,8)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rsi), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UIntToPtr                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_resource_dup_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resource_dup_string
_resource_dup_string:                   ; @resource_dup_string
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1, #8]
	cbz	w8, LBB0_2
; %bb.1:
	ldrsw	x8, [x1]
	add	x20, x0, x8
	bl	_GetProcessHeap
	ldr	w8, [x20]
	lsl	w8, w8, #2
	add	w2, w8, #4
	mov	w1, #0
	bl	_HeapAlloc
	mov	x19, x0
	ldp	w8, w1, [x20]
	lsl	w8, w8, #2
	add	w2, w8, #4
	bl	_memcpy
	ldrsw	x8, [x20]
	str	xzr, [x19, x8, lsl #3]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x1, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UIntToPtr
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_resource_dup_string
.subsections_via_symbols
