	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MONTHCAL_MonthLength           ## -- Begin function MONTHCAL_MonthLength
	.p2align	4, 0x90
_MONTHCAL_MonthLength:                  ## @MONTHCAL_MonthLength
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$13, %edi
	movl	$1, %eax
	cmovnel	%edi, %eax
	testl	%edi, %edi
	movl	$12, %ecx
	cmovnel	%eax, %ecx
	movq	_min_allowed_date@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_2
## %bb.1:
	movl	$19, %eax
	cmpl	%esi, 4(%rdx)
	jne	LBB0_2
## %bb.7:
	popq	%rbp
	retq
LBB0_2:
	cmpl	$2, %ecx
	jne	LBB0_6
## %bb.3:
	imull	$-1030792151, %esi, %eax        ## imm = 0xC28F5C29
	addl	$85899344, %eax                 ## imm = 0x51EB850
	movl	%eax, %ecx
	rorl	$4, %ecx
	cmpl	$10737419, %ecx                 ## imm = 0xA3D70B
	jb	LBB0_4
## %bb.5:
	rorl	$2, %eax
	cmpl	$42949673, %eax                 ## imm = 0x28F5C29
	setae	%al
	testb	$3, %sil
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	orl	$28, %eax
	popq	%rbp
	retq
LBB0_6:
	movslq	%ecx, %rax
	leaq	l___const.MONTHCAL_MonthLength.mdays(%rip), %rcx
	movl	-4(%rcx,%rax,4), %eax
	popq	%rbp
	retq
LBB0_4:
	movl	$29, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.MONTHCAL_MonthLength.mdays
l___const.MONTHCAL_MonthLength.mdays:
	.long	31                              ## 0x1f
	.long	28                              ## 0x1c
	.long	31                              ## 0x1f
	.long	30                              ## 0x1e
	.long	31                              ## 0x1f
	.long	30                              ## 0x1e
	.long	31                              ## 0x1f
	.long	31                              ## 0x1f
	.long	30                              ## 0x1e
	.long	31                              ## 0x1f
	.long	30                              ## 0x1e
	.long	31                              ## 0x1f

	.comm	_min_allowed_date,8,2           ## @min_allowed_date
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MONTHCAL_MonthLength           ; -- Begin function MONTHCAL_MonthLength
	.p2align	2
_MONTHCAL_MonthLength:                  ; @MONTHCAL_MonthLength
	.cfi_startproc
; %bb.0:
	cmp	w0, #13
	csinc	w8, w0, wzr, ne
	mov	w9, #12
	cmp	w0, #0
	csel	w8, w9, w8, eq
Lloh0:
	adrp	x9, _min_allowed_date@GOTPAGE
Lloh1:
	ldr	x9, [x9, _min_allowed_date@GOTPAGEOFF]
	ldp	w10, w9, [x9]
	cmp	w8, w10
	ccmp	w9, w1, #0, eq
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.2:
	mov	w8, #23593
	movk	w8, #49807, lsl #16
	mov	w9, #47184
	movk	w9, #1310, lsl #16
	madd	w8, w1, w8, w9
	ror	w9, w8, #4
	mov	w10, #55051
	movk	w10, #163, lsl #16
	cmp	w9, w10
	b.lo	LBB0_6
; %bb.3:
	ror	w8, w8, #2
	tst	w1, #0x3
	mov	w9, #23592
	movk	w9, #655, lsl #16
	ccmp	w8, w9, #0, eq
	mov	w8, #28
	cinc	w0, w8, hi
	ret
LBB0_4:
	mov	w0, #19
	ret
LBB0_5:
Lloh2:
	adrp	x9, l___const.MONTHCAL_MonthLength.mdays@PAGE
Lloh3:
	add	x9, x9, l___const.MONTHCAL_MonthLength.mdays@PAGEOFF
	add	x8, x9, w8, sxtw #2
	ldur	w0, [x8, #-4]
	ret
LBB0_6:
	mov	w0, #29
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.MONTHCAL_MonthLength.mdays
l___const.MONTHCAL_MonthLength.mdays:
	.long	31                              ; 0x1f
	.long	28                              ; 0x1c
	.long	31                              ; 0x1f
	.long	30                              ; 0x1e
	.long	31                              ; 0x1f
	.long	30                              ; 0x1e
	.long	31                              ; 0x1f
	.long	31                              ; 0x1f
	.long	30                              ; 0x1e
	.long	31                              ; 0x1f
	.long	30                              ; 0x1e
	.long	31                              ; 0x1f

	.comm	_min_allowed_date,8,2           ; @min_allowed_date
.subsections_via_symbols
