	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packet_id_persist_save         ## -- Begin function packet_id_persist_save
	.p2align	4, 0x90
_packet_id_persist_save:                ## @packet_id_persist_save
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_packet_id_persist_enabled
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	cmpq	8(%rbx), %rax
	jne	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	cmpq	24(%rbx), %rax
	je	LBB0_11
LBB0_4:
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -32(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rbx), %rax
	movq	%rax, -40(%rbp)
	movl	36(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	_D_PID_PERSIST@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movl	32(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_5:
	movl	36(%rbx), %edi
	leaq	-48(%rbp), %rsi
	movl	$16, %edx
	callq	_write
	cmpl	$16, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rbx)
	movq	%rcx, 24(%rbx)
	movq	_D_PID_PERSIST_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	32(%rbx), %r15d
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_packet_id_persist_print
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dmsg
	jmp	LBB0_10
LBB0_7:
	movq	_D_PID_PERSIST@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movl	32(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	callq	_msg
LBB0_10:
	leaq	-32(%rbp), %rdi
	callq	_gc_free
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_D_PID_PERSIST_DEBUG,4,2        ## @D_PID_PERSIST_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PID Persist Write to %s: %s"

	.comm	_D_PID_PERSIST,4,2              ## @D_PID_PERSIST
	.comm	_M_ERRNO,4,2                    ## @M_ERRNO
L_.str.1:                               ## @.str.1
	.asciz	"Cannot write to --replay-persist file %s"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot seek to beginning of --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_save         ; -- Begin function packet_id_persist_save
	.p2align	2
_packet_id_persist_save:                ; @packet_id_persist_save
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_packet_id_persist_enabled
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.2:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_4:
	bl	_gc_new
	str	w0, [sp, #8]
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	stp	x8, x9, [sp, #16]
	ldr	w0, [x19, #36]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_lseek
	cbz	x0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _D_PID_PERSIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D_PID_PERSIST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	w2, [x19, #32]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:
	ldr	w0, [x19, #36]
	add	x1, sp, #16
	mov	w2, #16
	bl	_write
	cmp	w0, #16
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19]
	str	x8, [x19, #8]
	ldr	x8, [x19, #16]
	str	x8, [x19, #24]
Lloh11:
	adrp	x8, _D_PID_PERSIST_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D_PID_PERSIST_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	ldr	w21, [x19, #32]
	add	x1, sp, #8
	mov	x0, x19
	bl	_packet_id_persist_print
	mov	x3, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dmsg
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x8, _D_PID_PERSIST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _D_PID_PERSIST@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	w2, [x19, #32]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	bl	_msg
LBB0_10:
	add	x0, sp, #8
	bl	_gc_free
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_D_PID_PERSIST_DEBUG,4,2        ; @D_PID_PERSIST_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PID Persist Write to %s: %s"

	.comm	_D_PID_PERSIST,4,2              ; @D_PID_PERSIST
	.comm	_M_ERRNO,4,2                    ; @M_ERRNO
l_.str.1:                               ; @.str.1
	.asciz	"Cannot write to --replay-persist file %s"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot seek to beginning of --replay-persist file %s"

.subsections_via_symbols
