	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkdayofweek
_checkdayofweek:                        ## @checkdayofweek
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_fndays@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	addq	$16, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%rbx), %r14d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	(%rbx), %r15
	addq	$16, %rbx
	testq	%r15, %r15
	jne	LBB0_2
LBB0_7:
	movq	_ndays@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.8:
	addq	$16, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%rbx), %r14d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r12
	movq	(%rbx), %r15
	addq	$16, %rbx
	testq	%r15, %r15
	jne	LBB0_9
LBB0_11:
	movq	_fdays@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r15
	testq	%r15, %r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_16
## %bb.12:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, (%r14)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%rbx,%r12,8), %r15
	incq	%r12
	testq	%r15, %r15
	jne	LBB0_13
LBB0_16:
	movq	_days@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_21
## %bb.17:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$3, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	8(%rbx,%r12,8), %r15
	incq	%r12
	testq	%r15, %r15
	jne	LBB0_18
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_3:
	movslq	%r14d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_4:
	movq	%rax, (%r14)
LBB0_5:
	movl	%r12d, %eax
	movq	%r15, (%rdx)
	movq	%rax, (%rcx)
	movl	$1, %eax
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_19:
	movl	$3, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_fndays,8,3                     ## @fndays
	.comm	_ndays,8,3                      ## @ndays
	.comm	_fdays,8,3                      ## @fdays
	.comm	_days,8,3                       ## @days
	.no_dead_strip	_checkdayofweek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkdayofweek
_checkdayofweek:                        ; @checkdayofweek
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _fndays@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fndays@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x22, [x8]
	cbz	x22, LBB0_4
; %bb.1:
	mov	x25, #0
	add	x26, x8, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w24, [x26, #-8]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_strncasecmp
	cbz	x0, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	ldr	x22, [x26], #16
	cbnz	x22, LBB0_2
LBB0_4:
Lloh3:
	adrp	x8, _ndays@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ndays@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x22, [x8]
	cbz	x22, LBB0_8
; %bb.5:
	mov	x25, #0
	add	x26, x8, #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w24, [x26, #-8]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_strncasecmp
	cbz	x0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	ldr	x22, [x26], #16
	cbnz	x22, LBB0_6
LBB0_8:
Lloh6:
	adrp	x8, _fdays@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fdays@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x22, [x8]
	cbz	x22, LBB0_12
; %bb.9:
	mov	x25, #0
	add	x24, x8, #8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	str	x0, [x21]
	mov	x0, x23
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_strncasecmp
	cbz	x0, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x22, [x24, x25, lsl #3]
	add	x25, x25, #1
	cbnz	x22, LBB0_10
LBB0_12:
Lloh9:
	adrp	x8, _days@GOTPAGE
Lloh10:
	ldr	x8, [x8, _days@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x22, [x8]
	cbz	x22, LBB0_16
; %bb.13:
	mov	x25, #0
	add	x26, x8, #8
	mov	w24, #3
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	w2, #3
	bl	_strncasecmp
	cbz	x0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x22, [x26, x25, lsl #3]
	add	x25, x25, #1
	cbnz	x22, LBB0_14
LBB0_16:
	mov	w0, #0
	b	LBB0_20
LBB0_17:
	sxtw	x24, w24
LBB0_18:
	str	x24, [x21]
LBB0_19:
	and	x8, x25, #0xffffffff
	str	x22, [x20]
	str	x8, [x19]
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_fndays,8,3                     ; @fndays
	.comm	_ndays,8,3                      ; @ndays
	.comm	_fdays,8,3                      ; @fdays
	.comm	_days,8,3                       ; @days
	.no_dead_strip	_checkdayofweek
.subsections_via_symbols
