	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_InsertString
_LISTBOX_InsertString:                  ## @LISTBOX_InsertString
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_HAS_STRINGS
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testq	%rbx, %rbx
	leaq	_LISTBOX_InsertString.empty_stringW(%rip), %rax
	cmoveq	%rax, %rbx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_strlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %edx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcpyW
	cmpl	$-1, %r14d
	jne	LBB0_7
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
	cmpl	$-1, %r14d
	jne	LBB0_7
LBB0_6:
	movl	(%r15), %r14d
LBB0_7:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_LISTBOX_InsertItem
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_HeapFree
	movl	%ebx, %r14d
	jmp	LBB0_13
LBB0_9:
	movl	4(%r15), %ebx
	movq	%r15, %rdi
	callq	_HAS_STRINGS
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	callq	_debugstr_w
	movq	%rax, %rcx
	jmp	LBB0_12
LBB0_3:
	movq	_LBN_ERRSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_SEND_NOTIFICATION
	movq	_LB_ERRSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.1(%rip), %rcx
LBB0_12:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_TRACE
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @LISTBOX_InsertString.empty_stringW
_LISTBOX_InsertString.empty_stringW:
	.space	4

	.comm	_LBN_ERRSPACE,4,2               ## @LBN_ERRSPACE
	.comm	_LB_ERRSPACE,4,2                ## @LB_ERRSPACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%p]: added item %d %s\n"

L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_LISTBOX_InsertString
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_InsertString
_LISTBOX_InsertString:                  ; @LISTBOX_InsertString
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_HAS_STRINGS
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _LISTBOX_InsertString.empty_stringW@PAGE
Lloh1:
	add	x8, x8, _LISTBOX_InsertString.empty_stringW@PAGEOFF
	cmp	x21, #0
	csel	x21, x8, x21, eq
	bl	_GetProcessHeap
	mov	x22, x0
	mov	x0, x21
	bl	_strlenW
	lsl	w8, w0, #2
	add	w2, w8, #4
	mov	x0, x22
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x22, x0
	mov	x1, x21
	bl	_strcpyW
	cmn	w19, #1
	b.ne	LBB0_5
	b	LBB0_4
LBB0_3:
	mov	x22, #0
	cmn	w19, #1
	b.ne	LBB0_5
LBB0_4:
	ldr	w19, [x20]
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_LISTBOX_InsertItem
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapFree
	mov	x19, x21
	b	LBB0_12
LBB0_7:
	ldr	w21, [x20, #4]
	mov	x0, x20
	bl	_HAS_STRINGS
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x22
	bl	_debugstr_w
	mov	x3, x0
	b	LBB0_11
LBB0_9:
Lloh2:
	adrp	x8, _LBN_ERRSPACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LBN_ERRSPACE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SEND_NOTIFICATION
Lloh5:
	adrp	x8, _LB_ERRSPACE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LB_ERRSPACE@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	b	LBB0_12
LBB0_10:
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_11:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_TRACE
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @LISTBOX_InsertString.empty_stringW
_LISTBOX_InsertString.empty_stringW:
	.space	4

	.comm	_LBN_ERRSPACE,4,2               ; @LBN_ERRSPACE
	.comm	_LB_ERRSPACE,4,2                ; @LB_ERRSPACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%p]: added item %d %s\n"

l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_LISTBOX_InsertString
.subsections_via_symbols
