	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _pidfile_remove
__pidfile_remove:                       ## @_pidfile_remove
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_pidfile_verify
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movl	8(%r14), %esi
	movl	(%r14), %edi
	movl	4(%r14), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_funlinkat
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EDEADLK@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	(%rcx), %ebx
	je	LBB0_13
LBB0_3:
	movl	4(%r14), %edi
	callq	_close
	notl	%eax
	movq	_errno@GOTPCREL(%rip), %r12
	orl	%ebx, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%r12), %ebx
LBB0_5:
	movl	(%r14), %edi
	callq	_close
	notl	%eax
	orl	%ebx, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r12), %ebx
LBB0_7:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_free
	testl	%ebx, %ebx
	je	LBB0_11
LBB0_12:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	$-1, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$-1, 4(%r14)
	testl	%ebx, %ebx
	jne	LBB0_12
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.no_dead_strip	__pidfile_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _pidfile_remove
__pidfile_remove:                       ; @_pidfile_remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_pidfile_verify
	mov	x21, x0
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	cbnz	w0, LBB0_5
; %bb.1:
	ldp	w2, w1, [x19, #4]
	ldr	w0, [x19]
	mov	w3, #0
	bl	_funlinkat
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w21, [x22]
Lloh2:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_6
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_close
	cmp	w21, #0
	mov	w23, #-1
	ccmp	w0, w23, #0, eq
	ldr	w8, [x22]
	csel	w21, w8, w21, eq
	ldr	w0, [x19]
	bl	_close
	cmp	w21, #0
	ccmp	w0, w23, #0, eq
	ldr	w8, [x22]
	csel	w21, w8, w21, eq
	cbz	w20, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_free
	cbz	w21, LBB0_9
LBB0_5:
	str	w21, [x22]
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	str	w23, [x19, #4]
	cbnz	w21, LBB0_5
LBB0_9:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.no_dead_strip	__pidfile_remove
.subsections_via_symbols
