	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset
_reset:                                 ## @reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	%edi, %r12d
	movq	_pagesize@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_getpagesize
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_25
## %bb.2:
	leal	(%rax,%rax), %ecx
	incl	%ecx
	cmpl	%eax, %ecx
	jle	LBB0_25
## %bb.3:
	movq	_INITIAL_BUFSIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	%eax, %esi
	callq	_ALIGN_TO
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx), %rdi
	incq	%rdi
	movq	_bufalloc@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	callq	_xmalloc
	movq	_buffer@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_4:
	movq	_BZflag@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	callq	_BZ2_bzdopen
	movq	_bzbufdesc@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	$2, %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_error
LBB0_7:
	movq	_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	movl	(%rbx), %esi
	callq	_ALIGN_TO
	movq	_buflim@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_bufbeg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_eolbyte@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -4(%rax)
	movq	_bufdesc@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_error
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_17
## %bb.10:
	movq	_directories@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SKIP_DIRECTORIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	(%r15), %edi
	callq	_S_ISDIR
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_24
LBB0_12:
	movq	_devices@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SKIP_DEVICES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.13:
	movl	(%r15), %edi
	callq	_S_ISCHR
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.14:
	movl	(%r15), %edi
	callq	_S_ISBLK
	testq	%rax, %rax
	jne	LBB0_24
## %bb.15:
	movl	(%r15), %edi
	callq	_S_ISSOCK
	testq	%rax, %rax
	jne	LBB0_24
## %bb.16:
	movl	(%r15), %edi
	callq	_S_ISFIFO
	testq	%rax, %rax
	jne	LBB0_24
LBB0_17:
	cmpq	$0, (%r13)
	jne	LBB0_20
## %bb.18:
	movl	(%r15), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_19
LBB0_20:
	testq	%r14, %r14
	je	LBB0_22
## %bb.21:
	movq	_bufoffset@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	$1, %ebx
	jmp	LBB0_24
LBB0_22:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_lseek
	movq	_bufoffset@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$1, %ebx
	testl	%eax, %eax
	jns	LBB0_24
## %bb.23:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	callq	_error
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_19:
	movl	$1, %ebx
	jmp	LBB0_24
LBB0_25:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_pagesize,4,2                   ## @pagesize
	.comm	_INITIAL_BUFSIZE,8,3            ## @INITIAL_BUFSIZE
	.comm	_bufalloc,8,3                   ## @bufalloc
	.comm	_buffer,8,3                     ## @buffer
	.comm	_BZflag,8,3                     ## @BZflag
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_bzbufdesc,8,3                  ## @bzbufdesc
L_.str.1:                               ## @.str.1
	.asciz	"memory exhausted"

	.comm	_buflim,8,3                     ## @buflim
	.comm	_bufbeg,8,3                     ## @bufbeg
	.comm	_eolbyte,4,2                    ## @eolbyte
	.comm	_bufdesc,4,2                    ## @bufdesc
	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"fstat"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_directories,8,3                ## @directories
	.comm	_SKIP_DIRECTORIES,8,3           ## @SKIP_DIRECTORIES
	.comm	_devices,8,3                    ## @devices
	.comm	_SKIP_DEVICES,8,3               ## @SKIP_DEVICES
	.comm	_bufoffset,4,2                  ## @bufoffset
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
L_.str.3:                               ## @.str.3
	.asciz	"lseek"

	.comm	_Zflag,8,3                      ## @Zflag
	.comm	_bufmapped,4,2                  ## @bufmapped
	.comm	_gzbufdesc,8,3                  ## @gzbufdesc
	.comm	_initial_bufoffset,4,2          ## @initial_bufoffset
	.comm	_mmap_option,8,3                ## @mmap_option
	.no_dead_strip	_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset
_reset:                                 ; @reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _pagesize@GOTPAGE
Lloh1:
	ldr	x23, [x23, _pagesize@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _buffer@GOTPAGE
Lloh3:
	ldr	x24, [x24, _buffer@GOTPAGEOFF]
	cbnz	w8, LBB0_4
; %bb.1:
	bl	_getpagesize
	str	w0, [x23]
	cbz	w0, LBB0_27
; %bb.2:
	mov	x1, x0
	mov	w8, #1
	bfi	w8, w0, #1, #31
	cmp	w8, w0
	b.le	LBB0_27
; %bb.3:
Lloh4:
	adrp	x8, _INITIAL_BUFSIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INITIAL_BUFSIZE@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	bl	_ALIGN_TO
	ldrsw	x8, [x23]
	add	x8, x0, x8
	add	x0, x8, #1
Lloh7:
	adrp	x8, _bufalloc@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bufalloc@GOTPAGEOFF]
Lloh9:
	str	x0, [x8]
	bl	_xmalloc
	str	x0, [x24]
LBB0_4:
Lloh10:
	adrp	x22, _BZflag@GOTPAGE
Lloh11:
	ldr	x22, [x22, _BZflag@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.5:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_BZ2_bzdopen
Lloh14:
	adrp	x8, _bzbufdesc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bzbufdesc@GOTPAGEOFF]
Lloh16:
	str	x0, [x8]
	cbnz	x0, LBB0_7
; %bb.6:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x2, x0
	mov	w0, #2
	mov	w1, #0
	bl	_error
