	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TRACKBAR_CalcSelection
_TRACKBAR_CalcSelection:                ## @TRACKBAR_CalcSelection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	52(%rdi), %r14
	movl	(%rdi), %esi
	subl	4(%rdi), %esi
	jle	LBB0_1
## %bb.2:
	movq	_TBS_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_4
## %bb.3:
	movl	36(%rdi), %eax
	subl	40(%rdi), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	movl	%edx, %ebx
	sarl	%ebx
	movl	20(%rdi), %ecx
	movl	24(%rdi), %eax
	subl	%eax, %ecx
	andl	$-2, %edx
	subl	%edx, %ecx
	addl	%eax, %ebx
	movl	12(%rdi), %eax
	imull	%ecx, %eax
	cltd
	idivl	%esi
	addl	%ebx, %eax
	movl	%eax, 52(%rdi)
	imull	16(%rdi), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	addl	%ebx, %eax
	movl	%eax, 56(%rdi)
	movl	28(%rdi), %eax
	addl	$3, %eax
	movl	%eax, 60(%rdi)
	movl	32(%rdi), %eax
	addl	$-3, %eax
	movl	%eax, 64(%rdi)
	jmp	LBB0_5
LBB0_1:
	movq	%r14, %rdi
	callq	_SetRectEmpty
	jmp	LBB0_5
LBB0_4:
	movl	44(%rdi), %eax
	subl	48(%rdi), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	movl	%edx, %ebx
	sarl	%ebx
	movl	32(%rdi), %ecx
	movl	28(%rdi), %eax
	subl	%eax, %ecx
	andl	$-2, %edx
	subl	%edx, %ecx
	addl	%eax, %ebx
	movl	12(%rdi), %eax
	imull	%ecx, %eax
	cltd
	idivl	%esi
	addl	%ebx, %eax
	movl	%eax, 60(%rdi)
	imull	16(%rdi), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	addl	%ebx, %eax
	movl	%eax, 64(%rdi)
	movl	20(%rdi), %eax
	movl	24(%rdi), %ecx
	addl	$3, %ecx
	movl	%ecx, 52(%rdi)
	addl	$-3, %eax
	movl	%eax, 56(%rdi)
LBB0_5:
	movq	%r14, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_TRACE                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TBS_VERT,4,2                   ## @TBS_VERT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"selection[%s]\n"

	.no_dead_strip	_TRACKBAR_CalcSelection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function TRACKBAR_CalcSelection
lCPI0_0:
	.long	3                               ; 0x3
	.long	4294967293                      ; 0xfffffffd
lCPI0_1:
	.long	4294967293                      ; 0xfffffffd
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_TRACKBAR_CalcSelection:                ; @TRACKBAR_CalcSelection
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x19, x0, #52
	ldp	w8, w9, [x0]
	sub	w8, w8, w9
	cmp	w8, #0
	b.le	LBB0_3
; %bb.1:
	ldr	w9, [x0, #8]
Lloh0:
	adrp	x10, _TBS_VERT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TBS_VERT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldp	w9, w10, [x0, #36]
	sub	w9, w9, w10
	cmp	w9, #0
	cinc	w9, w9, lt
	ldp	w10, w11, [x0, #20]
	and	w12, w9, #0xfffffffe
	sub	w10, w10, w11
	sub	w10, w10, w12
	add	w9, w11, w9, asr #1
	ldp	w11, w12, [x0, #12]
	mul	w11, w10, w11
	sdiv	w11, w11, w8
	add	w11, w11, w9
	mul	w10, w12, w10
	sdiv	w8, w10, w8
	add	w8, w8, w9
	stp	w11, w8, [x0, #52]
	ldur	d0, [x0, #28]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	stur	d0, [x0, #60]
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_SetRectEmpty
	b	LBB0_5
LBB0_4:
	ldp	w9, w10, [x0, #44]
	sub	w9, w9, w10
	cmp	w9, #0
	cinc	w9, w9, lt
	ldp	w11, w10, [x0, #28]
	and	w12, w9, #0xfffffffe
	sub	w10, w10, w11
	sub	w10, w10, w12
	add	w9, w11, w9, asr #1
	ldp	w11, w12, [x0, #12]
	mul	w11, w10, w11
	sdiv	w11, w11, w8
	add	w11, w11, w9
	mul	w10, w12, w10
	sdiv	w8, w10, w8
	add	w8, w8, w9
	stp	w11, w8, [x0, #60]
	ldur	d0, [x0, #20]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
	add.2s	v0, v0, v1
	rev64.2s	v0, v0
	stur	d0, [x0, #52]
LBB0_5:
	mov	x0, x19
	bl	_wine_dbgstr_rect
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_TRACE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TBS_VERT,4,2                   ; @TBS_VERT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"selection[%s]\n"

	.no_dead_strip	_TRACKBAR_CalcSelection
.subsections_via_symbols
