	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpcal_daysplit                ## -- Begin function ntpcal_daysplit
	.p2align	4, 0x90
_ntpcal_daysplit:                       ## @ntpcal_daysplit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	20(%rdi), %edi
	callq	_int32_sflag
	movl	12(%r14), %ecx
	xorl	%eax, %ecx
	movl	16(%r14), %ebx
	movl	%ecx, %edx
	sarl	$19, %edx
	cmpl	$353894400, %ecx                ## imm = 0x15180000
	jl	LBB0_2
## %bb.1:
	movl	%edx, %esi
	movl	$3257812231, %edi               ## imm = 0xC22E4507
	imulq	%rsi, %rdi
	shrq	$41, %rdi
	imull	$675, %edi, %esi                ## imm = 0x2A3
	subl	%esi, %edx
LBB0_2:
	xorl	%eax, %ebx
	shll	$22, %edx
	andl	$524287, %ecx                   ## imm = 0x7FFFF
	leal	(%rdx,%rcx,8), %ecx
	movl	%ebx, %edx
	sarl	$29, %edx
	orl	%ecx, %edx
	movl	$3257812231, %ecx               ## imm = 0xC22E4507
	movq	%rdx, %rsi
	imulq	%rcx, %rsi
	shrq	$41, %rsi
	imull	$675, %esi, %edi                ## imm = 0x2A3
	subl	%edi, %edx
	shll	$22, %edx
	shrl	$7, %ebx
	andl	$4194303, %ebx                  ## imm = 0x3FFFFF
	orl	%edx, %ebx
	shll	$22, %esi
	imulq	%rcx, %rbx
	shrq	$41, %rbx
	orl	%esi, %ebx
	xorl	%eax, %ebx
	movl	%ebx, %edi
	callq	_uint32_2cpl_to_int32
                                        ## kill: def $eax killed $eax def $rax
	movq	_SECSPERDAY@GOTPCREL(%rip), %rcx
	imull	(%rcx), %ebx
	movl	16(%r14), %ecx
	subl	%ebx, %ecx
	shlq	$32, %rax
	orq	%rcx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECSPERDAY,4,2                 ## @SECSPERDAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpcal_daysplit                ; -- Begin function ntpcal_daysplit
	.p2align	2
_ntpcal_daysplit:                       ; @ntpcal_daysplit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #20]
	bl	_int32_sflag
	ldp	w8, w9, [x19, #12]
	eor	w8, w8, w0
	asr	w10, w8, #19
	mov	w11, #17671
	movk	w11, #49710, lsl #16
	umull	x12, w10, w11
	lsr	x12, x12, #41
	mov	w13, #675
	msub	w12, w12, w13, w10
	mov	w14, #353894399
	cmp	w8, w14
	csel	w10, w12, w10, gt
	eor	w9, w9, w0
	ubfiz	w8, w8, #3, #19
	bfi	w8, w10, #22, #10
	orr	w8, w8, w9, asr #29
	umull	x10, w8, w11
	lsr	x10, x10, #41
	msub	w8, w10, w13, w8
	lsr	w9, w9, #7
	bfi	w9, w8, #22, #10
	umull	x8, w9, w11
	lsr	x8, x8, #41
	orr	w8, w8, w10, lsl #22
	eor	w20, w8, w0
	mov	x0, x20
	bl	_uint32_2cpl_to_int32
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #16]
Lloh0:
	adrp	x9, _SECSPERDAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SECSPERDAY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	msub	w8, w20, w9, w8
	bfi	x8, x0, #32, #32
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SECSPERDAY,4,2                 ; @SECSPERDAY
.subsections_via_symbols
