	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heb_number_to_chars
_heb_number_to_chars:                   ## @heb_number_to_chars
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leal	-10000(%rbx), %eax
	cmpl	$-9999, %eax                    ## imm = 0xD8F1
	jae	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_35
LBB0_2:
	movl	%esi, %r12d
	cmpl	$1000, %ebx                     ## imm = 0x3E8
	jae	LBB0_4
## %bb.3:
	leaq	-64(%rbp), %r15
	cmpl	$400, %ebx                      ## imm = 0x190
	jae	LBB0_12
LBB0_11:
	movq	%r15, %rsi
	jmp	LBB0_20
LBB0_4:
	movzwl	%bx, %eax
	shrl	$3, %eax
	imull	$8389, %eax, %eax               ## imm = 0x20C5
	shrl	$20, %eax
	imull	$1000, %eax, %ecx               ## imm = 0x3E8
	subl	%ecx, %ebx
	movq	_alef_bet@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	(%rcx,%rax), %al
	movb	%al, -64(%rbp)
	movq	_CAL_JEWISH_ADD_ALAFIM_GERESH@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.6:
	movb	$39, -63(%rbp)
	leaq	-62(%rbp), %r15
	jmp	LBB0_7
LBB0_5:
	leaq	-63(%rbp), %r15
LBB0_7:
	movq	_CAL_JEWISH_ADD_ALAFIM@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcpy
	addq	$7, %r15
LBB0_9:
	movzwl	%bx, %ebx
	cmpl	$400, %ebx                      ## imm = 0x190
	jb	LBB0_11
LBB0_12:
	leal	-400(%rbx), %r8d
	imulq	$1374389535, %r8, %rcx          ## imm = 0x51EB851F
	shrq	$39, %rcx
	incl	%ecx
	andl	$3, %ecx
	je	LBB0_13
## %bb.14:
	imull	$400, %ecx, %edx                ## imm = 0x190
	xorl	%ecx, %ecx
	movq	_alef_bet@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	movzbl	22(%rax), %eax
	movb	%al, (%rsi)
	incq	%rsi
	addl	$400, %ecx                      ## imm = 0x190
	cmpl	%ecx, %edx
	jne	LBB0_15
## %bb.16:
	subl	%ecx, %ebx
	cmpl	$1200, %r8d                     ## imm = 0x4B0
	jae	LBB0_18
	jmp	LBB0_20
LBB0_13:
	movq	%r15, %rsi
	cmpl	$1200, %r8d                     ## imm = 0x4B0
	jb	LBB0_20
LBB0_18:
	movq	_alef_bet@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	movzbl	22(%rcx), %ecx
	movb	%cl, (%rsi)
	movq	(%rax), %rcx
	movzbl	22(%rcx), %ecx
	movb	%cl, 1(%rsi)
	movq	(%rax), %rcx
	movzbl	22(%rcx), %ecx
	movb	%cl, 2(%rsi)
	movq	(%rax), %rcx
	movzbl	22(%rcx), %ecx
	movb	%cl, 3(%rsi)
	addq	$4, %rsi
	addl	$-1600, %ebx                    ## imm = 0xF9C0
	cmpl	$399, %ebx                      ## imm = 0x18F
	ja	LBB0_19
LBB0_20:
	cmpl	$100, %ebx
	jb	LBB0_22
## %bb.21:
	movq	_alef_bet@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzwl	%bx, %ecx
	shrl	$2, %ecx
	imull	$5243, %ecx, %ecx               ## imm = 0x147B
	shrl	$17, %ecx
	movb	18(%rcx,%rax), %al
	movb	%al, (%rsi)
	incq	%rsi
	imull	$100, %ecx, %eax
	subl	%eax, %ebx
	movzwl	%bx, %ebx
LBB0_22:
	leal	-15(%rbx), %eax
	cmpl	$1, %eax
	ja	LBB0_24
## %bb.23:
	movq	_alef_bet@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movb	9(%rcx), %cl
	movb	%cl, (%rsi)
	movq	(%rax), %rax
	addl	$-9, %ebx
	movb	(%rax,%rbx), %al
	movb	%al, 1(%rsi)
	addq	$2, %rsi
	jmp	LBB0_28
LBB0_24:
	cmpl	$10, %ebx
	jb	LBB0_26
## %bb.25:
	movq	_alef_bet@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	%bl, %ecx
	imull	$205, %ecx, %edx
	shrl	$11, %edx
	movb	9(%rdx,%rax), %al
	movb	%al, (%rsi)
	incq	%rsi
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %eax
	subb	%al, %cl
	movzbl	%cl, %ebx
LBB0_26:
	testl	%ebx, %ebx
	je	LBB0_28
## %bb.27:
	movq	_alef_bet@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movb	(%rax,%rcx), %al
	movb	%al, (%rsi)
	incq	%rsi
LBB0_28:
	movq	_CAL_JEWISH_ADD_GERESHAYIM@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_34
## %bb.29:
	movq	%rsi, %rax
	subq	%r15, %rax
	je	LBB0_34
## %bb.30:
	cmpq	$1, %rax
	jne	LBB0_32
## %bb.31:
	movb	$39, (%rsi)
	jmp	LBB0_33
LBB0_32:
	movb	-1(%rsi), %al
	movb	%al, (%rsi)
	movb	$34, -1(%rsi)
LBB0_33:
	incq	%rsi
LBB0_34:
	movb	$0, (%rsi)
	leaq	-64(%rbp), %rdi
	subl	%edi, %esi
	incl	%esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_estrndup
LBB0_35:
	movq	%rax, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_37
