	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_GetItemRect
_LISTBOX_GetItemRect:                   ## @LISTBOX_GetItemRect
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	cmpq	%r15, (%r14)
	jbe	LBB0_2
LBB0_3:
	movq	8(%r14), %rcx
	movq	16(%r14), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SetRect
	movl	24(%r14), %eax
	movq	_LBS_MULTICOLUMN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.4:
	movq	32(%r14), %rdi
	movq	%r15, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rdi
	movq	%rdx, %rcx
	movq	%rax, %rsi
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	callq	_SetRectEmpty
	movq	_ERROR_INVALID_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	movq	_LB_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_46
LBB0_11:
	movq	_LBS_OWNERDRAWVARIABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_41
## %bb.12:
	movq	64(%r14), %rax
	addq	%rax, 8(%rbx)
	cmpq	%r15, (%r14)
	jbe	LBB0_42
## %bb.13:
	movq	40(%r14), %rax
	cmpq	%r15, %rax
	jbe	LBB0_14
## %bb.27:
	leaq	-1(%rax), %rcx
	cmpq	%r15, %rcx
	jb	LBB0_40
## %bb.28:
	movq	%r15, %rdx
	negq	%rdx
	movl	$1, %r10d
	subq	%rax, %r10
	cmpq	%r10, %rdx
	cmovaq	%rdx, %r10
	movq	72(%r14), %rdx
	movq	16(%rbx), %rdi
	addq	%rax, %r10
	cmpq	$4, %r10
	jb	LBB0_38
## %bb.29:
	movq	%r10, %r8
	andq	$-4, %r8
	movq	%rdi, %xmm0
	leaq	-4(%r8), %rsi
	movq	%rsi, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.31:
	movabsq	$9223372036854775804, %rdi      ## imm = 0x7FFFFFFFFFFFFFFC
	orq	$2, %rdi
	andq	%r9, %rdi
	leaq	(%rdx,%rax,8), %rsi
	addq	$-16, %rsi
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rsi,%rax,8), %xmm2
	movdqu	-32(%rsi,%rax,8), %xmm3
	movdqu	-16(%rsi,%rax,8), %xmm4
	paddq	%xmm2, %xmm4
	movdqu	(%rsi,%rax,8), %xmm2
	paddq	%xmm3, %xmm2
	pshufd	$78, %xmm2, %xmm2               ## xmm2 = xmm2[2,3,0,1]
	psubq	%xmm2, %xmm0
	pshufd	$78, %xmm4, %xmm2               ## xmm2 = xmm4[2,3,0,1]
	psubq	%xmm2, %xmm1
	addq	$-8, %rax
	addq	$-2, %rdi
	jne	LBB0_32
## %bb.33:
	negq	%rax
	jmp	LBB0_34
LBB0_5:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%edx, %ecx
	movl	%eax, %esi
LBB0_7:
	movq	40(%r14), %rax
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_8
## %bb.9:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_10
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_10:
	subq	%rax, %rsi
	movq	48(%r14), %rax
	imulq	%rax, %rsi
	addq	(%rbx), %rsi
	movq	%rsi, (%rbx)
	addq	%rax, %rsi
	movq	%rsi, 8(%rbx)
	movq	56(%r14), %rax
	imulq	%rax, %rcx
	addq	16(%rbx), %rcx
	movq	%rcx, 16(%rbx)
	addq	%rax, %rcx
	movq	%rcx, 24(%rbx)
