	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpcal_dayjoin                 ## -- Begin function ntpcal_dayjoin
	.p2align	4, 0x90
_ntpcal_dayjoin:                        ## @ntpcal_dayjoin
	.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	%esi, %r14d
	movl	%edi, %r12d
	movl	%edi, %eax
	negl	%eax
	cmovsl	%edi, %eax
	movzwl	%ax, %ecx
	imull	$675, %ecx, %ebx                ## imm = 0x2A3
	shrl	$16, %eax
	imull	$675, %eax, %ecx                ## imm = 0x2A3
	movl	%ecx, %edx
	shrl	$16, %edx
	shll	$16, %ecx
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_M_ADD
	movl	%ebx, %r15d
	shrl	$25, %r15d
	shll	$7, %ebx
	testl	%r12d, %r12d
	js	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	js	LBB0_3
LBB0_4:
	movl	%r15d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_M_ADD
	shlq	$32, %rbx
	movq	%rbx, %rax
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_M_NEG
	testl	%r14d, %r14d
	jns	LBB0_4
LBB0_3:
	negl	%r14d
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_M_NEG
	jmp	LBB0_4
	.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_dayjoin                 ; -- Begin function ntpcal_dayjoin
	.p2align	2
_ntpcal_dayjoin:                        ; @ntpcal_dayjoin
	.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	x19, x1
	mov	x22, x0
	cmp	w0, #0
	cneg	w8, w0, mi
	and	w9, w8, #0xffff
	mov	w10, #675
	mul	w21, w9, w10
	lsr	w8, w8, #16
	mul	w8, w8, w10
	lsr	w2, w8, #16
	lsl	w3, w8, #16
	mov	w0, #0
	mov	x1, x21
	bl	_M_ADD
	lsr	w20, w21, #25
	lsl	w21, w21, #7
	tbnz	w22, #31, LBB0_3
; %bb.1:
	tbnz	w19, #31, LBB0_4
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, x19
	bl	_M_ADD
	lsl	x0, x21, #32
	mov	x1, x20
	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
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	_M_NEG
	tbz	w19, #31, LBB0_2
LBB0_4:
	neg	w19, w19
	mov	w0, #0
	mov	x1, x19
	bl	_M_NEG
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.comm	_SECSPERDAY,4,2                 ; @SECSPERDAY
.subsections_via_symbols
