	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_test
_do_test:                               ## @do_test
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$1056, %rsp                     ## imm = 0x420
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_fcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	xorl	%edi, %edi
	callq	_getRandom
	movl	%eax, %ebx
	movq	_results_dir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	_do_test.test_num(%rip), %ecx
	leal	1(%rcx), %eax
	movl	%eax, _do_test.test_num(%rip)
	leaq	L_.str(%rip), %rsi
	leaq	-1056(%rbp), %r14
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_sprintf
	movq	_fontlist@GOTPCREL(%rip), %rax
	movslq	%ebx, %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_copyfont
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_abort_test@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	$20, %edi
	callq	_alarm
	xorl	%eax, %eax
	callq	_fork
	movq	_child_pid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.3:
	leaq	-1060(%rbp), %rsi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_waitpid
	xorl	%edi, %edi
	callq	_alarm
	movl	-1060(%rbp), %edi
	callq	_WIFSIGNALED
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	leaq	-1056(%rbp), %rsi
	callq	_printf
	jmp	LBB0_8
LBB0_7:
	leaq	-1056(%rbp), %rdi
	callq	_ExecuteTest
	jmp	LBB0_8
LBB0_5:
	leaq	-1056(%rbp), %rdi
	callq	_unlink
LBB0_8:
	xorl	%edi, %edi
	callq	_alarm
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$1056, %rsp                     ## imm = 0x420
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_fcnt,4,2                       ## @fcnt
.zerofill __DATA,__bss,_do_test.test_num,4,2 ## @do_test.test_num
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/test%d"

	.comm	_results_dir,8,3                ## @results_dir
	.comm	_fontlist,8,3                   ## @fontlist
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_abort_test,4,2                 ## @abort_test
	.comm	_child_pid,4,2                  ## @child_pid
L_.str.1:                               ## @.str.1
	.asciz	"Error found in file `%s'\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Can't fork test case.\n"

	.no_dead_strip	_do_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_test
_do_test:                               ; @do_test
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _fcnt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fcnt@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w1, w8, #1
	mov	w0, #0
	bl	_getRandom
	mov	x19, x0
Lloh6:
	adrp	x8, _results_dir@GOTPAGE
Lloh7:
	ldr	x8, [x8, _results_dir@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x8]
	adrp	x8, _do_test.test_num@PAGE
	ldr	w3, [x8, _do_test.test_num@PAGEOFF]
	add	w9, w3, #1
	str	w9, [x8, _do_test.test_num@PAGEOFF]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh11:
	adrp	x8, _fontlist@GOTPAGE
Lloh12:
	ldr	x8, [x8, _fontlist@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x0, x8, w19, sxtw #2
	add	x1, sp, #8
	bl	_copyfont
	cbz	x0, LBB0_8
; %bb.1:
Lloh14:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _abort_test@GOTPAGE
Lloh18:
	ldr	x8, [x8, _abort_test@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_signal
	mov	w0, #20
	bl	_alarm
	bl	_fork
Lloh20:
	adrp	x8, _child_pid@GOTPAGE
Lloh21:
	ldr	x8, [x8, _child_pid@GOTPAGEOFF]
Lloh22:
	str	w0, [x8]
	cbz	w0, LBB0_5
; %bb.2:
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.3:
	add	x1, sp, #4
	mov	w2, #0
	bl	_waitpid
	mov	w0, #0
	bl	_alarm
	ldr	w0, [sp, #4]
	bl	_WIFSIGNALED
	cbz	x0, LBB0_6
; %bb.4:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	bl	_printf
	b	LBB0_7
LBB0_5:
	add	x0, sp, #8
	bl	_ExecuteTest
	b	LBB0_7
LBB0_6:
	add	x0, sp, #8
	bl	_unlink
LBB0_7:
	mov	w0, #0
	bl	_alarm
LBB0_8:
	ldur	x8, [x29, #-24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
LBB0_11:
Lloh28:
	adrp	x8, _stderr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_fcnt,4,2                       ; @fcnt
.zerofill __DATA,__bss,_do_test.test_num,4,2 ; @do_test.test_num
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/test%d"

	.comm	_results_dir,8,3                ; @results_dir
	.comm	_fontlist,8,3                   ; @fontlist
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_abort_test,4,2                 ; @abort_test
	.comm	_child_pid,4,2                  ; @child_pid
l_.str.1:                               ; @.str.1
	.asciz	"Error found in file `%s'\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Can't fork test case.\n"

	.no_dead_strip	_do_test
.subsections_via_symbols
