Program: totient

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	$32, %rsp
	movl	$0, -4(%rbp)
	movl	$1, -8(%rbp)
	movq	$0, -16(%rbp)
	movl	$0, -24(%rbp)
## %bb.1:
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -24(%rbp)
	cmpl	-8(%rbp), %eax
	jge	LBB0_10
## %bb.2:
	movq	-16(%rbp), %rax
	movslq	-24(%rbp), %rcx
	movq	(%rax,%rcx,8), %rax
	movsbl	(%rax), %eax
	cmpl	$45, %eax
	jne	LBB0_9
## %bb.3:
	movq	-16(%rbp), %rax
	movslq	-24(%rbp), %rcx
	movq	(%rax,%rcx,8), %rax
	movsbl	1(%rax), %eax
	movl	%eax, -28(%rbp)                 ## 4-byte Spill
	subl	$45, %eax
	je	LBB0_4
	jmp	LBB0_17
LBB0_17:
	movl	-28(%rbp), %eax                 ## 4-byte Reload
	subl	$63, %eax
	je	LBB0_6
	jmp	LBB0_18
LBB0_18:
	movl	-28(%rbp), %eax                 ## 4-byte Reload
	subl	$72, %eax
	je	LBB0_6
	jmp	LBB0_19
LBB0_19:
	movl	-28(%rbp), %eax                 ## 4-byte Reload
	subl	$86, %eax
	je	LBB0_5
	jmp	LBB0_20
LBB0_20:
	movl	-28(%rbp), %eax                 ## 4-byte Reload
	subl	$104, %eax
	je	LBB0_6
	jmp	LBB0_21
LBB0_21:
	movl	-28(%rbp), %eax                 ## 4-byte Reload
	subl	$118, %eax
	je	LBB0_5
	jmp	LBB0_7
LBB0_4:
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -24(%rbp)
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movb	$0, %al
	callq	_libmin_printf
	callq	_libmin_success
LBB0_6:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	movb	$0, %al
	callq	_libmin_printf
	callq	_libmin_success
