Program: spelt2num

x86 assembly:
	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$64, %rsp
	movl	$0, -4(%rbp)
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movq	_n@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rdx
	addq	$1, %rdx
	movq	_n@GOTPCREL(%rip), %rax
	movq	%rdx, (%rax)
	movb	$1, %al
	cmpq	$0, %rcx
	movb	%al, -21(%rbp)                  ## 1-byte Spill
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_p(%rip), %rax
	movq	%rax, %rcx
	addq	$1, %rcx
	movq	%rcx, _p(%rip)
	movsbl	(%rax), %eax
	movl	%eax, -20(%rbp)
	cmpl	$0, %eax
	setg	%al
	movb	%al, -21(%rbp)                  ## 1-byte Spill
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movb	-21(%rbp), %al                  ## 1-byte Reload
	testb	$1, %al
	jne	LBB0_4
	jmp	LBB0_30
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_b@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$64, %ecx
	cqto
	idivq	%rcx
	subq	$25, %rdx
	movq	%rdx, -16(%rbp)
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	cmpl	$47, -20(%rbp)
	movb	%al, -22(%rbp)                  ## 1-byte Spill
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_b@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setne	%al
	movb	%al, -22(%rbp)                  ## 1-byte Spill
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movb	-22(%rbp), %al                  ## 1-byte Reload
	testb	$1, %al
	jne	LBB0_8
	jmp	LBB0_25
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	_n@GOTPCREL(%rip), %rax
	movq	$19, (%rax)
