	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetSelectedListViewItem
_GetSelectedListViewItem:               ## @GetSelectedListViewItem
	.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
	movl	%edi, %r15d
	movq	_LVM_GETITEMCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessage
	movq	%rax, %r12
	movq	_LB_ERR@GOTPCREL(%rip), %rax
	movq	$-1, %rbx
	cmpq	(%rax), %r12
	je	LBB0_6
## %bb.1:
	testq	%r12, %r12
	jle	LBB0_6
## %bb.2:
	movq	_LVIS_SELECTED@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	xorl	%ebx, %ebx
	movq	_LVM_GETITEMSTATE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	%r15d, %edi
	movq	%rbx, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessage
	movq	(%r13), %rcx
	cmpq	%rcx, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_3
## %bb.5:
	movq	$-1, %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LVM_GETITEMCOUNT,4,2           ## @LVM_GETITEMCOUNT
	.comm	_LB_ERR,8,3                     ## @LB_ERR
	.comm	_LVM_GETITEMSTATE,4,2           ## @LVM_GETITEMSTATE
	.comm	_LVIS_SELECTED,8,3              ## @LVIS_SELECTED
	.no_dead_strip	_GetSelectedListViewItem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetSelectedListViewItem
_GetSelectedListViewItem:               ; @GetSelectedListViewItem
	.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, x0
Lloh0:
	adrp	x8, _LVM_GETITEMCOUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LVM_GETITEMCOUNT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #0
	bl	_SendMessage
Lloh3:
	adrp	x8, _LB_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LB_ERR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	ccmp	x0, #1, #8, ne
	b.lt	LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x20, #0
Lloh6:
	adrp	x22, _LVIS_SELECTED@GOTPAGE
Lloh7:
	ldr	x22, [x22, _LVIS_SELECTED@GOTPAGEOFF]
	ldr	x3, [x22]
Lloh8:
	adrp	x23, _LVM_GETITEMSTATE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _LVM_GETITEMSTATE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_SendMessage
	ldr	x3, [x22]
	cmp	x0, x3
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x21, x20
	b.ne	LBB0_2
LBB0_4:
	mov	x20, #-1
LBB0_5:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LVM_GETITEMCOUNT,4,2           ; @LVM_GETITEMCOUNT
	.comm	_LB_ERR,8,3                     ; @LB_ERR
	.comm	_LVM_GETITEMSTATE,4,2           ; @LVM_GETITEMSTATE
	.comm	_LVIS_SELECTED,8,3              ; @LVIS_SELECTED
	.no_dead_strip	_GetSelectedListViewItem
.subsections_via_symbols
