	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SdnToJewish                    ## -- Begin function SdnToJewish
	.p2align	4, 0x90
_SdnToJewish:                           ## @SdnToJewish
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	_JEWISH_SDN_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdi, %rax
	jge	LBB0_2
## %bb.1:
	movq	%rdi, %r13
	movq	_JEWISH_SDN_MAX@GOTPCREL(%rip), %rdx
	cmpq	%rdi, (%rdx)
	jl	LBB0_2
## %bb.3:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	subq	%rax, %r13
	leaq	-76(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-72(%rbp), %r8
	movq	%r13, %rdi
	callq	_FindTishriMolad
	movl	-52(%rbp), %edi
	movq	-64(%rbp), %rsi
	movq	-72(%rbp), %rdx
	callq	_Tishri1
	movl	%eax, %r12d
	movslq	%eax, %r14
	movl	-76(%rbp), %eax
	leal	(%rax,%rax,8), %ecx
	leal	(%rax,%rcx,2), %eax
	movslq	-52(%rbp), %rdx
	cmpq	%r14, %r13
	jge	LBB0_4
## %bb.10:
	addl	%edx, %eax
	movl	%eax, (%rbx)
	leal	-177(%r12), %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_11
## %bb.22:
	movq	_monthsPerYear@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	decl	%eax
	cltq
	imulq	$1808407283, %rax, %rdx         ## imm = 0x6BCA1AF3
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$35, %rdx
	addl	%esi, %edx
	leal	(%rdx,%rdx,8), %esi
	leal	(%rdx,%rsi,2), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	movl	%r13d, %eax
	subl	%r12d, %eax
	addl	$207, %eax
	cmpq	$13, (%rcx,%rdx,8)
	movl	$7, (%r15)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	jne	LBB0_25
## %bb.23:
	testl	%eax, %eax
	jg	LBB0_38
## %bb.24:
	decl	(%r15)
	movl	(%rdx), %ecx
	leal	30(%rcx), %eax
	movl	%eax, (%rdx)
	movl	$-1, %eax
	cmpl	$-30, %ecx
	jg	LBB0_38
	jmp	LBB0_27
LBB0_2:
	movl	$0, (%rbx)
	movl	$0, (%r15)
	xorl	%r13d, %r13d
LBB0_37:
	movl	%r13d, (%rcx)
LBB0_38:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addl	%edx, %eax
	incl	%eax
	movl	%eax, (%rbx)
	leal	59(%r12), %eax
	cltq
	cmpq	%rax, %r13
	jge	LBB0_6
## %bb.5:
	leal	30(%r12), %eax
	cltq
	leal	-29(%r13), %ecx
	xorl	%edx, %edx
	cmpq	%rax, %r13
	leal	1(%r13), %eax
	setl	%dl
	cmovgel	%ecx, %eax
	movl	$2, %ecx
	subl	%edx, %ecx
	movl	%ecx, (%r15)
	subl	%r12d, %eax
	movl	%eax, %r13d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_11:
	leal	-30(%r12), %eax
	cltq
	cmpq	%rax, %r13
	jle	LBB0_13
## %bb.12:
	movl	$13, (%r15)
	subl	%r12d, %r13d
	addl	$30, %r13d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_6:
	leal	1(%rdx), %ecx
	movq	_HALAKIM_PER_LUNAR_CYCLE@GOTPCREL(%rip), %rsi
	movq	_monthsPerYear@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %rax
	imulq	(%rsi), %rax
	addq	-72(%rbp), %rax
	movq	_HALAKIM_PER_DAY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:
	cqto
	idivq	%rsi
	movq	%rax, %rsi
	jmp	LBB0_9
LBB0_25:
	testl	%eax, %eax
	jg	LBB0_38
## %bb.26:
	movl	$-2, %eax
LBB0_27:
	addl	%eax, (%r15)
	movl	(%rdx), %eax
	leal	30(%rax), %ecx
	movl	%ecx, (%rdx)
	cmpl	$-30, %eax
	jg	LBB0_38
## %bb.28:
	decl	(%r15)
	movl	(%rdx), %eax
	leal	29(%rax), %ecx
	movl	%ecx, (%rdx)
	cmpl	$-29, %eax
	jg	LBB0_38
## %bb.29:
	movq	$-365, %rdi                     ## imm = 0xFE93
	addq	-64(%rbp), %rdi
	leaq	-76(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-72(%rbp), %r8
	callq	_FindTishriMolad
	movl	-52(%rbp), %edi
	movq	-64(%rbp), %rsi
	movq	-72(%rbp), %rdx
	callq	_Tishri1
	movl	%eax, %ecx
	movl	%r12d, %eax
	movslq	%ecx, %r14
	movl	%ecx, %r12d
	jmp	LBB0_30
LBB0_13:
	leal	-60(%r12), %eax
	cltq
	cmpq	%rax, %r13
	jle	LBB0_15
## %bb.14:
	movl	$12, (%r15)
	subl	%r12d, %r13d
	addl	$60, %r13d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	movl	%eax, %esi
LBB0_9:
	addq	-64(%rbp), %rsi
	movq	%rsi, -64(%rbp)
	movq	%rdx, -72(%rbp)
	movslq	%ecx, %rdi
	imulq	$1808407283, %rdi, %rax         ## imm = 0x6BCA1AF3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,8), %ecx
	leal	(%rax,%rcx,2), %eax
	subl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Tishri1
LBB0_30:
	subl	%r12d, %eax
	subq	%r14, %r13
	leaq	-29(%r13), %rdx
	cmpl	$385, %eax                      ## imm = 0x181
	je	LBB0_32
## %bb.31:
	cmpl	$355, %eax                      ## imm = 0x163
	jne	LBB0_35
LBB0_32:
	movq	$-59, %rax
	cmpq	$59, %r13
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jg	LBB0_36
LBB0_34:
	movl	$2, (%r15)
	movl	%edx, %r13d
	jmp	LBB0_37
LBB0_35:
	movq	$-58, %rax
	cmpq	$58, %r13
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_34
LBB0_36:
	addq	%rax, %r13
	movq	%r13, -64(%rbp)
	movl	$3, (%r15)
	jmp	LBB0_37
LBB0_15:
	leal	-89(%r12), %eax
	cltq
	cmpq	%rax, %r13
	jle	LBB0_17
## %bb.16:
	movl	$11, (%r15)
	subl	%r12d, %r13d
	addl	$89, %r13d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_17:
	leal	-119(%r12), %eax
	cltq
	cmpq	%rax, %r13
	jle	LBB0_19
## %bb.18:
	movl	$10, (%r15)
	subl	%r12d, %r13d
	addl	$119, %r13d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_19:
	leal	-148(%r12), %eax
	cltq
	cmpq	%rax, %r13
	jle	LBB0_21
## %bb.20:
	movl	$9, (%r15)
	subl	%r12d, %r13d
	addl	$148, %r13d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_21:
	movl	$8, (%r15)
	subl	%r12d, %r13d
	addl	$178, %r13d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.comm	_JEWISH_SDN_OFFSET,8,3          ## @JEWISH_SDN_OFFSET
	.comm	_JEWISH_SDN_MAX,8,3             ## @JEWISH_SDN_MAX
	.comm	_HALAKIM_PER_LUNAR_CYCLE,8,3    ## @HALAKIM_PER_LUNAR_CYCLE
	.comm	_monthsPerYear,8,3              ## @monthsPerYear
	.comm	_HALAKIM_PER_DAY,8,3            ## @HALAKIM_PER_DAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SdnToJewish                    ; -- Begin function SdnToJewish
	.p2align	2
_SdnToJewish:                           ; @SdnToJewish
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
Lloh0:
	adrp	x8, _JEWISH_SDN_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JEWISH_SDN_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _JEWISH_SDN_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _JEWISH_SDN_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #8, lt
	b.ge	LBB0_4
; %bb.1:
	mov	w8, #0
	str	wzr, [x23]
	str	wzr, [x20]
LBB0_2:
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	sub	x21, x0, x8
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #24
	add	x4, sp, #16
	mov	x0, x21
	bl	_FindTishriMolad
	ldr	w0, [sp, #8]
	ldp	x2, x1, [sp, #16]
	bl	_Tishri1
	mov	x22, x0
	sxtw	x24, w22
	ldr	w8, [sp, #12]
	mov	w9, #19
	mul	w10, w8, w9
	ldrsw	x9, [sp, #8]
	cmp	x21, x24
	b.ge	LBB0_10
; %bb.5:
	add	w8, w10, w9
	str	w8, [x23]
	sub	w9, w22, #177
	cmp	x21, w9, sxtw
	b.ge	LBB0_12
; %bb.6:
Lloh6:
	adrp	x9, _monthsPerYear@GOTPAGE
Lloh7:
	ldr	x9, [x9, _monthsPerYear@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	sub	w8, w8, #1
	mov	w10, #6899
	movk	w10, #27594, lsl #16
	smull	x10, w8, w10
	lsr	x11, x10, #63
	asr	x10, x10, #35
	add	w10, w10, w11
	mov	w11, #19
	msub	w8, w10, w11, w8
	ldr	x9, [x9, w8, sxtw #3]
	mov	w8, #7
	str	w8, [x20]
	sub	w8, w21, w22
	add	w8, w8, #207
	str	w8, [x19]
	cmp	x9, #13
	b.ne	LBB0_19
; %bb.7:
	cmp	w8, #0
	b.gt	LBB0_3
; %bb.8:
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	ldr	w8, [x19]
	add	w9, w8, #30
	str	w9, [x19]
	cmn	w8, #30
	b.gt	LBB0_3
; %bb.9:
	mov	w8, #-1
	b	LBB0_21
LBB0_10:
	add	w8, w9, #1
	add	w10, w8, w10
	str	w10, [x23]
	add	w10, w22, #59
	cmp	x21, w10, sxtw
	b.ge	LBB0_14
; %bb.11:
	add	w8, w22, #30
	sub	w9, w21, #29
	cmp	x21, w8, sxtw
	mov	w8, #1
	cinc	w8, w8, ge
	str	w8, [x20]
	csinc	w8, w9, w21, ge
	sub	w8, w8, w22
	b	LBB0_2
LBB0_12:
	sub	w8, w22, #30
	cmp	x21, w8, sxtw
	b.le	LBB0_24
; %bb.13:
	mov	w8, #13
	str	w8, [x20]
	sub	w8, w21, w22
	add	w8, w8, #30
	b	LBB0_2
LBB0_14:
Lloh9:
	adrp	x10, _HALAKIM_PER_LUNAR_CYCLE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HALAKIM_PER_LUNAR_CYCLE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _monthsPerYear@GOTPAGE
Lloh13:
	ldr	x11, [x11, _monthsPerYear@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	ldr	x9, [x11, x9, lsl #3]
	ldp	x11, x12, [sp, #16]
	madd	x9, x9, x10, x11
Lloh15:
	adrp	x10, _HALAKIM_PER_DAY@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HALAKIM_PER_DAY@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	sdiv	x11, x9, x10
	add	x1, x12, x11
	msub	x2, x11, x10, x9
	stp	x2, x1, [sp, #16]
	mov	w9, #6899
	movk	w9, #27594, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #35
	add	w9, w9, w10
	mov	w10, #19
	msub	w0, w9, w10, w8
	bl	_Tishri1
LBB0_15:
	sub	w10, w0, w22
	sub	x8, x21, x24
	sub	x9, x8, #29
	cmp	w10, #385
	b.eq	LBB0_17
; %bb.16:
	cmp	w10, #355
	b.ne	LBB0_26
LBB0_17:
	cmp	x8, #59
	b.le	LBB0_27
; %bb.18:
	mov	x9, #-59
	b	LBB0_31
LBB0_19:
	cmp	w8, #0
	b.gt	LBB0_3
; %bb.20:
	mov	w8, #-2
LBB0_21:
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x20]
	ldr	w8, [x19]
	add	w9, w8, #30
	str	w9, [x19]
	cmn	w8, #30
	b.gt	LBB0_3
; %bb.22:
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	ldr	w8, [x19]
	add	w9, w8, #29
	str	w9, [x19]
	cmn	w8, #29
	b.gt	LBB0_3
; %bb.23:
	ldr	x8, [sp, #24]
	sub	x0, x8, #365
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #24
	add	x4, sp, #16
	bl	_FindTishriMolad
	ldr	w0, [sp, #8]
	ldp	x2, x1, [sp, #16]
	bl	_Tishri1
	mov	x8, x0
	mov	x0, x22
	sxtw	x24, w8
	mov	x22, x8
	b	LBB0_15
LBB0_24:
	sub	w8, w22, #60
	cmp	x21, w8, sxtw
	b.le	LBB0_28
; %bb.25:
	mov	w8, #12
	str	w8, [x20]
	sub	w8, w21, w22
	add	w8, w8, #60
	b	LBB0_2
LBB0_26:
	cmp	x8, #58
	b.gt	LBB0_30
LBB0_27:
	mov	w8, #2
	str	w8, [x20]
	mov	x8, x9
	b	LBB0_2
LBB0_28:
	sub	w8, w22, #89
	cmp	x21, w8, sxtw
	b.le	LBB0_32
; %bb.29:
	mov	w8, #11
	str	w8, [x20]
	sub	w8, w21, w22
	add	w8, w8, #89
	b	LBB0_2
LBB0_30:
	mov	x9, #-58
LBB0_31:
	add	x8, x8, x9
	str	x8, [sp, #24]
	mov	w9, #3
	str	w9, [x20]
	b	LBB0_2
LBB0_32:
	sub	w8, w22, #119
	cmp	x21, w8, sxtw
	b.le	LBB0_34
; %bb.33:
	mov	w8, #10
	str	w8, [x20]
	sub	w8, w21, w22
	add	w8, w8, #119
	b	LBB0_2
LBB0_34:
	sub	w8, w22, #148
	cmp	x21, w8, sxtw
	b.le	LBB0_36
; %bb.35:
	mov	w8, #9
	str	w8, [x20]
	sub	w8, w21, w22
	add	w8, w8, #148
	b	LBB0_2
LBB0_36:
	mov	w8, #8
	str	w8, [x20]
	sub	w8, w21, w22
	add	w8, w8, #178
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_JEWISH_SDN_OFFSET,8,3          ; @JEWISH_SDN_OFFSET
	.comm	_JEWISH_SDN_MAX,8,3             ; @JEWISH_SDN_MAX
	.comm	_HALAKIM_PER_LUNAR_CYCLE,8,3    ; @HALAKIM_PER_LUNAR_CYCLE
	.comm	_monthsPerYear,8,3              ; @monthsPerYear
	.comm	_HALAKIM_PER_DAY,8,3            ; @HALAKIM_PER_DAY
.subsections_via_symbols
