	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_prog
_start_prog:                            ## @start_prog
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	L_.str.1(%rip), %rsi
	callq	_atf_tc_get_config_var
	movq	_target_prog_file@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	%eax, %edx
	callq	_asprintf
	xorl	%edi, %edi
	cmpq	$0, -48(%rbp)
	setne	%dil
	callq	_ATF_REQUIRE
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_strdup
	movq	$0, -32(%rbp)
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, -40(%rbp)
	movq	-48(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_proc_create
	movl	(%r14), %ecx
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ATF_REQUIRE_EQ_MSG
	xorl	%edi, %edi
	cmpq	$0, -56(%rbp)
	setne	%dil
	callq	_ATF_REQUIRE
	movq	-48(%rbp), %rdi
	callq	_free
	movq	-40(%rbp), %rdi
	callq	_free
	movq	-56(%rbp), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

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

	.comm	_target_prog_file,4,2           ## @target_prog_file
L_.str.2:                               ## @.str.2
	.asciz	"-s"

L_.str.3:                               ## @.str.3
	.asciz	"failed to run '%s'"

	.no_dead_strip	_start_prog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_prog
_start_prog:                            ; @start_prog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
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	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_atf_tc_get_config_var
	mov	x2, x0
Lloh5:
	adrp	x20, _target_prog_file@GOTPAGE
Lloh6:
	ldr	x20, [x20, _target_prog_file@GOTPAGEOFF]
	ldr	w3, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	bl	_asprintf
	ldr	x8, [sp, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
	cbz	w19, LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_strdup
	str	xzr, [sp, #32]
	b	LBB0_3
LBB0_2:
	mov	x0, #0
LBB0_3:
	str	x0, [sp, #24]
	ldr	x0, [sp, #16]
	add	x1, sp, #16
	add	x5, sp, #8
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_proc_create
	ldr	w3, [x20]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #0
	bl	_ATF_REQUIRE_EQ_MSG
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	x0, [sp, #16]
	bl	_free
	ldr	x0, [sp, #24]
	bl	_free
	ldr	x0, [sp, #8]
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

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

	.comm	_target_prog_file,4,2           ; @target_prog_file
l_.str.2:                               ; @.str.2
	.asciz	"-s"

l_.str.3:                               ; @.str.3
	.asciz	"failed to run '%s'"

	.no_dead_strip	_start_prog
.subsections_via_symbols
