	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_prog
_check_prog:                            ## @check_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdi
	movq	%r15, %rdx
	callq	_atf_fs_path_init_fmt
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	leaq	-36(%rbp), %rdi
	callq	_atf_fs_path_is_absolute
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_atf_fs_access_x@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdi
	callq	_atf_fs_eaccess
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movl	%ebx, %edi
	callq	_atf_error_free
	leaq	-36(%rbp), %rdi
	callq	_atf_fs_path_fini
	leaq	L_.str.1(%rip), %rcx
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_format_reason_fmt
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_skip
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_atf_env_get
	movq	%rax, %r12
	leaq	-36(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_atf_fs_path_branch_path
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	leaq	-40(%rbp), %rdi
	callq	_atf_fs_path_cstring
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rdi
	callq	_atf_fs_path_fini
	leaq	-36(%rbp), %rdi
	callq	_atf_fs_path_fini
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	callq	_report_fatal_error
LBB0_7:
	movq	%r15, -56(%rbp)
	movl	$0, -48(%rbp)
	movq	_check_prog_in_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	callq	_atf_text_for_each_word
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	cmpl	$0, -48(%rbp)
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rdi
	callq	_atf_fs_path_fini
	leaq	-36(%rbp), %rdi
	callq	_atf_fs_path_fini
	leaq	L_.str.6(%rip), %rcx
	leaq	-60(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_format_reason_fmt
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_fail_requirement
LBB0_10:
	leaq	-40(%rbp), %rdi
	callq	_atf_fs_path_fini
LBB0_11:
	leaq	-36(%rbp), %rdi
	callq	_atf_fs_path_fini
LBB0_12:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_atf_fs_access_x,4,2            ## @atf_fs_access_x
L_.str.1:                               ## @.str.1
	.asciz	"The required program %s could not be found"

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

L_.str.3:                               ## @.str.3
	.asciz	"."

L_.str.4:                               ## @.str.4
	.asciz	"Relative paths are not allowed when searching for a program (%s)"

	.comm	_UNREACHABLE,4,2                ## @UNREACHABLE
L_.str.5:                               ## @.str.5
	.asciz	":"

	.comm	_check_prog_in_dir,4,2          ## @check_prog_in_dir
L_.str.6:                               ## @.str.6
	.asciz	"The required program %s could not be found in the PATH"

	.no_dead_strip	_check_prog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_prog
_check_prog:                            ; @check_prog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #28
	mov	x2, x20
	bl	_atf_fs_path_init_fmt
	mov	x21, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_11
; %bb.1:
	add	x0, sp, #28
	bl	_atf_fs_path_is_absolute
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _atf_fs_access_x@GOTPAGE
Lloh3:
	ldr	x8, [x8, _atf_fs_access_x@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #28
	bl	_atf_fs_eaccess
	mov	x21, x0
	bl	_atf_is_error
	cbz	x0, LBB0_10
; %bb.3:
	mov	x0, x21
	bl	_atf_error_free
	add	x0, sp, #28
	bl	_atf_fs_path_fini
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #0
	mov	x4, x20
	bl	_format_reason_fmt
	add	x1, sp, #8
	mov	x0, x19
	bl	_skip
	b	LBB0_10
LBB0_4:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_env_get
	mov	x22, x0
	add	x0, sp, #28
	add	x1, sp, #4
	bl	_atf_fs_path_branch_path
	mov	x21, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_10
; %bb.5:
	add	x0, sp, #4
	bl	_atf_fs_path_cstring
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.6:
	add	x0, sp, #4
	bl	_atf_fs_path_fini
	add	x0, sp, #28
	bl	_atf_fs_path_fini
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_report_fatal_error
LBB0_7:
	str	x20, [sp, #8]
	str	wzr, [sp, #16]
Lloh13:
	adrp	x8, _check_prog_in_dir@GOTPAGE
Lloh14:
	ldr	x8, [x8, _check_prog_in_dir@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x3, sp, #8
	mov	x0, x22
	bl	_atf_text_for_each_word
	mov	x21, x0
	bl	_atf_is_error
	ldr	w8, [sp, #16]
	cmp	x0, #0
	ccmp	w8, #0, #0, eq
	b.ne	LBB0_9
; %bb.8:
	add	x0, sp, #4
	bl	_atf_fs_path_fini
	add	x0, sp, #28
	bl	_atf_fs_path_fini
Lloh18:
	adrp	x3, l_.str.6@PAGE
Lloh19:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, sp
	mov	x1, #0
	mov	w2, #0
	mov	x4, x20
	bl	_format_reason_fmt
	mov	x1, sp
	mov	x0, x19
	bl	_fail_requirement
LBB0_9:
	add	x0, sp, #4
	bl	_atf_fs_path_fini
LBB0_10:
	add	x0, sp, #28
	bl	_atf_fs_path_fini
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_atf_fs_access_x,4,2            ; @atf_fs_access_x
l_.str.1:                               ; @.str.1
	.asciz	"The required program %s could not be found"

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

l_.str.3:                               ; @.str.3
	.asciz	"."

l_.str.4:                               ; @.str.4
	.asciz	"Relative paths are not allowed when searching for a program (%s)"

	.comm	_UNREACHABLE,4,2                ; @UNREACHABLE
l_.str.5:                               ; @.str.5
	.asciz	":"

	.comm	_check_prog_in_dir,4,2          ; @check_prog_in_dir
l_.str.6:                               ; @.str.6
	.asciz	"The required program %s could not be found in the PATH"

	.no_dead_strip	_check_prog
.subsections_via_symbols
