	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_item
_add_item:                              ## @add_item
	.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
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_get_item
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_HeapAlloc
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%r14d, %edi
	movl	%eax, %r14d
	movl	%edi, %ebx
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %edx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, %r14
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movl	%r15d, 28(%r13)
	movl	4(%r12), %eax
	movl	%eax, 24(%r13)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lstrcpyW
	movq	%r14, 16(%r13)
	movq	_CDCS_VISIBLE@GOTPCREL(%rip), %rax
	movq	_CDCS_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r13)
	movq	$0, 8(%r13)
	movq	%r13, %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_HeapFree
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_INVALIDARG,4,2               ## @E_INVALIDARG
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_CDCS_VISIBLE,4,2               ## @CDCS_VISIBLE
	.comm	_CDCS_ENABLED,4,2               ## @CDCS_ENABLED
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_add_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_item
_add_item:                              ; @add_item
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	mov	w2, #0
	mov	x3, #0
	bl	_get_item
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #32
	bl	_HeapAlloc
	mov	x21, x0
	bl	_GetProcessHeap
	mov	x24, x0
	mov	x0, x22
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w2, w8, #4
	mov	x0, x24
	mov	w1, #0
	bl	_HeapAlloc
	mov	x24, x0
	cbz	x21, LBB0_5
; %bb.3:
	cbz	x24, LBB0_5
; %bb.4:
	ldr	w8, [x20, #4]
	stp	w8, w23, [x21, #24]
	mov	x0, x24
	mov	x1, x22
	bl	_lstrcpyW
Lloh2:
	adrp	x8, _CDCS_VISIBLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CDCS_VISIBLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CDCS_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CDCS_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
	stp	xzr, x24, [x21, #8]
	add	x1, x21, #4
	mov	x0, x20
	bl	_list_add_tail
	str	x21, [x19]
Lloh8:
	adrp	x8, _S_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x24
	bl	_HeapFree
Lloh10:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_E_INVALIDARG,4,2               ; @E_INVALIDARG
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_CDCS_VISIBLE,4,2               ; @CDCS_VISIBLE
	.comm	_CDCS_ENABLED,4,2               ; @CDCS_ENABLED
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_add_item
.subsections_via_symbols
