	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wdayom
_wdayom:                                ## @wdayom
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %ebx
	movl	%ecx, %edi
	movl	%edx, %esi
	callq	_first_dayofweek_of_month
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	subl	%r12d, %ebx
	movl	%ebx, %eax
	incl	%eax
	cltq
	imulq	$-1840700269, %rax, %rax        ## imm = 0x92492493
	shrq	$32, %rax
	addl	%ebx, %eax
	incl	%eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$2, %eax
	addl	%ecx, %eax
	leal	(,%rax,8), %ecx
	subl	%ecx, %eax
	leal	(%rbx,%rax), %r12d
	incl	%r12d
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.3:
	je	LBB0_7
## %bb.4:
	leal	(,%r14,8), %eax
	subl	%r14d, %eax
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.5:
	addl	%eax, %r12d
	addl	$-7, %r12d
	jmp	LBB0_8
LBB0_2:
	movq	_yearinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %ecx
	leal	1(%rcx), %eax
	cmpl	%eax, %r12d
	cmovgl	%r12d, %eax
	xorl	%edx, %edx
	cmpl	%ecx, %r12d
	setle	%dl
	subl	%r12d, %eax
	subl	%edx, %eax
	imulq	$613566757, %rax, %rcx          ## imm = 0x24924925
	shrq	$32, %rcx
	subl	%ecx, %eax
	shrl	%eax
	addl	%ecx, %eax
	shrl	$2, %eax
	addl	%edx, %eax
	leal	(,%rax,8), %ecx
	subl	%eax, %ecx
	addl	%r12d, %ecx
	leal	(,%r14,8), %r12d
	subl	%r14d, %r12d
	addl	%ecx, %r12d
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	jmp	LBB0_8
LBB0_6:
	addl	%eax, %r12d
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_yearinfo,8,3                   ## @yearinfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid offset 0"

	.no_dead_strip	_wdayom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wdayom
_wdayom:                                ; @wdayom
	.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	x20, x1
	mov	x22, x0
	mov	x0, x3
	mov	x1, x2
	bl	_first_dayofweek_of_month
	mov	x19, x0
	tbnz	w0, #31, LBB0_8
; %bb.1:
	sub	w8, w22, w19
	add	w8, w8, #1
	mov	w9, #9363
	movk	w9, #37449, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #2
	add	w9, w10, w9, lsr #31
	sub	w9, w9, w9, lsl #3
	add	w19, w8, w9
	tbnz	w20, #31, LBB0_5
; %bb.2:
	cbz	w20, LBB0_6
; %bb.3:
	lsl	w8, w20, #3
	sub	w8, w8, w20
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.4:
	add	w8, w8, w19
	sub	w19, w8, #7
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _yearinfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _yearinfo@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8, w21, sxtw #2]
	add	w9, w8, #1
	cmp	w19, w9
	csinc	w9, w19, w8, gt
	cmp	w19, w8
	cinc	w10, w19, le
	mov	w11, #18725
	movk	w11, #9362, lsl #16
	sub	w9, w9, w10
	umull	x10, w9, w11
	lsr	x10, x10, #32
	sub	w9, w9, w10
	cmp	w19, w8
	add	w8, w10, w9, lsr #1
	lsr	w8, w8, #2
	cinc	w8, w8, le
	lsl	w9, w8, #3
	sub	w8, w9, w8
	add	w8, w19, w8
	lsl	w9, w20, #3
	sub	w9, w9, w20
	add	w19, w8, w9
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	b	LBB0_8
LBB0_7:
	add	w19, w19, w8
LBB0_8:
	mov	x0, x19
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_yearinfo,8,3                   ; @yearinfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid offset 0"

	.no_dead_strip	_wdayom
.subsections_via_symbols
