	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TRACKBAR_AutoPage
_TRACKBAR_AutoPage:                     ## @TRACKBAR_AutoPage
	.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	%rdi, %r15
	movl	%esi, -28(%rbp)
	callq	_TRACKBAR_GetAutoPageDirection
	movq	%rax, %rbx
	movq	(%r15), %r14
	leaq	-28(%rbp), %rdi
	callq	_wine_dbgstr_point
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_TRACE
	testq	%rbx, %rbx
	jle	LBB0_4
## %bb.1:
	movq	_TB_AUTO_PAGE_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_TRACKBAR_PageDown
LBB0_7:
	movq	%r15, %rdi
	callq	_TRACKBAR_UpdateThumb
	movq	(%r15), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_TRACKBAR_InvalidateThumbMove
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jns	LBB0_8
## %bb.5:
	movq	_TB_AUTO_PAGE_LEFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%r15)
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	_TRACKBAR_PageUp
	jmp	LBB0_7
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clickPoint=%s, dir=%d\n"

	.comm	_TB_AUTO_PAGE_RIGHT,4,2         ## @TB_AUTO_PAGE_RIGHT
	.comm	_TB_AUTO_PAGE_LEFT,4,2          ## @TB_AUTO_PAGE_LEFT
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_TRACKBAR_AutoPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TRACKBAR_AutoPage
_TRACKBAR_AutoPage:                     ; @TRACKBAR_AutoPage
	.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	x19, x0
	str	w1, [sp, #12]
	bl	_TRACKBAR_GetAutoPageDirection
	mov	x21, x0
	ldr	x20, [x19]
	add	x0, sp, #12
	bl	_wine_dbgstr_point
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_TRACE
	cmp	x21, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
Lloh2:
	adrp	x9, _TB_AUTO_PAGE_RIGHT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TB_AUTO_PAGE_RIGHT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_TRACKBAR_PageDown
LBB0_3:
	mov	x0, x19
	bl	_TRACKBAR_UpdateThumb
	ldr	x2, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_TRACKBAR_InvalidateThumbMove
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	tbnz	x21, #63, LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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
LBB0_7:
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _TB_AUTO_PAGE_LEFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TB_AUTO_PAGE_LEFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.8:
	mov	x0, x19
	bl	_TRACKBAR_PageUp
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clickPoint=%s, dir=%d\n"

	.comm	_TB_AUTO_PAGE_RIGHT,4,2         ; @TB_AUTO_PAGE_RIGHT
	.comm	_TB_AUTO_PAGE_LEFT,4,2          ; @TB_AUTO_PAGE_LEFT
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_TRACKBAR_AutoPage
.subsections_via_symbols
