	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PAGER_DrawButton
_PAGER_DrawButton:                      ## @PAGER_DrawButton
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%edi, %r14d
	leaq	16(%rbp), %r15
	movq	%r15, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_TRACE
	movq	_PGF_INVISIBLE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_10
## %bb.1:
	movq	(%r15), %rax
	cmpq	8(%r15), %rax
	jle	LBB0_10
## %bb.2:
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	jle	LBB0_10
## %bb.3:
	testq	%r13, %r13
	movq	_DFCS_SCROLLLEFT@GOTPCREL(%rip), %rax
	cmoveq	_DFCS_SCROLLUP@GOTPCREL(%rip), %rax
	movq	_DFCS_SCROLLRIGHT@GOTPCREL(%rip), %rcx
	cmoveq	_DFCS_SCROLLDOWN@GOTPCREL(%rip), %rcx
	testq	%r12, %r12
	cmovneq	%rax, %rcx
	movl	(%rcx), %ecx
	cmpl	$131, %ebx
	je	LBB0_7
## %bb.4:
	cmpl	$130, %ebx
	je	LBB0_8
## %bb.5:
	cmpl	$128, %ebx
	jne	LBB0_9
## %bb.6:
	movq	_DFCS_FLAT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	jmp	LBB0_9
LBB0_7:
	movq	_DFCS_PUSHED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	jmp	LBB0_9
LBB0_8:
	movq	_DFCS_INACTIVE@GOTPCREL(%rip), %rax
	movq	_DFCS_FLAT@GOTPCREL(%rip), %rdx
	orl	(%rax), %ecx
	orl	(%rdx), %ecx
LBB0_9:
	movq	_DFC_SCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_DrawFrameControl
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rc = %s, btnState = %d\n"

	.comm	_PGF_INVISIBLE,4,2              ## @PGF_INVISIBLE
	.comm	_DFCS_SCROLLLEFT,4,2            ## @DFCS_SCROLLLEFT
	.comm	_DFCS_SCROLLRIGHT,4,2           ## @DFCS_SCROLLRIGHT
	.comm	_DFCS_SCROLLUP,4,2              ## @DFCS_SCROLLUP
	.comm	_DFCS_SCROLLDOWN,4,2            ## @DFCS_SCROLLDOWN
	.comm	_DFCS_FLAT,4,2                  ## @DFCS_FLAT
	.comm	_DFCS_PUSHED,4,2                ## @DFCS_PUSHED
	.comm	_DFCS_INACTIVE,4,2              ## @DFCS_INACTIVE
	.comm	_DFC_SCROLL,4,2                 ## @DFC_SCROLL
	.no_dead_strip	_PAGER_DrawButton
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PAGER_DrawButton
_PAGER_DrawButton:                      ; @PAGER_DrawButton
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x0
	mov	x0, x2
	bl	_wine_dbgstr_rect
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_TRACE
Lloh2:
	adrp	x8, _PGF_INVISIBLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PGF_INVISIBLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_7
; %bb.1:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.2:
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.3:
Lloh5:
	adrp	x8, _DFCS_SCROLLUP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DFCS_SCROLLUP@GOTPAGEOFF]
Lloh7:
	adrp	x9, _DFCS_SCROLLLEFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DFCS_SCROLLLEFT@GOTPAGEOFF]
Lloh9:
	adrp	x10, _DFCS_SCROLLDOWN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DFCS_SCROLLDOWN@GOTPAGEOFF]
Lloh11:
	adrp	x11, _DFCS_SCROLLRIGHT@GOTPAGE
Lloh12:
	ldr	x11, [x11, _DFCS_SCROLLRIGHT@GOTPAGEOFF]
	cmp	x23, #0
	csel	x8, x8, x9, eq
	csel	x9, x10, x11, eq
	cmp	x22, #0
	csel	x8, x9, x8, eq
	ldr	w3, [x8]
	cmp	w21, #131
	b.eq	LBB0_8
; %bb.4:
	cmp	w21, #130
	b.eq	LBB0_10
; %bb.5:
	cmp	w21, #128
	b.ne	LBB0_11
; %bb.6:
Lloh13:
	adrp	x8, _DFCS_FLAT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DFCS_FLAT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh15:
	adrp	x8, _DFCS_PUSHED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DFCS_PUSHED@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	orr	w3, w8, w3
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _DFCS_INACTIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DFCS_INACTIVE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _DFCS_FLAT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DFCS_FLAT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w3
	orr	w3, w8, w9
LBB0_11:
Lloh23:
	adrp	x8, _DFC_SCROLL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DFC_SCROLL@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DrawFrameControl
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rc = %s, btnState = %d\n"

	.comm	_PGF_INVISIBLE,4,2              ; @PGF_INVISIBLE
	.comm	_DFCS_SCROLLLEFT,4,2            ; @DFCS_SCROLLLEFT
	.comm	_DFCS_SCROLLRIGHT,4,2           ; @DFCS_SCROLLRIGHT
	.comm	_DFCS_SCROLLUP,4,2              ; @DFCS_SCROLLUP
	.comm	_DFCS_SCROLLDOWN,4,2            ; @DFCS_SCROLLDOWN
	.comm	_DFCS_FLAT,4,2                  ; @DFCS_FLAT
	.comm	_DFCS_PUSHED,4,2                ; @DFCS_PUSHED
	.comm	_DFCS_INACTIVE,4,2              ; @DFCS_INACTIVE
	.comm	_DFC_SCROLL,4,2                 ; @DFC_SCROLL
	.no_dead_strip	_PAGER_DrawButton
.subsections_via_symbols
