Program: pascal

x86 assembly:
	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_num_digits                     ## -- Begin function num_digits
	.p2align	4, 0x90
_num_digits:                            ## @num_digits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, -4(%rbp)
	movl	$1, -8(%rbp)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbp), %eax
	movl	$10, %ecx
	cltd
	idivl	%ecx
	movl	%eax, -4(%rbp)
	cmpl	$0, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-8(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	LBB0_1
LBB0_3:
	movl	-8(%rbp), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.globl	_print_centered                 ## -- Begin function print_centered
	.p2align	4, 0x90
_print_centered:                        ## @print_centered
	.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	-8(%rbp), %edi
	callq	_num_digits
	movl	%eax, -16(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jge	LBB1_2
## %bb.1:
	movl	$1, -4(%rbp)
	jmp	LBB1_11
LBB1_2:
	movl	-12(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	$2, %ecx
	cltd
	idivl	%ecx
	movl	%eax, -20(%rbp)
	movl	$0, -24(%rbp)
LBB1_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jge	LBB1_6
## %bb.4:                               ##   in Loop: Header=BB1_3 Depth=1
	leaq	L_.str(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
## %bb.5:                               ##   in Loop: Header=BB1_3 Depth=1
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -24(%rbp)
	jmp	LBB1_3
LBB1_6:
	movl	-8(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	movl	$0, -24(%rbp)
LBB1_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-24(%rbp), %eax
	movl	-12(%rbp), %ecx
	subl	-16(%rbp), %ecx
	subl	-20(%rbp), %ecx
	cmpl	%ecx, %eax
	jge	LBB1_10
## %bb.8:                               ##   in Loop: Header=BB1_7 Depth=1
	leaq	L_.str(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
## %bb.9:                               ##   in Loop: Header=BB1_7 Depth=1
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -24(%rbp)
	jmp	LBB1_7
LBB1_10:
	movl	$0, -4(%rbp)
LBB1_11:
	movl	-4(%rbp), %eax
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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)
	movl	$1, -8(%rbp)
	movq	$0, -16(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -28(%rbp)
LBB2_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-20(%rbp), %ecx
	addl	$1, %ecx
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	cmpl	-8(%rbp), %ecx
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	jg	LBB2_3
## %bb.2:                               ##   in Loop: Header=BB2_1 Depth=1
	movq	-16(%rbp), %rax
	movslq	-20(%rbp), %rcx
	movq	(%rax,%rcx,8), %rax
	movsbl	(%rax), %eax
	cmpl	$45, %eax
	sete	%al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
LBB2_3:                                 ##   in Loop: Header=BB2_1 Depth=1
	movb	-41(%rbp), %al                  ## 1-byte Reload
	testb	$1, %al
	jne	LBB2_4
	jmp	LBB2_13
LBB2_4:                                 ##   in Loop: Header=BB2_1 Depth=1
	movq	-16(%rbp), %rax
	movslq	-20(%rbp), %rcx
	movq	(%rax,%rcx,8), %rax
	movsbl	1(%rax), %eax
	cmpl	$104, %eax
	jne	LBB2_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	movl	$0, -4(%rbp)
	jmp	LBB2_51
LBB2_6:                                 ##   in Loop: Header=BB2_1 Depth=1
	movq	-16(%rbp), %rax
	movslq	-20(%rbp), %rcx
	movq	(%rax,%rcx,8), %rax
	movsbl	1(%rax), %eax
	cmpl	$118, %eax
	jne	LBB2_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	movb	$0, %al
	callq	_libmin_printf
	movl	$0, -4(%rbp)
	jmp	LBB2_51
LBB2_8:                                 ##   in Loop: Header=BB2_1 Depth=1
	movq	-16(%rbp), %rax
	movslq	-20(%rbp), %rcx
	movq	(%rax,%rcx,8), %rax
	movsbl	1(%rax), %eax
	cmpl	$99, %eax
	jne	LBB2_12
## %bb.9:                               ##   in Loop: Header=BB2_1 Depth=1
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cmpl	-8(%rbp), %eax
	jl	LBB2_11
## %bb.10:
	leaq	L_.str.5(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	movl	$1, -4(%rbp)
	jmp	LBB2_51
LBB2_11:                                ##   in Loop: Header=BB2_1 Depth=1
	movl	$1, -28(%rbp)
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	LBB2_1
LBB2_12:
	leaq	L_.str.5(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	movl	$1, -4(%rbp)
	jmp	LBB2_51
LBB2_13:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cmpl	-8(%rbp), %eax
	je	LBB2_15
## %bb.14:
	movl	$20, -32(%rbp)
	jmp	LBB2_16
LBB2_15:
	movq	-16(%rbp), %rax
	movslq	-20(%rbp), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_libmin_atoi
	movl	%eax, -32(%rbp)
LBB2_16:
	cmpl	$0, -32(%rbp)
	jne	LBB2_20
## %bb.17:
	cmpl	$0, -28(%rbp)
	je	LBB2_19
## %bb.18:
	leaq	L_.str.6(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
LBB2_19:
	callq	_libmin_success
LBB2_20:
	cmpl	$0, -32(%rbp)
	jge	LBB2_22
## %bb.21:
	movl	-32(%rbp), %edx
	leaq	L_.str.7(%rip), %rdi
	leaq	L_.str.8(%rip), %rsi
	movb	$0, %al
	callq	_libmin_printf
	movl	$1, %edi
	callq	_libmin_fail
LBB2_22:
	cmpl	$30, -32(%rbp)
	jle	LBB2_24
## %bb.23:
	movl	-32(%rbp), %edx
	leaq	L_.str.9(%rip), %rdi
	leaq	L_.str.8(%rip), %rsi
	movl	$30, %ecx
	movb	$0, %al
	callq	_libmin_printf
	movl	$1, %edi
	callq	_libmin_fail
LBB2_24:
	movl	$1, _triangle(%rip)
	movl	$1, -20(%rbp)
LBB2_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB2_27 Depth 2
	movl	-20(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	LBB2_32
## %bb.26:                              ##   in Loop: Header=BB2_25 Depth=1
	movslq	-20(%rbp), %rcx
	leaq	_triangle(%rip), %rax
	imulq	$120, %rcx, %rcx
	addq	%rcx, %rax
	movl	$1, (%rax)
	movl	$1, -24(%rbp)
LBB2_27:                                ##   Parent Loop BB2_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jge	LBB2_30
## %bb.28:                              ##   in Loop: Header=BB2_27 Depth=2
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	leaq	_triangle(%rip), %rax
	imulq	$120, %rcx, %rcx
	addq	%rcx, %rax
	movl	-24(%rbp), %ecx
	subl	$1, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	leaq	_triangle(%rip), %rax
	imulq	$120, %rcx, %rcx
	addq	%rcx, %rax
	movslq	-24(%rbp), %rcx
	addl	(%rax,%rcx,4), %edx
	movslq	-20(%rbp), %rcx
	leaq	_triangle(%rip), %rax
	imulq	$120, %rcx, %rcx
	addq	%rcx, %rax
	movslq	-24(%rbp), %rcx
	movl	%edx, (%rax,%rcx,4)
## %bb.29:                              ##   in Loop: Header=BB2_27 Depth=2
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -24(%rbp)
	jmp	LBB2_27
LBB2_30:                                ##   in Loop: Header=BB2_25 Depth=1
	movslq	-20(%rbp), %rcx
	leaq	_triangle(%rip), %rax
	imulq	$120, %rcx, %rcx
	addq	%rcx, %rax
	movslq	-20(%rbp), %rcx
	movl	$1, (%rax,%rcx,4)
## %bb.31:                              ##   in Loop: Header=BB2_25 Depth=1
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	LBB2_25
LBB2_32:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	leaq	_triangle(%rip), %rax
	imulq	$120, %rcx, %rcx
	addq	%rcx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-32(%rbp), %eax
	movl	$2, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_num_digits
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %eax
	movl	$2, %ecx
	cltd
	idivl	%ecx
	cmpl	$0, %edx
	je	LBB2_34
## %bb.33:
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -36(%rbp)
LBB2_34:
	cmpl	$0, -28(%rbp)
	je	LBB2_36
## %bb.35:
	movl	-36(%rbp), %esi
	addl	$2, %esi
	imull	-32(%rbp), %esi
	leaq	L_.str.10(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	callq	_libmin_success
LBB2_36:
	movl	$0, -20(%rbp)
LBB2_37:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB2_39 Depth 2
                                        ##     Child Loop BB2_43 Depth 2
	movl	-20(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	LBB2_50
## %bb.38:                              ##   in Loop: Header=BB2_37 Depth=1
	movl	-32(%rbp), %eax
	subl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	-36(%rbp), %eax
	movl	$2, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	addl	$1, %ecx
	imull	%ecx, %eax
	movl	%eax, -40(%rbp)
	movl	$0, -24(%rbp)
LBB2_39:                                ##   Parent Loop BB2_37 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-24(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jge	LBB2_42
## %bb.40:                              ##   in Loop: Header=BB2_39 Depth=2
	leaq	L_.str(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
## %bb.41:                              ##   in Loop: Header=BB2_39 Depth=2
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -24(%rbp)
	jmp	LBB2_39
LBB2_42:                                ##   in Loop: Header=BB2_37 Depth=1
	movl	$0, -24(%rbp)
LBB2_43:                                ##   Parent Loop BB2_37 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %ecx
	addl	$1, %ecx
	cmpl	%ecx, %eax
	jge	LBB2_48
## %bb.44:                              ##   in Loop: Header=BB2_43 Depth=2
	movslq	-20(%rbp), %rcx
	leaq	_triangle(%rip), %rax
	imulq	$120, %rcx, %rcx
	addq	%rcx, %rax
	movslq	-24(%rbp), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	-36(%rbp), %esi
	addl	$2, %esi
	callq	_print_centered
	cmpl	$0, %eax
	je	LBB2_46
## %bb.45:                              ##   in Loop: Header=BB2_43 Depth=2
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %ecx
	leaq	L_.str.11(%rip), %rdi
	leaq	L_.str.8(%rip), %rsi
	movb	$0, %al
	callq	_libmin_printf
	movl	$1, %edi
	callq	_libmin_fail
LBB2_46:                                ##   in Loop: Header=BB2_43 Depth=2
	jmp	LBB2_47
LBB2_47:                                ##   in Loop: Header=BB2_43 Depth=2
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -24(%rbp)
	jmp	LBB2_43
LBB2_48:                                ##   in Loop: Header=BB2_37 Depth=1
	leaq	L_.str.12(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
## %bb.49:                              ##   in Loop: Header=BB2_37 Depth=1
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	LBB2_37
LBB2_50:
	callq	_libmin_success
	movl	$0, -4(%rbp)
LBB2_51:
	movl	-4(%rbp), %eax
	addq	$64, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" "

L_.str.1:                               ## @.str.1
	.asciz	"%d"

L_.str.2:                               ## @.str.2
	.asciz	"\n\npascal [-h -v] [-c n] n \nprint the first n rows of pascal's triangle to stdout.\n-h: print this helpful information\n-v: print version number and exit\n-c: print the number of columns required for display only \n\n"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"usage: pascal [ -h -v] [-c rows] rows\n"

L_.str.6:                               ## @.str.6
	.asciz	"0\n"

L_.str.7:                               ## @.str.7
	.asciz	"%s: %d is an invalid number of rows\n"

L_.str.8:                               ## @.str.8
	.asciz	"pascal"

L_.str.9:                               ## @.str.9
	.asciz	"%s: %d > %d rows maximum\n"

.zerofill __DATA,__bss,_triangle,3720,4 ## @triangle
L_.str.10:                              ## @.str.10
	.asciz	"%d\n"

L_.str.11:                              ## @.str.11
	.asciz	"%s: error printing element %d,%d\n"

L_.str.12:                              ## @.str.12
	.asciz	"\n"

.subsections_via_symbols


ARM64 assembly:
	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_num_digits                     ; -- Begin function num_digits
	.p2align	2
_num_digits:                            ; @num_digits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
	str	w0, [sp, #12]
	mov	w8, #1
	str	w8, [sp, #8]
	b	LBB0_1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	mov	w9, #10
	sdiv	w8, w8, w9
	str	w8, [sp, #12]
	subs	w8, w8, #0
	cset	w8, eq
	tbnz	w8, #0, LBB0_3
	b	LBB0_2
LBB0_2:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #8]
	add	w8, w8, #1
	str	w8, [sp, #8]
	b	LBB0_1
LBB0_3:
	ldr	w0, [sp, #8]
	add	sp, sp, #16
	ret
	.cfi_endproc
                                        ; -- End function
	.globl	_print_centered                 ; -- Begin function print_centered
	.p2align	2
_print_centered:                        ; @print_centered
	.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	w0, [x29, #-8]
	bl	_num_digits
	str	w0, [sp, #16]
	ldur	w8, [x29, #-12]
	ldr	w9, [sp, #16]
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB1_2
	b	LBB1_1
LBB1_1:
	mov	w8, #1
	stur	w8, [x29, #-4]
	b	LBB1_11
LBB1_2:
	ldur	w8, [x29, #-12]
	ldr	w9, [sp, #16]
	subs	w8, w8, w9
	mov	w9, #2
	sdiv	w8, w8, w9
	str	w8, [sp, #12]
	str	wzr, [sp, #8]
	b	LBB1_3
LBB1_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [sp, #12]
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB1_6
	b	LBB1_4
LBB1_4:                                 ;   in Loop: Header=BB1_3 Depth=1
	adrp	x0, l_.str@PAGE
	add	x0, x0, l_.str@PAGEOFF
	bl	_libmin_printf
	b	LBB1_5
LBB1_5:                                 ;   in Loop: Header=BB1_3 Depth=1
	ldr	w8, [sp, #8]
	add	w8, w8, #1
	str	w8, [sp, #8]
	b	LBB1_3
LBB1_6:
	ldur	w9, [x29, #-8]
                                        ; implicit-def: $x8
	mov	x8, x9
	mov	x9, sp
	str	x8, [x9]
	adrp	x0, l_.str.1@PAGE
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libmin_printf
	str	wzr, [sp, #8]
	b	LBB1_7
LBB1_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	ldur	w9, [x29, #-12]
	ldr	w10, [sp, #16]
	subs	w9, w9, w10
	ldr	w10, [sp, #12]
	subs	w9, w9, w10
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB1_10
	b	LBB1_8
LBB1_8:                                 ;   in Loop: Header=BB1_7 Depth=1
	adrp	x0, l_.str@PAGE
	add	x0, x0, l_.str@PAGEOFF
	bl	_libmin_printf
	b	LBB1_9
LBB1_9:                                 ;   in Loop: Header=BB1_7 Depth=1
	ldr	w8, [sp, #8]
	add	w8, w8, #1
	str	w8, [sp, #8]
	b	LBB1_7
LBB1_10:
	stur	wzr, [x29, #-4]
	b	LBB1_11
LBB1_11:
	ldur	w0, [x29, #-4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	stur	wzr, [x29, #-4]
	mov	w8, #1
	stur	w8, [x29, #-8]
                                        ; kill: def $x9 killed $xzr
	stur	xzr, [x29, #-16]
	stur	w8, [x29, #-20]
	stur	wzr, [x29, #-28]
	b	LBB2_1
LBB2_1:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x29, #-20]
	add	w8, w8, #1
	ldur	w9, [x29, #-8]
	subs	w8, w8, w9
	cset	w8, gt
	mov	w9, #0
	str	w9, [sp, #36]                   ; 4-byte Folded Spill
	tbnz	w8, #0, LBB2_3
	b	LBB2_2
LBB2_2:                                 ;   in Loop: Header=BB2_1 Depth=1
	ldur	x8, [x29, #-16]
	ldursw	x9, [x29, #-20]
	ldr	x8, [x8, x9, lsl #3]
	ldrsb	w8, [x8]
	subs	w8, w8, #45
	cset	w8, eq
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	b	LBB2_3
LBB2_3:                                 ;   in Loop: Header=BB2_1 Depth=1
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB2_13
	b	LBB2_4
LBB2_4:                                 ;   in Loop: Header=BB2_1 Depth=1
	ldur	x8, [x29, #-16]
	ldursw	x9, [x29, #-20]
	ldr	x8, [x8, x9, lsl #3]
	ldrsb	w8, [x8, #1]
	subs	w8, w8, #104
	cset	w8, ne
	tbnz	w8, #0, LBB2_6
	b	LBB2_5
LBB2_5:
	adrp	x0, l_.str.2@PAGE
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_libmin_printf
	stur	wzr, [x29, #-4]
	b	LBB2_51
LBB2_6:                                 ;   in Loop: Header=BB2_1 Depth=1
	ldur	x8, [x29, #-16]
	ldursw	x9, [x29, #-20]
	ldr	x8, [x8, x9, lsl #3]
	ldrsb	w8, [x8, #1]
	subs	w8, w8, #118
	cset	w8, ne
	tbnz	w8, #0, LBB2_8
	b	LBB2_7
LBB2_7:
	mov	x9, sp
	adrp	x8, l_.str.4@PAGE
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x9]
	adrp	x0, l_.str.3@PAGE
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_libmin_printf
	stur	wzr, [x29, #-4]
	b	LBB2_51
LBB2_8:                                 ;   in Loop: Header=BB2_1 Depth=1
	ldur	x8, [x29, #-16]
	ldursw	x9, [x29, #-20]
	ldr	x8, [x8, x9, lsl #3]
	ldrsb	w8, [x8, #1]
	subs	w8, w8, #99
	cset	w8, ne
	tbnz	w8, #0, LBB2_12
	b	LBB2_9
LBB2_9:                                 ;   in Loop: Header=BB2_1 Depth=1
	ldur	w8, [x29, #-20]
	add	w8, w8, #1
	ldur	w9, [x29, #-8]
	subs	w8, w8, w9
	cset	w8, lt
	tbnz	w8, #0, LBB2_11
	b	LBB2_10
LBB2_10:
	adrp	x0, l_.str.5@PAGE
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_libmin_printf
	mov	w8, #1
	stur	w8, [x29, #-4]
	b	LBB2_51
LBB2_11:                                ;   in Loop: Header=BB2_1 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-28]
	ldur	w8, [x29, #-20]
	add	w8, w8, #1
	stur	w8, [x29, #-20]
	b	LBB2_1
LBB2_12:
	adrp	x0, l_.str.5@PAGE
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_libmin_printf
	mov	w8, #1
	stur	w8, [x29, #-4]
	b	LBB2_51
LBB2_13:
	ldur	w8, [x29, #-20]
	add	w8, w8, #1
	ldur	w9, [x29, #-8]
	subs	w8, w8, w9
	cset	w8, eq
	tbnz	w8, #0, LBB2_15
	b	LBB2_14
LBB2_14:
	mov	w8, #20
	stur	w8, [x29, #-32]
	b	LBB2_16
LBB2_15:
	ldur	x8, [x29, #-16]
	ldursw	x9, [x29, #-20]
	ldr	x0, [x8, x9, lsl #3]
	bl	_libmin_atoi
	stur	w0, [x29, #-32]
	b	LBB2_16
LBB2_16:
	ldur	w8, [x29, #-32]
	subs	w8, w8, #0
	cset	w8, ne
	tbnz	w8, #0, LBB2_20
	b	LBB2_17
LBB2_17:
	ldur	w8, [x29, #-28]
	subs	w8, w8, #0
	cset	w8, eq
	tbnz	w8, #0, LBB2_19
	b	LBB2_18
LBB2_18:
	adrp	x0, l_.str.6@PAGE
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_libmin_printf
	b	LBB2_19
LBB2_19:
	bl	_libmin_success
	b	LBB2_20
LBB2_20:
	ldur	w8, [x29, #-32]
	subs	w8, w8, #0
	cset	w8, ge
	tbnz	w8, #0, LBB2_22
	b	LBB2_21
LBB2_21:
	ldur	w9, [x29, #-32]
                                        ; implicit-def: $x8
	mov	x8, x9
	mov	x9, sp
	adrp	x10, l_.str.8@PAGE
	add	x10, x10, l_.str.8@PAGEOFF
	str	x10, [x9]
	str	x8, [x9, #8]
	adrp	x0, l_.str.7@PAGE
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_libmin_printf
	mov	w0, #1
	bl	_libmin_fail
	b	LBB2_22
LBB2_22:
	ldur	w8, [x29, #-32]
	subs	w8, w8, #30
	cset	w8, le
	tbnz	w8, #0, LBB2_24
	b	LBB2_23
LBB2_23:
	ldur	w9, [x29, #-32]
                                        ; implicit-def: $x8
	mov	x8, x9
	mov	x9, sp
	adrp	x10, l_.str.8@PAGE
	add	x10, x10, l_.str.8@PAGEOFF
	str	x10, [x9]
	str	x8, [x9, #8]
	mov	x8, #30
	str	x8, [x9, #16]
	adrp	x0, l_.str.9@PAGE
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_libmin_printf
	mov	w0, #1
	bl	_libmin_fail
	b	LBB2_24
LBB2_24:
	adrp	x9, _triangle@PAGE
	mov	w8, #1
	str	w8, [x9, _triangle@PAGEOFF]
	stur	w8, [x29, #-20]
	b	LBB2_25
LBB2_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB2_27 Depth 2
	ldur	w8, [x29, #-20]
	ldur	w9, [x29, #-32]
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB2_32
	b	LBB2_26
LBB2_26:                                ;   in Loop: Header=BB2_25 Depth=1
	ldursw	x8, [x29, #-20]
	mov	x9, #120
	mul	x10, x8, x9
	adrp	x9, _triangle@PAGE
	add	x9, x9, _triangle@PAGEOFF
	mov	w8, #1
	str	w8, [x9, x10]
	stur	w8, [x29, #-24]
	b	LBB2_27
LBB2_27:                                ;   Parent Loop BB2_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w8, [x29, #-24]
	ldur	w9, [x29, #-20]
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB2_30
	b	LBB2_28
LBB2_28:                                ;   in Loop: Header=BB2_27 Depth=2
	ldur	w8, [x29, #-20]
	subs	w8, w8, #1
	mov	x11, #120
	adrp	x9, _triangle@PAGE
	add	x9, x9, _triangle@PAGEOFF
	mov	x12, x9
	mov	w10, #120
	smaddl	x8, w8, w10, x12
	ldur	w10, [x29, #-24]
	subs	w10, w10, #1
	ldr	w8, [x8, w10, sxtw #2]
	ldur	w10, [x29, #-20]
	subs	w10, w10, #1
	mov	x13, x9
	mov	w12, #120
	smaddl	x10, w10, w12, x13
	ldursw	x12, [x29, #-24]
	ldr	w10, [x10, x12, lsl #2]
	add	w8, w8, w10
	ldursw	x10, [x29, #-20]
	mul	x10, x10, x11
	add	x9, x9, x10
	ldursw	x10, [x29, #-24]
	str	w8, [x9, x10, lsl #2]
	b	LBB2_29
LBB2_29:                                ;   in Loop: Header=BB2_27 Depth=2
	ldur	w8, [x29, #-24]
	add	w8, w8, #1
	stur	w8, [x29, #-24]
	b	LBB2_27
LBB2_30:                                ;   in Loop: Header=BB2_25 Depth=1
	ldursw	x8, [x29, #-20]
	mov	x9, #120
	mul	x9, x8, x9
	adrp	x8, _triangle@PAGE
	add	x8, x8, _triangle@PAGEOFF
	add	x9, x8, x9
	ldursw	x10, [x29, #-20]
	mov	w8, #1
	str	w8, [x9, x10, lsl #2]
	b	LBB2_31
LBB2_31:                                ;   in Loop: Header=BB2_25 Depth=1
	ldur	w8, [x29, #-20]
	add	w8, w8, #1
	stur	w8, [x29, #-20]
	b	LBB2_25
LBB2_32:
	ldur	w8, [x29, #-32]
	subs	w8, w8, #1
	adrp	x10, _triangle@PAGE
	add	x10, x10, _triangle@PAGEOFF
	mov	w9, #120
	smaddl	x8, w8, w9, x10
	ldur	w9, [x29, #-32]
	mov	w10, #2
	str	w10, [sp, #32]                  ; 4-byte Folded Spill
	sdiv	w9, w9, w10
	ldr	w0, [x8, w9, sxtw #2]
	bl	_num_digits
	ldr	w10, [sp, #32]                  ; 4-byte Folded Reload
	stur	w0, [x29, #-36]
	ldur	w8, [x29, #-36]
	sdiv	w9, w8, w10
	mul	w9, w9, w10
	subs	w8, w8, w9
	subs	w8, w8, #0
	cset	w8, eq
	tbnz	w8, #0, LBB2_34
	b	LBB2_33
LBB2_33:
	ldur	w8, [x29, #-36]
	add	w8, w8, #1
	stur	w8, [x29, #-36]
	b	LBB2_34
LBB2_34:
	ldur	w8, [x29, #-28]
	subs	w8, w8, #0
	cset	w8, eq
	tbnz	w8, #0, LBB2_36
	b	LBB2_35
LBB2_35:
	ldur	w8, [x29, #-36]
	add	w8, w8, #2
	ldur	w9, [x29, #-32]
	mul	w10, w8, w9
	mov	x9, sp
                                        ; implicit-def: $x8
	mov	x8, x10
	str	x8, [x9]
	adrp	x0, l_.str.10@PAGE
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_libmin_printf
	bl	_libmin_success
	b	LBB2_36
LBB2_36:
	stur	wzr, [x29, #-20]
	b	LBB2_37
LBB2_37:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB2_39 Depth 2
                                        ;     Child Loop BB2_43 Depth 2
	ldur	w8, [x29, #-20]
	ldur	w9, [x29, #-32]
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB2_50
	b	LBB2_38
LBB2_38:                                ;   in Loop: Header=BB2_37 Depth=1
	ldur	w8, [x29, #-32]
	ldur	w9, [x29, #-20]
	subs	w8, w8, w9
	subs	w8, w8, #1
	ldur	w9, [x29, #-36]
	mov	w10, #2
	sdiv	w9, w9, w10
	add	w9, w9, #1
	mul	w8, w8, w9
	str	w8, [sp, #40]
	stur	wzr, [x29, #-24]
	b	LBB2_39
LBB2_39:                                ;   Parent Loop BB2_37 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w8, [x29, #-24]
	ldr	w9, [sp, #40]
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB2_42
	b	LBB2_40
LBB2_40:                                ;   in Loop: Header=BB2_39 Depth=2
	adrp	x0, l_.str@PAGE
	add	x0, x0, l_.str@PAGEOFF
	bl	_libmin_printf
	b	LBB2_41
LBB2_41:                                ;   in Loop: Header=BB2_39 Depth=2
	ldur	w8, [x29, #-24]
	add	w8, w8, #1
	stur	w8, [x29, #-24]
	b	LBB2_39
LBB2_42:                                ;   in Loop: Header=BB2_37 Depth=1
	stur	wzr, [x29, #-24]
	b	LBB2_43
LBB2_43:                                ;   Parent Loop BB2_37 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w8, [x29, #-24]
	ldur	w9, [x29, #-20]
	add	w9, w9, #1
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB2_48
	b	LBB2_44
LBB2_44:                                ;   in Loop: Header=BB2_43 Depth=2
	ldursw	x8, [x29, #-20]
	mov	x9, #120
	mul	x9, x8, x9
	adrp	x8, _triangle@PAGE
	add	x8, x8, _triangle@PAGEOFF
	add	x8, x8, x9
	ldursw	x9, [x29, #-24]
	ldr	w0, [x8, x9, lsl #2]
	ldur	w8, [x29, #-36]
	add	w1, w8, #2
	bl	_print_centered
	subs	w8, w0, #0
	cset	w8, eq
	tbnz	w8, #0, LBB2_46
	b	LBB2_45
LBB2_45:                                ;   in Loop: Header=BB2_43 Depth=2
	ldur	w8, [x29, #-20]
                                        ; implicit-def: $x10
	mov	x10, x8
	ldur	w9, [x29, #-24]
                                        ; implicit-def: $x8
	mov	x8, x9
	mov	x9, sp
	adrp	x11, l_.str.8@PAGE
	add	x11, x11, l_.str.8@PAGEOFF
	str	x11, [x9]
	str	x10, [x9, #8]
	str	x8, [x9, #16]
	adrp	x0, l_.str.11@PAGE
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_libmin_printf
	mov	w0, #1
	bl	_libmin_fail
	b	LBB2_46
LBB2_46:                                ;   in Loop: Header=BB2_43 Depth=2
	b	LBB2_47
LBB2_47:                                ;   in Loop: Header=BB2_43 Depth=2
	ldur	w8, [x29, #-24]
	add	w8, w8, #1
	stur	w8, [x29, #-24]
	b	LBB2_43
LBB2_48:                                ;   in Loop: Header=BB2_37 Depth=1
	adrp	x0, l_.str.12@PAGE
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_libmin_printf
	b	LBB2_49
LBB2_49:                                ;   in Loop: Header=BB2_37 Depth=1
	ldur	w8, [x29, #-20]
	add	w8, w8, #1
	stur	w8, [x29, #-20]
	b	LBB2_37
LBB2_50:
	bl	_libmin_success
	stur	wzr, [x29, #-4]
	b	LBB2_51
LBB2_51:
	ldur	w0, [x29, #-4]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" "

l_.str.1:                               ; @.str.1
	.asciz	"%d"

l_.str.2:                               ; @.str.2
	.asciz	"\n\npascal [-h -v] [-c n] n \nprint the first n rows of pascal's triangle to stdout.\n-h: print this helpful information\n-v: print version number and exit\n-c: print the number of columns required for display only \n\n"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"usage: pascal [ -h -v] [-c rows] rows\n"

l_.str.6:                               ; @.str.6
	.asciz	"0\n"

l_.str.7:                               ; @.str.7
	.asciz	"%s: %d is an invalid number of rows\n"

l_.str.8:                               ; @.str.8
	.asciz	"pascal"

l_.str.9:                               ; @.str.9
	.asciz	"%s: %d > %d rows maximum\n"

.zerofill __DATA,__bss,_triangle,3720,2 ; @triangle
l_.str.10:                              ; @.str.10
	.asciz	"%d\n"

l_.str.11:                              ; @.str.11
	.asciz	"%s: error printing element %d,%d\n"

l_.str.12:                              ; @.str.12
	.asciz	"\n"

.subsections_via_symbols