	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpurge                         ## -- Begin function fpurge
	.p2align	4, 0x90
_fpurge:                                ## @fpurge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_FLOCKFILE
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_HASUB
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_FREEUB
LBB0_4:
	movl	8(%rbx), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	___SLBF@GOTPCREL(%rip), %rax
	movq	___SNBF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	___SRD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	xorl	%r14d, %r14d
	movl	$0, %eax
	testl	%ecx, (%rbx)
	jne	LBB0_6
## %bb.5:
	movl	4(%rbx), %eax
LBB0_6:
	movl	%eax, 12(%rbx)
	jmp	LBB0_7
LBB0_1:
	movq	_EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_7:
	movq	%rbx, %rdi
	callq	_FUNLOCKFILE
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_errno,4,2                      ## @errno
	.comm	_EOF,4,2                        ## @EOF
	.comm	___SLBF,4,2                     ## @__SLBF
	.comm	___SNBF,4,2                     ## @__SNBF
	.comm	___SRD,4,2                      ## @__SRD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpurge                         ; -- Begin function fpurge
	.p2align	2
_fpurge:                                ; @fpurge
	.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
	bl	_FLOCKFILE
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_HASUB
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_FREEUB
LBB0_3:
	ldr	w8, [x19, #8]
	str	w8, [x19, #24]
	str	xzr, [x19, #16]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, ___SLBF@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___SLBF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, ___SNBF@GOTPAGE
Lloh4:
	ldr	x10, [x10, ___SNBF@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, ___SRD@GOTPAGE
Lloh7:
	ldr	x10, [x10, ___SRD@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	w8, #0
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _EBADF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
Lloh15:
	adrp	x8, _EOF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_6:
	ldr	w8, [x19, #4]
LBB0_7:
	mov	w20, #0
	str	w8, [x19, #12]
LBB0_8:
	mov	x0, x19
	bl	_FUNLOCKFILE
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_errno,4,2                      ; @errno
	.comm	_EOF,4,2                        ; @EOF
	.comm	___SLBF,4,2                     ; @__SLBF
	.comm	___SNBF,4,2                     ; @__SNBF
	.comm	___SRD,4,2                      ; @__SRD
.subsections_via_symbols
