	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IniCacheAddSection
_IniCacheAddSection:                    ## @IniCacheAddSection
	.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:
	movl	%edx, %r12d
	testl	%edx, %edx
	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), %edi
	leal	8(,%r12,8), %edx
	xorl	%esi, %esi
	callq	_RtlAllocateHeap
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_24
## %bb.8:
	testl	%r12d, %r12d
	jle	LBB0_19
## %bb.9:
	movl	%r12d, %ecx
	cmpl	$4, %r12d
	jae	LBB0_11
## %bb.10:
	xorl	%edx, %edx
	jmp	LBB0_18
LBB0_3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_DPRINT
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_24:
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINT
	movl	(%r13), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_RtlFreeHeap
	jmp	LBB0_23
LBB0_11:
	movl	%ecx, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.13:
	movq	%r8, %rsi
	andq	$-2, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	pmovsxdq	(%rbx,%rdi,4), %xmm0
	pmovsxdq	8(%rbx,%rdi,4), %xmm1
	movdqu	%xmm0, (%rax,%rdi,8)
	movdqu	%xmm1, 16(%rax,%rdi,8)
	pmovsxdq	16(%rbx,%rdi,4), %xmm0
	pmovsxdq	24(%rbx,%rdi,4), %xmm1
	movdqu	%xmm0, 32(%rax,%rdi,8)
	movdqu	%xmm1, 48(%rax,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_14
## %bb.15:
	testb	$1, %r8b
	je	LBB0_17
LBB0_16:
	pmovsxdq	(%rbx,%rdi,4), %xmm0
	pmovsxdq	8(%rbx,%rdi,4), %xmm1
	movdqu	%xmm0, (%rax,%rdi,8)
	movdqu	%xmm1, 16(%rax,%rdi,8)
LBB0_17:
	cmpq	%rcx, %rdx
	je	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx,%rdx,4), %rsi
	movq	%rsi, (%rax,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_18
LBB0_19:
	movslq	%r12d, %rcx
	movq	$0, (%rax,%rcx,8)
	cmpq	$0, 8(%r15)
	je	LBB0_20
## %bb.21:
	movq	(%r15), %rax
	movq	%r14, 8(%rax)
	movq	%rax, (%r14)
	jmp	LBB0_22
LBB0_20:
	movq	%r14, 8(%r15)
LBB0_22:
	movq	%r14, (%r15)
	movq	%r14, %rbx
LBB0_23:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_16
	jmp	LBB0_17
	.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"

	.no_dead_strip	_IniCacheAddSection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IniCacheAddSection
_IniCacheAddSection:                    ; @IniCacheAddSection
	.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_8
; %bb.1:
	mov	x22, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x21, x2
	cbz	w2, LBB0_8
; %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_9
; %bb.4:
	ldr	w0, [x23]
	lsl	w8, w21, #3
	add	w2, w8, #8
	mov	w1, #0
	bl	_RtlAllocateHeap
	str	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.5:
	cmp	w21, #1
	b.lt	LBB0_16
; %bb.6:
	mov	w8, w21
	cmp	w21, #8
	b.hs	LBB0_11
; %bb.7:
	mov	x9, #0
	b	LBB0_14
LBB0_8:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
	mov	x19, #0
	b	LBB0_20
LBB0_9:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
	b	LBB0_20
LBB0_10:
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
	mov	x19, #0
	b	LBB0_20
LBB0_11:
	and	x9, x8, #0xfffffff8
	add	x10, x0, #32
	add	x11, x22, #16
	mov	x12, x9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	d0, d1, [x11, #-16]
	ldp	d2, d3, [x11], #32
	sshll.2d	v0, v0, #0
	sshll.2d	v1, v1, #0
	sshll.2d	v2, v2, #0
	sshll.2d	v3, v3, #0
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #8
	b.ne	LBB0_12
; %bb.13:
	cmp	x9, x8
	b.eq	LBB0_16
LBB0_14:
	add	x10, x0, x9, lsl #3
	sub	x8, x8, x9
	add	x9, x22, x9, lsl #2
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x11, [x9], #4
	str	x11, [x10], #8
	subs	x8, x8, #1
	b.ne	LBB0_15
LBB0_16:
	str	xzr, [x0, w21, sxtw #3]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x20]
	str	x19, [x8, #8]
	str	x8, [x19]
	b	LBB0_19
LBB0_18:
	str	x19, [x20, #8]
LBB0_19:
	str	x19, [x20]
LBB0_20:
	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
	.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"

	.no_dead_strip	_IniCacheAddSection
.subsections_via_symbols