LBB0_7:
	movq	-16(%rbp), %rax
	movslq	-24(%rbp), %rcx
	movq	(%rax,%rcx,8), %rsi
	leaq	L_.str.3(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	movb	$0, %al
	callq	_libmin_printf
	movl	$1, %edi
	callq	_libmin_fail
LBB0_8:
	jmp	LBB0_9
LBB0_9:
	jmp	LBB0_10
LBB0_10:
	movl	-24(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	LBB0_12
## %bb.11:
	movl	$45457, -20(%rbp)               ## imm = 0xB191
	jmp	LBB0_13
LBB0_12:
	movq	-16(%rbp), %rax
	movl	-24(%rbp), %ecx
	movl	%ecx, %edx
	addl	$1, %edx
	movl	%edx, -24(%rbp)
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_libmin_atoi
	movl	%eax, -20(%rbp)
LBB0_13:
	cmpl	$0, -20(%rbp)
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	movl	$1, -4(%rbp)
	jmp	LBB0_16
LBB0_15:
	movl	-20(%rbp), %eax
	movl	%eax, -32(%rbp)                 ## 4-byte Spill
	movl	-20(%rbp), %edi
	callq	_phi
	movl	-32(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	leaq	L_.str.6(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	callq	_libmin_success
	movl	$0, -4(%rbp)
LBB0_16:
	movl	-4(%rbp), %eax
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function phi
_phi:                                   ## @phi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%edi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	jge	LBB1_2
## %bb.1:
	xorl	%eax, %eax
	subl	-8(%rbp), %eax
	movl	%eax, -8(%rbp)
LBB1_2:
	cmpl	$1, -8(%rbp)
	jg	LBB1_4
## %bb.3:
	movl	$0, -4(%rbp)
	jmp	LBB1_9
LBB1_4:
	cmpl	$2, -8(%rbp)
	jne	LBB1_6
## %bb.5:
	movl	$1, -4(%rbp)
	jmp	LBB1_9
LBB1_6:
	cmpl	$3, -8(%rbp)
	jne	LBB1_8
## %bb.7:
	movl	$2, -4(%rbp)
	jmp	LBB1_9
LBB1_8:
	movl	-8(%rbp), %edi
	movl	$2, %esi
	callq	_phiphi
	movl	%eax, -4(%rbp)
LBB1_9:
	movl	-4(%rbp), %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function phiphi
_phiphi:                                ## @phiphi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movl	%edi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movl	-12(%rbp), %eax
	addl	$1, %eax
	cmpl	-8(%rbp), %eax
	jne	LBB2_2
## %bb.1:
	movl	-12(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	LBB2_7
LBB2_2:
	movl	-8(%rbp), %eax
	cltd
	idivl	-12(%rbp)
	cmpl	$0, %edx
	jne	LBB2_6
## %bb.3:
	movl	-12(%rbp), %edi
	movl	-8(%rbp), %eax
	cltd
	idivl	-12(%rbp)
	movl	%eax, %esi
	movl	%esi, -16(%rbp)
	callq	_my_gcd
	cmpl	$1, %eax
	jne	LBB2_5
## %bb.4:
	movl	-12(%rbp), %edi
	callq	_phi
	movl	%eax, -20(%rbp)                 ## 4-byte Spill
	movl	-16(%rbp), %edi
	callq	_phi
	movl	%eax, %ecx
	movl	-20(%rbp), %eax                 ## 4-byte Reload
	imull	%ecx, %eax
	movl	%eax, -4(%rbp)
	jmp	LBB2_7
LBB2_5:
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)                 ## 4-byte Spill
	movl	-16(%rbp), %edi
	callq	_phi
	movl	%eax, %ecx
	movl	-24(%rbp), %eax                 ## 4-byte Reload
	imull	%ecx, %eax
	movl	%eax, -4(%rbp)
	jmp	LBB2_7
LBB2_6:
	movl	-8(%rbp), %edi
	movl	-12(%rbp), %esi
	addl	$1, %esi
	callq	_phiphi
	movl	%eax, -4(%rbp)
LBB2_7:
	movl	-4(%rbp), %eax
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function my_gcd
_my_gcd:                                ## @my_gcd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movl	%edi, -8(%rbp)
	movl	%esi, -12(%rbp)
	cmpl	$0, -8(%rbp)
	je	LBB3_2
## %bb.1:
	cmpl	$0, -12(%rbp)
	jne	LBB3_3
LBB3_2:
	movl	$-1, -4(%rbp)
	jmp	LBB3_12
LBB3_3:
	cmpl	$0, -8(%rbp)
	jge	LBB3_5
## %bb.4:
	xorl	%eax, %eax
	subl	-8(%rbp), %eax
	movl	%eax, -8(%rbp)
LBB3_5:
	cmpl	$0, -12(%rbp)
	jge	LBB3_7
## %bb.6:
	xorl	%eax, %eax
	subl	-12(%rbp), %eax
	movl	%eax, -12(%rbp)
LBB3_7:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	LBB3_9
## %bb.8:
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -8(%rbp)
LBB3_9:
	movl	-12(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%eax, -16(%rbp)
	movl	-12(%rbp), %eax
	movl	-8(%rbp), %ecx
	imull	-16(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, -20(%rbp)
	cmpl	$0, -20(%rbp)
	jne	LBB3_11
## %bb.10:
	movl	-8(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	LBB3_12
LBB3_11:
	movl	-8(%rbp), %edi
	movl	-20(%rbp), %esi
	callq	_my_gcd
	movl	%eax, -4(%rbp)
LBB3_12:
	movl	-4(%rbp), %eax
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"1.0"

L_.str.2:                               ## @.str.2
	.asciz	"\ntotient [ -h -v --] n\n\nFind the Euler totient function of n, the number of k <= n such that\nk and n are relatively prime. (1 is relatively prime to everything.)\n\n--: Signal end of options so that negative n can be input. (Silly, since\n    we merely define phi(-n) = phi(n).)\n-v: Print version number and exit. \n-h: Print this helpful information. \n\n"

L_.str.3:                               ## @.str.3
	.asciz	"totient: unkown option %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"totient [ -h -v -- ] n"

L_.str.5:                               ## @.str.5
	.asciz	"totient: not defined for n = 0.\n"

L_.str.6:                               ## @.str.6
	.asciz	"phi(%d) = %d\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, #80
	.cfi_def_cfa_offset 80
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stur	wzr, [x29, #-4]
	mov	w8, #1
	stur	w8, [x29, #-8]
                                        ; kill: def $x8 killed $xzr
	stur	xzr, [x29, #-16]
	stur	wzr, [x29, #-24]
	b	LBB0_1
LBB0_1:
	ldur	w8, [x29, #-24]
	add	w8, w8, #1
	stur	w8, [x29, #-24]
	ldur	w9, [x29, #-8]
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB0_15
	b	LBB0_2
LBB0_2:
	ldur	x8, [x29, #-16]
	ldursw	x9, [x29, #-24]
	ldr	x8, [x8, x9, lsl #3]
	ldrsb	w8, [x8]
	subs	w8, w8, #45
	cset	w8, ne
	tbnz	w8, #0, LBB0_14
	b	LBB0_3
LBB0_3:
	ldur	x8, [x29, #-16]
	ldursw	x9, [x29, #-24]
	ldr	x8, [x8, x9, lsl #3]
	ldrsb	w8, [x8, #1]
	stur	w8, [x29, #-28]                 ; 4-byte Folded Spill
	subs	w8, w8, #45
	cset	w8, eq
	tbnz	w8, #0, LBB0_9
	b	LBB0_4
LBB0_4:
	ldur	w8, [x29, #-28]                 ; 4-byte Folded Reload
	subs	w8, w8, #63
	cset	w8, eq
	tbnz	w8, #0, LBB0_11
	b	LBB0_5
LBB0_5:
	ldur	w8, [x29, #-28]                 ; 4-byte Folded Reload
	subs	w8, w8, #72
	cset	w8, eq
	tbnz	w8, #0, LBB0_11
	b	LBB0_6
LBB0_6:
	ldur	w8, [x29, #-28]                 ; 4-byte Folded Reload
	subs	w8, w8, #86
	cset	w8, eq
	tbnz	w8, #0, LBB0_10
	b	LBB0_7
LBB0_7:
	ldur	w8, [x29, #-28]                 ; 4-byte Folded Reload
	subs	w8, w8, #104
	cset	w8, eq
	tbnz	w8, #0, LBB0_11
	b	LBB0_8
LBB0_8:
	ldur	w8, [x29, #-28]                 ; 4-byte Folded Reload
	subs	w8, w8, #118
	cset	w8, eq
	tbnz	w8, #0, LBB0_10
	b	LBB0_12
LBB0_9:
	ldur	w8, [x29, #-24]
	add	w8, w8, #1
	stur	w8, [x29, #-24]
	b	LBB0_13
LBB0_10:
	mov	x9, sp
	adrp	x8, l_.str.1@PAGE
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x9]
	adrp	x0, l_.str@PAGE
	add	x0, x0, l_.str@PAGEOFF
	bl	_libmin_printf
	bl	_libmin_success
	b	LBB0_11
LBB0_11:
	mov	x9, sp
	adrp	x8, l_.str.2@PAGE
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x9]
	adrp	x0, l_.str@PAGE
	add	x0, x0, l_.str@PAGEOFF
	bl	_libmin_printf
	bl	_libmin_success
	b	LBB0_12
LBB0_12:
	ldur	x8, [x29, #-16]
	ldursw	x9, [x29, #-24]
	ldr	x8, [x8, x9, lsl #3]
	mov	x9, sp
	str	x8, [x9]
	adrp	x0, l_.str.3@PAGE
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_libmin_printf
	mov	x9, sp
	adrp	x8, l_.str.4@PAGE
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x9]
	adrp	x0, l_.str@PAGE
	add	x0, x0, l_.str@PAGEOFF
	bl	_libmin_printf
	mov	w0, #1
	bl	_libmin_fail
	b	LBB0_13
LBB0_13:
	b	LBB0_14
LBB0_14:
	b	LBB0_15
LBB0_15:
	ldur	w8, [x29, #-24]
	ldur	w9, [x29, #-8]
	subs	w8, w8, w9
	cset	w8, lt
	tbnz	w8, #0, LBB0_17
	b	LBB0_16
LBB0_16:
	mov	w8, #45457
	stur	w8, [x29, #-20]
	b	LBB0_18
LBB0_17:
	ldur	x8, [x29, #-16]
	ldursw	x9, [x29, #-24]
	mov	x10, x9
	add	w10, w10, #1
	stur	w10, [x29, #-24]
	ldr	x0, [x8, x9, lsl #3]
	bl	_libmin_atoi
	stur	w0, [x29, #-20]
	b	LBB0_18
LBB0_18:
	ldur	w8, [x29, #-20]
	subs	w8, w8, #0
	cset	w8, ne
	tbnz	w8, #0, LBB0_20
	b	LBB0_19
LBB0_19:
	adrp	x0, l_.str.5@PAGE
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_libmin_printf
	mov	w8, #1
	stur	w8, [x29, #-4]
	b	LBB0_21
LBB0_20:
	ldur	w9, [x29, #-20]
                                        ; implicit-def: $x8
	mov	x8, x9
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldur	w0, [x29, #-20]
	bl	_phi
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	mov	x9, sp
	str	x8, [x9]
                                        ; implicit-def: $x8
	mov	x8, x0
	str	x8, [x9, #8]
	adrp	x0, l_.str.6@PAGE
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_libmin_printf
	bl	_libmin_success
	stur	wzr, [x29, #-4]
	b	LBB0_21
LBB0_21:
	ldur	w0, [x29, #-4]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function phi
_phi:                                   ; @phi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	str	w0, [sp, #8]
	ldr	w8, [sp, #8]
	subs	w8, w8, #0
	cset	w8, ge
	tbnz	w8, #0, LBB1_2
	b	LBB1_1
LBB1_1:
	ldr	w9, [sp, #8]
	mov	w8, #0
	subs	w8, w8, w9
	str	w8, [sp, #8]
	b	LBB1_2
LBB1_2:
	ldr	w8, [sp, #8]
	subs	w8, w8, #1
	cset	w8, gt
	tbnz	w8, #0, LBB1_4
	b	LBB1_3
LBB1_3:
	stur	wzr, [x29, #-4]
	b	LBB1_9
LBB1_4:
	ldr	w8, [sp, #8]
	subs	w8, w8, #2
	cset	w8, ne
	tbnz	w8, #0, LBB1_6
	b	LBB1_5
LBB1_5:
	mov	w8, #1
	stur	w8, [x29, #-4]
	b	LBB1_9
LBB1_6:
	ldr	w8, [sp, #8]
	subs	w8, w8, #3
	cset	w8, ne
	tbnz	w8, #0, LBB1_8
	b	LBB1_7
LBB1_7:
	mov	w8, #2
	stur	w8, [x29, #-4]
	b	LBB1_9
LBB1_8:
	ldr	w0, [sp, #8]
	mov	w1, #2
	bl	_phiphi
	stur	w0, [x29, #-4]
	b	LBB1_9
LBB1_9:
	ldur	w0, [x29, #-4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function phiphi
_phiphi:                                ; @phiphi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	stur	w0, [x29, #-8]
	stur	w1, [x29, #-12]
	ldur	w8, [x29, #-12]
	add	w8, w8, #1
	ldur	w9, [x29, #-8]
	subs	w8, w8, w9
	cset	w8, ne
	tbnz	w8, #0, LBB2_2
	b	LBB2_1
LBB2_1:
	ldur	w8, [x29, #-12]
	stur	w8, [x29, #-4]
	b	LBB2_7
LBB2_2:
	ldur	w8, [x29, #-8]
	ldur	w10, [x29, #-12]
	sdiv	w9, w8, w10
	mul	w9, w9, w10
	subs	w8, w8, w9
	subs	w8, w8, #0
	cset	w8, ne
	tbnz	w8, #0, LBB2_6
	b	LBB2_3
LBB2_3:
	ldur	w0, [x29, #-12]
	ldur	w8, [x29, #-8]
	ldur	w9, [x29, #-12]
	sdiv	w1, w8, w9
	str	w1, [sp, #16]
	bl	_my_gcd
	subs	w8, w0, #1
	cset	w8, ne
	tbnz	w8, #0, LBB2_5
	b	LBB2_4
LBB2_4:
	ldur	w0, [x29, #-12]
	bl	_phi
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w0, [sp, #16]
	bl	_phi
	mov	x8, x0
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	mul	w8, w0, w8
	stur	w8, [x29, #-4]
	b	LBB2_7
LBB2_5:
	ldur	w8, [x29, #-12]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldr	w0, [sp, #16]
	bl	_phi
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	mul	w8, w8, w0
	stur	w8, [x29, #-4]
	b	LBB2_7
LBB2_6:
	ldur	w0, [x29, #-8]
	ldur	w8, [x29, #-12]
	add	w1, w8, #1
	bl	_phiphi
	stur	w0, [x29, #-4]
	b	LBB2_7
LBB2_7:
	ldur	w0, [x29, #-4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function my_gcd
_my_gcd:                                ; @my_gcd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	stur	w0, [x29, #-8]
	stur	w1, [x29, #-12]
	ldur	w8, [x29, #-8]
	subs	w8, w8, #0
	cset	w8, eq
	tbnz	w8, #0, LBB3_2
	b	LBB3_1
LBB3_1:
	ldur	w8, [x29, #-12]
	subs	w8, w8, #0
	cset	w8, ne
	tbnz	w8, #0, LBB3_3
	b	LBB3_2
LBB3_2:
	mov	w8, #-1
	stur	w8, [x29, #-4]
	b	LBB3_12
LBB3_3:
	ldur	w8, [x29, #-8]
	subs	w8, w8, #0
	cset	w8, ge
	tbnz	w8, #0, LBB3_5
	b	LBB3_4
LBB3_4:
	ldur	w9, [x29, #-8]
	mov	w8, #0
	subs	w8, w8, w9
	stur	w8, [x29, #-8]
	b	LBB3_5
LBB3_5:
	ldur	w8, [x29, #-12]
	subs	w8, w8, #0
	cset	w8, ge
	tbnz	w8, #0, LBB3_7
	b	LBB3_6
LBB3_6:
	ldur	w9, [x29, #-12]
	mov	w8, #0
	subs	w8, w8, w9
	stur	w8, [x29, #-12]
	b	LBB3_7
LBB3_7:
	ldur	w8, [x29, #-12]
	ldur	w9, [x29, #-8]
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB3_9
	b	LBB3_8
LBB3_8:
	ldur	w8, [x29, #-12]
	str	w8, [sp, #8]
	ldur	w8, [x29, #-8]
	stur	w8, [x29, #-12]
	ldr	w8, [sp, #8]
	stur	w8, [x29, #-8]
	b	LBB3_9
LBB3_9:
	ldur	w8, [x29, #-12]
	ldur	w9, [x29, #-8]
	sdiv	w8, w8, w9
	str	w8, [sp, #16]
	ldur	w8, [x29, #-12]
	ldur	w9, [x29, #-8]
	ldr	w10, [sp, #16]
	mul	w9, w9, w10
	subs	w8, w8, w9
	str	w8, [sp, #12]
	ldr	w8, [sp, #12]
	subs	w8, w8, #0
	cset	w8, ne
	tbnz	w8, #0, LBB3_11
	b	LBB3_10
LBB3_10:
	ldur	w8, [x29, #-8]
	stur	w8, [x29, #-4]
	b	LBB3_12
LBB3_11:
	ldur	w0, [x29, #-8]
	ldr	w1, [sp, #12]
	bl	_my_gcd
	stur	w0, [x29, #-4]
	b	LBB3_12
LBB3_12:
	ldur	w0, [x29, #-4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"1.0"

l_.str.2:                               ; @.str.2
	.asciz	"\ntotient [ -h -v --] n\n\nFind the Euler totient function of n, the number of k <= n such that\nk and n are relatively prime. (1 is relatively prime to everything.)\n\n--: Signal end of options so that negative n can be input. (Silly, since\n    we merely define phi(-n) = phi(n).)\n-v: Print version number and exit. \n-h: Print this helpful information. \n\n"

l_.str.3:                               ; @.str.3
	.asciz	"totient: unkown option %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"totient [ -h -v -- ] n"

l_.str.5:                               ; @.str.5
	.asciz	"totient: not defined for n = 0.\n"

l_.str.6:                               ; @.str.6
	.asciz	"phi(%d) = %d\n"

.subsections_via_symbols