	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WeekStart
_WeekStart:                             ## @WeekStart
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dialog_vars@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_16
## %bb.1:
	cmpb	$0, (%r14)
	je	LBB0_16
## %bb.2:
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movq	-40(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:
	cmpq	%r14, %rcx
	je	LBB0_5
## %bb.4:
	cmpb	$0, (%rcx)
	je	LBB0_11
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	movq	%r14, %rdi
	callq	_strlen
	movq	_MAX_DAYS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_16
## %bb.7:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_nameOfDayOfWeek
	movl	%eax, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_8
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_11:
	testq	%rax, %rax
	js	LBB0_12
## %bb.13:
	movq	_MAX_DAYS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_14
## %bb.15:
	cqto
	idivq	%rcx
	movq	%rdx, %rbx
	jmp	LBB0_16
LBB0_12:
	movl	$-1, %ebx
	jmp	LBB0_16
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dialog_vars,8,3                ## @dialog_vars
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"locale"

	.comm	_MAX_DAYS,4,2                   ## @MAX_DAYS
	.comm	__NL_TIME_FIRST_WEEKDAY,4,2     ## @_NL_TIME_FIRST_WEEKDAY
	.comm	__NL_TIME_WEEK_1STDAY,4,2       ## @_NL_TIME_WEEK_1STDAY
	.no_dead_strip	_WeekStart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WeekStart
_WeekStart:                             ; @WeekStart
	.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
Lloh0:
	adrp	x8, _dialog_vars@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dialog_vars@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cbz	x19, LBB0_10
; %bb.1:
	ldrb	w8, [x19]
	cbz	w8, LBB0_10
; %bb.2:
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.3:
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.4:
	ldrb	w8, [x8]
	cbz	w8, LBB0_12
LBB0_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_strlen
Lloh5:
	adrp	x22, _MAX_DAYS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MAX_DAYS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x21, x0
	mov	w20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_nameOfDayOfWeek
	mov	x1, x19
	mov	x2, x21
	bl	_strncmp
	cbz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.lt	LBB0_8
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x20
	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_12:
	tbnz	x0, #63, LBB0_14
; %bb.13:
Lloh7:
	adrp	x8, _MAX_DAYS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_DAYS@GOTPAGEOFF]
Lloh9:
	ldrsw	x8, [x8]
	sdiv	x9, x0, x8
	msub	w20, w9, w8, w0
	b	LBB0_11
LBB0_14:
	mov	w20, #-1
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_dialog_vars,8,3                ; @dialog_vars
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"locale"

	.comm	_MAX_DAYS,4,2                   ; @MAX_DAYS
	.comm	__NL_TIME_FIRST_WEEKDAY,4,2     ; @_NL_TIME_FIRST_WEEKDAY
	.comm	__NL_TIME_WEEK_1STDAY,4,2       ; @_NL_TIME_WEEK_1STDAY
	.no_dead_strip	_WeekStart
.subsections_via_symbols
