	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packet_id_persist_close        ## -- Begin function packet_id_persist_close
	.p2align	4, 0x90
_packet_id_persist_close:               ## @packet_id_persist_close
	.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
	movq	%rdi, %rbx
	callq	_packet_id_persist_enabled
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	4(%rbx), %edi
	callq	_close
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_D_PID_PERSIST@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_msg
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_packet_id_persist_init         ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_PID_PERSIST,4,2              ## @D_PID_PERSIST
	.comm	_M_ERRNO,4,2                    ## @M_ERRNO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Close error on --replay-persist file %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packet_id_persist_close        ; -- Begin function packet_id_persist_close
	.p2align	2
_packet_id_persist_close:               ; @packet_id_persist_close
	.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	_packet_id_persist_enabled
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_close
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _D_PID_PERSIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_PID_PERSIST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	w2, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msg
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_packet_id_persist_init
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D_PID_PERSIST,4,2              ; @D_PID_PERSIST
	.comm	_M_ERRNO,4,2                    ; @M_ERRNO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Close error on --replay-persist file %s"

.subsections_via_symbols
