	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IniCacheAppendSection          ## -- Begin function IniCacheAppendSection
	.p2align	4, 0x90
_IniCacheAppendSection:                 ## @IniCacheAppendSection
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.5:
	movq	%rdi, %r15
	movq	_ProcessHeap@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_RtlAllocateHeap
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movl	(%r13), %r12d
	movq	%rbx, %rdi
	callq	_wcslen
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %edx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_RtlAllocateHeap
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_wcscpy
	cmpq	$0, 8(%r15)
	je	LBB0_10
## %bb.11:
	movq	(%r15), %rax
	movq	%r14, 8(%rax)
	movq	%rax, (%r14)
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	callq	_DPRINT
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINT
	movl	(%r13), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_RtlFreeHeap
	jmp	LBB0_13
LBB0_10:
	movq	%r14, 8(%r15)
LBB0_12:
	movq	%r14, (%r15)
	movq	%r14, %rbx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid parameter\n"

	.comm	_ProcessHeap,4,2                ## @ProcessHeap
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"RtlAllocateHeap() failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IniCacheAppendSection          ; -- Begin function IniCacheAppendSection
	.p2align	2
_IniCacheAppendSection:                 ; @IniCacheAppendSection
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_7
; %bb.2:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x23, _ProcessHeap@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ProcessHeap@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_RtlAllocateHeap
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w22, [x23]
	mov	x0, x21
	bl	_wcslen
	lsl	w8, w0, #2
	add	w2, w8, #4
	mov	x0, x22
	mov	w1, #0
	bl	_RtlAllocateHeap
	str	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.5:
	mov	x1, x21
	bl	_wcscpy
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_12
; %bb.6:
	ldr	x8, [x20]
	str	x19, [x8, #8]
	str	x8, [x19]
	b	LBB0_13
LBB0_7:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
LBB0_8:
	mov	x19, #0
LBB0_9:
	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
LBB0_10:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
	b	LBB0_9
LBB0_11:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
	ldr	w0, [x23]
	mov	w1, #0
	mov	x2, x19
	bl	_RtlFreeHeap
	b	LBB0_8
LBB0_12:
	str	x19, [x20, #8]
LBB0_13:
	str	x19, [x20]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid parameter\n"

	.comm	_ProcessHeap,4,2                ; @ProcessHeap
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"RtlAllocateHeap() failed\n"

.subsections_via_symbols
