	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TRACKBAR_GetAutoPageDirection
_TRACKBAR_GetAutoPageDirection:         ## @TRACKBAR_GetAutoPageDirection
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_TBS_VERT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	leaq	28(%rbx), %rax
	leaq	24(%rbx), %rcx
	leaq	44(%rbx), %rdx
	leaq	40(%rbx), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	36(%rbx), %rax
	leaq	32(%rbx), %rcx
	leaq	20(%rbx), %rdx
	leaq	16(%rbx), %rsi
LBB0_3:
	movl	(%rsi), %esi
	movl	(%rdx), %edx
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	%edx, -36(%rbp)
	movl	%esi, -40(%rbp)
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_PtInRect
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rax
	shrq	$32, %rax
	movl	(%r15), %ecx
	andl	(%rbx), %ecx
	cmovel	%eax, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_TRACKBAR_ConvertPlaceToPosition
	subq	8(%rbx), %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBS_VERT,4,2                   ## @TBS_VERT
	.no_dead_strip	_TRACKBAR_GetAutoPageDirection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TRACKBAR_GetAutoPageDirection
_TRACKBAR_GetAutoPageDirection:         ; @TRACKBAR_GetAutoPageDirection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _TBS_VERT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TBS_VERT@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x8, x19, #28
	add	x9, x19, #24
	add	x10, x19, #44
	add	x11, x19, #40
	b	LBB0_3
LBB0_2:
	add	x8, x19, #36
	add	x9, x19, #32
	add	x10, x19, #20
	add	x11, x19, #16
LBB0_3:
	ldr	w11, [x11]
	ldr	w10, [x10]
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w9, w8, [sp, #8]
	stp	w11, w10, [sp]
	mov	x0, sp
	mov	x1, x20
	bl	_PtInRect
	cbz	x0, LBB0_5
; %bb.4:
	lsr	x8, x20, #32
	ldr	w9, [x19]
	ldr	w10, [x21]
	tst	w10, w9
	csel	w1, w8, w20, eq
	mov	x0, x19
	bl	_TRACKBAR_ConvertPlaceToPosition
	ldr	x8, [x19, #8]
	sub	x0, x0, x8
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TBS_VERT,4,2                   ; @TBS_VERT
	.no_dead_strip	_TRACKBAR_GetAutoPageDirection
.subsections_via_symbols