LBB0_9:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_n@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	_n@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rdx
	addq	$-1, %rdx
	movq	_n@GOTPCREL(%rip), %rax
	movq	%rdx, (%rax)
	movl	$6177, %eax                     ## imm = 0x1821
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	shlq	$2, %rcx
	movl	$1, %eax
                                        ## kill: def $cl killed $rcx
	shlq	%cl, %rax
	movq	%rax, %rcx
	movq	_u@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	_n@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rax
	movsbl	(%rax,%rcx), %eax
	subl	$42, %eax
	andl	$255, %eax
	movslq	%eax, %rcx
	movq	_b@GOTPCREL(%rip), %rax
	xorq	(%rax), %rcx
	movb	$1, %al
	cmpq	$0, %rcx
	movb	%al, -23(%rbp)                  ## 1-byte Spill
	jne	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	_n@GOTPCREL(%rip), %rax
	cmpq	$15, (%rax)
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	_n@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)                 ## 8-byte Spill
	jmp	LBB0_21
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	_n@GOTPCREL(%rip), %rax
	cmpq	$9, (%rax)
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	_m@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_u@GOTPCREL(%rip), %rcx
	cqto
	idivq	(%rcx)
	movq	%rdx, %rax
	xorl	%ecx, %ecx
                                        ## kill: def $rcx killed $ecx
	movq	_u@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	xorq	$-1, %rcx
	imulq	%rcx, %rax
	movq	%rax, -40(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	-16(%rbp), %rax
	xorq	$-1, %rax
	cmpq	$0, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	_n@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-16(%rbp), %rcx
	cmpq	$0, %rcx
	setne	%cl
	xorb	$-1, %cl
	andb	$1, %cl
	movzbl	%cl, %ecx
	shll	$4, %ecx
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	_n@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$4, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -40(%rbp)                 ## 8-byte Spill
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	-40(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -32(%rbp)                 ## 8-byte Spill
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	-32(%rbp), %rcx                 ## 8-byte Reload
	movq	_m@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movq	_m@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movq	_b@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	movb	%al, -23(%rbp)                  ## 1-byte Spill
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=3
	movb	-23(%rbp), %al                  ## 1-byte Reload
	jmp	LBB0_9
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=2
	jmp	LBB0_24
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	_b@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$8, %ecx
	cqto
	idivq	%rcx
	movq	%rax, %rcx
	movq	_b@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	jmp	LBB0_5
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	jmp	LBB0_26
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_n@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$11, %ecx
	cqto
	idivq	%rcx
	movq	_n@GOTPCREL(%rip), %rax
	movq	%rdx, (%rax)
	leaq	L_.str.2(%rip), %rax
	movsbl	(%rax,%rdx), %eax
	subl	-20(%rbp), %eax
	cmpl	$0, %eax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_b@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_29
LBB0_28:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_b@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$3, %rax
	movq	_n@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_29:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	_b@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	jmp	LBB0_1
LBB0_30:
	movq	_m@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.3(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	callq	_libmin_success
	movl	-4(%rbp), %eax
	addq	$64, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fifty-two trillion six-hundred and seventy five million and sixty-one thousand and five-hundred sixty-two\n"

	.section	__DATA,__data
	.globl	_p                              ## @p
	.p2align	3
_p:
	.quad	L_.str

	.comm	_n,8,3                          ## @n
	.comm	_b,8,3                          ## @b
	.comm	_u,8,3                          ## @u
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"1+DIY/.K430x9G(kC["

	.comm	_m,8,3                          ## @m
L_.str.2:                               ## @.str.2
	.asciz	"ynwtsflrabg"

L_.str.3:                               ## @.str.3
	.asciz	"%llx\n"

.subsections_via_symbols


ARM64 assembly:
	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	adrp	x8, _n@GOTPAGE
	ldr	x8, [x8, _n@GOTPAGEOFF]
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	adrp	x8, _m@GOTPAGE
	ldr	x8, [x8, _m@GOTPAGEOFF]
	stur	x8, [x29, #-48]                 ; 8-byte Folded Spill
	adrp	x8, _b@GOTPAGE
	ldr	x8, [x8, _b@GOTPAGEOFF]
	stur	x8, [x29, #-40]                 ; 8-byte Folded Spill
	adrp	x8, _u@GOTPAGE
	ldr	x8, [x8, _u@GOTPAGEOFF]
	stur	x8, [x29, #-32]                 ; 8-byte Folded Spill
	stur	wzr, [x29, #-4]
	b	LBB0_1
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	ldr	x8, [x10]
	add	x9, x8, #1
	str	x9, [x10]
	subs	x8, x8, #0
	cset	w8, ne
	mov	w9, #1
	str	w9, [sp, #52]                   ; 4-byte Folded Spill
	tbnz	w8, #0, LBB0_3
	b	LBB0_2
LBB0_2:                                 ;   in Loop: Header=BB0_1 Depth=1
	adrp	x10, _p@PAGE
	ldr	x8, [x10, _p@PAGEOFF]
	add	x9, x8, #1
	str	x9, [x10, _p@PAGEOFF]
	ldrsb	w8, [x8]
	stur	w8, [x29, #-20]
	subs	w8, w8, #0
	cset	w8, gt
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_30
	b	LBB0_4
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldur	x8, [x29, #-40]                 ; 8-byte Folded Reload
	ldr	x8, [x8]
	mov	x10, #64
	sdiv	x9, x8, x10
	mul	x9, x9, x10
	subs	x8, x8, x9
	subs	x8, x8, #25
	stur	x8, [x29, #-16]
	b	LBB0_5
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	ldur	w8, [x29, #-20]
	subs	w8, w8, #47
	cset	w8, ge
	mov	w9, #0
	str	w9, [sp, #48]                   ; 4-byte Folded Spill
	tbnz	w8, #0, LBB0_7
	b	LBB0_6
LBB0_6:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldur	x8, [x29, #-40]                 ; 8-byte Folded Reload
	ldr	x8, [x8]
	subs	x8, x8, #0
	cset	w8, ne
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
	b	LBB0_7
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_25
	b	LBB0_8
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	mov	x8, #19
	str	x8, [x9]
	b	LBB0_9
LBB0_9:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	subs	x8, x8, #0
	cset	w8, eq
	tbnz	w8, #0, LBB0_23
	b	LBB0_10
LBB0_10:                                ;   in Loop: Header=BB0_9 Depth=3
	ldur	x9, [x29, #-32]                 ; 8-byte Folded Reload
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	ldr	x11, [x10]
	subs	x8, x11, #1
	str	x8, [x10]
	mov	x8, #6177
	sdiv	x10, x8, x11
	mul	x10, x10, x11
	subs	x8, x8, x10
	lsl	x10, x8, #2
	mov	x8, #1
	lsl	x8, x8, x10
	str	x8, [x9]
	b	LBB0_11
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=3
	ldur	x9, [x29, #-40]                 ; 8-byte Folded Reload
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x10, [x8]
	adrp	x8, l_.str.1@PAGE
	add	x8, x8, l_.str.1@PAGEOFF
	ldrsb	w8, [x8, x10]
	subs	w8, w8, #42
	and	w10, w8, #0xff
                                        ; implicit-def: $x8
	mov	x8, x10
	sxtw	x8, w8
	ldr	x9, [x9]
	eor	x8, x8, x9
	subs	x8, x8, #0
	cset	w8, ne
	tbnz	w8, #0, LBB0_22
	b	LBB0_12
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	subs	x8, x8, #15
	cset	w8, le
	tbnz	w8, #0, LBB0_14
	b	LBB0_13
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_21
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	subs	x8, x8, #9
	cset	w8, le
	tbnz	w8, #0, LBB0_16
	b	LBB0_15
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=3
	ldur	x9, [x29, #-32]                 ; 8-byte Folded Reload
	ldur	x8, [x29, #-48]                 ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x11, [x9]
	sdiv	x10, x8, x11
	mul	x10, x10, x11
	subs	x8, x8, x10
	ldr	x10, [x9]
	mov	x9, #0
	subs	x9, x9, x10
	mvn	x9, x9
	mul	x8, x8, x9
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=3
	ldur	x8, [x29, #-16]
	mvn	x8, x8
	subs	x8, x8, #0
	cset	w8, eq
	tbnz	w8, #0, LBB0_18
	b	LBB0_17
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldur	x9, [x29, #-16]
	subs	x9, x9, #0
	cset	w9, eq
	and	w9, w9, #0x1
	lsl	w9, w9, #4
	add	x8, x8, w9, sxtw
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	lsl	x8, x8, #4
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	b	LBB0_19
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	b	LBB0_20
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_21
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=3
	ldur	x8, [x29, #-40]                 ; 8-byte Folded Reload
	ldur	x10, [x29, #-48]                ; 8-byte Folded Reload
	ldr	x11, [sp, #40]                  ; 8-byte Folded Reload
	ldr	x9, [x10]
	add	x9, x9, x11
	str	x9, [x10]
	str	xzr, [x8]
	b	LBB0_22
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=3
	b	LBB0_9
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=2
	b	LBB0_24
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=2
	ldur	x9, [x29, #-40]                 ; 8-byte Folded Reload
	ldr	x8, [x9]
	mov	x10, #8
	sdiv	x8, x8, x10
	str	x8, [x9]
	b	LBB0_5
LBB0_25:                                ;   in Loop: Header=BB0_1 Depth=1
	b	LBB0_26
LBB0_26:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x9, [x8]
	mov	x11, #11
	sdiv	x10, x9, x11
	mul	x10, x10, x11
	subs	x9, x9, x10
	str	x9, [x8]
	adrp	x8, l_.str.2@PAGE
	add	x8, x8, l_.str.2@PAGEOFF
	ldrsb	w8, [x8, x9]
	ldur	w9, [x29, #-20]
	subs	w8, w8, w9
	subs	w8, w8, #0
	cset	w8, eq
	tbnz	w8, #0, LBB0_28
	b	LBB0_27
LBB0_27:                                ;   in Loop: Header=BB0_1 Depth=1
	ldur	x8, [x29, #-40]                 ; 8-byte Folded Reload
	ldr	x8, [x8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldur	x9, [x29, #-40]                 ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	x8, [x8]
	add	x8, x8, x9, lsl #3
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_29
LBB0_29:                                ;   in Loop: Header=BB0_1 Depth=1
	ldur	x9, [x29, #-40]                 ; 8-byte Folded Reload
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [x9]
	b	LBB0_1
LBB0_30:
	ldur	x8, [x29, #-48]                 ; 8-byte Folded Reload
	ldr	x8, [x8]
	mov	x9, sp
	str	x8, [x9]
	adrp	x0, l_.str.3@PAGE
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_libmin_printf
	bl	_libmin_success
	ldur	w0, [x29, #-4]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fifty-two trillion six-hundred and seventy five million and sixty-one thousand and five-hundred sixty-two\n"

	.section	__DATA,__data
	.globl	_p                              ; @p
	.p2align	3
_p:
	.quad	l_.str

	.comm	_n,8,3                          ; @n
	.comm	_b,8,3                          ; @b
	.comm	_u,8,3                          ; @u
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"1+DIY/.K430x9G(kC["

	.comm	_m,8,3                          ; @m
l_.str.2:                               ; @.str.2
	.asciz	"ynwtsflrabg"

l_.str.3:                               ; @.str.3
	.asciz	"%llx\n"

.subsections_via_symbols