	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpcal_days_in_months          ## -- Begin function ntpcal_days_in_months
	.p2align	4, 0x90
_ntpcal_days_in_months:                 ## @ntpcal_days_in_months
	.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
                                        ## kill: def $edi killed $edi def $rdi
	leal	10(%rdi), %eax
	leal	-2(%rdi), %r15d
	xorl	%r12d, %r12d
	cmpl	$2, %edi
	setge	%r12b
	cmovll	%eax, %r15d
	cmpl	$12, %r15d
	jb	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	callq	_int32_sflag
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_int32_to_uint32_2cpl
	movl	%eax, %r15d
	xorl	%r14d, %eax
	movl	$2863311531, %ebx               ## imm = 0xAAAAAAAB
	imulq	%rax, %rbx
	shrq	$35, %rbx
	xorl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_uint32_2cpl_to_int32
	addq	%rax, %r12
	shll	$2, %ebx
	leal	(%rbx,%rbx,2), %eax
	subl	%eax, %r15d
LBB0_2:
	movq	_shift_month_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%r15d, %rdx
	movl	$-306, %eax                     ## imm = 0xFECE
	addl	(%rcx,%rdx,4), %eax
	shlq	$32, %r12
	orq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_shift_month_table,8,3          ## @shift_month_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpcal_days_in_months          ; -- Begin function ntpcal_days_in_months
	.p2align	2
_ntpcal_days_in_months:                 ; @ntpcal_days_in_months
	.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	w8, #10
	mov	w9, #-2
	cmp	w0, #1
	csel	w8, w9, w8, gt
	cset	w21, gt
	add	w19, w8, w0
	cmp	w19, #12
	b.lo	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_int32_sflag
	mov	x20, x0
	mov	x0, x19
	bl	_int32_to_uint32_2cpl
	mov	x19, x0
	eor	w8, w0, w20
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #35
	eor	w20, w8, w20
	mov	x0, x20
	bl	_uint32_2cpl_to_int32
	add	x21, x0, x21
	mov	w8, #-12
	madd	w19, w20, w8, w19
LBB0_2:
Lloh0:
	adrp	x8, _shift_month_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _shift_month_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, w19, sxtw #2]
	sub	w0, w8, #306
	bfi	x0, x21, #32, #32
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_shift_month_table,8,3          ; @shift_month_table
.subsections_via_symbols
