	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfclose                        ## -- Begin function cfclose
	.p2align	4, 0x90
_cfclose:                               ## @cfclose
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	%rsi, %rdi
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rsi
	movq	24(%rbx), %rdi
	callq	_cfclose
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rbx
	cmpq	%r14, %rbx
	je	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	cmpl	$123, %eax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$119, %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$115, %eax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	cmpl	$-1, %edi
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_close
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	movl	4(%rax), %edx
	movl	$1, %edi
	movq	%r15, %rsi
	callq	_err
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	movl	$-1, (%rax)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_close
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%rbx), %edx
	movl	$1, %edi
	movq	%r15, %rsi
	callq	_err
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, 16(%rbx)
	jmp	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfclose                        ; -- Begin function cfclose
	.p2align	2
_cfclose:                               ; @cfclose
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	x0, x1
	b.eq	LBB0_15
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w22, #-1
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #24]
	ldr	x1, [x20, #8]
	bl	_cfclose
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x20, #8]
	cmp	x20, x19
	b.eq	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w8, #123
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #119
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #115
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_close
	cbz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #32]
	ldr	w2, [x8, #4]
	mov	w0, #1
	mov	x1, x21
	bl	_err
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #32]
	str	w22, [x8]
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #16]
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_close
	cbz	w0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x20, #40]
	mov	w0, #1
	mov	x1, x21
	bl	_err
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w22, [x20, #16]
	b	LBB0_3
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

.subsections_via_symbols
