	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_native_env
_init_native_env:                       ## @init_native_env
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_3:
	movq	%rax, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_getpid
	testq	%r14, %r14
	je	LBB0_4
## %bb.6:
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_lscriu_dbg
	movq	%rbx, %rdi
	callq	_atoi
	movq	_s_fd_native@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_getpid
	movslq	(%r12), %rdx
	movq	_iPidDump@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_lscriu_dbg
	movq	%r14, %rdi
	callq	_strdup
	movq	_s_criu_image_path@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_5
LBB0_8:
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str.3(%rip), %rdi
LBB0_5:
	movl	%eax, %esi
	callq	_lscriu_err
	movl	$-1, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LSAPI_CRIU_SYNC_FD"

L_.str.1:                               ## @.str.1
	.asciz	"LSCAPI_CRIU_SYNC_FD"

L_.str.2:                               ## @.str.2
	.asciz	"LSAPI_CRIU_IMAGE_PATH"

L_.str.3:                               ## @.str.3
	.asciz	"LSCRIU (%d): LSAPI_CRIU_SYNC_FD internal environment variable not set - contact Litespeed tech support\n"

L_.str.4:                               ## @.str.4
	.asciz	"LSCRIU (%d): LSAPI_CRIU_IMAGE_PATH internal environment variable not set - contact Litespeed tech support\n"

L_.str.5:                               ## @.str.5
	.asciz	"LSCRIU (%d): Checkpoint dump.  ImagePath: %s\n"

	.comm	_s_fd_native,4,2                ## @s_fd_native
L_.str.6:                               ## @.str.6
	.asciz	"LSCRIU (%d): Native checkpoint.  Use filepointer %d (%s) to send pid %d\n"

	.comm	_iPidDump,4,2                   ## @iPidDump
	.comm	_s_criu_image_path,4,2          ## @s_criu_image_path
	.no_dead_strip	_init_native_env
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_native_env
_init_native_env:                       ; @init_native_env
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbz	x19, LBB0_6
LBB0_3:
	mov	x20, x0
	bl	_getpid
	mov	x1, x0
	cbz	x20, LBB0_5
; %bb.4:
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x2, x20
	bl	_lscriu_dbg
	mov	x0, x19
	bl	_atoi
Lloh10:
	adrp	x21, _s_fd_native@GOTPAGE
Lloh11:
	ldr	x21, [x21, _s_fd_native@GOTPAGEOFF]
	str	w0, [x21]
	bl	_getpid
	mov	x1, x0
	ldrsw	x2, [x21]
Lloh12:
	adrp	x8, _iPidDump@GOTPAGE
Lloh13:
	ldr	x8, [x8, _iPidDump@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	x19, x8, [sp]
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_lscriu_dbg
	mov	x0, x20
	bl	_strdup
	mov	x8, x0
	mov	w0, #0
Lloh17:
	adrp	x9, _s_criu_image_path@GOTPAGE
Lloh18:
	ldr	x9, [x9, _s_criu_image_path@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	b	LBB0_8
LBB0_5:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_6:
	bl	_getpid
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_7:
	bl	_lscriu_err
	mov	w0, #-1
LBB0_8:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LSAPI_CRIU_SYNC_FD"

l_.str.1:                               ; @.str.1
	.asciz	"LSCAPI_CRIU_SYNC_FD"

l_.str.2:                               ; @.str.2
	.asciz	"LSAPI_CRIU_IMAGE_PATH"

l_.str.3:                               ; @.str.3
	.asciz	"LSCRIU (%d): LSAPI_CRIU_SYNC_FD internal environment variable not set - contact Litespeed tech support\n"

l_.str.4:                               ; @.str.4
	.asciz	"LSCRIU (%d): LSAPI_CRIU_IMAGE_PATH internal environment variable not set - contact Litespeed tech support\n"

l_.str.5:                               ; @.str.5
	.asciz	"LSCRIU (%d): Checkpoint dump.  ImagePath: %s\n"

	.comm	_s_fd_native,4,2                ; @s_fd_native
l_.str.6:                               ; @.str.6
	.asciz	"LSCRIU (%d): Native checkpoint.  Use filepointer %d (%s) to send pid %d\n"

	.comm	_iPidDump,4,2                   ; @iPidDump
	.comm	_s_criu_image_path,4,2          ; @s_criu_image_path
	.no_dead_strip	_init_native_env
.subsections_via_symbols
