	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ndaysgi
_ndaysgi:                               ## @ndaysgi
	.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, %rbx
	movq	_nswitch@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_jiswitch@GOTPCREL(%rip), %rdi
	callq	_ndaysji
	movl	%eax, (%r14)
LBB0_2:
	movq	%rbx, %rdi
	callq	_ndaysji
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %ecx
	cmpl	$1600, %ecx                     ## imm = 0x640
	jl	LBB0_6
## %bb.5:
	addl	$-1600, %ecx                    ## imm = 0xF9C0
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$37, %rdx
	subl	%edx, %eax
	shrq	$39, %rcx
	addl	%eax, %ecx
	addl	$-10, %ecx
	jmp	LBB0_7
LBB0_3:
	movl	$-1, %ecx
	jmp	LBB0_7
LBB0_6:
	leal	-10(%rax), %ecx
	cmpl	(%r14), %eax
	cmovlel	%eax, %ecx
LBB0_7:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nswitch,4,2                    ## @nswitch
	.comm	_jiswitch,4,2                   ## @jiswitch
	.no_dead_strip	_ndaysgi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ndaysgi
_ndaysgi:                               ; @ndaysgi
	.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
Lloh0:
	adrp	x20, _nswitch@GOTPAGE
Lloh1:
	ldr	x20, [x20, _nswitch@GOTPAGEOFF]
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, _jiswitch@GOTPAGE
Lloh3:
	ldr	x0, [x0, _jiswitch@GOTPAGEOFF]
	bl	_ndaysji
	str	w0, [x20]
LBB0_2:
	mov	x0, x19
	bl	_ndaysji
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [x19]
	subs	w8, w8, #1600
	b.lt	LBB0_5
; %bb.4:
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	umull	x8, w8, w9
	lsr	x9, x8, #37
	lsr	x8, x8, #39
	sub	w9, w0, w9
	add	w8, w9, w8
	sub	w0, w8, #10
	b	LBB0_6
LBB0_5:
	ldr	w8, [x20]
	sub	w9, w0, #10
	cmp	w0, w8
	csel	w0, w9, w0, gt
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_nswitch,4,2                    ; @nswitch
	.comm	_jiswitch,4,2                   ; @jiswitch
	.no_dead_strip	_ndaysgi
.subsections_via_symbols
