	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pw_fini                        ## -- Begin function pw_fini
	.p2align	4, 0x90
_pw_fini:                               ## @pw_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_8
## %bb.1:
	movq	$0, (%rax)
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	_editpid@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_3
## %bb.2:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kill
	movl	(%rbx), %edi
	movq	_SIGCONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kill
	movl	(%rbx), %edi
	leaq	-28(%rbp), %rsi
	xorl	%edx, %edx
	callq	_waitpid
	movl	$-1, (%rbx)
LBB0_3:
	movq	_tempname@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_5
## %bb.4:
	callq	_unlink
	movq	(%rbx), %rax
	movb	$0, (%rax)
LBB0_5:
	movq	_lockfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$-1, %edi
	je	LBB0_7
## %bb.6:
	callq	_close
LBB0_7:
	movl	%r15d, (%r14)
LBB0_8:
	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	_editpid,4,2                    ## @editpid
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_SIGCONT,4,2                    ## @SIGCONT
	.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	_pw_fini                        ; -- Begin function pw_fini
	.p2align	2
_pw_fini:                               ; @pw_fini
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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_8
; %bb.1:
Lloh2:
	adrp	x19, _errno@GOTPAGE
Lloh3:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	str	xzr, [x8]
	ldr	w20, [x19]
Lloh4:
	adrp	x21, _editpid@GOTPAGE
Lloh5:
	ldr	x21, [x21, _editpid@GOTPAGEOFF]
	ldr	w0, [x21]
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kill
	ldr	w0, [x21]
Lloh9:
	adrp	x8, _SIGCONT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIGCONT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_kill
	ldr	w0, [x21]
	add	x1, sp, #12
	mov	w2, #0
	bl	_waitpid
	mov	w8, #-1
	str	w8, [x21]
LBB0_3:
Lloh12:
	adrp	x21, _tempname@GOTPAGE
Lloh13:
	ldr	x21, [x21, _tempname@GOTPAGEOFF]
	ldr	x0, [x21]
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.4:
	bl	_unlink
	ldr	x8, [x21]
	strb	wzr, [x8]
LBB0_5:
Lloh14:
	adrp	x8, _lockfd@GOTPAGE
Lloh15:
	ldr	x8, [x8, _lockfd@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.6:
	bl	_close
LBB0_7:
	str	w20, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_initialized,8,3                ; @initialized
	.comm	_errno,4,2                      ; @errno
	.comm	_editpid,4,2                    ; @editpid
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_SIGCONT,4,2                    ; @SIGCONT
	.comm	_tempname,8,3                   ; @tempname
	.comm	_lockfd,4,2                     ; @lockfd
.subsections_via_symbols
