	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AddToInputListView
_AddToInputListView:                    ## @AddToInputListView
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	_LVSIL_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ListView_GetImageList
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movl	24(%r13), %edi
	movq	_INPUT_LIST_NODE_FLAG_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%r13), %esi
	callq	_CreateLayoutIcon
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_ImageList_AddIcon
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_DestroyIcon
LBB0_3:
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_ZeroMemory
	movq	_LVIF_TEXT@GOTPCREL(%rip), %rax
	movq	_LVIF_PARAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_LVIF_IMAGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -72(%rbp)
	movq	16(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%r14d, %edi
	callq	_ListView_GetItemCount
	incq	%rax
	movq	%rax, -56(%rbp)
	movq	%r13, -64(%rbp)
	movl	%r15d, -68(%rbp)
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_ListView_InsertItem
	movq	8(%r13), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_ListView_SetItemText
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LVSIL_SMALL,4,2                ## @LVSIL_SMALL
	.comm	_INPUT_LIST_NODE_FLAG_DEFAULT,4,2 ## @INPUT_LIST_NODE_FLAG_DEFAULT
	.comm	_LVIF_TEXT,4,2                  ## @LVIF_TEXT
	.comm	_LVIF_PARAM,4,2                 ## @LVIF_PARAM
	.comm	_LVIF_IMAGE,4,2                 ## @LVIF_IMAGE
	.no_dead_strip	_AddToInputListView
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AddToInputListView
_AddToInputListView:                    ; @AddToInputListView
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _LVSIL_SMALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LVSIL_SMALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ListView_GetImageList
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20, #24]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _INPUT_LIST_NODE_FLAG_DEFAULT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INPUT_LIST_NODE_FLAG_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_CreateLayoutIcon
	cbz	x0, LBB0_3
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_ImageList_AddIcon
	mov	x21, x0
	mov	x0, x22
	bl	_DestroyIcon
	b	LBB0_4
LBB0_3:
	mov	w21, #-1
LBB0_4:
	mov	x0, sp
	mov	w1, #32
	bl	_ZeroMemory
Lloh6:
	adrp	x8, _LVIF_TEXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LVIF_TEXT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _LVIF_PARAM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LVIF_PARAM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _LVIF_IMAGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LVIF_IMAGE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp]
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	x0, x19
	bl	_ListView_GetItemCount
	add	x8, x0, #1
	stp	x20, x8, [sp, #8]
	str	w21, [sp, #4]
	mov	x1, sp
	mov	x0, x19
	bl	_ListView_InsertItem
	mov	x1, x0
	ldr	x8, [x20, #8]
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_ListView_SetItemText
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LVSIL_SMALL,4,2                ; @LVSIL_SMALL
	.comm	_INPUT_LIST_NODE_FLAG_DEFAULT,4,2 ; @INPUT_LIST_NODE_FLAG_DEFAULT
	.comm	_LVIF_TEXT,4,2                  ; @LVIF_TEXT
	.comm	_LVIF_PARAM,4,2                 ; @LVIF_PARAM
	.comm	_LVIF_IMAGE,4,2                 ; @LVIF_IMAGE
	.no_dead_strip	_AddToInputListView
.subsections_via_symbols