LBB0_7:
	ldr	x8, [x24]
	add	x0, x8, #1
	ldr	w1, [x23]
	bl	_ALIGN_TO
Lloh19:
	adrp	x8, _buflim@GOTPAGE
Lloh20:
	ldr	x8, [x8, _buflim@GOTPAGEOFF]
Lloh21:
	str	x0, [x8]
Lloh22:
	adrp	x8, _bufbeg@GOTPAGE
Lloh23:
	ldr	x8, [x8, _bufbeg@GOTPAGEOFF]
Lloh24:
	adrp	x9, _eolbyte@GOTPAGE
Lloh25:
	ldr	x9, [x9, _eolbyte@GOTPAGEOFF]
Lloh26:
	str	x0, [x8]
Lloh27:
	ldr	w8, [x9]
	stur	w8, [x0, #-4]
Lloh28:
	adrp	x8, _bufdesc@GOTPAGE
Lloh29:
	ldr	x8, [x8, _bufdesc@GOTPAGEOFF]
Lloh30:
	str	w19, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_fstat
	cbz	x0, LBB0_12
; %bb.8:
Lloh31:
	adrp	x8, _errno@GOTPAGE
Lloh32:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x2, l_.str.2@PAGE
Lloh35:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
	mov	w0, #0
	bl	_error
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh36:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_20
; %bb.13:
Lloh39:
	adrp	x8, _directories@GOTPAGE
Lloh40:
	ldr	x8, [x8, _directories@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
Lloh42:
	adrp	x9, _SKIP_DIRECTORIES@GOTPAGE
Lloh43:
	ldr	x9, [x9, _SKIP_DIRECTORIES@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	ldr	w0, [x21]
	bl	_S_ISDIR
	cbnz	x0, LBB0_10
LBB0_15:
Lloh45:
	adrp	x8, _devices@GOTPAGE
Lloh46:
	ldr	x8, [x8, _devices@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
Lloh48:
	adrp	x9, _SKIP_DEVICES@GOTPAGE
Lloh49:
	ldr	x9, [x9, _SKIP_DEVICES@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.16:
	ldr	w0, [x21]
	bl	_S_ISCHR
	cbnz	x0, LBB0_10
; %bb.17:
	ldr	w0, [x21]
	bl	_S_ISBLK
	cbnz	x0, LBB0_10
; %bb.18:
	ldr	w0, [x21]
	bl	_S_ISSOCK
	cbnz	x0, LBB0_10
; %bb.19:
	ldr	w0, [x21]
	bl	_S_ISFIFO
	cbnz	x0, LBB0_10
LBB0_20:
	ldr	x8, [x22]
	cbnz	x8, LBB0_22
; %bb.21:
	ldr	w0, [x21]
	bl	_S_ISREG
	cbz	x0, LBB0_25
LBB0_22:
	cbz	x20, LBB0_24
; %bb.23:
Lloh51:
	adrp	x8, _bufoffset@GOTPAGE
Lloh52:
	ldr	x8, [x8, _bufoffset@GOTPAGEOFF]
Lloh53:
	str	wzr, [x8]
	mov	w0, #1
	b	LBB0_11
LBB0_24:
Lloh54:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_lseek
Lloh57:
	adrp	x8, _bufoffset@GOTPAGE
Lloh58:
	ldr	x8, [x8, _bufoffset@GOTPAGEOFF]
Lloh59:
	str	w0, [x8]
	tbnz	w0, #31, LBB0_26
LBB0_25:
	mov	w0, #1
	b	LBB0_11
LBB0_26:
Lloh60:
	adrp	x8, _errno@GOTPAGE
Lloh61:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
Lloh63:
	adrp	x2, l_.str.3@PAGE
Lloh64:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_27:
	bl	_abort
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotStr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_pagesize,4,2                   ; @pagesize
	.comm	_INITIAL_BUFSIZE,8,3            ; @INITIAL_BUFSIZE
	.comm	_bufalloc,8,3                   ; @bufalloc
	.comm	_buffer,8,3                     ; @buffer
	.comm	_BZflag,8,3                     ; @BZflag
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_bzbufdesc,8,3                  ; @bzbufdesc
l_.str.1:                               ; @.str.1
	.asciz	"memory exhausted"

	.comm	_buflim,8,3                     ; @buflim
	.comm	_bufbeg,8,3                     ; @bufbeg
	.comm	_eolbyte,4,2                    ; @eolbyte
	.comm	_bufdesc,4,2                    ; @bufdesc
	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"fstat"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_directories,8,3                ; @directories
	.comm	_SKIP_DIRECTORIES,8,3           ; @SKIP_DIRECTORIES
	.comm	_devices,8,3                    ; @devices
	.comm	_SKIP_DEVICES,8,3               ; @SKIP_DEVICES
	.comm	_bufoffset,4,2                  ; @bufoffset
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
l_.str.3:                               ; @.str.3
	.asciz	"lseek"

	.comm	_Zflag,8,3                      ; @Zflag
	.comm	_bufmapped,4,2                  ; @bufmapped
	.comm	_gzbufdesc,8,3                  ; @gzbufdesc
	.comm	_initial_bufoffset,4,2          ; @initial_bufoffset
	.comm	_mmap_option,8,3                ; @mmap_option
	.no_dead_strip	_reset
.subsections_via_symbols
