	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packet_id_persist_load         ## -- Begin function packet_id_persist_load
	.p2align	4, 0x90
_packet_id_persist_load:                ## @packet_id_persist_load
	.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	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -32(%rbp)
	movq	%rbx, %rdi
	callq	_packet_id_persist_enabled
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_BINARY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_platform_open
	movl	%eax, (%rbx)
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movq	%r14, 8(%rbx)
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	movl	$8, %edx
	callq	_read
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$8, %eax
	jne	LBB0_8
## %bb.5:
	movq	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqu	%xmm0, 16(%rbx)
	movq	_D_PID_PERSIST_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	8(%rbx), %r15
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_packet_id_persist_print
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_dmsg
	jmp	LBB0_8
LBB0_2:
	movq	_D_PID_PERSIST@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	jmp	LBB0_7
LBB0_6:
	movq	_D_PID_PERSIST@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	callq	_msg
LBB0_8:
	leaq	-32(%rbp), %rdi
	callq	_gc_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.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	"Cannot open --replay-persist file %s for read/write"

	.comm	_D_PID_PERSIST_DEBUG,4,2        ## @D_PID_PERSIST_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"PID Persist Read from %s: %s"

L_.str.2:                               ## @.str.2
	.asciz	"Read error on --replay-persist file %s"

	.comm	_LOCK_EX,4,2                    ## @LOCK_EX
	.comm	_LOCK_NB,4,2                    ## @LOCK_NB
	.comm	_M_ERR,4,2                      ## @M_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packet_id_persist_load         ; -- Begin function packet_id_persist_load
	.p2align	2
_packet_id_persist_load:                ; @packet_id_persist_load
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_gc_new
	str	w0, [sp, #8]
	mov	x0, x19
	bl	_packet_id_persist_enabled
	cbnz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _S_IRUSR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _S_IRUSR@GOTPAGEOFF]
	orr	w1, w8, w9
Lloh11:
	ldr	w8, [x10]
Lloh12:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_platform_open
	str	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	str	x20, [x19, #8]
	mov	x1, sp
	mov	w2, #8
	bl	_read
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	cmp	w0, #8
	b.ne	LBB0_8
; %bb.4:
	add	x8, x19, #16
	ldr	d0, [sp]
	fmov	d1, d0
	st2.2s	{ v0, v1 }, [x8]
Lloh15:
	adrp	x8, _D_PID_PERSIST_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _D_PID_PERSIST_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	ldr	x21, [x19, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_packet_id_persist_print
	mov	x3, x0
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dmsg
	b	LBB0_8
LBB0_5:
Lloh20:
	adrp	x8, _D_PID_PERSIST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _D_PID_PERSIST@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	b	LBB0_7
LBB0_6:
Lloh28:
	adrp	x8, _D_PID_PERSIST@GOTPAGE
Lloh29:
	ldr	x8, [x8, _D_PID_PERSIST@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh32:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x2, [x19, #8]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	bl	_msg
LBB0_8:
	add	x0, sp, #8
	bl	_gc_free
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.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	"Cannot open --replay-persist file %s for read/write"

	.comm	_D_PID_PERSIST_DEBUG,4,2        ; @D_PID_PERSIST_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"PID Persist Read from %s: %s"

l_.str.2:                               ; @.str.2
	.asciz	"Read error on --replay-persist file %s"

	.comm	_LOCK_EX,4,2                    ; @LOCK_EX
	.comm	_LOCK_NB,4,2                    ; @LOCK_NB
	.comm	_M_ERR,4,2                      ; @M_ERR
.subsections_via_symbols
