	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ngets                          ## -- Begin function ngets
	.p2align	4, 0x90
_ngets:                                 ## @ngets
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_getchar
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	decl	%ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rcx
	negq	%rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	LJTI0_0(%rip), %r12
	movq	%r15, %r13
	jmp	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	%al, (%r13)
	incq	%r13
	movl	%eax, %r14d
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rbx
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_putchar
	movq	%rbx, %r13
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_getchar
	cmpl	$-1, %eax
	je	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	%eax, %ecx
	andl	$127, %ecx
	leal	-8(%rcx), %edx
	cmpl	$15, %edx
	ja	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12,%rdx,4), %rcx
	addq	%r12, %rcx
	movl	$10, %r14d
	movq	%r15, %rbx
	jmpq	*%rcx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_putchar
	cmpq	%r15, %r13
	jbe	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r15,%r14), %edi
	callq	_putchar
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_10
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$127, %ecx
	jne	LBB0_11
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, %r13
	jbe	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%r13
	movl	$8, %r14d
	movl	$8, %edi
	callq	_putchar
	movl	$32, %edi
	callq	_putchar
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rcx
	subq	%r15, %rcx
	cmpq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	jge	LBB0_16
	jmp	LBB0_13
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movb	$0, (%r13)
	movl	$10, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_putchar                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_11
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ngets                          ; -- Begin function ngets
	.p2align	2
_ngets:                                 ; @ngets
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	bl	_getchar
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.1:
	sub	w22, w19, #1
	neg	x23, x20
	mov	x25, x20
Lloh0:
	adrp	x24, lJTI0_0@PAGE
Lloh1:
	add	x24, x24, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w0, [x25], #1
	mov	x21, x0
	mov	x26, x25
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_putchar
	mov	x25, x26
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_getchar
	cmn	w0, #1
	b.eq	LBB0_15
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	and	w9, w0, #0x7f
	sub	w8, w9, #8
	cmp	w8, #15
	b.hi	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w21, #10
	adr	x9, LBB0_3
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	mov	x26, x20
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_putchar
	cmp	x25, x20
	b.ls	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x23, x25
	mov	x26, x20
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x26], #1
	bl	_putchar
	subs	x21, x21, #1
	b.ne	LBB0_9
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #127
	b.ne	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x25, x20
	b.ls	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	x26, x25, #1
	mov	w21, #8
	mov	w0, #8
	bl	_putchar
	mov	w0, #32
	bl	_putchar
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	x8, x25, x20
	cmp	x8, x22
	b.ge	LBB0_4
	b	LBB0_2
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	strb	wzr, [x25]
	mov	w0, #10
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_putchar
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
.subsections_via_symbols
