	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_reg
_r_reg:                                 ## @r_reg
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	(%r8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	$0, -88(%rbp)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, -72(%rbp)
	movq	%r14, -80(%rbp)
	callq	_fileno
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	addq	$-2, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	testq	%r14, %r14
	js	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=2
	movslq	%edx, %r14
	addq	%r12, %r14
	js	LBB0_20
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	cmpq	%r12, %r14
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %rax
	addq	%r12, %rax
	cmpq	%rax, %r14
	jl	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	leaq	-88(%rbp), %rdi
	movq	%r14, %rsi
	callq	_maparound
	testq	%rax, %rax
	jne	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-80(%rbp), %r12
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rdx
	subq	%r12, %rdx
	testl	%edx, %edx
	js	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_RBYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rcx
	movl	%edx, %edx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%r15d, %eax
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	decq	%rbx
	je	LBB0_12
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=3
	leaq	(%rdx,%r13), %rsi
	movl	%esi, %esi
	cmpb	$10, (%rcx,%rsi)
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=3
	decq	%r13
	leal	(%rdx,%r13), %esi
	incl	%esi
	testl	%esi, %esi
	jg	LBB0_10
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	$-1, %rdx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %eax
	subl	%r12d, %eax
	addq	%r12, %rax
	leaq	(%rax,%r13), %rsi
	incq	%rsi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subq	%rax, %rcx
	movq	%r13, %rdx
	notq	%rdx
	addq	%rcx, %rdx
	leaq	-88(%rbp), %rdi
	callq	_mapprint
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	subl	%r12d, %r14d
	addq	%r12, %r14
	addq	%r13, %r14
	decq	%r14
	xorl	%eax, %eax
	movq	_RLINES@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	sete	%al
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	subq	%rax, %rbx
	jne	LBB0_2
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_REVERSE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_2
	jmp	LBB0_21
LBB0_20:
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_mapprint
	testq	%rax, %rax
	jne	LBB0_23
LBB0_21:
	movq	-88(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.22:
	movq	-64(%rbp), %rsi
	callq	_munmap
	testq	%rax, %rax
	je	LBB0_24
LBB0_23:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_ierr
LBB0_24:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RBYTES,4,2                     ## @RBYTES
	.comm	_RLINES,4,2                     ## @RLINES
	.comm	_REVERSE,4,2                    ## @REVERSE
	.no_dead_strip	_r_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_reg
_r_reg:                                 ; @r_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x1, [sp]                        ; 8-byte Folded Spill
	ldr	x22, [x4]
	cbz	x22, LBB0_22
; %bb.1:
	mov	x21, x3
	mov	x20, x2
	stp	x22, x22, [sp, #16]
	str	xzr, [sp, #8]
	bl	_fileno
	str	w0, [sp, #40]
	str	xzr, [sp, #32]
	sub	x23, x22, #2
Lloh0:
	adrp	x25, _RBYTES@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RBYTES@GOTPAGEOFF]
Lloh2:
	adrp	x26, _RLINES@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RLINES@GOTPAGEOFF]
Lloh4:
	adrp	x27, _REVERSE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _REVERSE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	tbnz	x23, #63, LBB0_18
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x28, [sp, #16]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	adds	x23, x28, w10, sxtw
	b.mi	LBB0_18
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	cmp	x23, x28
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [sp, #32]
	add	x8, x8, x28
	cmp	x23, x8
	b.lt	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x0, sp, #8
	mov	x1, x23
	bl	_maparound
	cbnz	x0, LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x28, [sp, #16]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	sub	x10, x23, x28
	tbnz	w10, #31, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	x19, #0
	ldr	w8, [x25]
	ldr	x9, [sp, #8]
	mov	w10, w10
LBB0_11:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w8, w20
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	subs	x21, x21, #1
	b.eq	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=3
	add	x11, x10, x19
	ldrb	w11, [x9, w11, uxtw]
	cmp	w11, #10
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=3
	sub	x19, x19, #1
	add	w11, w10, w19
	add	w11, w11, #1
	cmp	w11, #0
	b.gt	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	x10, #-1
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w23, w28
	add	x8, x28, x8
	add	x9, x8, x19
	add	x24, x9, #1
	mvn	x9, x19
	sub	x8, x22, x8
	add	x2, x9, x8
	add	x0, sp, #8
	mov	x1, x24
	bl	_mapprint
	cbnz	x0, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w23, w28
	add	x8, x28, x8
	add	x8, x8, x19
	sub	x23, x8, #1
	ldr	w8, [x26]
	cmp	w8, w20
	cset	w8, eq
	sub	x21, x21, x8
	ldr	w8, [x27]
	cmp	x21, #0
	ccmp	w8, w20, #4, eq
	mov	x22, x24
	b.eq	LBB0_2
	b	LBB0_19
LBB0_18:
	add	x0, sp, #8
	mov	x1, #0
	mov	x2, x22
	bl	_mapprint
	cbnz	x0, LBB0_21
LBB0_19:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_22
; %bb.20:
	ldr	x1, [sp, #32]
	bl	_munmap
	cbz	x0, LBB0_22
LBB0_21:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_ierr
LBB0_22:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RBYTES,4,2                     ; @RBYTES
	.comm	_RLINES,4,2                     ; @RLINES
	.comm	_REVERSE,4,2                    ; @REVERSE
	.no_dead_strip	_r_reg
.subsections_via_symbols
