	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MONTHCAL_PaintButton
_MONTHCAL_PaintButton:                  ## @MONTHCAL_PaintButton
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_GetWindowTheme
	movq	_DIRECTION_FORWARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	12(%rbx), %rdx
	leaq	8(%rbx), %r8
	cmpl	%r15d, %ecx
	cmoveq	%rdx, %r8
	movq	_MC_PREVPRESSED@GOTPCREL(%rip), %rdx
	cmoveq	_MC_NEXTPRESSED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rbx), %edx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%esi, %esi
	cmpl	%r15d, %ecx
	sete	%sil
	leal	(%rsi,%rsi,2), %ecx
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	incl	%ecx
	jmp	LBB0_4
LBB0_5:
	cmpl	%r15d, %ecx
	jne	LBB0_6
## %bb.7:
	movq	_DFCS_SCROLLRIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_WS_DISABLED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leal	2(%rcx), %esi
	testl	%edx, 4(%rbx)
	cmovel	%ecx, %esi
	movl	%esi, %ecx
LBB0_4:
	movq	_SBP_ARROWBTN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%ecx, %ecx
	leaq	_MONTHCAL_PaintButton.states(%rip), %rsi
	movl	(%rsi,%rcx,4), %ecx
	movq	%rax, %rdi
	movl	%r14d, %esi
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DrawThemeBackground            ## TAILCALL
LBB0_6:
	movq	_DFCS_SCROLLLEFT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ecx
	testl	%edx, %edx
	je	LBB0_10
## %bb.9:
	movq	_DFCS_PUSHED@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_WS_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_13
## %bb.11:
	movq	_DFCS_INACTIVE@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %ecx
LBB0_13:
	movq	_DFC_SCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%r8, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DrawFrameControl               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIRECTION_FORWARD,4,2          ## @DIRECTION_FORWARD
	.comm	_MC_NEXTPRESSED,4,2             ## @MC_NEXTPRESSED
	.comm	_MC_PREVPRESSED,4,2             ## @MC_PREVPRESSED
	.section	__TEXT,__const
	.p2align	4                               ## @MONTHCAL_PaintButton.states
_MONTHCAL_PaintButton.states:
	.long	132                             ## 0x84
	.long	131                             ## 0x83
	.long	133                             ## 0x85
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	130                             ## 0x82

	.comm	_WS_DISABLED,4,2                ## @WS_DISABLED
	.comm	_SBP_ARROWBTN,4,2               ## @SBP_ARROWBTN
	.comm	_DFCS_SCROLLRIGHT,4,2           ## @DFCS_SCROLLRIGHT
	.comm	_DFCS_SCROLLLEFT,4,2            ## @DFCS_SCROLLLEFT
	.comm	_DFCS_PUSHED,4,2                ## @DFCS_PUSHED
	.comm	_DFCS_INACTIVE,4,2              ## @DFCS_INACTIVE
	.comm	_DFC_SCROLL,4,2                 ## @DFC_SCROLL
	.no_dead_strip	_MONTHCAL_PaintButton
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MONTHCAL_PaintButton
_MONTHCAL_PaintButton:                  ; @MONTHCAL_PaintButton
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #16]
	bl	_GetWindowTheme
Lloh0:
	adrp	x8, _DIRECTION_FORWARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIRECTION_FORWARD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x9, x20, #12
	add	x10, x20, #8
	cmp	w8, w21
	csel	x4, x9, x10, eq
Lloh3:
	adrp	x9, _MC_NEXTPRESSED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MC_NEXTPRESSED@GOTPAGEOFF]
	ldr	w10, [x20]
Lloh5:
	adrp	x11, _MC_PREVPRESSED@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MC_PREVPRESSED@GOTPAGEOFF]
	csel	x9, x9, x11, eq
	ldr	w9, [x9]
	and	w9, w9, w10
	cbz	x0, LBB0_3
; %bb.1:
	mov	w10, #3
	cmp	w8, w21
	csel	w8, w10, wzr, eq
	cbz	w9, LBB0_5
; %bb.2:
	add	w8, w8, #1
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x10, _DFCS_SCROLLRIGHT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DFCS_SCROLLRIGHT@GOTPAGEOFF]
Lloh9:
	adrp	x11, _DFCS_SCROLLLEFT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DFCS_SCROLLLEFT@GOTPAGEOFF]
	cmp	w8, w21
	csel	x8, x10, x11, eq
	ldr	w3, [x8]
	cbz	w9, LBB0_7
; %bb.4:
Lloh11:
	adrp	x8, _DFCS_PUSHED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DFCS_PUSHED@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	ldr	w9, [x20, #4]
Lloh13:
	adrp	x10, _WS_DISABLED@GOTPAGE
Lloh14:
	ldr	x10, [x10, _WS_DISABLED@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	add	w11, w8, #2
	tst	w10, w9
	csel	w8, w8, w11, eq
LBB0_6:
Lloh16:
	adrp	x9, _SBP_ARROWBTN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SBP_ARROWBTN@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x9]
Lloh19:
	adrp	x9, _MONTHCAL_PaintButton.states@PAGE
Lloh20:
	add	x9, x9, _MONTHCAL_PaintButton.states@PAGEOFF
	ldr	w3, [x9, w8, uxtw #2]
	mov	x1, x19
	mov	x5, #0
	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
	b	_DrawThemeBackground
LBB0_7:
	ldr	w8, [x20, #4]
Lloh21:
	adrp	x9, _WS_DISABLED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WS_DISABLED@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
Lloh24:
	adrp	x8, _DFCS_INACTIVE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DFCS_INACTIVE@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	orr	w3, w8, w3
LBB0_10:
Lloh26:
	adrp	x8, _DFC_SCROLL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DFC_SCROLL@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x4
	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
	b	_DrawFrameControl
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DIRECTION_FORWARD,4,2          ; @DIRECTION_FORWARD
	.comm	_MC_NEXTPRESSED,4,2             ; @MC_NEXTPRESSED
	.comm	_MC_PREVPRESSED,4,2             ; @MC_PREVPRESSED
	.section	__TEXT,__const
	.p2align	2                               ; @MONTHCAL_PaintButton.states
_MONTHCAL_PaintButton.states:
	.long	132                             ; 0x84
	.long	131                             ; 0x83
	.long	133                             ; 0x85
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	130                             ; 0x82

	.comm	_WS_DISABLED,4,2                ; @WS_DISABLED
	.comm	_SBP_ARROWBTN,4,2               ; @SBP_ARROWBTN
	.comm	_DFCS_SCROLLRIGHT,4,2           ; @DFCS_SCROLLRIGHT
	.comm	_DFCS_SCROLLLEFT,4,2            ; @DFCS_SCROLLLEFT
	.comm	_DFCS_PUSHED,4,2                ; @DFCS_PUSHED
	.comm	_DFCS_INACTIVE,4,2              ; @DFCS_INACTIVE
	.comm	_DFC_SCROLL,4,2                 ; @DFC_SCROLL
	.no_dead_strip	_MONTHCAL_PaintButton
.subsections_via_symbols
