	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clearerr                       ## -- Begin function clearerr
	.p2align	4, 0x90
_clearerr:                              ## @clearerr
	.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	%rdi, %rbx
	leaq	_clearerr(%rip), %rdi
	callq	_GET_REAL
	movq	%rbx, %rdi
	callq	_real_clearerr
	movq	_fail@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_fail_close@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	_fail_write@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	_fail_read@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	$0, (%rax)
	movq	_error@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fail,8,3                       ## @fail
	.comm	_fail_close,8,3                 ## @fail_close
	.comm	_fail_write,8,3                 ## @fail_write
	.comm	_fail_read,8,3                  ## @fail_read
	.comm	_error,8,3                      ## @error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clearerr                       ; -- Begin function clearerr
	.p2align	2
_clearerr:                              ; @clearerr
	.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, x0
Lloh0:
	adrp	x0, _clearerr@PAGE
Lloh1:
	add	x0, x0, _clearerr@PAGEOFF
	bl	_GET_REAL
	mov	x0, x19
	bl	_real_clearerr
Lloh2:
	adrp	x8, _fail@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fail@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x19
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x9, _fail_close@GOTPAGE
Lloh5:
	ldr	x9, [x9, _fail_close@GOTPAGEOFF]
Lloh6:
	str	xzr, [x9]
Lloh7:
	adrp	x9, _fail_write@GOTPAGE
Lloh8:
	ldr	x9, [x9, _fail_write@GOTPAGEOFF]
Lloh9:
	adrp	x10, _fail_read@GOTPAGE
Lloh10:
	ldr	x10, [x10, _fail_read@GOTPAGEOFF]
Lloh11:
	str	xzr, [x9]
Lloh12:
	str	xzr, [x10]
	str	xzr, [x8]
Lloh13:
	adrp	x8, _error@GOTPAGE
Lloh14:
	ldr	x8, [x8, _error@GOTPAGEOFF]
Lloh15:
	str	xzr, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_fail,8,3                       ; @fail
	.comm	_fail_close,8,3                 ; @fail_close
	.comm	_fail_write,8,3                 ; @fail_write
	.comm	_fail_read,8,3                  ; @fail_read
	.comm	_error,8,3                      ; @error
.subsections_via_symbols
