	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_DeleteItem
_LISTBOX_DeleteItem:                    ## @LISTBOX_DeleteItem
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	%rsi, %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %r12
	movl	(%rax,%rcx), %r14d
	cmpl	$0, 8(%rdi)
	jne	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	movq	_LB_RESETCONTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
LBB0_2:
	movq	%rbx, %rdi
	callq	_IS_OWNERDRAW
	orq	%r12, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edi
	movq	_GWLP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongPtrW
	movq	_ODT_LISTBOX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	movl	%eax, -44(%rbp)
	movq	%r15, -64(%rbp)
	movl	4(%rbx), %ecx
	movl	%ecx, -48(%rbp)
	movq	%r12, -56(%rbp)
	movl	(%rbx), %edi
	movq	_WM_DELETEITEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-64(%rbp), %rcx
	movl	%eax, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageW
LBB0_4:
	movq	%rbx, %rdi
	callq	_HAS_STRINGS
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_HeapFree
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LB_RESETCONTENT,4,2            ## @LB_RESETCONTENT
	.comm	_GWLP_ID,4,2                    ## @GWLP_ID
	.comm	_ODT_LISTBOX,4,2                ## @ODT_LISTBOX
	.comm	_WM_DELETEITEM,4,2              ## @WM_DELETEITEM
	.no_dead_strip	_LISTBOX_DeleteItem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_DeleteItem
_LISTBOX_DeleteItem:                    ; @LISTBOX_DeleteItem
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	add	x8, x8, x1, lsl #4
	ldr	x22, [x8, #8]
	ldr	w19, [x8]
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x8, _LB_RESETCONTENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LB_RESETCONTENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
LBB0_2:
	mov	x0, x20
	bl	_IS_OWNERDRAW
	orr	x8, x0, x22
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x8, _GWLP_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GWLP_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetWindowLongPtrW
	mov	x2, x0
Lloh6:
	adrp	x8, _ODT_LISTBOX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ODT_LISTBOX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w2, w8, [sp, #20]
	ldp	w0, w8, [x20]
	str	w8, [sp, #16]
	stp	x21, x22, [sp]
Lloh9:
	adrp	x8, _WM_DELETEITEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WM_DELETEITEM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x3, sp
	bl	_SendMessageW
LBB0_4:
	mov	x0, x20
	bl	_HAS_STRINGS
	cbz	x0, LBB0_6
; %bb.5:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x19
	bl	_HeapFree
LBB0_6:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LB_RESETCONTENT,4,2            ; @LB_RESETCONTENT
	.comm	_GWLP_ID,4,2                    ; @GWLP_ID
	.comm	_ODT_LISTBOX,4,2                ; @ODT_LISTBOX
	.comm	_WM_DELETEITEM,4,2              ; @WM_DELETEITEM
	.no_dead_strip	_LISTBOX_DeleteItem
.subsections_via_symbols
