	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gr_fini                        ## -- Begin function gr_fini
	.p2align	4, 0x90
_gr_fini:                               ## @gr_fini
	.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
	movq	_initialized@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	$0, (%rax)
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	_tempname@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_3
## %bb.2:
	callq	_unlink
	movq	(%r15), %rax
	movb	$0, (%rax)
LBB0_3:
	movq	_lockfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$-1, %edi
	je	LBB0_5
## %bb.4:
	callq	_close
LBB0_5:
	movl	%ebx, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_initialized,8,3                ## @initialized
	.comm	_errno,4,2                      ## @errno
	.comm	_tempname,8,3                   ## @tempname
	.comm	_lockfd,4,2                     ## @lockfd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gr_fini                        ; -- Begin function gr_fini
	.p2align	2
_gr_fini:                               ; @gr_fini
	.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
Lloh0:
	adrp	x8, _initialized@GOTPAGE
Lloh1:
	ldr	x8, [x8, _initialized@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.1:
Lloh2:
	adrp	x19, _errno@GOTPAGE
Lloh3:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	str	xzr, [x8]
	ldr	w20, [x19]
Lloh4:
	adrp	x21, _tempname@GOTPAGE
Lloh5:
	ldr	x21, [x21, _tempname@GOTPAGEOFF]
	ldr	x0, [x21]
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.2:
	bl	_unlink
	ldr	x8, [x21]
	strb	wzr, [x8]
LBB0_3:
Lloh6:
	adrp	x8, _lockfd@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lockfd@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	bl	_close
LBB0_5:
	str	w20, [x19]
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_initialized,8,3                ; @initialized
	.comm	_errno,4,2                      ; @errno
	.comm	_tempname,8,3                   ; @tempname
	.comm	_lockfd,4,2                     ; @lockfd
.subsections_via_symbols