LBB0_42:
	movq	%rbx, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_TRACE
	movq	(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	8(%r14), %rcx
	jge	LBB0_46
## %bb.43:
	cmpq	$0, 8(%rbx)
	jle	LBB0_46
## %bb.44:
	movq	16(%rbx), %rcx
	cmpq	16(%r14), %rcx
	jge	LBB0_46
## %bb.45:
	xorl	%eax, %eax
	cmpq	$0, 24(%rbx)
	setg	%al
LBB0_46:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	movq	%r15, %rax
	subq	40(%r14), %rax
	movq	56(%r14), %rcx
	imulq	%rcx, %rax
	addq	16(%rbx), %rax
	movq	%rax, 16(%rbx)
	addq	%rcx, %rax
	movq	%rax, 24(%rbx)
	movq	64(%r14), %rax
	addq	%rax, 8(%rbx)
	jmp	LBB0_42
LBB0_14:
	jae	LBB0_40
## %bb.15:
	movq	72(%r14), %rcx
	movq	16(%rbx), %rdx
	movq	%r15, %r9
	subq	%rax, %r9
	cmpq	$4, %r9
	jb	LBB0_25
## %bb.16:
	movq	%r9, %r8
	andq	$-4, %r8
	movq	%rdx, %xmm0
	leaq	-4(%r8), %rdx
	movq	%rdx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r10d
	andl	$3, %r10d
	cmpq	$12, %rdx
	jae	LBB0_18
## %bb.17:
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	jmp	LBB0_20
LBB0_18:
	andq	$-4, %rdi
	leaq	(%rcx,%rax,8), %rdx
	addq	$112, %rdx
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-112(%rdx,%rsi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	-96(%rdx,%rsi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	-80(%rdx,%rsi,8), %xmm1
	movdqu	-64(%rdx,%rsi,8), %xmm3
	movdqu	-48(%rdx,%rsi,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	-32(%rdx,%rsi,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	-16(%rdx,%rsi,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	(%rdx,%rsi,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rsi
	addq	$-4, %rdi
	jne	LBB0_19
LBB0_20:
	testq	%r10, %r10
	je	LBB0_23
## %bb.21:
	addq	%rax, %rsi
	leaq	(%rcx,%rsi,8), %rdx
	addq	$16, %rdx
	shlq	$5, %r10
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rdx,%rsi), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rdx,%rsi), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_22
LBB0_23:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	cmpq	%r8, %r9
	je	LBB0_26
## %bb.24:
	addq	%r8, %rax
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rcx,%rax,8), %rdx
	incq	%rax
	cmpq	%rax, %r15
	jne	LBB0_25
LBB0_26:
	movq	%rdx, 16(%rbx)
	jmp	LBB0_40
LBB0_30:
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
LBB0_34:
	testb	$1, %r9b
	je	LBB0_36
## %bb.35:
	movq	%rcx, %rsi
	subq	%rax, %rsi
	movdqu	-24(%rdx,%rsi,8), %xmm2
	movdqu	-8(%rdx,%rsi,8), %xmm3
	pshufd	$78, %xmm3, %xmm3               ## xmm3 = xmm3[2,3,0,1]
	psubq	%xmm3, %xmm0
	pshufd	$78, %xmm2, %xmm2               ## xmm2 = xmm2[2,3,0,1]
	psubq	%xmm2, %xmm1
LBB0_36:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdi
	cmpq	%r8, %r10
	je	LBB0_39
## %bb.37:
	subq	%r8, %rcx
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	subq	(%rdx,%rcx,8), %rdi
	decq	%rcx
	cmpq	%r15, %rcx
	jae	LBB0_38
LBB0_39:
	movq	%rdi, 16(%rbx)
LBB0_40:
	movq	72(%r14), %rax
	movq	(%rax,%r15,8), %rax
	addq	16(%rbx), %rax
	movq	%rax, 24(%rbx)
	jmp	LBB0_42
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_INVALID_INDEX,4,2        ## @ERROR_INVALID_INDEX
	.comm	_LB_ERR,4,2                     ## @LB_ERR
	.comm	_LBS_MULTICOLUMN,4,2            ## @LBS_MULTICOLUMN
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ## @LBS_OWNERDRAWVARIABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"item %d, rect %s\n"

	.no_dead_strip	_LISTBOX_GetItemRect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_GetItemRect
_LISTBOX_GetItemRect:                   ; @LISTBOX_GetItemRect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, x21
	b.ls	LBB0_9
LBB0_2:
	ldp	x3, x4, [x20, #8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_SetRect
	ldr	w8, [x20, #24]
Lloh0:
	adrp	x9, _LBS_MULTICOLUMN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LBS_MULTICOLUMN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.3:
	ldp	x8, x9, [x20, #32]
	udiv	x10, x21, x8
	udiv	x9, x9, x8
	sub	x9, x10, x9
	ldr	x11, [x19]
	ldp	x12, x13, [x20, #48]
	madd	x9, x9, x12, x11
	add	x11, x9, x12
	stp	x9, x11, [x19]
	msub	x8, x10, x8, x21
	ldr	x9, [x19, #16]
	madd	x8, x13, x8, x9
	add	x9, x8, x13
	stp	x8, x9, [x19, #16]
LBB0_4:
	mov	x0, x19
	bl	_wine_dbgstr_rect
	mov	x2, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_TRACE
	ldr	x8, [x19]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.5:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.7:
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w0, gt
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_SetRectEmpty
Lloh5:
	adrp	x8, _ERROR_INVALID_INDEX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR_INVALID_INDEX@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_SetLastError
Lloh8:
	adrp	x8, _LB_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LB_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh11:
	adrp	x9, _LBS_OWNERDRAWVARIABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LBS_OWNERDRAWVARIABLE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.12:
	ldr	x8, [x20, #64]
	ldr	x9, [x19, #8]
	add	x8, x9, x8
	str	x8, [x19, #8]
	ldr	x8, [x20]
	cmp	x8, x21
	b.ls	LBB0_4
; %bb.13:
	ldr	x13, [x20, #40]
	cmp	x13, x21
	b.ls	LBB0_22
; %bb.14:
	sub	x8, x13, #1
	cmp	x8, x21
	b.lo	LBB0_31
; %bb.15:
	ldr	x9, [x20, #72]
	ldr	x12, [x19, #16]
	neg	x10, x21
	mov	w11, #1
	sub	x11, x11, x13
	cmp	x10, x11
	csneg	x10, x11, x21, ls
	add	x10, x10, x13
	cmp	x10, #8
	b.lo	LBB0_19
; %bb.16:
	and	x11, x10, #0xfffffffffffffff8
	sub	x8, x8, x11
	movi.2d	v0, #0000000000000000
	mov.d	v0[0], x12
	movi.2d	v1, #0000000000000000
	add	x12, x9, x13, lsl #3
	sub	x12, x12, #32
	mov	x13, x11
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q4, [x12]
	ext.16b	v4, v4, v4, #8
	ext.16b	v5, v5, v5, #8
	ldp	q7, q6, [x12, #-32]
	ext.16b	v6, v6, v6, #8
	ext.16b	v7, v7, v7, #8
	sub.2d	v0, v0, v4
	sub.2d	v1, v1, v5
	sub.2d	v2, v2, v6
	sub.2d	v3, v3, v7
	sub	x12, x12, #64
	sub	x13, x13, #8
	cbnz	x13, LBB0_17
; %bb.18:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x12, d0
	cmp	x10, x11
	b.eq	LBB0_20
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x8, lsl #3]
	sub	x12, x12, x10
	sub	x8, x8, #1
	cmp	x8, x21
	b.hs	LBB0_19
LBB0_20:
	str	x12, [x19, #16]
	b	LBB0_31
LBB0_21:
	ldr	x8, [x20, #40]
	sub	x8, x21, x8
	ldp	x9, x10, [x20, #56]
	ldp	x12, x11, [x19, #8]
	madd	x8, x8, x9, x11
	add	x9, x8, x9
	stp	x8, x9, [x19, #16]
	add	x9, x12, x10
	str	x9, [x19, #8]
	b	LBB0_4
LBB0_22:
	b.hs	LBB0_31
; %bb.23:
	ldr	x8, [x20, #72]
	ldr	x11, [x19, #16]
	sub	x10, x21, x13
	cmp	x10, #8
	b.hs	LBB0_25
; %bb.24:
	mov	x9, x13
	b	LBB0_28
LBB0_25:
	and	x12, x10, #0xfffffffffffffff8
	add	x9, x13, x12
	movi.2d	v0, #0000000000000000
	mov.d	v0[0], x11
	movi.2d	v1, #0000000000000000
	add	x11, x8, x13, lsl #3
	add	x11, x11, #32
	mov	x13, x12
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	add.2d	v0, v0, v4
	add.2d	v1, v1, v5
	add.2d	v2, v2, v6
	add.2d	v3, v3, v7
	subs	x13, x13, #8
	b.ne	LBB0_26
; %bb.27:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x11, d0
	cmp	x10, x12
	b.eq	LBB0_30
LBB0_28:
	sub	x10, x21, x9
	add	x8, x8, x9, lsl #3
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8], #8
	add	x11, x11, x9
	subs	x10, x10, #1
	b.ne	LBB0_29
LBB0_30:
	str	x11, [x19, #16]
LBB0_31:
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #72]
	ldr	x9, [x9, x21, lsl #3]
	add	x8, x9, x8
	str	x8, [x19, #24]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_INVALID_INDEX,4,2        ; @ERROR_INVALID_INDEX
	.comm	_LB_ERR,4,2                     ; @LB_ERR
	.comm	_LBS_MULTICOLUMN,4,2            ; @LBS_MULTICOLUMN
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ; @LBS_OWNERDRAWVARIABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"item %d, rect %s\n"

	.no_dead_strip	_LISTBOX_GetItemRect
.subsections_via_symbols
