	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_tests
_run_tests:                             ## @run_tests
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_usershell@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_clone_usershell@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_free_usershell@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-48(%rbp), %rsi
	callq	_TEST_DATA_INIT
	movl	(%r14), %edi
	movl	(%r12), %edx
	movl	(%rbx), %ecx
	leaq	-56(%rbp), %rsi
	callq	_TEST_DATA_INIT
	xorl	%eax, %eax
	callq	_setusershell
	xorl	%eax, %eax
	callq	_getusershell
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_str.3(%rip), %r12
	leaq	-72(%rbp), %rbx
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_dump_usershell
	movl	(%r14), %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_TEST_DATA_APPEND
	xorl	%eax, %eax
	callq	_getusershell
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_endusershell
	testq	%r15, %r15
	je	LBB0_9
## %bb.4:
	movq	_W_OK@GOTPCREL(%rip), %rax
	movq	_R_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_access
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, %ebx
	jmp	LBB0_15
LBB0_7:
	movl	(%r14), %edi
	movq	_usershell_read_snapshot_func@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_TEST_SNAPSHOT_FILE_READ
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	%r12d, %ebx
	jmp	LBB0_15
LBB0_9:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cmpl	$129, %eax
	je	LBB0_12
## %bb.10:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.11:
	movl	(%r14), %edi
	movq	_compare_usershell@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	xorl	%r8d, %r8d
	callq	_DO_2PASS_TEST
	jmp	LBB0_14
LBB0_12:
	testq	%r15, %r15
	je	LBB0_15
LBB0_13:
	movl	(%r14), %edi
	movq	_sdump_usershell@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rsi
	callq	_TEST_SNAPSHOT_FILE_WRITE
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	movl	(%r14), %edi
	leaq	-56(%rbp), %rsi
	callq	_TEST_DATA_DESTROY
	movl	(%r14), %edi
	leaq	-48(%rbp), %rsi
	callq	_TEST_DATA_DESTROY
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_usershell,4,2                  ## @usershell
	.comm	_clone_usershell,4,2            ## @clone_usershell
	.comm	_free_usershell,4,2             ## @free_usershell
	.comm	_W_OK,4,2                       ## @W_OK
	.comm	_R_OK,4,2                       ## @R_OK
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"can't access the snapshot file %s\n"

	.comm	_usershell_read_snapshot_func,4,2 ## @usershell_read_snapshot_func
	.comm	_compare_usershell,4,2          ## @compare_usershell
	.comm	_sdump_usershell,4,2            ## @sdump_usershell
L_str:                                  ## @str
	.asciz	"error reading snapshot file"

L_str.3:                                ## @str.3
	.asciz	"usershell found:"

	.no_dead_strip	_run_tests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_tests
_run_tests:                             ; @run_tests
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _usershell@GOTPAGE
Lloh1:
	ldr	x22, [x22, _usershell@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x21, _clone_usershell@GOTPAGE
Lloh3:
	ldr	x21, [x21, _clone_usershell@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh4:
	adrp	x23, _free_usershell@GOTPAGE
Lloh5:
	ldr	x23, [x23, _free_usershell@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x1, sp, #24
	bl	_TEST_DATA_INIT
	ldr	w0, [x22]
	ldr	w2, [x21]
	ldr	w3, [x23]
	add	x1, sp, #16
	bl	_TEST_DATA_INIT
	bl	_setusershell
	bl	_getusershell
	str	x0, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x21, l_str.3@PAGE
Lloh7:
	add	x21, x21, l_str.3@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_puts
	add	x0, sp, #8
	bl	_dump_usershell
	ldr	w0, [x22]
	add	x1, sp, #24
	add	x2, sp, #8
	bl	_TEST_DATA_APPEND
	bl	_getusershell
	str	x0, [sp, #8]
	cbnz	x0, LBB0_2
LBB0_3:
	bl	_endusershell
	cbz	x19, LBB0_9
; %bb.4:
Lloh8:
	adrp	x8, _W_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _W_OK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _R_OK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _R_OK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_access
	cbz	x0, LBB0_7
; %bb.5:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _ENOENT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.6:
	str	x19, [sp]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	w21, #-1
	b	LBB0_16
LBB0_7:
	ldr	w0, [x22]
Lloh22:
	adrp	x8, _usershell_read_snapshot_func@GOTPAGE
Lloh23:
	ldr	x8, [x8, _usershell_read_snapshot_func@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	add	x2, sp, #16
	mov	x1, x19
	bl	_TEST_SNAPSHOT_FILE_READ
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
Lloh25:
	adrp	x0, l_str@PAGE
Lloh26:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_16
LBB0_9:
	cmp	w20, #129
	b.eq	LBB0_12
; %bb.10:
	cmp	w20, #128
	b.ne	LBB0_15
; %bb.11:
	ldr	w0, [x22]
Lloh27:
	adrp	x8, _compare_usershell@GOTPAGE
Lloh28:
	ldr	x8, [x8, _compare_usershell@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x4, #0
	bl	_DO_2PASS_TEST
	b	LBB0_14
LBB0_12:
	cbz	x19, LBB0_15
LBB0_13:
	ldr	w0, [x22]
Lloh30:
	adrp	x8, _sdump_usershell@GOTPAGE
Lloh31:
	ldr	x8, [x8, _sdump_usershell@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	add	x2, sp, #24
	mov	x1, x19
	bl	_TEST_SNAPSHOT_FILE_WRITE
LBB0_14:
	mov	x21, x0
	b	LBB0_16
LBB0_15:
	mov	w21, #0
LBB0_16:
	ldr	w0, [x22]
	add	x1, sp, #16
	bl	_TEST_DATA_DESTROY
	ldr	w0, [x22]
	add	x1, sp, #24
	bl	_TEST_DATA_DESTROY
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_usershell,4,2                  ; @usershell
	.comm	_clone_usershell,4,2            ; @clone_usershell
	.comm	_free_usershell,4,2             ; @free_usershell
	.comm	_W_OK,4,2                       ; @W_OK
	.comm	_R_OK,4,2                       ; @R_OK
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"can't access the snapshot file %s\n"

	.comm	_usershell_read_snapshot_func,4,2 ; @usershell_read_snapshot_func
	.comm	_compare_usershell,4,2          ; @compare_usershell
	.comm	_sdump_usershell,4,2            ; @sdump_usershell
l_str:                                  ; @str
	.asciz	"error reading snapshot file"

l_str.3:                                ; @str.3
	.asciz	"usershell found:"

	.no_dead_strip	_run_tests
.subsections_via_symbols
