	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_close2
_file_close2:                           ## @file_close2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	cmpl	$0, (%rsi)
	js	LBB0_7
## %bb.1:
	movl	28(%rbx), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	28(%rbx), %edi
	callq	_S_ISCHR
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	28(%rbx), %edi
	callq	_S_ISBLK
	testl	%eax, %eax
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	16(%rbx), %rsi
	movl	24(%rbx), %edx
	callq	_read
	testq	%rax, %rax
	jg	LBB0_4
LBB0_5:
	movq	8(%rbx), %rax
	movq	_FNT_STDIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	callq	_close
LBB0_7:
	movq	16(%rbx), %rdi
	callq	_free
	movq	$0, 16(%rbx)
	movl	$-1, (%rbx)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FNT_STDIN,8,3                  ## @FNT_STDIN
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_file_close2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_close2
_file_close2:                           ; @file_close2
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x1]
	tbnz	w8, #31, LBB0_7
; %bb.1:
	ldr	w0, [x19, #28]
	bl	_S_ISREG
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #28]
	bl	_S_ISCHR
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #28]
	bl	_S_ISBLK
	cbnz	w0, LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	x1, [x19, #16]
	ldr	w2, [x19, #24]
	bl	_read
	cmp	x0, #0
	b.gt	LBB0_4
LBB0_5:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _FNT_STDIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FNT_STDIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19]
	bl	_close
LBB0_7:
	ldr	x0, [x19, #16]
	bl	_free
	str	xzr, [x19, #16]
	mov	w8, #-1
	str	w8, [x19]
Lloh3:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FNT_STDIN,8,3                  ; @FNT_STDIN
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_file_close2
.subsections_via_symbols
