	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_SelectItemRange
_LISTBOX_SelectItemRange:               ## @LISTBOX_SelectItemRange
	.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
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movq	_LBS_NOSEL@GOTPCREL(%rip), %rdi
	movq	_LB_ERR@GOTPCREL(%rip), %r15
	testl	%eax, (%rdi)
	je	LBB0_1
LBB0_13:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_LBS_MULTIPLESEL@GOTPCREL(%rip), %rdi
	testl	%eax, (%rdi)
	je	LBB0_13
## %bb.2:
	movl	4(%r14), %eax
	movq	_LB_OKAY@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	leal	-1(%rax), %edi
	cmpl	%edx, %eax
	movl	%edi, %r12d
	cmovgl	%edx, %r12d
	cmpl	$-1, %edx
	cmovel	%edi, %r12d
	xorl	%eax, %eax
	testl	%esi, %esi
	cmovgl	%esi, %eax
	cmpl	%eax, %r12d
	jl	LBB0_13
## %bb.4:
	incl	%r12d
	movl	%eax, %ebx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.9:
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	cmpq	$0, (%rax,%rbx,8)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rcx
	movq	%rcx, (%rax,%rbx,8)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_LISTBOX_InvalidateItemRect
	jmp	LBB0_12
LBB0_5:
	movq	_FALSE@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rcx
	movq	%rcx, (%rax,%rbx,8)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_LISTBOX_InvalidateItemRect
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_NOSEL,4,2                  ## @LBS_NOSEL
	.comm	_LB_ERR,4,2                     ## @LB_ERR
	.comm	_LBS_MULTIPLESEL,4,2            ## @LBS_MULTIPLESEL
	.comm	_LB_OKAY,4,2                    ## @LB_OKAY
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.no_dead_strip	_LISTBOX_SelectItemRange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_SelectItemRange
_LISTBOX_SelectItemRange:               ; @LISTBOX_SelectItemRange
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _LBS_NOSEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LBS_NOSEL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_1:
Lloh3:
	adrp	x21, _LB_ERR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LB_ERR@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x21]
	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
LBB0_3:
Lloh5:
	adrp	x9, _LBS_MULTIPLESEL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LBS_MULTIPLESEL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.4:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_6
; %bb.5:
	sub	w9, w8, #1
	cmp	w8, w2
	mov	w8, #-1
	ccmp	w2, w8, #4, gt
	csel	w8, w2, w9, ne
	cmp	w1, #0
	csel	w20, w1, wzr, gt
	cmp	w8, w20
	b.ge	LBB0_7
LBB0_6:
Lloh8:
	adrp	x21, _LB_OKAY@GOTPAGE
Lloh9:
	ldr	x21, [x21, _LB_OKAY@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	add	w22, w8, #1
	cbz	x3, LBB0_12
; %bb.8:
Lloh10:
	adrp	x23, _TRUE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
Lloh12:
	adrp	x21, _LB_OKAY@GOTPAGE
Lloh13:
	ldr	x21, [x21, _LB_OKAY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	cmp	x22, x20
	b.eq	LBB0_2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x20, lsl #3]
	cbnz	x9, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x23]
	str	x9, [x8, x20, lsl #3]
	mov	x0, x19
	mov	x1, x20
	bl	_LISTBOX_InvalidateItemRect
	b	LBB0_9
LBB0_12:
Lloh14:
	adrp	x21, _LB_OKAY@GOTPAGE
Lloh15:
	ldr	x21, [x21, _LB_OKAY@GOTPAGEOFF]
Lloh16:
	adrp	x23, _FALSE@GOTPAGE
Lloh17:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x20, x20, #1
	cmp	x22, x20
	b.eq	LBB0_2
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x20, lsl #3]
	cbz	x9, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x23]
	str	x9, [x8, x20, lsl #3]
	mov	x0, x19
	mov	x1, x20
	bl	_LISTBOX_InvalidateItemRect
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_NOSEL,4,2                  ; @LBS_NOSEL
	.comm	_LB_ERR,4,2                     ; @LB_ERR
	.comm	_LBS_MULTIPLESEL,4,2            ; @LBS_MULTIPLESEL
	.comm	_LB_OKAY,4,2                    ; @LB_OKAY
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.no_dead_strip	_LISTBOX_SelectItemRange
.subsections_via_symbols
