	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_day
_draw_day:                              ## @draw_day
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_MON_WIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_days_in_month
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_days_in_month
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	28(%r15), %edi
	callq	_werase
	movl	24(%r15), %edi
	movq	_MARGIN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r8
	movl	(%r15), %esi
	movl	4(%r15), %edx
	subl	%r8d, %esi
	subl	%r8d, %edx
	addq	%r8, %r8
	movq	16(%r15), %rcx
	addq	%r8, %rcx
	addq	32(%r15), %r8
	movq	_menubox_attr@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	movq	_menubox_border_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_menubox_border2_attr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	pushq	%rbx
	pushq	%rax
	callq	_dlg_draw_box2
	addq	$16, %rsp
	movl	28(%r15), %edi
	movl	(%r14), %esi
	callq	_dlg_attrset
	movq	_MAX_DAYS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	28(%r15), %r13d
	leal	1(%rdi), %r14d
	addl	8(%r15), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%rdx, %r12
	callq	_nameOfDayOfWeek
	movl	%eax, %r10d
	subq	$8, %rsp
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	leaq	L_.str(%rip), %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r8d, %r9d
	xorl	%eax, %eax
	pushq	%r10
	callq	_mvwprintw
	movq	%r12, %rdx
	addq	$16, %rsp
	movl	(%r12), %ecx
	addl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%r14d, %edi
	cmpl	%ecx, %r14d
	jl	LBB0_2
LBB0_3:
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %edi
	movl	%edi, %eax
	subl	4(%rsi), %eax
	movl	8(%r15), %edx
	addl	%edx, %eax
	addl	$6, %eax
	cltd
	idivl	%ecx
	movl	%edx, %r14d
	testl	%edx, %edx
	movl	$0, %eax
	cmovgl	%ecx, %eax
	subl	%eax, %r14d
	movq	_dialog_vars@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%r15, %rbx
	je	LBB0_5
## %bb.4:
	movl	$1900, %edi                     ## imm = 0x76C
	addq	24(%rsi), %rdi
	movq	16(%rsi), %rsi
	incq	%rsi
	callq	_getisoweeks
	movq	%rax, %r12
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_5:
	movl	8(%rsi), %eax
	movl	%r14d, %edx
	subl	%edi, %edx
	addl	%edx, %eax
	addl	$6, %eax
	cltd
	idivl	%ecx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
