	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_printstat                      ## -- Begin function printstat
	.p2align	4, 0x90
_printstat:                             ## @printstat
	.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	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_ptoi
	movq	16(%rbx), %rsi
	movl	%eax, %edi
	callq	_redirect
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_1:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	movq	_ofsloc@GOTPCREL(%rip), %r13
	movq	_orsloc@GOTPCREL(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %edi
	callq	_getsval
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_fputs
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_execute
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_getpssval
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_fputs
	movq	%r12, %rdi
	callq	_tempfree
	cmpq	$0, (%rbx)
	movq	%r13, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rax
	jmp	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_fflush
LBB0_10:
	movq	%r15, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_filename
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FATAL
LBB0_12:
	movq	_True@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,8,3                     ## @stdout
	.comm	_orsloc,4,2                     ## @orsloc
	.comm	_ofsloc,4,2                     ## @ofsloc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write error on %s"

	.comm	_True,8,3                       ## @True
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_printstat                      ; -- Begin function printstat
	.p2align	2
_printstat:                             ; @printstat
	.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	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_ptoi
	ldr	x1, [x19, #16]
	bl	_redirect
	mov	x20, x0
	ldr	x21, [x19]
	cbnz	x21, LBB0_3
	b	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x21, [x19]
	cbz	x21, LBB0_5
LBB0_3:
Lloh3:
	adrp	x23, _orsloc@GOTPAGE
Lloh4:
	ldr	x23, [x23, _orsloc@GOTPAGEOFF]
Lloh5:
	adrp	x24, _ofsloc@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ofsloc@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_execute
	mov	x22, x0
	bl	_getpssval
	mov	x1, x20
	bl	_fputs
	mov	x0, x22
	bl	_tempfree
	ldr	x8, [x21]
	cmp	x8, #0
	csel	x8, x23, x24, eq
	ldr	w0, [x8]
	bl	_getsval
	mov	x1, x20
	bl	_fputs
	ldr	x21, [x21]
	cbnz	x21, LBB0_4
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_fflush
LBB0_7:
	mov	x0, x20
	bl	_ferror
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_filename
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FATAL
LBB0_9:
Lloh9:
	adrp	x8, _True@GOTPAGE
Lloh10:
	ldr	x8, [x8, _True@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,8,3                     ; @stdout
	.comm	_orsloc,4,2                     ; @orsloc
	.comm	_ofsloc,4,2                     ; @ofsloc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write error on %s"

	.comm	_True,8,3                       ; @True
.subsections_via_symbols
