	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iterator_visibleitems
_iterator_visibleitems:                 ## @iterator_visibleitems
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-136(%rbp), %rsi
	movl	%edx, %edi
	callq	_GetClipBox
	movq	%rax, %r12
	movq	_NULLREGION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_iterator_empty
	jmp	LBB0_22
LBB0_2:
	leaq	-136(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_iterator_frameditems
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_SIMPLEREGION@GOTPCREL(%rip), %rax
	movq	_TRUE@GOTPCREL(%rip), %r13
	cmpq	(%rax), %r12
	je	LBB0_23
## %bb.5:
	movl	(%r15), %esi
	cmpl	$-1, %esi
	je	LBB0_8
## %bb.6:
	leaq	-72(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_LISTVIEW_GetItemBox
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_RectVisible
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	$-1, (%r15)
LBB0_8:
	leaq	-104(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_LISTVIEW_GetOrigin
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	cmpq	$0, 8(%r15)
	jne	LBB0_13
## %bb.9:
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	jge	LBB0_13
## %bb.10:
	movl	$50, %edi
	callq	_ranges_create
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_23
## %bb.11:
	movq	16(%r15), %rsi
	movq	24(%r15), %rdx
	movq	%rax, %rdi
	callq	_ranges_add
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movq	%r15, %rdi
	callq	_iterator_next
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movq	_LV_VIEW_DETAILS@GOTPCREL(%rip), %r12
	leaq	-72(%rbp), %r13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r15, %rdi
	callq	_iterator_next
	testq	%rax, %rax
	je	LBB0_21
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	leaq	-88(%rbp), %rdx
	callq	_LISTVIEW_GetItemOrigin
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-80(%rbp), %rax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%eax, %eax
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	-96(%rbp), %rax
	movq	-104(%rbp), %rcx
	addq	-88(%rbp), %rcx
	movq	%rax, -56(%rbp)
	movq	%rcx, -72(%rbp)
	addq	16(%rbx), %rax
	movq	%rax, -48(%rbp)
	addq	8(%rbx), %rcx
	movq	%rcx, -64(%rbp)
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_RectVisible
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%r15), %rdi
	movl	4(%r15), %esi
	callq	_ranges_delitem
	jmp	LBB0_20
LBB0_3:
	movq	_FALSE@GOTPCREL(%rip), %r13
	jmp	LBB0_23
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
LBB0_22:
	movq	_TRUE@GOTPCREL(%rip), %r13
LBB0_23:
	movl	(%r13), %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	8(%r15), %rdi
	callq	_ranges_destroy
	movq	$0, 8(%r15)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_NULLREGION,8,3                 ## @NULLREGION
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SIMPLEREGION,8,3               ## @SIMPLEREGION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"building visible range:\n"

	.comm	_LV_VIEW_DETAILS,8,3            ## @LV_VIEW_DETAILS
L_.str.1:                               ## @.str.1
	.asciz	"done\n"

	.no_dead_strip	_iterator_visibleitems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iterator_visibleitems
_iterator_visibleitems:                 ; @iterator_visibleitems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x1, sp
	mov	x0, x2
	bl	_GetClipBox
Lloh0:
	adrp	x8, _NULLREGION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NULLREGION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_iterator_empty
	b	LBB0_18
LBB0_2:
	mov	x22, x0
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_iterator_frameditems
	cbz	w0, LBB0_16
; %bb.3:
Lloh3:
	adrp	x8, _SIMPLEREGION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIMPLEREGION@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x22, x8
	b.eq	LBB0_18
; %bb.4:
	ldr	w1, [x19]
	cmn	w1, #1
	b.eq	LBB0_7
; %bb.5:
	add	x2, sp, #32
	mov	x0, x21
	bl	_LISTVIEW_GetItemBox
	add	x1, sp, #32
	mov	x0, x20
	bl	_RectVisible
	cbnz	w0, LBB0_7
; %bb.6:
	mov	w8, #-1
	str	w8, [x19]
LBB0_7:
	sub	x1, x29, #48
	mov	x0, x21
	bl	_LISTVIEW_GetOrigin
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_11
; %bb.8:
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.9:
	mov	w0, #50
	bl	_ranges_create
	str	x0, [x19, #8]
	cbz	x0, LBB0_18
; %bb.10:
	ldp	x1, x2, [x19, #16]
	bl	_ranges_add
	cbz	w0, LBB0_20
LBB0_11:
	mov	x0, x19
	bl	_iterator_next
	cbz	x0, LBB0_17
; %bb.12:
Lloh8:
	adrp	x22, _LV_VIEW_DETAILS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _LV_VIEW_DETAILS@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_iterator_next
	cbz	x0, LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #4]
	add	x2, sp, #64
	mov	x0, x21
	bl	_LISTVIEW_GetItemOrigin
	ldr	x8, [x22]
	ldp	x10, x9, [sp, #64]
	ldp	x11, x12, [x21]
	cmp	x11, x8
	csel	x8, xzr, x9, eq
	ldp	x11, x9, [x29, #-48]
	ldr	x13, [x21, #16]
	add	x8, x8, x9
	add	x9, x13, x8
	stp	x8, x9, [sp, #48]
	add	x8, x11, x10
	add	x9, x12, x8
	stp	x8, x9, [sp, #32]
	add	x1, sp, #32
	mov	x0, x20
	bl	_RectVisible
	cbnz	w0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #4]
	bl	_ranges_delitem
	b	LBB0_13
LBB0_16:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
LBB0_18:
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_20:
	ldr	x0, [x19, #8]
	bl	_ranges_destroy
	str	xzr, [x19, #8]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NULLREGION,8,3                 ; @NULLREGION
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SIMPLEREGION,8,3               ; @SIMPLEREGION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"building visible range:\n"

	.comm	_LV_VIEW_DETAILS,8,3            ; @LV_VIEW_DETAILS
l_.str.1:                               ; @.str.1
	.asciz	"done\n"

	.no_dead_strip	_iterator_visibleitems
.subsections_via_symbols