LBB0_6:
	movq	_MAX_DAYS@GOTPCREL(%rip), %r15
	cmpl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	jge	LBB0_24
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %ecx
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	leal	-2(%rax), %ecx
	movl	%ecx, -104(%rbp)                ## 4-byte Spill
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, -76(%rbp)                 ## 4-byte Folded Spill
	incl	%eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %eax
	subl	%ecx, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	subl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-120(%rbp), %r14                ## 8-byte Reload
	addl	%r12d, %r14d
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movl	-100(%rbp), %r13d               ## 4-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	28(%rbx), %edi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_wmove
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	cmpl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	jge	LBB0_24
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movl	28(%rbx), %edi
	movq	_menubox_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlg_attrset
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movslq	%r13d, %rax
	incl	%r13d
	movl	(%r12,%rax,4), %r9d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	incl	%r9d
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	28(%rbx), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	leaq	L_.str.1(%rip), %rcx
	movl	-96(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_mvwprintw
	cmpl	$0, (%r15)
	jle	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, -100(%rbp)               ## 4-byte Spill
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %rax                ## 8-byte Reload
	addl	%r14d, %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	xorl	%r12d, %r12d
	movl	-92(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_MAX_DAYS@GOTPCREL(%rip), %r15
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=2
	addl	%ebx, %r13d
	cmpl	(%r15), %r12d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_22
LBB0_13:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %r15d
	leal	1(%r15), %r12d
	movl	28(%rbx), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_wmove
	movq	_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r15), %r14d
	addl	%r15d, %eax
	incl	%eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	addl	-108(%rbp), %r15d               ## 4-byte Folded Reload
	movl	28(%rbx), %edi
	movq	_item_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlg_attrset
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=2
	testl	%r14d, %r14d
	js	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	cmpl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_MAX_DAYS@GOTPCREL(%rip), %r15
	jl	LBB0_20
	jmp	LBB0_21
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	28(%rbx), %edi
	movq	_item_selected_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlg_attrset
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_MAX_DAYS@GOTPCREL(%rip), %r15
	js	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	cmovgel	-64(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	-104(%rbp), %edx                ## 4-byte Reload
	callq	_wprintw
	jmp	LBB0_21
LBB0_24:
	movl	24(%rbx), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movslq	4(%rbx), %rcx
	movq	_ARROWS_COL@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movslq	(%rbx), %r9
	leal	-1(%r9), %r8d
	addq	16(%rbx), %r9
	movl	%edx, %esi
	callq	_dlg_draw_arrows
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MON_WIDE,4,2                   ## @MON_WIDE
	.comm	_MARGIN,4,2                     ## @MARGIN
	.comm	_menubox_attr,4,2               ## @menubox_attr
	.comm	_menubox_border_attr,4,2        ## @menubox_border_attr
	.comm	_menubox_border2_attr,4,2       ## @menubox_border2_attr
	.comm	_MAX_DAYS,4,2                   ## @MAX_DAYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%*.*s "

	.comm	_dialog_vars,8,3                ## @dialog_vars
L_.str.1:                               ## @.str.1
	.asciz	"%*d "

	.comm	_ERR,8,3                        ## @ERR
	.comm	_item_attr,4,2                  ## @item_attr
	.comm	_item_selected_attr,4,2         ## @item_selected_attr
L_.str.2:                               ## @.str.2
	.asciz	"%*d"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_ARROWS_COL,8,3                 ## @ARROWS_COL
	.no_dead_strip	_draw_day
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_day
_draw_day:                              ; @draw_day
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MON_WIDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MON_WIDE@GOTPAGEOFF]
Lloh2:
	ldr	w28, [x8]
	ldr	w23, [x1]
	mov	x0, x1
	mov	w1, #0
	bl	_days_in_month
	str	w0, [sp, #68]                   ; 4-byte Folded Spill
	mov	x0, x22
	mov	w1, #-1
	bl	_days_in_month
	mov	x24, x0
	ldr	w0, [x19, #28]
	bl	_werase
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x8, _MARGIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MARGIN@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	ldp	w9, w10, [x19]
	sub	w1, w9, w8
	sub	w2, w10, w8
	ldr	x9, [x19, #16]
	lsl	x8, x8, #1
	add	x3, x9, x8
	ldr	x9, [x19, #32]
	add	x4, x9, x8
Lloh6:
	adrp	x20, _menubox_attr@GOTPAGE
Lloh7:
	ldr	x20, [x20, _menubox_attr@GOTPAGEOFF]
	ldr	w5, [x20]
Lloh8:
	adrp	x8, _menubox_border_attr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _menubox_border_attr@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
Lloh11:
	adrp	x8, _menubox_border2_attr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _menubox_border2_attr@GOTPAGEOFF]
Lloh13:
	ldr	w7, [x8]
	bl	_dlg_draw_box2
	ldr	w0, [x19, #28]
	ldr	w1, [x20]
	bl	_dlg_attrset
Lloh14:
	adrp	x25, _MAX_DAYS@GOTPAGE
Lloh15:
	ldr	x25, [x25, _MAX_DAYS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	str	w24, [sp, #76]                  ; 4-byte Folded Spill
	mov	x24, x23
	mov	w9, #0
	sub	w21, w28, #1
	mov	x23, x28
Lloh16:
	adrp	x27, l_.str@PAGE
Lloh17:
	add	x27, x27, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x19, #28]
	add	w20, w9, #1
	ldr	w8, [x19, #8]
	add	w0, w9, w8
	bl	_nameOfDayOfWeek
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x26
	mov	w1, #0
	mov	x2, x23
	mov	x3, x27
	mov	x4, x21
	mov	x5, x21
	bl	_mvwprintw
	ldr	w8, [x25]
	add	w23, w23, w28
	mov	x9, x20
	cmp	w20, w8
	b.lt	LBB0_2
; %bb.3:
	mov	x23, x24
	ldr	w24, [sp, #76]                  ; 4-byte Folded Reload
LBB0_4:
	ldp	w9, w10, [x22]
	ldr	w11, [x19, #8]
	sub	w10, w9, w10
	add	w10, w10, w11
	add	w10, w10, #6
	sdiv	w11, w10, w8
	msub	w10, w11, w8, w10
	cmp	w10, #0
	csel	w11, w8, wzr, gt
	sub	w27, w10, w11
Lloh18:
	adrp	x10, _dialog_vars@GOTPAGE
Lloh19:
	ldr	x10, [x10, _dialog_vars@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cbz	x10, LBB0_6
; %bb.5:
	ldp	x9, x8, [x22, #16]
	add	x0, x8, #1900
	add	x1, x9, #1
	bl	_getisoweeks
	mov	x20, x0
	str	wzr, [sp, #36]                  ; 4-byte Folded Spill
	b	LBB0_7
LBB0_6:
	mov	x20, #0
	ldr	w10, [x22, #8]
	sub	w9, w27, w9
	add	w9, w9, w10
	add	w9, w9, #6
	sdiv	w8, w9, w8
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
LBB0_7:
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	cmp	w27, w8
	b.ge	LBB0_24
; %bb.8:
	mov	w21, #0
	str	xzr, [sp, #56]                  ; 8-byte Folded Spill
	sub	w8, w28, #1
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	sub	w8, w28, #2
	str	w8, [sp, #64]                   ; 4-byte Folded Spill
	add	w8, w23, w24
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	sub	w8, w23, w8
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
	add	w10, w28, #1
	mov	w9, #1
	mov	w8, #1
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	sub	w8, w9, w23
	stp	w8, w10, [sp, #16]              ; 8-byte Folded Spill
Lloh21:
	adrp	x24, _ERR@GOTPAGE
Lloh22:
	ldr	x24, [x24, _ERR@GOTPAGEOFF]
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	w27, w27, w20
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w21, [sp, #44]                  ; 4-byte Folded Reload
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x19, #28]
	ldp	w2, w1, [sp, #56]               ; 8-byte Folded Reload
	bl	_wmove
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	cmp	w27, w8
	b.ge	LBB0_24
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	ldr	w0, [x19, #28]
Lloh23:
	adrp	x8, _menubox_attr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _menubox_attr@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_dlg_attrset
	cbz	x20, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w5, [x20, w21, sxtw #2]
	add	w21, w21, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w5, [sp, #36]                   ; 4-byte Folded Reload
	add	w5, w5, #1
	str	w5, [sp, #36]                   ; 4-byte Folded Spill
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x19, #28]
	ldr	w1, [sp, #76]                   ; 4-byte Folded Reload
	mov	w2, #0
Lloh26:
	adrp	x3, l_.str.1@PAGE
Lloh27:
	add	x3, x3, l_.str.1@PAGEOFF
	ldr	w4, [sp, #40]                   ; 4-byte Folded Reload
	bl	_mvwprintw
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	mov	w20, #0
	ldp	w8, w26, [sp, #16]              ; 8-byte Folded Reload
	add	w8, w8, w27
	str	w8, [sp, #72]                   ; 4-byte Folded Spill
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_19 Depth=2
	ldr	w0, [x19, #28]
Lloh28:
	adrp	x8, _item_selected_attr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _item_selected_attr@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_dlg_attrset
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	cmp	w25, w8
	ldp	w8, w9, [sp, #48]               ; 8-byte Folded Reload
	csel	w8, w22, w8, lt
	tst	w25, #0x80000000
	csel	w22, w8, w9, eq
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	stp	w26, w8, [sp, #56]              ; 8-byte Folded Spill
	mov	x25, x21
	mov	x27, x28
	mov	x28, x23
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	ldr	w0, [x19, #28]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	w2, [sp, #64]                   ; 4-byte Folded Reload
	mov	x3, x22
	bl	_wprintw
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	w20, w20, #1
	ldr	w8, [x25]
	add	w26, w26, w28
	cmp	w20, w8
	b.ge	LBB0_9
LBB0_19:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19, #28]
	ldr	w1, [sp, #76]                   ; 4-byte Folded Reload
	mov	x2, x26
	bl	_wmove
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x23, x28
	mov	x21, x25
	mov	x28, x27
	add	w25, w27, w20
	add	w22, w25, #1
	ldr	w8, [sp, #72]                   ; 4-byte Folded Reload
	add	w27, w8, w20
	ldr	w0, [x19, #28]
Lloh33:
	adrp	x8, _item_attr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _item_attr@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_dlg_attrset
	cbz	w27, LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	tbnz	w25, #31, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	cmp	w25, w8
	mov	x25, x21
	mov	x27, x28
	mov	x28, x23
	b.lt	LBB0_17
	b	LBB0_18
LBB0_23:                                ;   in Loop: Header=BB0_19 Depth=2
	mov	x25, x21
	mov	x27, x28
	mov	x28, x23
	b	LBB0_18
LBB0_24:
	ldr	w0, [x19, #24]
Lloh36:
	adrp	x8, _TRUE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _ARROWS_COL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ARROWS_COL@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldpsw	x10, x9, [x19]
	add	x3, x8, x9
	sub	w4, w10, #1
	ldr	x8, [x19, #16]
	add	x5, x8, x10
	mov	x2, x1
	bl	_dlg_draw_arrows
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_MON_WIDE,4,2                   ; @MON_WIDE
	.comm	_MARGIN,4,2                     ; @MARGIN
	.comm	_menubox_attr,4,2               ; @menubox_attr
	.comm	_menubox_border_attr,4,2        ; @menubox_border_attr
	.comm	_menubox_border2_attr,4,2       ; @menubox_border2_attr
	.comm	_MAX_DAYS,4,2                   ; @MAX_DAYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%*.*s "

	.comm	_dialog_vars,8,3                ; @dialog_vars
l_.str.1:                               ; @.str.1
	.asciz	"%*d "

	.comm	_ERR,8,3                        ; @ERR
	.comm	_item_attr,4,2                  ; @item_attr
	.comm	_item_selected_attr,4,2         ; @item_selected_attr
l_.str.2:                               ; @.str.2
	.asciz	"%*d"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_ARROWS_COL,8,3                 ; @ARROWS_COL
	.no_dead_strip	_draw_day
.subsections_via_symbols