## %bb.36:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_alef_bet,8,3                   ## @alef_bet
	.comm	_CAL_JEWISH_ADD_ALAFIM_GERESH,4,2 ## @CAL_JEWISH_ADD_ALAFIM_GERESH
	.comm	_CAL_JEWISH_ADD_ALAFIM,4,2      ## @CAL_JEWISH_ADD_ALAFIM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" \340\354\364\351\355 "

	.comm	_CAL_JEWISH_ADD_GERESHAYIM,4,2  ## @CAL_JEWISH_ADD_GERESHAYIM
	.no_dead_strip	_heb_number_to_chars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heb_number_to_chars
_heb_number_to_chars:                   ; @heb_number_to_chars
	.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, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w8, #-10000
	mov	w9, #-9999
	add	w8, w0, w8
	cmp	w8, w9
	b.hs	LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_25
LBB0_2:
	mov	x20, x1
	mov	x22, x0
	add	x21, sp, #6
Lloh3:
	adrp	x23, _alef_bet@GOTPAGE
Lloh4:
	ldr	x23, [x23, _alef_bet@GOTPAGEOFF]
	cmp	w0, #1000
	b.lo	LBB0_9
; %bb.3:
	ubfx	w8, w22, #3, #13
	mov	w9, #8389
	mul	w8, w8, w9
	lsr	w24, w8, #20
	ldr	x8, [x23]
	ldrb	w8, [x8, w24, uxtw]
	strb	w8, [sp, #6]
Lloh5:
	adrp	x8, _CAL_JEWISH_ADD_ALAFIM_GERESH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAL_JEWISH_ADD_ALAFIM_GERESH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #39
	strb	w8, [sp, #7]
	add	x8, sp, #6
	add	x21, x8, #2
	b	LBB0_6
LBB0_5:
	add	x21, x21, #1
LBB0_6:
Lloh8:
	adrp	x8, _CAL_JEWISH_ADD_ALAFIM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAL_JEWISH_ADD_ALAFIM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcpy
	add	x21, x21, #7
LBB0_8:
	mov	w8, #1000
	msub	w8, w24, w8, w22
	and	w22, w8, #0xffff
LBB0_9:
	mov	x8, x21
	cmp	w22, #400
	b.lo	LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	ldrb	w9, [x9, #22]
	strb	w9, [x8], #1
	sub	w22, w22, #400
	cmp	w22, #399
	b.hi	LBB0_10
LBB0_11:
	cmp	w22, #100
	b.lo	LBB0_13
; %bb.12:
	ldr	x9, [x23]
	ubfx	w10, w22, #2, #14
	mov	w11, #5243
	mul	w10, w10, w11
	lsr	w10, w10, #17
	add	x9, x10, x9
	ldrb	w9, [x9, #18]
	strb	w9, [x8], #1
	mov	w9, #100
	msub	w9, w10, w9, w22
	and	w22, w9, #0xffff
LBB0_13:
	sub	w9, w22, #15
	cmp	w9, #1
	b.hi	LBB0_15
; %bb.14:
	ldr	x9, [x23]
	ldrb	w9, [x9, #9]
	strb	w9, [x8]
	ldr	x9, [x23]
	sub	w10, w22, #9
	ldrb	w9, [x9, w10, uxtw]
	strb	w9, [x8, #1]
	add	x8, x8, #2
	b	LBB0_19
LBB0_15:
	cmp	w22, #10
	b.lo	LBB0_17
; %bb.16:
	ldr	x9, [x23]
	and	w10, w22, #0xff
	mov	w11, #205
	mul	w10, w10, w11
	lsr	w10, w10, #11
	add	x9, x10, x9
	ldrb	w9, [x9, #9]
	strb	w9, [x8], #1
	mov	w9, #10
	msub	w9, w10, w9, w22
	and	w22, w9, #0xff
LBB0_17:
	cbz	w22, LBB0_19
; %bb.18:
	ldr	x9, [x23]
	ldrb	w9, [x9, w22, uxtw]
	strb	w9, [x8], #1
LBB0_19:
Lloh13:
	adrp	x9, _CAL_JEWISH_ADD_GERESHAYIM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CAL_JEWISH_ADD_GERESHAYIM@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_24
; %bb.20:
	subs	x9, x8, x21
	b.eq	LBB0_24
; %bb.21:
	cmp	x9, #1
	b.ne	LBB0_23
; %bb.22:
	mov	w9, #39
	strb	w9, [x8], #1
	b	LBB0_24
LBB0_23:
	ldurb	w9, [x8, #-1]
	strb	w9, [x8]
	mov	w9, #34
	sturb	w9, [x8, #-1]
	add	x8, x8, #1
LBB0_24:
	strb	wzr, [x8]
	add	x9, sp, #6
	sub	w8, w8, w9
	add	w1, w8, #1
	add	x0, sp, #6
	bl	_estrndup
LBB0_25:
	str	x0, [x19]
	ldr	x8, [sp, #24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	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_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_alef_bet,8,3                   ; @alef_bet
	.comm	_CAL_JEWISH_ADD_ALAFIM_GERESH,4,2 ; @CAL_JEWISH_ADD_ALAFIM_GERESH
	.comm	_CAL_JEWISH_ADD_ALAFIM,4,2      ; @CAL_JEWISH_ADD_ALAFIM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" \340\354\364\351\355 "

	.comm	_CAL_JEWISH_ADD_GERESHAYIM,4,2  ; @CAL_JEWISH_ADD_GERESHAYIM
	.no_dead_strip	_heb_number_to_chars
.subsections_via_symbols
