	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LSCRIU_try_checkpoint
_LSCRIU_try_checkpoint:                 ## @LSCRIU_try_checkpoint
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, %r15d
	movq	_s_tried_checkpoint@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.8:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lscriu_dbg                     ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_lscriu_dbg
	movl	$1, (%rbx)
	movq	_s_native@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	callq	_lscriu_dbg
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	je	LBB0_4
## %bb.5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LSCRIU_CloudLinux_Checkpoint   ## TAILCALL
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lscriu_err                     ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	callq	_getppid
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_setsid
	movq	_s_criu_image_path@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_fd_native@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r15d, %edi
	callq	_LSCRIU_Native_Dump
	movl	(%rbx), %edi
	callq	_close
	movl	%r14d, %edi
	callq	_LSCRIU_Wait_Dump_Finsh_Or_Restored
	leaq	L_.str.4(%rip), %rsi
	xorl	%edi, %edi
	callq	_LSCRIU_Restored_Error
	xorl	%eax, %eax
	callq	_LSAPI_reset_server_state
	movq	_s_restored@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_7:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LSCRIU_Set_Initial_Start_Reqs  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_s_tried_checkpoint,4,2         ## @s_tried_checkpoint
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LSCRIU (%d): Already tried checkpoint - one time per customer\n"

L_.str.1:                               ## @.str.1
	.asciz	"LSCRIU (%d): Trying checkpoint\n"

	.comm	_s_native,4,2                   ## @s_native
L_.str.2:                               ## @.str.2
	.asciz	"LSCRIU (%d): fork!\n"

L_.str.3:                               ## @.str.3
	.asciz	"LSCRIU (%d): Can't checkpoint due to a fork error: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_s_criu_image_path,4,2          ## @s_criu_image_path
	.comm	_s_fd_native,4,2                ## @s_fd_native
L_.str.4:                               ## @.str.4
	.asciz	"Restored!"

	.comm	_s_restored,4,2                 ## @s_restored
	.no_dead_strip	_LSCRIU_try_checkpoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LSCRIU_try_checkpoint
_LSCRIU_try_checkpoint:                 ; @LSCRIU_try_checkpoint
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_getpid
	mov	x19, x0
Lloh0:
	adrp	x21, _s_tried_checkpoint@GOTPAGE
Lloh1:
	ldr	x21, [x21, _s_tried_checkpoint@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_lscriu_dbg
LBB0_2:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_lscriu_dbg
	mov	w8, #1
	str	w8, [x21]
Lloh6:
	adrp	x8, _s_native@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_native@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.3:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_lscriu_dbg
	bl	_fork
	tbnz	w0, #31, LBB0_8
; %bb.4:
	cbz	w0, LBB0_9
; %bb.5:
	cbz	x20, LBB0_10
; %bb.6:
	str	w0, [x20]
	b	LBB0_10
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_LSCRIU_CloudLinux_Checkpoint
LBB0_8:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_lscriu_err
LBB0_9:
	bl	_getppid
	mov	x20, x0
	bl	_setsid
Lloh16:
	adrp	x8, _s_criu_image_path@GOTPAGE
Lloh17:
	ldr	x8, [x8, _s_criu_image_path@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x21, _s_fd_native@GOTPAGE
Lloh20:
	ldr	x21, [x21, _s_fd_native@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_LSCRIU_Native_Dump
	ldr	w0, [x21]
	bl	_close
	mov	x0, x20
	bl	_LSCRIU_Wait_Dump_Finsh_Or_Restored
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #0
	bl	_LSCRIU_Restored_Error
	bl	_LSAPI_reset_server_state
Lloh23:
	adrp	x8, _s_restored@GOTPAGE
Lloh24:
	ldr	x8, [x8, _s_restored@GOTPAGEOFF]
	mov	w9, #1
Lloh25:
	str	w9, [x8]
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_LSCRIU_Set_Initial_Start_Reqs
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_s_tried_checkpoint,4,2         ; @s_tried_checkpoint
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LSCRIU (%d): Already tried checkpoint - one time per customer\n"

l_.str.1:                               ; @.str.1
	.asciz	"LSCRIU (%d): Trying checkpoint\n"

	.comm	_s_native,4,2                   ; @s_native
l_.str.2:                               ; @.str.2
	.asciz	"LSCRIU (%d): fork!\n"

l_.str.3:                               ; @.str.3
	.asciz	"LSCRIU (%d): Can't checkpoint due to a fork error: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_s_criu_image_path,4,2          ; @s_criu_image_path
	.comm	_s_fd_native,4,2                ; @s_fd_native
l_.str.4:                               ; @.str.4
	.asciz	"Restored!"

	.comm	_s_restored,4,2                 ; @s_restored
	.no_dead_strip	_LSCRIU_try_checkpoint
.subsections_via_symbols
