	.file	"extr_listbox.c_LISTBOX_GetSelItems.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	LISTBOX_GetSelItems, @function
LISTBOX_GetSelItems:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	mov	r8, QWORD PTR LB_ERR[rip]
	test	DWORD PTR LBS_MULTIPLESEL[rip], eax
	je	.L1
	cmp	QWORD PTR 8[rdi], 0
	jle	.L9
	test	rsi, rsi
	jle	.L9
	mov	rcx, QWORD PTR 16[rdi]
	xor	r8d, r8d
	xor	eax, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	r8, rsi
	jge	.L1
.L7:
	cmp	QWORD PTR [rcx+rax*8], 0
	je	.L6
	mov	QWORD PTR [rdx+r8*8], rax
	add	r8, 1
.L6:
	add	rax, 1
	cmp	QWORD PTR 8[rdi], rax
	jg	.L19
.L1:
	mov	rax, r8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	xor	r8d, r8d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	LISTBOX_GetSelItems, .-LISTBOX_GetSelItems
	.comm	LB_ERR,8,8
	.comm	LBS_MULTIPLESEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_listbox.c_LISTBOX_GetSelItems.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	LISTBOX_GetSelItems, %function
LISTBOX_GetSelItems:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r4, r5, lr}
	ldr	r3, [r3]
	mov	r5, r0
	ldr	r0, [r0]
	tst	r0, r3
	beq	.L2
	ldr	r4, [r5, #4]
	cmp	r4, #0
	cmpgt	r1, #0
	movgt	r3, #1
	movle	r3, #0
	ble	.L13
	mov	r0, #0
	mov	r3, r0
	ldr	ip, [r5, #8]
	sub	ip, ip, #4
.L6:
	ldr	lr, [ip, #4]!
	cmp	lr, #0
	strne	r3, [r2, r0, lsl #2]
	ldrne	r4, [r5, #4]
	add	r3, r3, #1
	addne	r0, r0, #1
	cmp	r4, r3
	movle	lr, #0
	movgt	lr, #1
	cmp	r0, r1
	movge	lr, #0
	cmp	lr, #0
	bne	.L6
	pop	{r4, r5, pc}
.L2:
	ldr	r3, .L14+4
	ldr	r0, [r3]
	pop	{r4, r5, pc}
.L13:
	mov	r0, r3
	pop	{r4, r5, pc}
.L15:
	.align	2
.L14:
	.word	LBS_MULTIPLESEL
	.word	LB_ERR
	.size	LISTBOX_GetSelItems, .-LISTBOX_GetSelItems
	.comm	LB_ERR,4,4
	.comm	LBS_MULTIPLESEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
