	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_atexit_handler
_register_atexit_handler:               ## @register_atexit_handler
	.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
	xorl	%ebx, %ebx
	cmpb	$0, _register_atexit_handler.done(%rip)
	jne	LBB0_4
## %bb.1:
	movq	_pidfile_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movb	$1, _register_atexit_handler.done(%rip)
	jmp	LBB0_4
LBB0_2:
	movl	$-1, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_register_atexit_handler.done,1,2 ## @register_atexit_handler.done
	.comm	_pidfile_cleanup,4,2            ## @pidfile_cleanup
	.no_dead_strip	_register_atexit_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_atexit_handler
_register_atexit_handler:               ; @register_atexit_handler
	.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
	adrp	x19, _register_atexit_handler.done@PAGE
	ldrb	w8, [x19, _register_atexit_handler.done@PAGEOFF]
	tbz	w8, #0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _pidfile_cleanup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pidfile_cleanup@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_atexit
	tbnz	x0, #63, LBB0_4
; %bb.3:
	mov	w0, #0
	mov	w8, #1
	strb	w8, [x19, _register_atexit_handler.done@PAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_register_atexit_handler.done,1,2 ; @register_atexit_handler.done
	.comm	_pidfile_cleanup,4,2            ; @pidfile_cleanup
	.no_dead_strip	_register_atexit_handler
.subsections_via_symbols
